Trend indicators

Moving Average Indicator: SMA, EMA, WMA and Hull Compared, With Their Lag Measured on Real Prices

What a moving average shows and what it cannot, the formulas of the main types, how many bars each one lags on daily Bitcoin and the S&P 500 ETF, and what the 200-day average actually did on both.

· Founder of PatternsWizard
Checked 10 min read
SMA, EMA and WMA(20) on Bitcoin, daily, August 30, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
On this page
  1. The main types of moving average
  2. How much each average lags, measured
  3. Common periods: 20, 50 and 200
  4. Moving averages as support and resistance
  5. Crossovers and ribbons
  6. Does it work?
  7. Tested on our bench
  8. Frequently asked questions

A moving average is the average price of the last n bars, recalculated on every new bar, so it slides along the chart as a smoothed version of price. It does not predict anything: it tells you the direction of the trend over the period you chose, and it always lags price because it is built from past bars. The main choices are the length and the weighting. A 20-day simple average follows short swings, a 200-day average the long trend; an exponential or weighted average gives more weight to recent bars and turns sooner. Below we measure that lag on real daily prices, so you can see what each choice costs.

SMA, EMA and WMA of the same length on daily Bitcoin

SMA, EMA and WMA(20) on Bitcoin, daily, July 1, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
  • Price, daily candles (hollow up, filled down)
  • SMA(20) (dashed line)
  • EMA(20) (solid line, second color)
  • WMA(20) (solid line)
SMA, EMA and WMA(20) on Bitcoin, daily, July 1, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.

The main types of moving average

TypeHow it weights the barsEffect
Simple (SMA)All n closes equallySmooth, the most lag for a given length
Exponential (EMA)Each bar by a factor 2 / (n + 1), older bars decaying geometricallyTurns sooner than an SMA of the same length
Weighted (WMA)Linearly, from 1 for the oldest bar to n for the latestLagged as little as the EMA or less in our measurement
Smoothed (SMMA)Like an EMA with a factor 1 / nVery slow; used by Wilder's indicators and the Alligator
Hull (HMA)Weighted averages combined to cancel most of the lagFastest, but noisier; see the Hull moving average

Other designs answer the same trade-off between smoothness and lag in other ways: the Arnaud Legoux moving average, the McGinley Dynamic and the volume-weighted average.

The difference between the types is only in how much each past bar counts. Drawn for the same length, the weights look like this:

How SMA, WMA and EMA weight the last bars

How SMA, WMA and EMA weight the last bars: three rows of ten columns, from the oldest bar on the left to the latest on the right. SMA: all columns the same height. WMA: heights rise in a straight line toward the latest bar. EMA: heights rise faster toward the latest bar, and two faint columns before the window show that older bars still keep a small weight.
Schematic, not market data. Weights for the same length; the EMA factor is 2 / (n + 1).

The EMA never quite drops a bar: each one keeps a weight that shrinks by the same factor every bar, which is why platforms that start it differently agree only after a few lengths of data. The SMA drops the oldest bar all at once, so a large move leaving the window can turn the average even on a quiet day.

How much each average lags, measured

We measured the lag of each type on our two daily series, Bitcoin and the S&P 500 ETF (dividend-adjusted prices), to October 28, 2026, starting after three lengths of warm-up: the 20-bar lines from May 7, 2025 on Bitcoin and September 4, 2024 on the ETF, the 50-bar lines from August 5, 2025 and January 14, 2025. Lag here is the shift k, from 0 to 40 bars, that minimizes the mean of |averaget / closet−k − 1| over that period, the average gap in percent between the average today and the close k bars ago. The result can move by one bar with the way the gap is measured: with the gap in price instead of percent, the Bitcoin SMA(50) comes out at 25 bars, the WMA(20) at 5 and the WMA(50) at 13. We also counted how often the close crossed each average over the same period, a rough count of the signals it would give: a crossing is a close on the other side of the average from the close the bar before.

Lag of each average, in bars

Lag of each average, in bars. SMA(20): Bitcoin 10, S&P 500 ETF 10; EMA(20): Bitcoin 6, S&P 500 ETF 7; WMA(20): Bitcoin 6, S&P 500 ETF 5; HMA(20): Bitcoin 3, S&P 500 ETF 3; SMA(50): Bitcoin 26, S&P 500 ETF 25; EMA(50): Bitcoin 16, S&P 500 ETF 20; WMA(50): Bitcoin 14, S&P 500 ETF 16; HMA(50): Bitcoin 6, S&P 500 ETF 6. Our computation; the inputs and the method are in the text.
  • Bitcoin
  • S&P 500 ETF
Our computation; the inputs and the method are in the text.Shift k, from 0 to 40 bars, that minimizes the mean gap in percent between the average and the close k bars earlier. Daily closes to October 28, 2026, after three lengths of warm-up.

Close crossings of each average

Close crossings of each average. SMA(20): Bitcoin 61, S&P 500 ETF 70; EMA(20): Bitcoin 67, S&P 500 ETF 75; WMA(20): Bitcoin 75, S&P 500 ETF 83; HMA(20): Bitcoin 118, S&P 500 ETF 109; SMA(50): Bitcoin 31, S&P 500 ETF 31; EMA(50): Bitcoin 30, S&P 500 ETF 29; WMA(50): Bitcoin 38, S&P 500 ETF 37; HMA(50): Bitcoin 54, S&P 500 ETF 77. Our computation; the inputs and the method are in the text.
  • Bitcoin
  • S&P 500 ETF
