Hello!
I ran into this issue and would really like to understand where the problem lies.
It occurs to me that the data "recorded" at run-time is correct, while the same data, retrieved "historically", is way mispriced.
Am I missing something?
Thanks for any clarification.
P.S. The info is in the log of the Backtest
2018-02-20 14:45 before_trading_start:26 INFO 2018-02-16 00:00:00+00:00 75.06
Freq: C, Name: Equity(21652 [IYR]), dtype: float64 2018-02-21 14:45 before_trading_start:26 INFO 2018-02-20 00:00:00+00:00 74.13
Freq: C, Name: Equity(21652 [IYR]), dtype: float64 2018-02-22 14:45 before_trading_start:26 INFO 2018-02-21 00:00:00+00:00 72.9
Freq: C, Name: Equity(21652 [IYR]), dtype: float64 2018-02-23 14:45 before_trading_start:26 INFO 2018-02-22 00:00:00+00:00 73.57
Freq: C, Name: Equity(21652 [IYR]), dtype: float64 2018-02-26 14:45 before_trading_start:26 INFO 2018-02-23 00:00:00+00:00 74.83
Freq: C, Name: Equity(21652 [IYR]), dtype: float64 2019-01-02 14:45 before_trading_start:17 INFO 2018-02-16 00:00:00+00:00 72.579
2018-02-20 00:00:00+00:00 71.680
2018-02-21 00:00:00+00:00 70.491
2018-02-22 00:00:00+00:00 71.138
2018-02-23 00:00:00+00:00 72.357
Freq: C, Name: Equity(21652 [IYR]), dtype: float64 End of logs.
Here's a better comparison:
Run-time:
2018-02-16 00:00:00+00:00 75.06
2018-02-20 00:00:00+00:00 74.13
2018-02-21 00:00:00+00:00 72.9
2018-02-22 00:00:00+00:00 73.57
2018-02-23 00:00:00+00:00 74.83
Historical:
2018-02-16 00:00:00+00:00 72.579
2018-02-20 00:00:00+00:00 71.680
2018-02-21 00:00:00+00:00 70.491
2018-02-22 00:00:00+00:00 71.138
2018-02-23 00:00:00+00:00 72.357