mt5 average candlestick body length for x amount of candles

To add comments, please log in or register
fencehouse
23
fencehouse  
would anybody have or be able to write out an indicator for mt5 that calculates the average candlestick body length over x amount of candles . thank you 
Vladimir Karputov
Moderator
161109
Vladimir Karputov  
fencehouse :
would anybody have or be able to write out an indicator for mt5 that calculates the average candlestick body length over x amount of candles . thank you 

Body candle statistics

The indicator displays the results using the DRAW_HISTOGRAM drawing style .

For the period "averaging period", the average candle size in points is considered .

Candle size : value modulo the difference in prices of Open and Close.

points : in the terminal on any chart, use the Crosshair tool ("Ctrl" + "F").

An example of an indicator launch for three periods: "1", "2" and "9":

Body candle statistics

Body candle statistics
Body candle statistics
  • www.mql5.com
Индикатор отображает результаты при помощи стиля рисования DRAW_HISTOGRAM. За период "averaging period" считается средний размер свечи в points. Размер свечи: значение по модулю разницы цен Open и Close. points: в терминале...
fencehouse
23
fencehouse  
thank you . does the period mean the number of candlesticks ? so if the period was 10 for example would it take the average size of the candlesticks over the last 10 candlesticks ?
Vladimir Karputov
Moderator
161109
Vladimir Karputov  
fencehouse :
thank you . does the period mean the number of candlesticks ? so if the period was 10 for example would it take the average size of the candlesticks over the last 10 candlesticks ?

Yes exactly.

To add comments, please log in or register