Hi experts,

Please feel free to point me to an existing post/answer for my question. 

I found that the default Stockplot is not accurate with one-day shifted close prices. For example, I built a sample algo that buys and sells SPY based on daily change. I have a custom plot for OHLC for comparison.

As you can see in my sample below, in the default Stockplot, the close price on Apr 18 2018 doesn't match with my custom plot (purely OHLC). In the default Stockplot, the close price $267.65 on Apr 18 is in fact the close price of Apr 19, hence it's shifted one day forward.

Does anyone know why?

Author