By debug prints there are nothing even close to generate that amount of orders.
I also print from OnPositionUpdate and it didnt show any activity there too.
What my prints shows - is that 16/03 23:59 there was command to enter short. Position changed to short.
The other attempt to change position was on 17/03 00:04 (ExitShort method called). Position didnt change and since then all the attempts to call Exit/Enter Short/Long methods were ignored and the position was actually closed on the end of the backtest run with status Exit On Close.
The situation probaly related to the attempt to open position just before midnight (because several days before 17/03 was OK and if I pick another timeframe 17/03 is OK - there is no orders on 16/03 23:59)
The other thing which might contributed to the issue is - the strategy uses 2 TFs - main (where only 2 simple indicators are for signals) and 1 tick (to execute orders immediately on a signal)

Comment