Our computation; the inputs and the method are in the text.Closes on the other side of the average from the close before. The 20-bar lines are counted over a longer period than the 50-bar lines (from May 7, 2025 on Bitcoin and September 4, 2024 on the ETF, against August 5, 2025 and January 14, 2025), so compare types within one length.

A simple average lags by about half its length, which matches its construction: it is centered on the middle of its window. The weighted and exponential forms cut that by about a fifth to a half, and the Hull by about 70% or more. The cost shows in the crossing counts: on 20 bars, the less an average lagged, the more often price crossed it; on 50 bars the same held for the WMA and the Hull, but the EMA was crossed slightly less often than the SMA (30 against 31 on Bitcoin, 29 against 31 on the ETF). On the same 20-bar length the Hull was crossed about one and a half to two times as often as the simple average (118 against 61 on Bitcoin, 109 against 70 on the ETF). There is no free reduction of lag; each step toward speed buys more signals in ranges.

Common periods: 20, 50 and 200

StockCharts describes shorter averages of 5 to 20 periods as suited to short-term trends, 20 to 60 periods to medium-term trends, and 100 periods or more to long-term investing, and calls the 200-day average perhaps the most popular, with the 50-day popular for the medium-term trend. There is nothing special in the numbers themselves; they are popular because many people watch them.

200-day moving average on the S&P 500 ETF

SMA(200) on S&P 500 ETF, dividend-adjusted prices, daily, October 30, 2025 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
  • Price, daily candles (hollow up, filled down)
  • SMA(200) of the close (solid line)
SMA(200) on S&P 500 ETF, dividend-adjusted prices, daily, October 30, 2025 to October 28, 2026. Illustration of how the indicator reads, not a backtest.

The chart shows the 200-day simple average on the S&P 500 ETF from October 30, 2025 to October 28, 2026. Over the 600 daily bars of this chart series, from the first 200-day value on March 26, 2025, when the ETF was below its average, the close crossed it three times, the first of them before the window shown on the chart:

  • up on May 12, 2025 at 573.48; the ETF stayed above for ten months, closing at 645.30 when it crossed down on March 20, 2026 (+12.52%), after a high close of 690.10;
  • down on March 20, 2026 at 645.30; the lowest close after it was 628.78, and the ETF crossed back up on April 8 at 672.60, 4.23% higher than where it had crossed down;
  • up on April 8, 2026 at 672.60; still above on October 28, 2026 at 772.31 (+14.82%).

On daily Bitcoin, over the 600 bars of its series, from the first 200-day value on September 23, 2025, the same average gave eight crossings. Six came in two weeks, from October 17 to October 31, 2025, as the close hovered around the average, between about 106,400 and 110,100 at the crossings. The seventh, down on November 3, 2025 at 106,583.04, was followed by a fall to a lowest close of 58,624.71 before the eighth, up on August 19, 2026 at 69,334.79, 34.95% below the crossing down. On October 28, 2026 Bitcoin closed at 81,343.50, 17.32% above that crossing up. One average, two markets: on the ETF, two long trends and one whipsaw; on Bitcoin, six whipsaws in a fortnight before it caught the decline. The second chart shows Bitcoin from October 14, 2025 to June 20, 2026: the six crossings of late October, the crossing down of November 3 and most of the fall that followed.

200-day moving average on daily Bitcoin

SMA(200) on Bitcoin, daily, October 14, 2025 to June 20, 2026. Illustration of how the indicator reads, not a backtest.
  • Price, daily candles (hollow up, filled down)
  • SMA(200) of the close (solid line)
SMA(200) on Bitcoin, daily, October 14, 2025 to June 20, 2026. Illustration of how the indicator reads, not a backtest.

Moving averages as support and resistance

StockCharts notes that moving averages can act as support in an uptrend and resistance in a downtrend, and advises treating them as zones rather than exact levels. Price often overshoots a widely watched average before turning, or slices through it; a level that held twice is not a guarantee of a third time. Our bench does not measure moving average bounces.

Crossovers and ribbons

Two averages of different lengths give a crossover signal when the faster crosses the slower. StockCharts calls the shorter average crossing above the longer one a golden cross and the cross below a death cross, the best known pair being the 50-day and 200-day averages; see moving average crossovers. A moving average ribbon plots a set of averages of increasing length on the same chart, for example exponential averages from 20 to 55 bars. When the ribbon fans out in order, fastest on the outside, the trend is strong; when it twists and the averages cross each other, the trend is pausing or turning. The Guppy indicator (multiple moving average) is a ribbon split into a short and a long group, and its three states are the clearest way to see the idea:

The three states of the GMMA groups

The three states of the GMMA groups: three panels, each with a bundle of six solid lines for the short group and six dashed lines for the long group. Left: both bundles rise, the short group well above the long one, an uptrend. Middle: the short group weaves through a flat long group, so the groups cross and there is no clean trend. Right: both bundles fall, the short group below the long one, a downtrend.
Schematic, not market data.The GMMA splits its exponential averages into a short and a long group; any ribbon reads the same way.

Does it work?

Our bench tested price crossings of the short, medium and long averages shown here, and turns of the long one, across markets after costs, and the results are in the section below: buying a close above the shorter averages lagged the market, selling a close below the shortest one lagged it by a small, fragile margin, and the signals of the long average showed no edge or were inconclusive (see our methodology). The lag and crossing counts above describe two markets over about two years; they show the trade-off between types and lengths, not which one makes money.

