TradeReign
Back to HomeEducation HubCompatibilityAboutDisclosures
TradingView Futures Indicators

Hull Moving Average on TradingView Compare HMA 16 and 36 on the Same MES Bars

The Hull Moving Average (HMA) weights recent prices to respond quickly and smooths the result. In this five-minute MES example, the shorter line turns down three bars before the longer one. The shorter line also overshoots the recent price highs before it turns.

Quick Answer

In TradingView Supercharts, open Indicators and add the built-in Hull Moving Average. Set the source to Close, and compare lengths 16 and 36 on the same completed bars. A close below the line and a downward turn in the line are two different events.

Start 7-Day TrialSet up the built-in HMACompare the two MES turnsCheck the values on your chart

Set up two Hull Moving Averages in TradingView

Open a dated MES contract in Supercharts and select five-minute candles. Search for Hull Moving Average in Indicators and choose the built-in study. Add a second copy, set their lengths to 16 and 36 in Inputs, and set both sources to Close. Use distinct line colors and keep both calculations on the chart timeframe.

A weighted moving average gives more weight to recent values. The Hull calculation doubles the weighted average over half the chosen length and subtracts the weighted average over the full length. A final weighted average over the square root of the length smooths that result. For HMA 16 those three windows are 8, 16 and 4. For HMA 36 they are 18, 36 and 6.

Community scripts can show different lines or use extra inputs. For example, InSilico’s Hull Suite offers multiple variants. Use the built-in study for this comparison and record the script name and settings if you use a different one.

Read the HMA turn separately from a price cross

The chart uses 42 synthetic MES bars and 42 flat warm-up closes at 6,000 before the displayed window. Both lines use the same closes. At 11:15 ET the candle closes at 6,014.00, below HMA 16 at 6,014.76. HMA 16 is still rising from 6,014.26 the prior bar. The close crossed below the line one bar earlier, at 11:10, as the HMA rose through price.

HMA 16 peaks at 6,015.06 at 11:25 then falls to 6,014.81 at A, 11:30. Its peak exceeds the highest candle high of 6,014.25 up to that point. Doubling the shorter average and subtracting the longer one can produce that overshoot. HMA 36 first falls from 6,015.55 to 6,015.52 at B, 11:45. The numbers are rounded to two decimals. Compare each line with its own prior value.

The 15-minute gap describes one set of synthetic candles. It shows a setting trade-off you can test, with no prediction about the next bar or trading outcome.

Hull Moving Average 16 and 36 on 42 MES candles

Synthetic MES 5-minute candles. Times are bar closes in ET.

Marked bars · 11:30 A / 11:45 B

The cyan line is HMA 16 and the purple line is HMA 36. A above the candle marks HMA 16’s first lower value. The dot below the later candle is B, where HMA 36 first turns down during the same pullback.

Verify the slope in Bar Replay

Start Bar Replay with at least 41 completed candles loaded for HMA 36. It takes 36 closes for the first full-window value and five more bars for a full six-value smoothing window. Step forward one bar at a time and use the Data Window to read each average for the current and previous completed candles.

Record the bar’s time, close and both HMA values. Mark a slope turn when the line first decreases after rising. Write down price crossings in a separate column. This keeps an average that is still rising from being counted as a downward turn just because price is below it.

Repeat the same replay on a choppy session and compare how frequently each line changes slope. If you create a price-crossing alert, check that its condition is set to crossing price and that it evaluates at the close. A price-crossing alert does not track the slope rule used in this example.

Sources

Official References

Platform details on this page were checked against these official resources.

TradingView Hull Moving Average documentationSee how the built-in calculation uses three weighted moving averages.Alan Hull’s original Hull Moving Average explanationRead the original formula and how Hull uses turning points.InSilico’s Hull Suite listingIdentify the separate community script and its average modes.
Related Guides

Keep Building the Rule System

Compare Zero Lag EMA scripts on the same candles

See why two scripts with the same name can turn on different bars.

Read exact TradingView indicator values

Check the average at a selected candle instead of estimating it from the axis.

Set a TradingView moving average alert

Verify the direction of a price-crossing alert.

Practice in TradingView Bar Replay

Advance by one candle and record what was known at the close.

FAQ

Common Questions

Which Hull Moving Average length should I use?

Use the same symbol, timeframe and price source to compare two lengths, such as 16 and 36. Record when each turns and how often it changes direction in a range. The preferred length depends on what you want to measure.

Why can the HMA be above the recent high?

The intermediate calculation doubles a faster weighted average and subtracts a slower one. During a rapid rise that can produce a line above recent highs.

Is the built-in Hull Moving Average the same as Hull Suite?

The built-in study plots one Hull Moving Average. Hull Suite is a separate community script with additional choices. Check the mode and inputs before comparing values.

Risk Disclosure

Futures trading contains substantial risk and is not suitable for every investor. TradeReign is a trading-discipline and rule-enforcement application. It does not provide trading advice, trade signals, investment recommendations, or performance guarantees.

TradeReign is not a broker-dealer, futures commission merchant, or investment advisor.

Futures trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Only risk capital - money that can be lost without jeopardizing financial security or lifestyle - should be used for trading. Past performance is not necessarily indicative of future results.