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
No announcement yet.
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 NullPointStrategies, Today, 05:17 AM
|
0 responses
20 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
119 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
63 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
45 views
0 likes
|
Last Post
|

Comment