Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Using ATM code in an unlocked Strategy builder code
Collapse
X
-
Using ATM code in an unlocked Strategy builder code
Hello, I have discovered how to use the ATM tool as part of my strategy, After I unlock the code and then paste in certain lines of code from the built in 'SampleAtmStrategy' which is nice, but I ran into a new issue. For simplicity reasons lets say the condition is met and I need a Buy StopMarket order placed at the High of candle 2. The ATM only places limit orders. I have tried changing the code to 'OrderType.StopMarket' and 'OrderType.StopLimit' instead of the default 'OrderType.Limit' but then nothing happens. I need when the conditions are met that a Buy Stop order is placed at candle 2 high which is above the current market price. This is a breakout pending order strategy. Thanks for your guidance with this issue.Tags: None
-
Hello NWVW22,
Thank you for your post.
Can you share the code that you are using to create the atm strategy using AtmStrategyCreate()? Are you specifying a limit price?
To understand how the logic is behaving, you would need to debug it using prints. To get info about orders placed using Atm Strategies you should use the methods in the ATM Strategy Monitoring section of the Atm Strategy Methods help guide:
The SampleAtmStrategy sample that comes with NinjaTrader demonstrates using some of those methods for monitoring orders submitted using Atms.
Please let us know if you need further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
55 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
132 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment