Independent market intelligence
Research over noise · Risk before return
Crypto indicator guide

SMA vs EMA vs WMA vs Hull: how moving averages respond

A moving-average label does not tell you how much history a line uses or how it responds to a price change. We compare four disclosed calculations, work through short arithmetic examples, and read the same historical XRP candles. The main comparison uses period 16; it is a teaching choice, not a selected trading setting.

In simple terms

SMA gives equal weight to a recent window. Linear WMA gives more weight to newer observations. EMA carries earlier information through a recursive state. Hull combines weighted averages with subtraction and another smoothing stage, so it can move outside the range of its input prices. Compare the construction before interpreting the line.

On this page
01

Separate the average type from the period

SMA, EMA, WMA and Hull Moving Average (HMA) transform current and earlier prices in different ways. A shared period of 16 does not give them identical weights, memory or response. We use trailing calculations with no display offset. Their values are price levels, not returns or probabilities. The comparison table describes the stated formulas; it does not rank the four types by profitability.

Four constructions with different weighting and memory
AverageWeighting ruleHistory used
SMA16Equal weights in the latest windowLatest 16 closes
EMA16Recursive update with a disclosed mean seedCurrent close and earlier recursive state
WMA16Linear age weights, newest close heaviestLatest 16 closes
HMA16Two price WMAs, subtraction, then another WMA19-close finite support for HMA16 here
02

Fix the price input and candle status first

Our market example uses Binance Spot XRPUSDT and native H4 closing prices, quoted in USDT per XRP. Every displayed reading belongs to a completed candle. Changing to highs, typical prices, a derivatives market or another interval changes the inputs. On H4, a period counts chart candles rather than days. Keep the input series and its timestamps fixed when comparing the four constructions.

03

Give each close the same weight in SMA

SMA16 adds the latest 16 closes and divides by 16. When a new close arrives, the oldest one leaves the window. Each included close has equal weight; changing which observation is old or new does not change its weight while it remains included. The small weight illustration uses four observations so the contrast with linear WMA is easy to inspect. Its short length is for arithmetic, not a trading recommendation.

Equal-weight moving windowSMA16_t = sum(C_(t-j), j=0..15) / 16

Equal SMA weights and linear WMA weights

Constructed arithmetic
SMA4WMA4
Equal SMA weights and linear WMA weights0.000.100.200.300.401234
Constructed four-observation comparison, ordered oldest to newest. SMA4 assigns each close 1/4. WMA4 uses multipliers 1, 2, 3, 4 divided by their sum 10. These weights do not use trading volume.
04

Disclose the EMA seed and recursive update

Our EMA16 starts with the arithmetic mean of the first 16 consecutive valid closes. Later updates give the new close weight 2/17 and the previous EMA weight 15/17. Earlier inputs therefore retain declining influence through that previous value. An EMA16 is not simply a weighted window containing only the latest 16 closes. Other initialization choices or available history can produce different readings. The first valid value is not a guarantee that initialization effects have disappeared.

Mean initialization and recursive updateEMA16_seed = mean(first 16 consecutive valid closes)EMA16_t = EMA16_(t-1) + (2/17) * (C_t - EMA16_(t-1))
05

Assign the largest linear WMA weight to the newest close

Here WMA means linearly weighted by age, not weighted by trading volume. For WMA16 the oldest close has multiplier 1 and the newest has multiplier 16; divide the weighted sum by the sum of those multipliers, 136. The four-observation example uses prices 10, 20, 30, 40: SMA4 is 25, while WMA4 is 30. Reverse the weight order and you have changed the calculation rather than reproduced it.

Linear weights from oldest to newestWMA_n,t = sum(k * C_(t-n+k), k=1..n) / (n*(n+1)/2)
06

Build Hull from three explicitly defined WMAs

For HMA16, calculate WMA8 and WMA16 from the same closes. Form the intermediate series as twice WMA8 minus WMA16, then apply WMA4 to that series. Half of 16 is 8 and its square root is 4, so neither derived length needs rounding here. The subtraction is essential. Replacing a stage with SMA or EMA, using a different derived length, or omitting the last smoothing stage creates another calculation.

Three WMA stages for HMA16Raw16_t = 2 * WMA8(C)_t - WMA16(C)_tHMA16_t = WMA4(Raw16)_t

HMA16: two price averages, subtraction and final smoothing

