When TIF = day
In v22 both primary and secondary instrument orders are placed and canceled at end of session, 4:00pm.
In v23 both primary and secondary instrument orders are placed, but only the primary instrument is canceled. The secondary order is entered at the start of the next session.
This is inconsistent, and changes backtest results.
If time in force = day, no order should be carried to the next session.
A simple test program is attached.
Set the UI as shown in the code comment.
Observe the results the output window at 4:00
junk7.cs

Comment