I've been noticing a very weird behavior in my NinjaScript strategy, when access values of Bars Ago like Time[1], Time [2], High[1], High[2], High[3], it is showing me values from yesterday's last bars.
For example, the code below, it doesn't matter at what time or OnBarUpdate of the day it executes, it shows always the same values below:
ToTime(Time[1]).ToString() is showing: 181500
ToTime(Time[2]).ToString() is showing: 180000
ToTime(Time[3]).ToString() is showing: 174500
If look at High[1], High[2], High[3]... they are also showing values from yesterday's bars , the same bars of times above.
My strategy is running on each inconming tick (CalculateOnBarClose = false) bars period of every 15 minutes.
I'm connected to Clear Broker order and price servers.
I've already synchronized Timezone, that does not appear to be the problem.
Please your assistance.
Thanks in Advance,
Rodrigo
Comment