NinjaScript > Educational Resources > Developing Strategies >

Using ATM Strategies

Print this Topic Previous pageReturn to chapter overviewNext page

You can create an automated strategy that generates a trade signal that executes a NinjaTrader ATM Strategy.


ATM Strategies operate in real-time only and will not execute on historical data thus they can't be backtested
Executions resulting from an ATM Strategy that is created from within a NinjaScript automated strategy will not plot on a chart during real-time operation
Strategy set up parameters such as EntriesPerDirection, EntryHandling, ExitOnClose do not apply when calling the AtmStrategyCreate() method


There is a Clear Line...

There is a clear line between a NinjaScript Strategy and an ATM Strategy. The use model for creating an ATM Strategy within a NinjaScript Strategy is when you want to programmatically monitor and generate an entry signal and then manualy manage the resulting open position via an ATM Strategy in one of NinjaTrader's order entry windows.


!!! IMPORTANT: Manually Closing an ATM Strategy from an Order Entry Window such as the SuperDOM

It is crucial that when running ATM Strategies created by a NinjaScript strategy that you understand how to properly manually close the ATM Strategy from any of the order entry windows.


If the order entry window ATM Strategy Selection Mode is NOT in "DisplaySelectedATMStrategyOnly" click on the "CLOSE" button via your middle mouse button (scroll wheel)
If the order entry window ATM Strategy Selection Mode is in "DisplaySelectedATMStrategyOnly" you can click on the "CLOSE" button with your left mouse button to close the selected active ATM strategy


Following the approaches above will internally close the ATM Strategy. Not following the approach will close the account/instrument position, terminate all strategies and cancel all orders. The result is that your  NinjaScript strategy will be terminated.