When you cross above 25, you record the bar number.
InitialCrossAbove25Bar = CurrentBar;
In each case, the bars elapsed since the cross is then: CurrentBar - InitialCross...Bar, which you can evaluate wherever you want. Of course, you have to declare your backing store variables.
Comment