If you want to study moving average systems with backtests, Steve Burns' courses on New Trader University cover them: Moving Averages 101, an introduction in an 11-part video course, and Moving Average Signals, which presents backtests of 10 moving average signals across ten stocks. They are affiliate links, and we have not taken the courses.

Steve Burns, founder of New Trader U

For the full family, see the list of trend indicators; for averages inside other tools, Bollinger Bands and the MACD.

Data from our test bench

Tested on our bench

We coded the 8 strategies taught on this page, buy and sell side, and ran them on stocks, ETFs, indices, forex, crypto and commodities. With all markets pooled (daily bars): 3 did worse than the market, 3 showed no edge, 2 were inconclusive or not measured.

Price crosses its 20-bar SMA, bullishLagged the market

Entry: Close crosses above its 20-bar SMA. Exit: Opposite signal (stop and reverse).

The trade itself made money on average, but less than the rest of the market over the same bars.

In detail, all markets pooled

On daily bars, the rule fired 507,283 times on 2,356 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 17 bars on each asset.

The average trade returned +0.40% before costs and the median trade −1.18%; 27% of trades made money, and the gains added up to 1.21 times the losses.

A trade lasted 4 bars at the median, half of them between 1 and 13 bars.

Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.20% per trade after costs (95% interval −0.24% to −0.16%).

Signals
507,2832,356 assets, 1970 to 2026
Average trade
+0.40%before costs; median −1.18%
Winning trades
27%profit factor 1.21
Median hold
4 barshalf between 1 and 13
Vs the market, after costs
−0.20%95% interval −0.24% to −0.16%

After the signal, bar by bar

Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).

Bars after1351020
After the signal49.9%51.8%52.0%53.3%54.5%
Random dates50.6%51.9%52.6%53.6%54.6%

Over time

The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.

PeriodSignalsVs market, before costs
1970 to 2012169,112−0.13%
2012 to 2021169,080−0.09%
2021 to 2026169,091−0.07%

Stress tests

The same trades, measured again under harsher assumptions (vs market, after costs).

VariantVs marketResult
As tested: entry at the signal close, standard costs−0.20%
Entry at the next bar's open−0.22%Holds
Trading costs doubled−0.30%Holds
1% most extreme trades trimmed on each side−0.36%Holds

With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 38% of 505,085 trades hit the target first, for +0.16 R per trade on average against +0.15 R for the same trade at random dates of the same assets: no measurable difference from random dates.

Worst single trade of the whole test: −66.5% on DEXE/USDT, signal of 2026-06-22.

Real trades from the test

Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.

Price crosses its 20-bar SMA, bullish: real trade on XRP/USDT, 2026-07-20, daily chart
Most recentXRP 2026-07-20 daily chartBought at the close of 2026-07-20 (1.11), sold 3 bars later, when the exit rule fired (1.11): −0.4% before costs.Against the other crypto pairs over the same bars, after costs: +1.8%.SMA 20
Price crosses its 20-bar SMA, bullish: real trade on AVAX/USDT, 2020-12-31, daily chart
Best tradeAVAX 2020-12-31 daily chartBought at the close of 2020-12-31 (3.19), sold 53 bars later, when the exit rule fired (32.15): +909.1% before costs.Against the other crypto pairs over the same bars, after costs: +132.9%.SMA 20

Market by market

MarketBarsSignalsAvg tradeWinnersVs market, after costsResult
Stocksdaily440,910+0.33%27%−0.20%Lagged the market
ETFsdaily15,279+0.27%30%−0.07%No edge found
Indicesdaily7,845+0.51%32%n/aNot measured
Forexdaily5,479−0.02%25%−0.06%No edge found
Cryptodaily33,194+1.52%20%−0.26%No edge found
Commoditiesdaily4,576+0.28%26%−0.17%No edge found
All markets4-hour254,251+0.02%23%−0.29%Lagged the market
Forex4-hour31,079−0.01%25%−0.04%No edge found
Crypto4-hour223,172+0.02%23%−0.32%Lagged the market
All marketsweekly90,623+2.23%29%−0.40%Inconclusive
Stocksweekly80,891+1.97%29%−0.38%Inconclusive
ETFsweekly2,921+1.68%34%−0.01%No edge found
Indicesweekly1,558+2.33%36%−0.24%Inconclusive
Forexweekly1,127−0.32%23%−0.36%Lagged the market
Cryptoweekly3,113+15.49%26%n/aNot measured
Commoditiesweekly1,013+1.45%26%−0.78%Inconclusive
Price crosses its 20-bar SMA, bearishLagged the market, fragile

Entry: Close crosses below its 20-bar SMA. Exit: Opposite signal (stop and reverse).

In detail, all markets pooled

On daily bars, the rule fired 511,433 times on 2,357 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 17 bars on each asset.

The average trade returned −0.44% before costs and the median trade −1.35%; 22% of trades made money, and the gains added up to only 0.79 times the losses. For this sell signal, a trade gains when the price falls (a short sale).

A trade lasted 3 bars at the median, half of them between 1 and 11 bars.

Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.17% per trade after costs (95% interval −0.20% to −0.14%). For a sell signal, a positive number means the asset did worse than the others, as the signal announced.

