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
Views:
6151
Rating:
(15)
Published:
2018.06.06 13:53
HMA.mq5 (14.44 KB) view
MQL5 Freelance 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

Interpolation Interpolation

Polynomial interpolation.

Crossing of two iMA v2 Crossing of two iMA v2

Crossover 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.

ITrendMA ITrendMA

Instantaneous Trendline by J. Ehlers.

LSMA LSMA

Least Square Moving Average - a moving average calculated by the least squares method.