Explainers / Hull Suite
Hull Suite, explained from the source
Hull Suite by InSilico is one of the most-boosted moving-average scripts on TradingView. It draws a Hull moving average as a green or red band and can colour your candles to match. This page explains, from the published source, what the band and its colour actually are. The short version: the band is the Hull line drawn against a copy of itself from two bars ago, and the colour only tells you which one is higher.
The line: a Hull moving average
A Hull moving average (HMA) is a weighted moving average built to lag less. With a length of 55 it takes a 27-bar weighted average, doubles it, subtracts the 55-bar weighted average, then smooths the result with a weighted average over about the square root of the length (7 bars). The subtraction pushes the line ahead of a normal average; the last smoothing calms it down.
The script offers three versions: Hma (the one above), Ehma (the same recipe with exponential averages) and Thma (three weighted averages of 1/3, 1/2 and the full length, applied to half the length you set). They differ in how fast they turn, not in what they are.
The band: the line against itself, two bars ago
The band has two edges. One is the Hull line now. The other is the same Hull line two bars ago. The fill between them is the gap between the line and its own recent past.
So the band is not a volatility envelope and not support or resistance by itself. A wide band means the line moved a lot in the last two bars. A thin band means it barely moved.
The colour: is the line higher than two bars ago?
The colour rule is one line: green when the Hull now is above the Hull two bars ago, red otherwise. In other words, the colour is the sign of the line's two-bar change. It turns when the Hull line itself turns.
The two alerts ("Hull trending up" and "Hull trending down") fire when the two edges cross, which is the same moment the colour flips.
On a normal chart this does not repaint: once a bar closes, its colour is fixed. On the bar that is still open, the colour can flip back and forth as price moves, so an alert set to fire "once per bar" can trigger on a flip that is gone by the close. Use "once per bar close" if you only want closed-bar flips.
How often it flips
In a simulation on pure random-walk prices (200,000 bars, nothing to predict), with the colour rule exactly as in the script:
- Length 55 (default): the colour flipped about every 21 bars, and about one flip in six reversed within 5 bars.
- Length 20: a flip about every 10 bars, more than one in four reversed within 5 bars.
- Length 180 (the "floating support/resistance" setting suggested in the script's input label): a flip about every 51 bars, about one in eleven reversed within 5 bars.
- The line responded to price about 5 bars late at length 55 and about 11 bars late at length 180.
A green-red cycle every couple of dozen bars on noise means a flip alone is not evidence of a trend. Longer lengths flip less and lag more; there is no setting that does both.
The higher-timeframe option: the catch
The input "Show Hull MA from X timeframe?" (default 240, so 4 hours) takes the Hull line from a higher timeframe with security(). Two things follow from how that call is written.
1. It repaints on live bars. The call asks for the higher-timeframe value without the offset TradingView documents for non-repainting higher-timeframe data. Live, the 4-hour Hull moves with every tick until the 4-hour bar closes. After a reload, the history shows the finished values instead. The chart you scroll back through is not the chart you watched. See what repainting is, or test a script with the repaint checker.
2. The colour still compares two chart bars, not two 4-hour bars. Inside one 4-hour bar, every 15-minute bar carries the same higher-timeframe value. "Now" and "two bars ago" are then equal, "higher than" is false, and the band goes flat and red. It turns green only for the first two chart bars after a 4-hour value steps up. In our simulation (16 chart bars per higher-timeframe bar), chart bars were coloured up only about 6% of the time while about half of the higher-timeframe bars were rising, and the "trending up" alert fired on almost every rising step.
The script's "Length multiplier" input (labelled "used to view higher timeframes with straight band") is the workaround: multiply the length by the timeframe ratio and leave the higher-timeframe option off.
Settings, honestly
- Length (55): the only setting that changes the signal. The input label suggests 55 for swings and 180-200 for "floating S/R". Those are the author's suggestions, not tested values; longer only means slower.
- Hull Variation: Hma, Ehma or Thma. Different speed, same idea.
- Length multiplier: multiplies the length. Use it instead of the higher-timeframe option.
- Show Hull MA from X timeframe: see the catch above.
- Colour candles based on Hull's trend: paints your candles with the same two-bar rule.
- Show as a Band / Line thickness / Band transparency: looks only.
Where it fails
- The colour is a slope, not a forecast. It says the line rose over the last two bars. It flips about every 21 bars at the default length on random data, with one flip in six undone within 5 bars.
- It lags. Lower lag than a plain moving average is still lag: about 5 bars at length 55 in our simulation, more at longer lengths.
- The higher-timeframe mode repaints live and, as written, shows mostly red with brief green steps, because the two-bar comparison runs on chart bars.
- Open-bar flips. The colour on the bar still forming can change before it closes; set alerts to bar close if that matters.
- Back-tested colour looks cleaner than it traded. On a finished chart every flip is easy to read; live, each one was a guess about whether the turn would hold.
Also explained: Supertrend · QQE Mod · WaveTrend · Repainting
Educational only. Not financial advice. Nothing here is a recommendation to buy or sell anything. Hull Suite is by InSilico on TradingView; this page explains its published open-source code and is not affiliated with the author.
Also explained: Repaint checker, VWAP, Supertrend, RSI, UT Bot Alerts, Nadaraya-Watson Envelope, Squeeze Momentum, What is repainting on TradingView?, Is TradingView backtesting accurate?, Chandelier Exit, WaveTrend Oscillator, QQE MOD, Pivot highs and lows, Range Filter, Twin Range Filter, HalfTrend, ZigZag++, SSL Hybrid, CM MacD Ultimate MTF, Volume Profile / Fixed Range, ADX and DI, Support Resistance Channels, Market Structure Break & Order Block, Order Block Finder, Pivot Point SuperTrend, Trendlines with Breaks [LuxAlgo], Divergence for Many Indicators, TradingView script selling terms, Support and Resistance Levels with Break, Liquidity Swings [LuxAlgo], Pine Script errors, Breakout Probability (Expo), Did ChatGPT or Claude write your Pine Sc, Lorentzian Classification, SuperTrend AI (Clustering), Machine Learning Adaptive SuperTrend, Dynamic Swing Anchored VWAP, Support and Resistance Power Channel by , Support and Resistance (High Volume Boxe, Trendline Breakouts With Targets by Char, Breakout Finder by LonesomeTheBlue
Get the next teardown by email
One short email when a new teardown or free tool goes live, about twice a month. No signals, no hype. Unsubscribe in one click.
Almost done. Check your inbox and click the confirmation link.
Sent with Kit. Your address is used only for these emails. Privacy
No TradingView account yet? This affiliate link gives you a $15 coupon toward a paid plan, and we earn a commission if you buy one. The free plan is enough to follow this page.