Signals
511,4332,357 assets, 1970 to 2026
Average trade
−0.44%before costs; median −1.35%
Winning trades
22%profit factor 0.79
Median hold
3 barshalf between 1 and 11
Vs the market, after costs
−0.17%95% interval −0.20% to −0.14%

After the signal, bar by bar

Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).

Bars after1351020
After the signal47.6%47.5%46.7%46.3%45.6%
Random dates48.2%47.5%47.0%46.2%45.3%

Over time

The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.

PeriodSignalsVs market, before costs
1970 to 2012170,489−0.06%
2012 to 2021170,521−0.05%
2021 to 2026170,423−0.08%

Stress tests

The same trades, measured again under harsher assumptions (vs market, after costs).

VariantVs marketResult
As tested: entry at the signal close, standard costs−0.17%
Entry at the next bar's open−0.13%Does not hold
Trading costs doubled−0.27%Holds
1% most extreme trades trimmed on each side−0.19%Holds

The result no longer holds when entering at the next bar's open instead of the signal close.

With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 28% of 508,308 trades hit the target first, for −0.15 R per trade on average against −0.16 R for the same trade at random dates of the same assets: no measurable difference from random dates.

Worst single trade of the whole test: −303.6% on DOGE/USDT, signal of 2021-01-19.

Real trades from the test

Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.

Price crosses its 20-bar SMA, bearish: real trade on ADA/USDT, 2026-07-18, daily chart
Most recentADA 2026-07-18 daily chartSold short at the close of 2026-07-18 (0.1667), bought back 2 bars later, when the exit rule fired (0.1698): −1.9% before costs.Against the other crypto pairs over the same bars, after costs: −0.7%.SMA 20
Price crosses its 20-bar SMA, bearish: real trade on CYN, 2024-12-09, daily chart
Best tradeCYN 2024-12-09 daily chartSold short at the close of 2024-12-09 (624.0), bought back 77 bars later, when the exit rule fired (4.76): +99.2% before costs.Against the other stocks over the same bars, after costs: +99.1%.SMA 20

Market by market

MarketBarsSignalsAvg tradeWinnersVs market, after costsResult
Stocksdaily443,567−0.55%21%−0.16%Lagged the market, fragile
ETFsdaily15,272−0.31%21%−0.05%No edge found
Indicesdaily7,845−0.14%23%n/aNot measured
Forexdaily5,481−0.04%24%−0.06%No edge found
Cryptodaily34,672+0.78%31%−0.32%No edge found
Commoditiesdaily4,596−0.30%23%−0.17%No edge found
All markets4-hour256,169−0.03%26%−0.28%Lagged the market
Forex4-hour31,911−0.02%24%−0.04%Inconclusive
Crypto4-hour224,258−0.03%26%−0.32%Lagged the market
All marketsweekly93,484−1.93%19%−0.19%No edge found
Stocksweekly83,206−2.06%19%−0.18%No edge found
ETFsweekly2,948−1.08%19%+0.05%No edge found
Indicesweekly1,562−0.73%19%−0.22%No edge found
Forexweekly1,129−0.30%23%−0.28%Inconclusive
Cryptoweekly3,634−0.003%38%n/aNot measured
Commoditiesweekly1,005−1.15%21%−0.55%No edge found
Price crosses its 50-bar SMA, bullishLagged the market

Entry: Close crosses above its 50-bar SMA. Exit: Opposite signal (stop and reverse).

The trade itself made money on average, but less than the rest of the market over the same bars.

In detail, all markets pooled

On daily bars, the rule fired 301,067 times on 2,347 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 28 bars on each asset.

The average trade returned +0.78% before costs and the median trade −1.38%; 22% of trades made money, and the gains added up to 1.36 times the losses.

A trade lasted 4 bars at the median, half of them between 1 and 18 bars. 1% of trades never met the exit rule and were closed at the maximum holding time.

Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.23% per trade after costs (95% interval −0.32% to −0.15%).

Signals
301,0672,347 assets, 1970 to 2026
Average trade
+0.78%before costs; median −1.38%
Winning trades
22%profit factor 1.36
Median hold
4 barshalf between 1 and 18
Vs the market, after costs
−0.23%95% interval −0.32% to −0.15%

After the signal, bar by bar

Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).

Bars after1351020
After the signal50.2%52.0%52.0%53.7%54.8%
Random dates50.6%52.0%52.6%53.6%54.6%

Over time

The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.

PeriodSignalsVs market, before costs
1970 to 2012100,360−0.16%
2012 to 2021100,374−0.12%
2021 to 2026100,333−0.10%

Stress tests

The same trades, measured again under harsher assumptions (vs market, after costs).

VariantVs marketResult
As tested: entry at the signal close, standard costs−0.23%
Entry at the next bar's open−0.24%Holds
Trading costs doubled−0.33%Holds
1% most extreme trades trimmed on each side−0.46%Holds

With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 39% of 299,627 trades hit the target first, for +0.17 R per trade on average against +0.15 R for the same trade at random dates of the same assets: no measurable difference from random dates.

Worst single trade of the whole test: −66.5% on DEXE/USDT, signal of 2026-06-22.

Real trades from the test

Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.