Constructed arithmetic
HMA16: two price averages, subtraction and final smoothingCompleted closingpricesWMA8WMA16Intermediate HullseriesHMA16 output× 2−WMA4
Constructed calculation diagram: WMA8 and WMA16 use the same closes. Twice WMA8 minus WMA16 is an intermediate series; WMA4 smooths that series into HMA16. No future price enters the calculation.
07

Use a short sequence to check the arithmetic

For the constructed closes 10, 20, 30, 40, 50, use period 4 solely to keep the table short. At observation 4, SMA4 and the EMA4 seed are 25, WMA4 is 30, and HMA4 is still unavailable. At observation 5, SMA4 and EMA4 are 35, WMA4 is 40, and HMA4 is 50. HMA4 uses a half-length of 2 and a final smoothing length of 2. Its equality with the last price on this special rising sequence does not establish zero delay on other paths.

Five constructed closes with teaching period 4
ObservationClosing priceSMA4EMA4WMA4HMA4
110N/AN/AN/AN/A
220N/AN/AN/AN/A
330N/AN/AN/AN/A
44025.0025.0030.00N/A
55035.0035.0040.0050.00

Arbitrary price units. Initial values marked N/A are unavailable, not zero. HMA4's last value of 50 is specific to this short sequence.

08

Count the history required by each construction

With complete consecutive windows, SMA16 and WMA16 first become valid at close 16. Our mean-seeded EMA16 also first becomes valid there. HMA16 needs four valid intermediate observations, so its first value appears at close 19. Its finite support spans 19 closes, although its nominal period is 16. EMA keeps earlier recursive information instead of having that finite cutoff. Matching the period alone does not match the information being averaged.

First valid readings with full windows and the stated mean seed
AverageConsecutive closes needed
SMA1616
EMA1616
WMA1616
HMA1619

These counts identify the first valid readings; they are not convergence guarantees or universal platform initialization requirements.

09

Inspect a constructed change before drawing market conclusions

The step example holds 32 closes at 100 and then 24 closes at 110, in arbitrary price units. All four calculations use period 16 and the stated initialization. HMA16 reaches about 112.51 on the eighth close at the new level, above every price in this constructed series. The other three calculations remain within the range of the inputs they retain. This is a reproducible response to a defined step, not a market forecast or a profitable trade.

A constructed step can make Hull overshoot

Constructed arithmetic
SMA16EMA16WMA16HMA16
A constructed step can make Hull overshoot98.5102.4106.3110.1114.011632404856112.51Constructed closing price
Constructed closes: 32 at 100 followed by 24 at 110, arbitrary price units. All four averages use period 16. HMA16 peaks near 112.51 on the eighth close at 110; the line is not clamped. No market data, trade or profit is shown.
10

Explain Hull overshoot through its effective weights

The nested HMA16 formula can be expanded into 19 effective coefficients, from the newest close to the oldest. They sum to 1, but some are negative because of the subtraction. HMA is therefore not a convex average and can exceed the range of its inputs. SMA and linear WMA use positive window weights. A mean-seeded EMA with the stated update stays within the range of its retained history, which can extend beyond the latest 16 closes. Do not clamp a valid HMA reading to a recent high or low.

HMA16 has positive and negative effective weights

Constructed arithmetic
HMA16 has positive and negative effective weights−0.080.010.100.190.280369121518Age in completed candles
Sum of coefficients
1
Negative coefficients
11
The 19 coefficients expand the stated nested WMA formula. Age 0 is the newest close and age 18 the oldest. The coefficients sum to 1; negative terms permit overshoot. This is a calculation diagram, not a market signal.
11

Select the historical window independently of the curves

The actual illustration uses the first complete Monday-to-Sunday UTC week of 2024: 42 XRPUSDT H4 candles opening from 1 January 00:00 up to, but excluding, 8 January 00:00 UTC. The window is selected by calendar, not by which line looks best or by a trade result. EMA is calculated from the retained history beginning in June 2019, with resets at missing scheduled candles. The existing XRP HMA55 strategy and its results are separate from this period-16 teaching comparison.

12

Read all panels at the same completed candle

Select a candle to inspect its actual OHLC prices and the four moving averages. The price panel shows real candles, the next panel shows the four averages, and the last shows the close minus each average. All share the selected opening timestamp, while each panel has its own vertical scale. Colors and line styles identify the same calculation across panels. Display rounding is for reading; the calculations retain their unrounded values.

