Let's give it a whirl.gaheitman wrote: Well, I've been infatuated with the bars != Bars logic since I first saw it, but it does seem susceptible to this kind of error. Especially on a brand spankin' new account. Perhaps the safer, less sexy CurrentBarTime != Time[0] is a better bet for this sort of thing.
Latest update in post 1, containing a comparison of an OldBarTime with the open time of the current candle.