MT4 INDICATOR TO COUNT THE BARS SINCE LAST HIGH/LOW This indicator draws 3 graphical representations of the count of bars since the last high/low for a given period. For example the indicator in a H1 timeframe with a specified period of 24 would find the lowest low (H1) in the last 24 bars and count the bars since that occurred. The same would be true for the highest high. The indicator would then draw the count of both graphically as per the spreadsheet attached.  The inputs are: Timeframe - Specifies the timeframe the indicator is working within Period - Species the "look-back" period to find the lowest low/highest high Graph Type 1 (On/Off) = LINE - There are 3 graphical representations so this parameter specifies if graphical representation 1 is on or off Line Colour - Line colour for graph 1 Line Size - Line size for graph 1 Line Style - Line style for graph 1 Graph Type 2 (On/Off) = OSC - There are 3 graphical representations so this parameter specifies if graphical representation 2 is on or off Line Colour - Line colour for graph 2 Line Size - Line size for graph 2 Line Style - Line style for graph 2 Graph Type 3 (On/Off) = SUM - There are 3 graphical representations so this parameter specifies if graphical representation 3 is on or off Line Colour - Line colour for graph 3 Line Size - Line size for graph 3 Line Style - Line style for graph 3 HMA Period Graph Type 3 (SUM) - Defines the Hull Moving Average period used for Graph Type 3 (SUM) Graph Max - Specifies the maximum value to display on the graph Graph Min - Specifies the minimum value to display on the graph The HMA Period Graph Type 3 (SUM) should have an input to toggle on/off independent of all the other graphical toggles on/off.