I implemented a strategy within ninjatrader but I noticed that sometimes stops and targets are put incorrectly, so I thought I would implement the function of being able to use the ATM strategy in such a way that you can also use all its features, like trailin stop and stop a breakeven. First of all I would like to clarify: is it true that ATM strategy is not testable using backtest or playback? I read this in the documentation. I also do not know where to start because I did not understand how it works, for example, the simple strategy ATM present in the editor. I have a code that has a number of conditions, but in the end the part of the code where I open a position is always the same:
SetStopLoss(...);
SetProfitTarget(...);
EnterLong(); (Or EnterShort()

Instead of this part of code how can I call up the ATM strategy features? Also someone could explain me why using these methods (which 90% of the time work correctly) sometimes do not set stop and target correctly?
Thank you so much for your time

Comment