OnBarUpdate() calls NewHighLow() if a tick creates a new or equals the old bar High or Low. NewHighLow() performs the calculations and calls DrawPatterns() as the last statement. I have been having problems with patterns not being displayed or removed when no longer valid. Hitting F5, however, makes everything look as it should.
Snap

Comment