HMA Trend Filter
Two Hull moving averages, one question: is the trend up or not?
Chart overlay · Daily first, any timeframe · Any liquid symbol
The HMA Trend Filter runs two Hull moving averages and answers one question: is the trend up. Hull averages turn faster than a standard moving average with less of the lag, so the flip happens closer to the actual turn without producing a flip every other day.
What it shows
- Hull MA 100 and 200 drawn on the chart.
- A soft background tint: up trend or no up trend, nothing in between.
- Arrows when the fast Hull crosses the slow one.
How it reads the market
Hull moving averages turn faster than classic ones with less lag, so the cross gives an earlier trend read without the whipsaw of short averages. It is the same trend engine the app uses on every name page, on your own chart.
Settings
| Setting | Default | What it does |
|---|---|---|
| Fast / slow lengths | 100 / 200 | The two Hull averages. |
| Background tint | on | Chart shading by trend state. |
Everything is an input: colors, thresholds and time windows adjust from the indicator's settings panel, no code needed.
Comes with the membership
The whole indicator suite is included with the paid plan, $20/month or $200/year. Subscribe, submit your TradingView username, and the scripts land in your TradingView library.
Get full accessHow to add it to your chart
- Request access above with your TradingView username (one request covers the whole suite).
- We grant it on TradingView, usually within 24 hours; TradingView notifies you.
- On your chart, open Indicators → Invite-only scripts and add HMA Trend Filter.
When to use it, and when not to
It earns its place when
- You want a single unambiguous trend read to gate other signals.
- Standard moving averages feel too slow and exponential ones too twitchy.
- You need the same filter to behave sensibly on daily and intraday charts.
Leave it off the chart when
- The market is ranging tightly. Every trend filter loses money in a range; this one loses it faster because it turns faster.
- You want support and resistance. A Hull average is a direction tool and a bad level.
- You are already using another trend filter. Stacking two correlated filters feels like confirmation and is not.
Common questions
What is a Hull moving average?
Alan Hull's construction combines weighted moving averages of different lengths so that most of the lag cancels out. The result tracks price closely and turns early, at the cost of overshooting slightly at sharp reversals.
Why two of them?
One defines the trend, the other confirms the turn. A single line flips on any close that crosses it. Two lines require the shorter to cross the longer, which filters out the crossings that reverse the next day.
Is the HMA better than the EMA?
Better at turning early, worse at staying calm. In a trend the HMA gets you positioned sooner. In a chop it whipsaws more. Which one wins depends entirely on what the market is doing, which is why this is a filter and not a system.
What lengths should I use?
The defaults suit daily swing trading. Shorter reacts to noise, longer converges on a plain moving average and gives up the reason to use a Hull at all.