XRP H4: price, four averages and price distances

Actual historical candles
SMA16EMA16WMA16HMA16
XRP H4: price, four averages and price distances0.48310.52670.57020.61380.65740.55690.57780.59870.61950.6404−0.0535−0.0335−0.01350.00650.0265XRPUSDT / H4 · USDT per XRPSMA16, EMA16, WMA16, HMA16 · USDT per XRPClose minus each average · USDT per XRP2024-01-01T00:00:00Z / O 0.6155 H 0.619 L 0.6112 C 0.6132024-01-01T04:00:00Z / O 0.6129 H 0.6153 L 0.6083 C 0.6152024-01-01T08:00:00Z / O 0.615 H 0.6207 L 0.6143 C 0.62052024-01-01T12:00:00Z / O 0.6205 H 0.6219 L 0.6183 C 0.62132024-01-01T16:00:00Z / O 0.6213 H 0.626 L 0.6198 C 0.62582024-01-01T20:00:00Z / O 0.6258 H 0.6309 L 0.6255 C 0.62942024-01-02T00:00:00Z / O 0.6295 H 0.6354 L 0.6287 C 0.63392024-01-02T04:00:00Z / O 0.6339 H 0.6343 L 0.6277 C 0.63072024-01-02T08:00:00Z / O 0.6307 H 0.6405 L 0.6291 C 0.6322024-01-02T12:00:00Z / O 0.632 H 0.634 L 0.6218 C 0.62562024-01-02T16:00:00Z / O 0.6255 H 0.6292 L 0.6213 C 0.62762024-01-02T20:00:00Z / O 0.6276 H 0.629 L 0.6237 C 0.62462024-01-03T00:00:00Z / O 0.6245 H 0.6279 L 0.6226 C 0.62612024-01-03T04:00:00Z / O 0.6261 H 0.6394 L 0.626 C 0.63192024-01-03T08:00:00Z / O 0.6318 H 0.6363 L 0.6115 C 0.61852024-01-03T12:00:00Z / O 0.6186 H 0.6187 L 0.5 C 0.57652024-01-03T16:00:00Z / O 0.5766 H 0.5798 L 0.5662 C 0.57382024-01-03T20:00:00Z / O 0.5738 H 0.59 L 0.5734 C 0.58232024-01-04T00:00:00Z / O 0.5823 H 0.5834 L 0.5692 C 0.58142024-01-04T04:00:00Z / O 0.5813 H 0.5845 L 0.5741 C 0.57412024-01-04T08:00:00Z / O 0.5742 H 0.5788 L 0.5703 C 0.57652024-01-04T12:00:00Z / O 0.5766 H 0.5882 L 0.5751 C 0.58572024-01-04T16:00:00Z / O 0.5856 H 0.5893 L 0.5798 C 0.58662024-01-04T20:00:00Z / O 0.5866 H 0.5938 L 0.5851 C 0.58682024-01-05T00:00:00Z / O 0.5868 H 0.5885 L 0.553 C 0.57612024-01-05T04:00:00Z / O 0.5761 H 0.5783 L 0.5721 C 0.57352024-01-05T08:00:00Z / O 0.5734 H 0.5791 L 0.5659 C 0.56932024-01-05T12:00:00Z / O 0.5692 H 0.5728 L 0.5592 C 0.56342024-01-05T16:00:00Z / O 0.5634 H 0.5701 L 0.5532 C 0.56762024-01-05T20:00:00Z / O 0.5675 H 0.5763 L 0.5675 C 0.57572024-01-06T00:00:00Z / O 0.5758 H 0.5758 L 0.5707 C 0.57162024-01-06T04:00:00Z / O 0.5715 H 0.5735 L 0.5568 C 0.56432024-01-06T08:00:00Z / O 0.5642 H 0.5675 L 0.5612 C 0.56612024-01-06T12:00:00Z / O 0.566 H 0.5736 L 0.5647 C 0.5712024-01-06T16:00:00Z / O 0.571 H 0.5723 L 0.5668 C 0.56922024-01-06T20:00:00Z / O 0.5693 H 0.5701 L 0.5639 C 0.56792024-01-07T00:00:00Z / O 0.568 H 0.571 L 0.5648 C 0.56642024-01-07T04:00:00Z / O 0.5664 H 0.5699 L 0.5654 C 0.56912024-01-07T08:00:00Z / O 0.5691 H 0.573 L 0.5641 C 0.56662024-01-07T12:00:00Z / O 0.5667 H 0.5706 L 0.5636 C 0.56732024-01-07T16:00:00Z / O 0.5673 H 0.5684 L 0.5607 C 0.56722024-01-07T20:00:00Z / O 0.5673 H 0.5677 L 0.5454 C 0.551501-01 00:0001-02 08:0001-03 16:0001-05 00:0001-06 08:0001-07 20:00
Candle opening time · UTC
Final values available at scheduled close · UTC
Open
0.615500
High
0.619000
Low
0.611200
Close
0.613000
SMA16
0.621625
EMA16
0.621750
WMA16
0.620570
HMA16
0.619143
Close minus SMA16
−0.008625
Close minus EMA16
−0.008750
Close minus WMA16
−0.007570
Close minus HMA16
−0.006143
Binance Spot XRPUSDT, 42 H4 candles opening during 1–7 January 2024 UTC. The calendar-selected window uses retained history. Every panel follows the same selected candle; final values are available at its scheduled close.
13

