Fix the Backtest Notebook
A signal uses the close of bar t. The failing check expects the earliest fill to be after t. Fix the assignment for a next-open model.
A signal uses the close of bar t. The failing check expects the earliest fill to be after t. Fix the assignment for a next-open model.
orders = signal
assert not orders.iloc[0]