Price crosses its 50-bar SMA, bullish: real trade on ADA/USDT, 2026-07-20, daily chart
Most recentADA 2026-07-20 daily chartBought at the close of 2026-07-20 (0.1698), sold 4 bars later, when the exit rule fired (0.1640): −3.4% before costs.Against the other crypto pairs over the same bars, after costs: −1.8%.SMA 50
Price crosses its 50-bar SMA, bullish: real trade on DOGE/USDT, 2020-11-05, daily chart
Best tradeDOGE 2020-11-05 daily chartBought at the close of 2020-11-05 (0.002635), sold at the maximum holding time, 100 bars later (0.0662): +2,414.2% before costs.Against the other crypto pairs over the same bars, after costs: +317.1%.SMA 50

Market by market

MarketBarsSignalsAvg tradeWinnersVs market, after costsResult
Stocksdaily262,058+0.65%23%−0.20%Inconclusive
ETFsdaily9,277+0.56%25%−0.003%No edge found
Indicesdaily4,667+0.88%27%n/aNot measured
Forexdaily3,488−0.06%19%−0.10%No edge found
Cryptodaily18,755+3.01%16%−0.79%Inconclusive
Commoditiesdaily2,822+0.48%21%−0.26%No edge found
All markets4-hour149,633+0.20%18%−0.32%Lagged the market
Forex4-hour19,033−0.01%20%−0.04%No edge found
Crypto4-hour130,600+0.23%18%−0.36%Lagged the market
All marketsweekly54,163+4.24%25%−0.46%Inconclusive
Stocksweekly48,172+4.03%25%−0.41%No edge found
ETFsweekly1,691+3.67%29%+0.28%No edge found
Indicesweekly876+4.55%30%−0.15%No edge found
Forexweekly727−0.49%16%−0.53%Inconclusive
Cryptoweekly2,062+15.12%18%n/aNot measured
Commoditiesweekly635+1.39%19%−1.53%Lagged the market
Price crosses its 50-bar SMA, bearishInconclusive

Entry: Close crosses below its 50-bar SMA. Exit: Opposite signal (stop and reverse).

In detail, all markets pooled

On daily bars, the rule fired 305,140 times on 2,352 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 28 bars on each asset.

The average trade returned −0.61% before costs and the median trade −1.62%; 17% of trades made money, and the gains added up to only 0.75 times the losses. For this sell signal, a trade gains when the price falls (a short sale).

A trade lasted 4 bars at the median, half of them between 1 and 14 bars.

Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.16% per trade after costs (95% interval −0.21% to −0.12%). For a sell signal, a positive number means the asset did worse than the others, as the signal announced.

Signals
305,1402,352 assets, 1970 to 2026
Average trade
−0.61%before costs; median −1.62%
Winning trades
17%profit factor 0.75
Median hold
4 barshalf between 1 and 14
Vs the market, after costs
−0.16%95% interval −0.21% to −0.12%

After the signal, bar by bar

Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).

Bars after1351020
After the signal47.7%47.5%46.8%46.3%45.5%
Random dates48.2%47.4%47.0%46.2%45.3%

Over time

The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.

PeriodSignalsVs market, before costs
1970 to 2012101,714−0.04%
2012 to 2021101,780−0.03%
2021 to 2026101,646−0.11%

With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 28% of 302,983 trades hit the target first, for −0.15 R per trade on average against −0.16 R for the same trade at random dates of the same assets: no measurable difference from random dates.

Worst single trade of the whole test: −382.3% on NU/USDT, signal of 2021-10-10.

Real trades from the test

Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.

Price crosses its 50-bar SMA, bearish: real trade on BTC/USDT, 2026-07-16, daily chart
Most recentBTC 2026-07-16 daily chartSold short at the close of 2026-07-16 (63,830), bought back 1 bar later, when the exit rule fired (63,932): −0.2% before costs.Against the other crypto pairs over the same bars, after costs: −1.1%.SMA 50
Price crosses its 50-bar SMA, bearish: real trade on CYN, 2024-12-09, daily chart
Best tradeCYN 2024-12-09 daily chartSold short at the close of 2024-12-09 (624.0), bought back 97 bars later, when the exit rule fired (5.07): +99.2% before costs.Against the other stocks over the same bars, after costs: +99.0%.SMA 50

Market by market

MarketBarsSignalsAvg tradeWinnersVs market, after costsResult
Stocksdaily264,786−0.79%17%−0.12%No edge found
ETFsdaily9,278−0.43%16%−0.01%No edge found
Indicesdaily4,669−0.21%17%n/aNot measured
Forexdaily3,488−0.10%19%−0.09%No edge found
Cryptodaily20,084+1.54%27%−0.73%Inconclusive
Commoditiesdaily2,835−0.52%19%−0.35%Inconclusive
All markets4-hour151,551+0.13%22%−0.29%Lagged the market
Forex4-hour19,540−0.02%19%−0.04%No edge found
Crypto4-hour132,011+0.15%22%−0.32%Lagged the market
All marketsweekly56,049−2.75%14%−0.08%No edge found
Stocksweekly49,811−2.77%14%−0.04%No edge found
ETFsweekly1,695−1.20%14%+0.20%No edge found
Indicesweekly873−0.94%15%−0.05%No edge found
Forexweekly729−0.37%18%−0.36%No edge found
Cryptoweekly2,309−6.74%21%n/aNot measured
Commoditiesweekly632−1.89%17%−0.99%No edge found
Price crosses its 200-bar SMA, bullishInconclusive

Entry: Close crosses above its 200-bar SMA. Exit: Opposite signal (stop and reverse).

In detail, all markets pooled

On daily bars, the rule fired 139,102 times on 2,266 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 61 bars on each asset.

