Join our fan page
HMA - indicator for MetaTrader 5
- Views:
- 6151
- Rating:
- Published:
- 2018.06.06 13:53
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Alan Hull's Moving Average.
Since the classical Moving Average is calculated using symbol's prices received in the past period, that MA lags behind the current price activity. This is the main drawback of the Moving Average.
The HMA indicator takes into account this limitation. Hull's Moving Average is an indicator, which not only smooths price fluctuations, but also levels out the price lag. Hull's Moving Average can solve this problem through using the square root of the period instead of the period itself, which is used in the classical Moving Average.
The indicator has two input parameters:
- Period - calculation period;
- Applied price - price used for calculations.
HMA works on any timeframe and with any instrument.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/20418
Polynomial interpolation.
Crossing of two iMA v2Crossover of two iMAs (Moving Averages), one more iMA (Moving Average) is used as the filter. Lot: manual or risk percent of balance. Stop, Market or Limit orders. The EA also sets Stop Loss, Take Profit, Trailing Stop.