Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Chaikin_Volatility_Histogram - indicator for MetaTrader 5

Views:
3480
Rating:
(8)
Published:
2018.08.23 13:17
Updated:
2023.03.29 13:48
\MQL5\Include\
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Chaikin volatility indicator as a colored histogram.

//+-----------------------------------+
//|  INDICATOR INPUTS                 |
//+-----------------------------------+
input Smooth_Method XMA_Method=MODE_EMA_;//smoothing method
input int XLength=10;                    //smoothing depth                    
input int XPhase=15;                     //smoothing parameter,
//---- For JJMA, changing within -100 ... +100, affects the transient process quality;
//---- For VIDIA this is CMO period, for AMA this is a slow average
input uint ROCPeriod=10;                 //second smoothing depth 
input uint HighLevel=50;                 // highest volatility level
input uint MiddleLevel=20;               // medium volatility level
input uint ZeroLevel=0;                  // zero volatility level
input int LowLevel=-20;                  // minimum volatility level
input int Shift=0;                       // indicator horizontal shift in bars

The indicator uses the classes of the SmoothAlgorithms.mqh library. Working with that class was described in details in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".

Fig. 1. Chaikin_Volatility_Histogram indicator

Fig. 1. Chaikin_Volatility_Histogram indicator

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/21498

3sma 3sma

The EA based on three iMA (Moving Average, MA) indicators.

CenterOfGravityCandle_HTF CenterOfGravityCandle_HTF

The CenterOfGravityCandle indicator with the timeframe selection option available in the input parameters.

One MA EA One MA EA

The EA based on single iMA (Moving Average, MA) indicator signals.

AMA Histogram Normalize AMA Histogram Normalize

Version of the AMA Histogram indicator.