eqname = “~~~EQUITY”;
if( Name() != eqname ) SetForeign( eqname );
eq = Close;
bslh = HighestBars(eq);
MaxWaitBars = Highest(bslh);
Plot(bslh, “#bars since last high”, colorred, styleHistogram, 0, 10 * LastValue( Highest( bslh ) ) );
Plot(MaxWaitBars, “Max Wait Bars”, colorBlack, styleline);