Ok, I could follow that logic if it applied the same way to dataFromCSV(). But there all data is apparently "known" the same day specified by the date in the same row. Referring back to my initial sample script: This script is effectively peeking 1 day into the future due to these two different ways the EOD data is processed. I find this quite counter-intuitive and I bet this is an unnoticed error in many scripts, at least by beginners. It just happened to be very relevant to my trading idea, otherwise I would have never noticed it (before trading it live). I suggest a related note in the dataFromCSV() documentation, at least.