Skip to content

Free MT5 indicator

Hull MA Ribbon

Fast and slow Hull moving averages for MT5, each coloured by slope, with arrows and alerts on confirmed crossovers.

Trendv1.0MetaTrader 5 (MQL5) Compiles with 0 errors Non-repainting signals Alerts

What it does

Hull MA Ribbon plots two Hull moving averages on the price chart. Each line changes colour with its own slope: green shades while rising and red shades while falling. When the fast line crosses the slow line on a closed bar, an arrow is drawn and an optional alert fires.

The Hull moving average is designed to follow price closely while staying smooth, so the pair reacts faster than two ordinary moving averages of the same length.

How it works

For a length n, the Hull moving average is calculated in three steps:

  1. Take a linearly weighted moving average (WMA) of price over n/2 bars and another over n bars.
  2. Build a raw series: 2 × WMA(n/2) − WMA(n). This pushes the average towards the most recent prices and removes much of the usual lag.
  3. Smooth that raw series with a WMA over the square root of n, rounded to the nearest whole bar.

The indicator does this twice, once for the fast length (21) and once for the slow length (55). A line is coloured as rising when its value is at or above the previous bar's value and as falling otherwise. A bullish cross is a closed bar where the fast line is above the slow line after being at or below it on the bar before; a bearish cross is the opposite.

How to use it

  • Read the slow line's colour as the broader bias and the fast line's colour as the short-term swing. When both point the same way, the market is trending on that timeframe.
  • Crossovers that agree with the slow line's slope are generally more useful than crossovers against it.
  • A fast line that turns colour while the slow line keeps its slope often marks a pullback inside the trend rather than a reversal.
  • Pair it with support and resistance so that you are not buying straight into a ceiling or selling into a floor.
  • It suits trending instruments such as major currency pairs, gold and indices on M15 to D1.

Settings

InputDefaultWhat it changes
Fast Hull length21Responsiveness of the fast line; lower values react faster and turn colour more often
Slow Hull length55The trend baseline; higher values give a steadier bias
Applied priceCloseUse median or typical price to reduce the influence of closing spikes
Pop-up alert on new crossfalseAlerts once per closed bar when a cross is confirmed
Push notification on new crossfalseMobile notification for the same event

Limitations

  • The Hull formula overshoots: after a sharp move it can swing past price and then snap back, which can produce a quick false colour change.
  • Crossovers still lag the turn in price, and in a sideways market the two lines will cross repeatedly.
  • The line values and colours on the live bar update with every tick. Arrows and alerts are only confirmed when the bar closes and are not removed afterwards.
  • No moving-average crossover is reliable on its own. Use it with risk management, a defined stop-loss and a demo period first. Trading carries substantial risk of loss.

Key inputs

Key inputs of Hull MA Ribbon
InputDefaultDescription
Fast Hull length21Period of the faster Hull moving average.
Slow Hull length55Period of the slower Hull moving average.
Applied priceClosePrice fed into both averages: close, median, typical or weighted.
Pop-up alert on new crossfalseAlerts once when a closed bar confirms a crossover.
Push notification on new crossfalseSends the same message to the MT5 mobile app.

Educational tools, not advice. Indicators and Expert Advisors describe price; they do not predict it, and past behaviour does not guarantee future results. Test everything on a demo account first and never risk money you cannot afford to lose. See our disclaimer.

Keep exploring

Related mt5 indicators