The average trade returned +1.07% before costs and the median trade −1.64%; 17% of trades made money, and the gains added up to 1.43 times the losses.

A trade lasted 4 bars at the median, half of them between 1 and 20 bars. 11% of trades never met the exit rule and were closed at the maximum holding time.

Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.26% per trade after costs (95% interval −0.40% to −0.14%).

Signals
139,1022,266 assets, 1970 to 2026
Average trade
+1.07%before costs; median −1.64%
Winning trades
17%profit factor 1.43
Median hold
4 barshalf between 1 and 20
Vs the market, after costs
−0.26%95% interval −0.40% to −0.14%

After the signal, bar by bar

Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).

Bars after1351020
After the signal49.2%51.1%51.8%52.9%53.9%
Random dates50.6%51.9%52.6%53.6%54.6%

Over time

The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.

PeriodSignalsVs market, before costs
1970 to 201246,375−0.39%
2012 to 202146,377+0.06%
2021 to 202646,350−0.13%

With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 37% of 138,365 trades hit the target first, for +0.14 R per trade on average against +0.11 R for the same trade at random dates of the same assets: no measurable difference from random dates.

Worst single trade of the whole test: −72.1% on UNFI/USDT, signal of 2022-06-07.

Real trades from the test

Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.

Price crosses its 200-bar SMA, bullish: real trade on XLM/USDT, 2026-07-14, daily chart
Most recentXLM 2026-07-14 daily chartBought at the close of 2026-07-14 (0.1845), sold 10 bars later, when the exit rule fired (0.1779): −3.6% before costs.Against the other crypto pairs over the same bars, after costs: −1.0%.SMA 200
Price crosses its 200-bar SMA, bullish: real trade on DOGE/USDT, 2020-11-16, daily chart
Best tradeDOGE 2020-11-16 daily chartBought at the close of 2020-11-16 (0.002890), sold at the maximum holding time, 100 bars later (0.0568): +1,865.1% before costs.Against the other crypto pairs over the same bars, after costs: +346.3%.SMA 200

Market by market

MarketBarsSignalsAvg tradeWinnersVs market, after costsResult
Stocksdaily121,641+0.96%17%−0.24%Inconclusive
ETFsdaily4,255+0.86%18%−0.03%No edge found
Indicesdaily1,966+1.45%22%n/aNot measured
Forexdaily1,563−0.04%14%−0.10%No edge found
Cryptodaily8,415+2.94%9%−0.60%No edge found
Commoditiesdaily1,262+0.69%15%−0.32%No edge found
All markets4-hour67,189+0.22%13%−0.46%Lagged the market
Forex4-hour9,356−0.01%14%−0.04%No edge found
Crypto4-hour57,833+0.26%12%−0.53%Lagged the market
All marketsweekly22,842+4.59%19%n/aNot measured
Stocksweekly20,932+4.75%19%n/aNot measured
ETFsweekly673+4.64%23%n/aNot measured
Indicesweekly364+4.91%25%−0.37%No edge found
Forexweekly327−0.63%7%−0.71%Inconclusive
Cryptoweekly294−7.84%9%n/aNot measured
Commoditiesweekly252+4.03%18%n/aNot measured
Price crosses its 200-bar SMA, bearishNo edge found

Entry: Close crosses below its 200-bar SMA. Exit: Opposite signal (stop and reverse).

In detail, all markets pooled

On daily bars, the rule fired 141,361 times on 2,280 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 60 bars on each asset.

The average trade returned −0.93% before costs and the median trade −1.92%; 11% of trades made money, and the gains added up to only 0.67 times the losses. For this sell signal, a trade gains when the price falls (a short sale).

A trade lasted 4 bars at the median, half of them between 1 and 15 bars. 7% of trades never met the exit rule and were closed at the maximum holding time.

Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.10% per trade after costs (95% interval −0.21% to +0.005%). For a sell signal, a positive number means the asset did worse than the others, as the signal announced.

Signals
141,3612,280 assets, 1970 to 2026
Average trade
−0.93%before costs; median −1.92%
Winning trades
11%profit factor 0.67
Median hold
4 barshalf between 1 and 15
Vs the market, after costs
−0.10%95% interval −0.21% to +0.005%

After the signal, bar by bar

Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).

Bars after1351020
After the signal47.8%47.4%46.8%46.2%45.6%
Random dates48.2%47.4%47.0%46.2%45.3%

Over time

The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.

PeriodSignalsVs market, before costs
1970 to 201247,159+0.001%
2012 to 202147,099+0.10%
2021 to 202647,103−0.10%

With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 28% of 140,088 trades hit the target first, for −0.14 R per trade on average against −0.18 R for the same trade at random dates of the same assets: no measurable difference from random dates.

Worst single trade of the whole test: −242.5% on QURE, signal of 2025-09-19.

Real trades from the test

Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.

Price crosses its 200-bar SMA, bearish: real trade on XLM/USDT, 2026-07-13, daily chart
Most recentXLM 2026-07-13 daily chartSold short at the close of 2026-07-13 (0.1808), bought back 1 bar later, when the exit rule fired (0.1845): −2.0% before costs.Against the other crypto pairs over the same bars, after costs: −0.4%.SMA 200
Price crosses its 200-bar SMA, bearish: real trade on DAVE, 2022-03-23, daily chart
Best tradeDAVE 2022-03-23 daily chartSold short at the close of 2022-03-23 (280.0), bought back at the maximum holding time, 100 bars later (19.94): +92.9% before costs.Against the other stocks over the same bars, after costs: +92.8%.SMA 200

