I am using the GetBar() method as per the sample in the help.
Instead of using the sample date, have the following:
signalBar = GetBar(new DateTime(DateTime.Now.Year, DateTimeNow.Month, DateTime.Now.Day, 9, 30, 00));
I then want to test that value, so I do:
Print("The close price of signalBar is: " + Close[signalBar].ToString());
When I check the output for a single session, I am getting multiple values, only 1 or 2 of which are the actual values.
Here is my question: Shouldn't signalBar (for the day/session ) always be the same once I define it with that time? In other words, I am getting a specific bar and as such, shouldn't it always be the same for that session that matches my signalBar time/date?
Thanks,

Comment