Hull Moving Average
Free Hull Moving Average indicator for MT5: two-colour HMA line, slope-flip arrows and a trend panel. Lab repaint test: 0 of 725 signals changed.

- Repainted
- 0 / 725
- Signals / week
- ≈ 55.1
- Tested on
- EURUSD M15
- Tested
- 2026-10-09
Overview
The Hull Moving Average indicator for MT5 draws one two-colour trend line on your price chart. The line is green while it rises and red while it falls. A Buy Flip or Sell Flip arrow marks the closed bar where the slope turns. In the Lab's repaint test, 0 of 725 arrows changed after they appeared. The tool suits trend traders who want a quick, low-lag read of direction rather than an entry signal they can use on its own.
What it draws on your chart
The Hull Moving Average combines three weighted moving averages. This reduces the lag of a normal average while keeping the line smooth. This version calculates it on closed bars only, so the line, its colour and the arrows only update once a bar has finished.
- Hull MA line: drawn on the price chart, not in a separate window. It is green (UpColor) while rising and red (DownColor) while falling.
- Buy Flip arrow: placed below the bar's low when the Hull MA rises on the closed bar after it was falling.
- Sell Flip arrow: placed above the bar's high when the Hull MA falls on the closed bar after it was rising.
- Trend panel: shows the last flip and how many bars ago it happened, the current slope direction and the bars since the flip, whether the higher-timeframe Hull MA agrees, how far the close is from the line in ATR, and the line's value and slope.
How the Lab tested it
The Lab ran version 1.00 (a 142.5 KB file) on MT5 build 6230 on 2026-10-09. The test used EURUSD M15 from 2026-07-09 to 2026-10-08 with real ticks from Raw Trading Ltd. Of the 725 arrows the Lab logged, none moved or disappeared later, and the largest arrow delay was 0 bars. Each arrow appears when its signal bar closes and stays there. This means an arrow you see in history is the arrow you would have seen live.
What the signal numbers mean for you
For each arrow, the Lab checked whether price moved 1 ATR in the arrow's direction before it moved 1 ATR against it. The result was 47%, slightly worse than a coin flip. Buy Flips did a little worse than Sell Flips, as the chart below shows. On its own, a flip arrow gives you no edge as an entry.
Scale zoomed in to show the difference (bars do not start at zero).
Price settles the question quickly. The median number of bars to the first 1 ATR touch, in either direction, was 3 bars for all arrows (3 for Buy Flips, 2 for Sell Flips), which is under an hour on M15. Only 2.3% of arrows reached neither level within 20 bars (1.9% of buys, 2.8% of sells). After a flip, price almost always moves a full ATR soon. It just doesn't reliably move in the arrow's direction.
With the default HullPeriod of 20, the tool produced 55.1 arrows a week (27.6 buys, 27.5 sells). That is about 11 flips per trading day on M15. Expect bursts of them when price moves sideways (the Lab did not measure how many). Use the tool for context: which way the short-term trend points, how long ago it turned, and whether the higher timeframe agrees.
Who it helps
The tool fits traders who already have an entry method and want trend context and an alert when the short-term direction turns.
How it works
- 1Takes the chosen price of each closed bar, such as close, median or typical price.Inputs: AppliedPrice
- 2Builds the raw series from a half-period and a full-period weighted moving average.
Raw = 2 x WMA(Price, Period / 2) - WMA(Price, Period)Inputs: HullPeriod - 3Smooths the raw series with a weighted average over the square root of the period to get the Hull line.
Hull = WMA(Raw, sqrt(Period))Inputs: HullPeriod - 4Colours the line by slope. Buy arrow when slope turns up, sell arrow when it turns down, offset 0.2 ATR.
Slope = Hull - Hull_prevInputs: ShowArrows, StretchATRPeriod - 5Optionally computes the same Hull direction on a higher timeframe and shows whether it agrees.Inputs: ShowHTFConfluence, HigherTimeframe
Specifications
- Platform
- MetaTrader 5
- Version
- 1.00
- Type
- Indicator
- Window
- Main chart
- Draws
- 1 line, 2 arrows, 1 panel
- Alerts
- popup, push, sound
- Repaints
- No (0 of 725 signals changed)
- Inputs
- 16
- Tested on
- MT5 build 6230 · 2026-10-09
Repaint test
No repaint detected. In a 9 Jul 2026 – 8 Oct 2026 test on EURUSD M15 (Raw Trading Ltd real ticks), 725 signals were logged at bar close and re-read at the end of the test: 0 changed. Arrows print on the bar that closes the signal, with no delay.
IndicatorFree — tested 2026-10-09 · MT5 build 6230 · Raw Trading Ltd real ticks. Results come from historical data, not live trading, and do not guarantee future results.
Signal statistics
Over 9 Jul 2026 – 8 Oct 2026 on EURUSD M15, the indicator printed 725 arrows. After 47% of them, price moved 1×ATR(14) in the arrow's direction before moving 1×ATR against it (median 3 bars). 2.3% reached neither level within 20 bars.
This measures price movement after the arrow, not a trading result. It includes no spread, commission, stop loss or position sizing.
What it draws
- A line (Hull MA) from buffer 0.
- Arrows (Buy Flip) from buffer 2, drawn on the closed bar.
- Arrows (Sell Flip) from buffer 3, drawn on the closed bar.
- An on-chart panel (Trend); values shown in the panel are not exposed as buffers.
Inputs
| Input | Default | What it does |
|---|---|---|
| HullPeriod | 20 | Base period n of the Hull formula: WMA(n), WMA(n/2), WMA(sqrt(n)) (2-500) |
| AppliedPrice | Close | Price used by all three WMA layers |
| UpColor | C'18,183,106' | Line and Buy arrow color while the Hull MA is rising |
| DownColor | C'229,72,77' | Line and Sell arrow color while the Hull MA is falling |
| ShowArrows | true | Show Buy / Sell arrows when the Hull MA slope flips |
| ShowHTFConfluence | true | Show on the panel whether the higher timeframe Hull MA points the same way |
| HigherTimeframe | H4 | Higher timeframe compared; N/A when it is not above the chart timeframe |
| StretchATRPeriod | 14 | ATR period used to measure the distance of the close from the Hull MA (5-100) |
| EnableAlertPopup | true | Show a popup alert when a new Buy / Sell arrow is confirmed |
| EnableAlertPush | false | Send a push notification to the MT5 mobile app on a new arrow |
| EnableAlertSound | true | Play a sound on a new arrow |
| SoundFile | alert.wav | Sound file in the MT5 Sounds folder |
| ShowDashboard | true | Show the status panel |
| PanelScale | 1 | Panel size multiplier (DPI is applied automatically) |
| Theme | Dark | Chart color theme |
| RestoreTheme | true | Restore the original chart colors when the indicator is removed |
How to read it
Reading the line and its colour
The colour shows one thing: whether the Hull MA on the last closed bar is higher or lower than on the bar before (Slope = Hull − previous Hull). Green means rising and red means falling. The colour does not measure how strong the trend is. A flat, choppy market can still switch from green to red and back every few bars.
Reading Buy Flip and Sell Flip arrows
An arrow appears only when the slope changes sign on a closed bar. It sits 0.2 ATR below the low for a Buy Flip and 0.2 ATR above the high for a Sell Flip. The illustration below shows the typical pattern: a Buy Flip after the line bottoms, a Sell Flip after it tops, and a quick pair of flips once price goes sideways. The line is not drawn; arrows mark where the Hull slope changed sign.
Common misread: an arrow does not mean price crossed the line. It means the line itself turned. Price can sit well above a red line, or below a green one. To spot a whipsaw early, look at the panel. If the panel shows the previous flip fewer than 5 bars ago (a rule of thumb the Lab has not tested) and the close is near the line in ATR terms, the market is probably ranging.
Reading the Trend panel
The panel collects the context you need for each arrow:
- Last flip and bars ago: how fresh the current direction is.
- Slope direction and bars since the flip: how long the line has kept pointing the same way.
- Higher-timeframe agreement: whether the Hull MA on HigherTimeframe points the same way.
- Distance from the line in ATR: how stretched the close is from the Hull MA, measured with StretchATRPeriod.
- Line value and slope: the current Hull MA reading.
Inputs to change first
- HullPeriod (default 20, range 2-500): the main input. Raising it smooths the line, reduces the number of flips and adds lag. Lowering it does the opposite. The Lab's numbers apply to 20 only.
- HigherTimeframe (default H4): the timeframe the panel's agreement field compares against.
- AppliedPrice (default Close): the price used by all three WMA layers. Close is the only price the Lab tested.
- StretchATRPeriod (default 14, range 5-100): changes only the ATR used for the panel's distance reading and the arrow offset. It does not change when arrows fire.
- ShowArrows / ShowDashboard / ShowHTFConfluence: turn off the arrows if you only want the coloured line, or hide the panel to keep the chart clean.
- Theme, RestoreTheme, PanelScale, UpColor, DownColor: control appearance only. With RestoreTheme on, your original chart colours come back when you remove the indicator.
Alerts
An alert fires when a new Buy or Sell Flip arrow is confirmed on a closed bar. The popup (EnableAlertPopup) and sound (EnableAlertSound, playing SoundFile from the MT5 Sounds folder) are on by default. Push notifications to the MT5 mobile app (EnableAlertPush) are off by default.
Install
Copy the file into your MT5 Data Folder under MQL5/Indicators, refresh the Navigator and drag Hull Moving Average onto a chart.
A decision rule for each arrow
- Buy Flip: count it only if the panel shows the higher timeframe agrees and you already have a long reason from your own method. Skip it if the panel shows the previous flip fewer than 5 bars ago. Skip it if the close is already far above the line (for example, more than 1 ATR away). Both thresholds are rules of thumb the Lab has not tested.
- Sell Flip: the mirror image. Count it only with higher-timeframe agreement and your own short reason. Skip it if the panel shows the previous flip fewer than 5 bars ago, or when the close is already stretched below the line (the same untested thresholds as for Buy Flip).
- For open trades: an opposite flip is a simple cue to tighten or close the position. It is often more useful there than as a new entry.
Installation
- 1Download HullMovingAverage.ex5 from the button above (Google Drive).
- 2In MetaTrader 5: File → Open Data Folder → MQL5 → Indicators. Copy HullMovingAverage.ex5 there.
- 3Restart MT5 or right-click Indicators in Navigator → Refresh.
- 4Drag Hull Moving Average onto a chart. For push alerts, enable "Allow push notifications" under Tools → Options → Notifications.
- Tested on MT5 build 6230.
Key terms and guides
- Entry Trigger
- An entry trigger is the specific event on the chart, such as a candle closing past a level or price breaking a small swing, that tells you to open the trade now instead of only watching the setup.
- Average True Range
- Average True Range (ATR) is a volatility indicator that shows how far price typically moves per candle, gaps included, averaged over a set number of candles. It measures the size of moves, not their direction.
- Every tick based on real ticks
- Every tick based on real ticks is the MT5 Strategy Tester mode that replays the actual bid and ask ticks your broker recorded, with the real changing spread, instead of ticks the tester invents from 1-minute bars.
- Higher Timeframe
- A higher timeframe is any chart period longer than the one you trade on, such as the daily chart for someone trading the 1-hour chart. Traders use it to see the bigger trend and the main price levels around their smaller-chart trades.
- Trend line
- A trend line is a straight line drawn across rising swing lows or falling swing highs. Traders use it to read the direction of a trend, time entries when price comes back to it and spot when a trend is failing.
- Hull moving average
- The Hull moving average is a fast-turning moving average that layers weighted averages to cut lag, used as a single trend line to read direction and trade pullbacks.
More on this subject: Trend & moving averages guide, terms and tools
User reviews
No reviews yet. Members who download the tool can review it here.
Sign in and download the tool to review it.
Build a checklist with it
Hull Moving Average does one job on the chart: trend / context. Put it on the same chart as the tools below and the IndicatorFree panels merge into one checklist card, ordered trend, zone, signal, risk.
- Zone / levelSession Volume ProfileAdds where price is: the zones and levels that Hull Moving Average does not draw.
- Entry signalAwesome OscillatorAdds the entry signal: the moment to act once Hull Moving Average has set the scene.
The Lab has not tested these combinations. Each tool is tested on its own; the card only lines up what each one says. Free members get 2 new tools a day. If one has to wait until tomorrow, install BlackBox to raise the limit to 5 a day (20 on a live account).
FAQ
Does Hull Moving Average repaint?
No repaint detected. In a 9 Jul 2026 – 8 Oct 2026 test on EURUSD M15 (Raw Trading Ltd real ticks), 725 signals were logged at bar close and re-read at the end of the test: 0 changed. Arrows print on the bar that closes the signal, with no delay.
Can I use Hull Moving Average in an EA?
Yes. Read buffer 2 (Buy Flip) with iCustom() on bar 1 — the last closed bar.
Why can’t my EA read the zones?
Zones and the panel are chart objects, not indicator buffers, so iCustom() does not return them.
How do I get alerts on my phone?
Enter your MetaQuotes ID under Tools → Options → Notifications, tick "Enable push notifications", and keep the push alert input on.
Does it work on other pairs?
Tested on EURUSD only; other symbols not tested.
Why does the arrow appear a bar or two after the actual low or high?
The arrow needs a closed bar where the Hull MA has already turned compared with the bar before it. That confirmation is why arrows don't repaint, but it also means the arrow always comes after the turning point.
Why does the panel show N/A for higher-timeframe agreement?
HigherTimeframe must be above your chart's timeframe, so the default H4 reads N/A on an H4 or D1 chart. On an H4 chart, set D1 or higher; on a D1 chart, set W1 (weekly) or MN1 (monthly).
Can I get the flip alerts on my phone?
Yes. First enter your MetaQuotes ID under Tools > Options > Notifications in desktop MT5 and tick Enable Push Notifications. Then set EnableAlertPush to true and MT5 will send a notification to the MT5 mobile app for each new confirmed arrow. Popup and sound alerts are already on by default and can be switched off separately.
Will it change my chart colours?
The Theme input (default Dark) applies its own chart colour scheme. With RestoreTheme left on, your original colours return when you remove the indicator.
Does it work on symbols other than EURUSD?
The Lab has not tested other symbols. Its numbers, such as 47% and 55.1 arrows a week, come from EURUSD M15 only, so check how often it flips on your symbol's history before you rely on it.
Changelog
- 1.00Initial release: full 3-layer Hull Moving Average formula (WMA(n), WMA(n/2), WMA(sqrt(n))) computed on closed bars only, no repaint.; Two-color trend line that switches automatically with the HMA slope. · 2026-10-09
Final verdict
Where it earns its place
The repaint test was clean and arrows appeared with no delay, so you can trust the history and backtest your own rules on it. Arrows are decided within a few bars, which makes it easy to judge a flip quickly. The panel puts trend age, higher-timeframe agreement and stretch in one place, which is what a context tool should do.
Where it falls short
As an entry signal, the arrows did slightly worse than a coin flip, and at the default period they fire very often. The Hull formula cuts lag but does not remove it. A flip always comes after the turn has started, so you will miss the first part of every move. The tool gives no stop, target or trend-strength reading. The Lab measured only EURUSD M15 with HullPeriod 20, so other symbols, timeframes and periods have no Lab numbers yet.
- –You need a non-repainting trend-direction filter for your own entries
- –You want an alert when short-term direction turns
- –You trail or exit open trades on an opposite flip
- –You want higher-timeframe agreement shown on the chart you trade
- –You want an arrow you can trade alone, with no other filter
- –The market is ranging and flips arrive every few bars
- –You need stop-loss or take-profit levels from the tool
- –You expect to catch exact tops and bottoms
Settings to start with
Start with the defaults so your results match the Lab's. Then try these starting points, none of which the Lab has tested; compare each with the default before relying on it:
- M15 or M5: HullPeriod 50 to cut the number of whipsaw flips, and HigherTimeframe H1 on M5.
- H1: keep HullPeriod 20 and leave HigherTimeframe at H4.
- H4: set HigherTimeframe to D1.
An idea the Lab has not tested: take Hull flips only when ADX shows a trend.





