Market by market

MarketBarsSignalsAvg tradeWinnersVs market, after costsResult
Stocksdaily123,451−1.05%11%−0.05%No edge found
ETFsdaily4,261−0.49%10%+0.03%No edge found
Indicesdaily1,963−0.47%10%n/aNot measured
Forexdaily1,568−0.12%13%−0.15%Inconclusive
Cryptodaily8,864+0.30%20%−0.91%Inconclusive
Commoditiesdaily1,254−0.55%13%−0.35%No edge found
All markets4-hour69,039+0.18%17%−0.26%No edge found
Forex4-hour9,603−0.01%14%−0.02%No edge found
Crypto4-hour59,436+0.21%18%−0.29%No edge found
All marketsweekly23,609−4.83%8%−0.35%No edge found
Stocksweekly21,696−4.99%8%−0.36%No edge found
ETFsweekly660−3.19%6%−0.11%No edge found
Indicesweekly361−2.01%9%+0.20%No edge found
Forexweekly325−0.37%14%n/aNot measured
Cryptoweekly319−10.64%13%n/aNot measured
Commoditiesweekly248−2.89%11%n/aNot measured
200-bar SMA turns, bullishNo edge found

Entry: SMA(200) rises after falling. Exit: Opposite signal (stop and reverse).

In detail, all markets pooled

On daily bars, the rule fired 120,754 times on 2,249 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 70 bars on each asset.

The average trade returned +0.97% before costs and the median trade −1.02%; 34% of trades made money, and the gains added up to 1.38 times the losses.

A trade lasted 4 bars at the median, half of them between 1 and 17 bars. 11% of trades never met the exit rule and were closed at the maximum holding time.

Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.23% per trade after costs (95% interval −0.38% to −0.09%).

Signals
120,7542,249 assets, 1970 to 2026
Average trade
+0.97%before costs; median −1.02%
Winning trades
34%profit factor 1.38
Median hold
4 barshalf between 1 and 17
Vs the market, after costs
−0.23%95% interval −0.38% to −0.09%

After the signal, bar by bar

Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).

Bars after1351020
After the signal49.1%50.6%50.7%52.1%53.2%
Random dates50.6%51.9%52.5%53.5%54.4%

Over time

The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.

PeriodSignalsVs market, before costs
1970 to 201240,257−0.40%
2012 to 202140,246+0.03%
2021 to 202640,251+0.002%

With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 37% of 120,165 trades hit the target first, for +0.12 R per trade on average against +0.14 R for the same trade at random dates of the same assets: no measurable difference from random dates.

Worst single trade of the whole test: −87.1% on DEXE/USDT, signal of 2026-04-23.

Real trades from the test

Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.

200-bar SMA turns, bullish: real trade on NEAR/USDT, 2026-06-08, daily chart
Most recentNEAR 2026-06-08 daily chartBought at the close of 2026-06-08 (2.13), sold 47 bars later, when the exit rule fired (1.79): −15.9% before costs.Against the other crypto pairs over the same bars, after costs: −11.4%.SMA 200
200-bar SMA turns, bullish: real trade on AAOI, 2025-12-08, daily chart
Best tradeAAOI 2025-12-08 daily chartBought at the close of 2025-12-08 (27.84), sold at the maximum holding time, 100 bars later (173.0): +521.3% before costs.Against the other stocks over the same bars, after costs: +468.5%.SMA 200

Market by market

MarketBarsSignalsAvg tradeWinnersVs market, after costsResult
Stocksdaily104,759+0.93%35%−0.24%No edge found
ETFsdaily3,487+0.90%37%−0.02%No edge found
Indicesdaily1,706+1.08%39%n/aNot measured
Forexdaily1,495−0.03%32%−0.10%No edge found
Cryptodaily8,166+1.81%25%−0.03%No edge found
Commoditiesdaily1,141−0.02%33%−1.00%Lagged the market
All markets4-hour62,265+0.53%31%−0.32%Inconclusive
Forex4-hour8,374−0.01%33%−0.03%No edge found
Crypto4-hour53,891+0.61%31%−0.37%Inconclusive
All marketsweekly18,302+5.56%37%n/aNot measured
Stocksweekly16,640+5.80%37%n/aNot measured
ETFsweekly567+4.26%40%n/aNot measured
Indicesweekly294+4.50%47%−0.99%No edge found
Forexweekly286−0.14%32%n/aNot measured
Cryptoweekly274+6.50%39%n/aNot measured
Commoditiesweekly241+0.40%40%n/aNot measured
200-bar SMA turns, bearishNo edge found

Entry: SMA(200) falls after rising. Exit: Opposite signal (stop and reverse).

In detail, all markets pooled

On daily bars, the rule fired 122,135 times on 2,254 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 69 bars on each asset.

The average trade returned −1.02% before costs and the median trade −1.44%; 28% of trades made money, and the gains added up to only 0.68 times the losses. For this sell signal, a trade gains when the price falls (a short sale).

A trade lasted 3 bars at the median, half of them between 1 and 14 bars. 8% of trades never met the exit rule and were closed at the maximum holding time.

Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.08% per trade after costs (95% interval −0.18% to +0.04%). For a sell signal, a positive number means the asset did worse than the others, as the signal announced.

