Running the attached backtest spanning over the 2014-06-09 AAPL split yields an odd result, the log shows:
2014-06-06 PRINT :
2014-06-04 00:00:00+00:00 644.82
2014-06-05 00:00:00+00:00 647.35
Freq: C
2014-06-09 PRINT :
2014-06-05 00:00:00+00:00 92.48
2014-06-06 00:00:00+00:00 92.23
Freq: C
2014-06-10 PRINT :
2014-06-06 00:00:00+00:00 645.57
2014-06-09 00:00:00+00:00 93.70
Freq: C
2014-06-11 PRINT :
2014-06-09 00:00:00+00:00 93.70
2014-06-10 00:00:00+00:00 94.25
where on June 6th the split has yet to happen, on the 9th the split has happened and the previous data is adjusted backward, on the 10th only one of the values is back adjusted. This looks wrong to me.
I went through this Karen's post and in turn this other one, from what I understood the prices evaluated on day 10th for day 6th and 9th should both be adjusted since current day is past the split. Nonetheless the 9th is in the queried day so that should pull in back-adjusting for the whole Series.
Notice that I'm accessing history through the data object not via pipeline and I'm fetching it in before_trading_start so the last item of history belongs to the previous trading day.
Is this a bug? If not what's happening with those two prices printed on 2014-06-10?