Keep a price distance separate from a trading result

Close minus SMA, EMA, WMA or HMA is a signed price distance in USDT per XRP. A positive value means that the close is above that particular average; a negative value means it is below. It is not an account return, a profit bar or a prediction of the next candle. Price above an average, the slope of an average and a crossing between two averages are different observations. None supplies a complete execution or risk rule by itself.

14

Attach final readings to the scheduled close

The actual candle opening 1 January at 12:00 UTC completes at 16:00 UTC. Its final close and the four final averages become available at that scheduled close, not at the opening label. While the candle forms, provisional values can change. The last displayed candle opens 7 January at 20:00 and completes 8 January at 00:00 UTC. A line drawn between completed observations does not reveal every intrabar movement, and shifting it on the chart does not make the information available earlier.

Final values become available after the candle opens

Actual historical candles
Final values become available after the candle opensOpening timestampFinal readings availableCandle still forming12:00 UTC16:00 UTC1 January 2024 · UTC
The actual XRP candle opening 1 January at 12:00 UTC completes at 16:00 UTC. Final price and average readings belong to that completed candle; the diagram does not locate an intrabar crossing or an execution.
15

Match missing-bar, rounding and display conventions

Record the source price, market, interval, period, EMA seed, WMA weight direction and Hull derived lengths before diagnosing a platform mismatch. Our example resets every window and the EMA seed after a missing scheduled H4 candle; it does not invent replacement bars. Every WMA stage needs a full valid window. For periods whose half or square root is not an integer, declare a rounding convention. Keep rounding for display and use zero display offset when reproducing this guide.

16

Reproduce the measurements before choosing a trading rule

The downloads preserve the selected raw candles, preceding context, EMA continuation state, formulas, source rows and archive checksums. The small checker validates the continuation; the original XRP evidence additionally permits a full-history replay. These checks establish the disclosed measurements. Choosing entries, exits, execution, position size and costs would require a separate strategy protocol and evaluation. A more responsive line alone does not establish a better strategy.

Frequently asked questions

Is EMA always faster than SMA at every turning point?

Their weighting and memory differ, but that does not guarantee the order of every turn on every price path. Compare the stated formulas and the actual sequence rather than treating one example as a universal ranking.

Does WMA in this guide use volume?

No. It assigns linearly increasing weights by recency, with the newest close receiving the largest weight. A volume-weighted average uses another input and is a different calculation.

Is a Hull value outside recent prices necessarily an error?

No. Hull's effective coefficients can be negative, so overshoot is possible. Check the source, lengths, rounding and initialization before deciding whether a particular reading is wrong.

Do all period-16 averages use only 16 closes?

No. SMA16 and WMA16 use a 16-close window, HMA16 here has 19-close finite support, and the stated EMA16 retains earlier recursive information. The period label does not describe their entire memory.

Why can two platforms show different averages?

They may use different price inputs, seeds, retained history, missing-bar policies, Hull integer conventions or display offsets. Match those details and compare unrounded readings from completed candles.

Can this comparison prove which average is most profitable?

No. It compares price transformations, not trading systems. The charts contain no trade ledger, execution costs or account-equity curve. Profitability requires a separately defined and evaluated strategy.

Primary sources

Download evidence and calculations

Created by the MyProfitFactor editorial team.

Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.