mt5 average candlestick body length for x amount of candles

 
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 
 
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: в терминале...
 
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 ?
 
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.

Reason: