Count Criteria SM
From MultiCharts
The Count Criteria SM indicator marks the current bar if the number of bars meeting the condition specified in Criteria input is greater than or equal to the number specified in the Occur input. The study will also plot the text if the ShowText input is set to "true".
Default Inputs
Criteria( close > high[1] ) sets the criteria to be evaluated over the specified length.
Length( 14 ) sets the number of bars over which to evaluate the Criteria input.
Occur( 7 ) sets the number of occurrences of the Criteria input over Length.
ShowText( true ) enter 1 to place text showing the number of occurrences on the chart; enter 0 not to place text.
TextColor( cyan ) set the text color.