At opening, store the current bar number - the Bar variable - in a static variable, then compare at any run.