So say I want to buy Apple which price is at 170 and if my cash entry amount is $2000.00 I will enter EntryAmount = 2000/170 then the entry amount will be 11 shares (rounded). If on the other hand I want to buy AAL which price is at 11 then EntryAmount = 2000/11 then the entry amount will be 181 shares (rounded). That way the entry amounts for my watchlist will be comparable. I have done this in NinjaScript in a strategy I use but I wonder if it can be done in ATM. Thank you.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
ATM strategy entry amount
Collapse
X
-
ATM strategy entry amount
Hello, Is there a way to set the entry amounts in an ATM strategy using a formula? I want to use a multiplier so my entries are based on the current price of the instrument (equities). The formula is EntryAmount = Multiplier/Price.
So say I want to buy Apple which price is at 170 and if my cash entry amount is $2000.00 I will enter EntryAmount = 2000/170 then the entry amount will be 11 shares (rounded). If on the other hand I want to buy AAL which price is at 11 then EntryAmount = 2000/11 then the entry amount will be 181 shares (rounded). That way the entry amounts for my watchlist will be comparable. I have done this in NinjaScript in a strategy I use but I wonder if it can be done in ATM. Thank you.Tags: None
-
-
Hello designer01,
Unfortunately, modifying the template through code would not be supported and this would need to be set manually and saved.
You might try submitting the order through the Addon approach which allows for using Account.CreateOrder().
Or alternatively, just submit the orders without an Atm Strategy and code the logic for the exit behavior directly in the script.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by OllieFeraher, Today, 11:14 AM
|
2 responses
4 views
0 likes
|
Last Post
by OllieFeraher
Today, 11:33 AM
|
||
Started by DawnTreader, Yesterday, 05:58 PM
|
2 responses
14 views
0 likes
|
Last Post
by DawnTreader
Today, 11:25 AM
|
||
Started by quicksandatl, Today, 11:11 AM
|
1 response
6 views
0 likes
|
Last Post Today, 11:24 AM | ||
Started by aman jain, 10-01-2020, 09:25 PM
|
3 responses
293 views
0 likes
|
Last Post
by Legiboka
Today, 11:13 AM
|
||
Started by reynoldsn, Today, 07:23 AM
|
5 responses
13 views
1 like
|
Last Post Today, 11:09 AM |
Comment