A modification of the Statistics of candles script. Counting the number of series of bullish and bearish bars. Displaying the result as a chart. Saving the screenshot of the resulting chart. The CGraphic class is used.

Fig. 1. EURUSD,M5. 1200 bars. Percent.
Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/19323
DeMarkerValues
The indicator shows a text block with the values of the user defined DeMarker oscillator period for each timeframe.
WPRValues
The indicator shows a text block with the values of the user defined WRP oscillator period for each timeframe.
Count of candles in interval (histogram)
The indicator shows the number of bullish and bearish bars in the given interval.
MAMACD
A strategy based on iMA (Moving Average, MA) and iMACD (Moving Average Convergence/Divergence, MACD).