Signals
122,1352,254 assets, 1970 to 2026
Average trade
−1.02%before costs; median −1.44%
Winning trades
28%profit factor 0.68
Median hold
3 barshalf between 1 and 14
Vs the market, after costs
−0.08%95% interval −0.18% to +0.04%

After the signal, bar by bar

Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).

Bars after1351020
After the signal47.7%47.2%46.6%45.9%45.3%
Random dates48.2%47.5%47.1%46.3%45.4%

Over time

The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.

PeriodSignalsVs market, before costs
1970 to 201240,719−0.01%
2012 to 202140,711+0.10%
2021 to 202640,705−0.004%

With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 28% of 121,202 trades hit the target first, for −0.13 R per trade on average against −0.16 R for the same trade at random dates of the same assets: no measurable difference from random dates.

Worst single trade of the whole test: −386.8% on GXS/USDT, signal of 2021-09-25.

Real trades from the test

Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.

200-bar SMA turns, bearish: real trade on DAX, 2026-06-10, daily chart
Most recentDAX 2026-06-10 daily chartSold short at the close of 2026-06-10 (24,195), bought back 2 bars later, when the exit rule fired (24,635): −1.8% before costs.Not compared with other indices on daily bars (closes at different hours).SMA 200
200-bar SMA turns, bearish: real trade on DAVE, 2022-03-22, daily chart
Best tradeDAVE 2022-03-22 daily chartSold short at the close of 2022-03-22 (305.9), bought back at the maximum holding time, 100 bars later (18.88): +93.8% before costs.Against the other stocks over the same bars, after costs: +93.6%.SMA 200

Market by market

MarketBarsSignalsAvg tradeWinnersVs market, after costsResult
Stocksdaily105,900−1.13%27%−0.02%No edge found
ETFsdaily3,480−0.49%26%+0.12%No edge found
Indicesdaily1,700−0.61%26%n/aNot measured
Forexdaily1,499−0.12%32%−0.12%No edge found
Cryptodaily8,400−0.13%38%−0.82%Lagged the market, fragile
Commoditiesdaily1,156−0.53%33%−0.46%No edge found
All markets4-hour63,641+0.30%35%−0.22%No edge found
Forex4-hour8,511+0.002%33%−0.02%No edge found
Crypto4-hour55,130+0.34%36%−0.25%No edge found
All marketsweekly18,733−5.54%23%−0.65%No edge found
Stocksweekly17,024−5.77%23%−0.57%No edge found
ETFsweekly558−4.41%19%−0.40%No edge found
Indicesweekly290−4.16%20%+0.04%No edge found
Forexweekly283−0.67%35%n/aNot measured
Cryptoweekly338+0.56%45%n/aNot measured
Commoditiesweekly240−3.78%32%n/aNot measured

Each strategy enters at the close of the signal bar and exits at the exit it teaches, without a stop. The test compares the asset with an equal-weight basket of the other assets of its market over exactly the same bars, net of trading costs; for a sell signal, beating the market means the asset did worse than the others. A result is shown as beating or lagging the market only when it survives a correction for the number of tests and holds in both halves of the history; it is marked fragile when entering at the next open, doubling costs or trimming extreme trades removes it. Daily index bars are not compared with other indices, because their closes fall at different hours; “Not measured” also covers samples too small to test. Rules were fixed before any result was seen. How we test

Every pattern's results on one sheet

The only pattern cheat sheet with tested stats: 152 patterns, what the textbook says and what really happened on 6 markets. Free PDF, sent to your inbox.

The PDF by email, plus our newsletter: new tests and results that change. Unsubscribe anytime. Privacy.

Frequently asked questions

How do you read a moving average?

By its slope and by where price sits relative to it. A rising average with price above it describes an uptrend over that period; a falling one with price below, a downtrend. A flat average that price keeps crossing describes a range.

What is the best moving average indicator?

None is best in general: each type trades lag against noise. On our data, the Hull average lagged least and was crossed most often; the simple average lagged most, and at 20 bars it was also crossed least. Pick the one whose behavior fits how long you hold trades.

What are the most common moving average periods?

20 for the short term, 50 for the medium term and 200 for the long term are the ones most charts show; StockCharts calls the 200-day perhaps the most popular. For daily charts, 5 to 20 bars covers short-term trends and 100 or more long-term ones.

What does a 20-period moving average tell you?

The average close of the last 20 bars, about one trading month on a daily chart of stocks. On our two daily series a 20-bar simple average lagged price by about 10 bars.

Is the EMA better than the SMA?

It reacts sooner, which on our data cut the lag of a 20-bar average from about 10 bars to 6 or 7, at the cost of a few more crossings. Whether that is better depends on whether early signals or fewer false ones matter more to you.

What is a moving average ribbon?

Several moving averages of increasing length on the same chart. Averages fanning out in order describe a strong trend; averages twisting through each other describe a pause or a turn. The GMMA is a well known ribbon.

Sources

  1. StockCharts ChartSchool, Moving Averages: Simple and Exponential
  2. MetaTrader 5 help, Moving Average
, Founder of PatternsWizard

Passionate about finance, quantitative trading and data analysis. Amaury built the PatternsWizard test bench, which detects each pattern on full price history and measures what happened next against random entries.

PatternsWizard tests chart and candlestick patterns on full market history, against random entries. How we test patterns.

179 patterns testedRandom-walk self-test passed

Related guides

All trend indicators articles