Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal


Count of candles in interval (histogram) - indicator for MetaTrader 5

Vladimir Karputov | English Русский 中文 Español Deutsch 日本語 Português

votes: 16
2018.01.22 09:22

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):

Count of candles in interval (histogram)

Possible application: three timeframes with the same settings:

Count of candles in interval (histogram)

Translated from Russian by MetaQuotes Software Corp.
Original code:

Statistics of candles 2 Statistics of candles 2

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 DeMarkerValues

The indicator shows a text block with the values ​​of the user defined DeMarker oscillator period for each timeframe.


A strategy based on iMA (Moving Average, MA) and iMACD (Moving Average Convergence/Divergence, MACD).

Alert Crossing Moving Average Nth Bar Alert Crossing Moving Average Nth Bar

An alert (an audio alert, email and push notification) is generated when the iMA (Moving Average, MA) indicator crosses the bar with index N.