Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | Rainbow HMA

Sixty Hull Moving Averages (HMA) with gradually changing period on a single chart.

Indicator input parameters:

//+----------------------------------------------+
//| Indicator input parameters                   |
//+----------------------------------------------+
input uint StartLength=2; // First depth of averaging
input uint StartStep=2;   // Starting step of averaging change
input uint EndStep=6;     // Final step of averaging change                                         
input Applied_price_ IPC=PRICE_QUARTER_;// Price constant
input int Shift=0;        // Horizontal indicator shift in bars
input int PriceShift=0;   // Vertical indicator shift in points

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

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.1. The Rainbow_HMA indicator

13046

Best MetaTrader Indicators + Profitable Expert Advisors