I Have a simple ninja trader 8 script generated from a template.
In OnStateChange() function I set IsExitOnSessionCloseStrategy to false.
However in the strategy analyzer it always closes my position at the end of the session. I do not want this. I want the position to remain in effect even if the ninja trader strategy is not running. (will this be different in real time settings versus backtesting?)
Also a way to stop running the strategy while not closing positions in code would also be helpful.
Thanks!
Comment