Manual systems discussion - page 16

 

I see this post.

I know very similar volume indicator programmed by Igorad and may be other indicators coded by other coders.

Check this thread: https://www.mql5.com/en/forum/178673

 

Hull moving average - indicator for MetaTrader 4 

Hull moving average - indicator for MetaTrader 4

By Alan Hull

Back in 2005 when I was working on a new indicator I was temporarily sidetracked by trying to solve the problem of lag in moving averages, the outcome of which was the Hull Moving Average.

Since then the HMA has found its way into charting programs around the world and is regularly discussed on traders bulletin boards in different languages around the world. It was the result of an intellectual curiosity which I placed into the public domain by writing the following article Alan Hul Hull Moving Average.

The Hull Moving Average solves the age old dilemma of making a moving average more responsive to current price activity whilst maintaining curve smoothness. In fact the HMA almost eliminates lag altogether and manages to improve smoothing at the same time.

To understand how it achieves both of these opposing outcomes simultaneously we need to start with an easily understood frame of reference. The following chart contains a 16 week simple moving average which constantly lags the price activity and has poor smoothness.

Hull Moving Average (HMA) formula

Integer(SquareRoot(Period)) WMA [2 x Integer(Period/2) WMA(Price) - Period WMA(Price)]

Alan Hull - How to reduce lag in a moving average
  • alanhull.com
Since then the HMA has found its way into charting programs around the world and is regularly discussed on traders bulletin boards in different languages around the world. It was the result of an intellectual curiosity which I placed into the public domain by writing the following article. The Hull Moving Average solves the age old dilemma of...
 

Building a Hull Moving Average Momentum Oscillator in MQL5

Building a Hull Moving Average Momentum Oscillator in MQL5

Momentum indicators are widely used to evaluate the strength and direction of price movements, but raw momentum values often contain short-term fluctuations that can make changes in momentum difficult to interpret. This article demonstrates how to build a Hull Moving Average Momentum Indicator in MQL5 by combining a traditional momentum calculation with Hull Moving Average smoothing to produce a more responsive and smoother oscillator.

The indicator can help track momentum behavior and reduce short-term fluctuations in the momentum series. It can also provide directional information for discretionary analysis or as part of a broader trading strategy. To achieve this, we will calculate the momentum series and smooth it with the Hull Moving Average. We will then visualize the result with a color-coded oscillator and zero-line filling and implement the indicator step by step in MQL5. We will also discuss behavior around the zero line and limitations in flat market conditions.

Building a Hull Moving Average Momentum Oscillator in MQL5
Building a Hull Moving Average Momentum Oscillator in MQL5
  • 2026.09.03
  • www.mql5.com
This article builds a Hull Moving Average Momentum indicator in MQL5 by combining raw price momentum with Hull MA smoothing. We compute momentum as the close-to-close difference over a user-defined length, form 2×Fast WMA − Slow WMA, then apply a final WMA with a square‑root period. The implementation covers inputs, buffers, warm-up/recalculation, and visualization with a color-coded line and zero-line filling, helping interpret positive/negative momentum without treating zero crossings as signals.