The backtest goes from 2020-01-01 to 2020-12-31. When retrieving 4 days of history using the to parameter of state.interface.history I'd expect it to get 2019-12-28 to 2019-12-31.
Instead it gets 3 days of history skipping the previous day, e.g., 2021-10-28 - 2021-10-30.
Description
Example:
The backtest goes from 2020-01-01 to 2020-12-31. When retrieving 4 days of history using the
to
parameter ofstate.interface.history
I'd expect it to get 2019-12-28 to 2019-12-31.Instead it gets 3 days of history skipping the previous day, e.g., 2021-10-28 - 2021-10-30.
This workaround produces what I expect:
settings.json
backtest.json (if applicable)
Platform Info