I've written a strategy that I'm backtesting on historical data. To see what happens I've put a lot of Print statements within the code.
I'm working on a 3 minute timeframe.
I see that on 15:33 the statement ExitLong() is called. On the trades tab of the strategy analyser (and the chart tab) I see that the ExitLong is executed at 15:36? How can this happen while the function is called at 15:33?
How to fix this?
BTW I'm just beginning with the building of strategies...

Comment