The indicator calculates bullish and bearish bars in the period from The number of the starting bar (the first bar on the right of the chart) till The number of the end bar (located on the left).
The indicator with 'starting bar' (0) and 'end bar' (5):
Possible application: three timeframes with the same settings:
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/19328
Counting the number of series of bullish and bearish bars. Displaying the result as a chart. Saving the screenshot of the resulting chart. The script uses the CGraphic class.DeMarkerValues
The indicator shows a text block with the values of the user defined DeMarker oscillator period for each timeframe.