can you guys help me fins a way to know whether the current bar has closed.specifically what is the value returned when Close is used when the current bar has not been closed yet.
IMO there are two ways to know the "current" bar has closed . . .
I am currently using GBPUSD tick data from Dukascopy for my Unit testing in the Strategy Tester, I have noticed that there are occasions where there are missing M1 bars, why? because there ere no ticks during that minute. So, if for example you tried to do your calculations/processing on the last minute of the current bar then there is a chance that it wouldn't happen due to a lack of ticks during that minute.