//P_HigherHi v2 PlotShapes( IIf(H > HHV(Ref(H, -1), 250) AND BarIndex() > 250, shapeSmallCircle,0) , colorGreen,0,High,10); //P_ExclusiveHigherHi NewHi = H > HHV(Ref(H, -1), 250) AND BarIndex() > 250; ExclusivePeriods = Param("ExclusivePeriods",1,1,250,1); ExclusiveNewHi = ValueWhen(NewHi ==1, BarIndex(),1) - ValueWhen(NewHi == 1, BarIndex(),2) >= ExclusivePeriods AND NewHi; Plot(ExclusiveNewHi,"ExclusiveNewHigh",2,2|styleOwnScale);