Here in Oz time zones are a bit different. I am trading the Fdax (in sim luckily) and the session times are 4pm to 6am local time (in winter, different in summer). I have found that, if I have entered a trade and not exited before midnight, Ninja will automatically cancel my profit and stop orders at midnight local time due to "end of session handling" according to the traceorders output. But it does not exit my position, so I'm left with an unprotected position.
Is there a way I can stop this? I've tried resubmitting the stop and profit orders if I'm long or short, but this doesn't seem to solve the problem. Also tried resetting them if Bars.SessionBreak is true, and in the OnOrderUpdate method. Nothing works.
What I'd really like is a way to tell Ninja to use German time instead of Australian time, but I have not been able to discover any way of doing that (short of changing my computer clock). I've seen in other posts a recommendation to set the session start and end times when starting the strategy, but as far as I can see there is no way to do this. The only time this option is available is in the Strategy Analyzer.
thanks,
Ian
Comment