I oberserved strange executions in the strategy analyzer when I use a MTF strategy with unmanaged orders. If the orders are placed in the secondary time frame, the entry order is executed on the bar of the next day and the exit order is executed immediately. The entry and exit times in the Trades tab show an exit time before the entry time.
Attached is a sample strategy I used to pinpoint the problem, it is just the plain order logic, anything else removed.
changing line 82 to "private int OrderBars = 0;" shows the correct result.
Comment