DIARY

Do moving averages work?

SMA and EMA crosses, price crosses, pullbacks and slopes: 52 tests.

RESULTConclusion

  • 1 of 22 H1 crosses were positive after costs.
  • 20 of 22 daily crosses were positive. But most lost in the first half and relied on the second half's rally, and they were no better than random holds of the same direction and length (random averaged a gain).
  • The best of all 52 tests, D1 EMA 50/200, made +25.6% after costs, with −10.2% in the first half. There is no statistical evidence that it beat random.
  • No edge from moving averages was confirmed.

BY GROUPAverage by timeframe and type

The difference between SMA and EMA was smaller than the difference between timeframes.

Before costsAfter costs

0−14%+12%H1 SMA (11)H1 SMA (11) before costs −1.4%H1 SMA (11) after costs −15.3%H1 EMA (11)H1 EMA (11) before costs +1.8%H1 EMA (11) after costs −12.2%D1 SMA (11)D1 SMA (11) before costs +6.4%D1 SMA (11) after costs +5.7%D1 EMA (11)D1 EMA (11) before costs +13.2%D1 EMA (11) after costs +12.4%

OTHER USESOther uses

ConditionTradesWin rateBefore costsAfter costs1st half2nd halfRandom avg
Reverse when the close crosses SMA 20 H160,93023.0%+1.6%−91.2%−57.3%−33.9%−92.4%
Reverse when the close crosses SMA 20 D13,00626.7%−3.0%−7.3%−2.7%−4.5%+3.9%
Reverse when the close crosses SMA 50 H136,28419.0%−1.3%−57.1%−31.8%−25.3%−54.3%
Reverse when the close crosses SMA 50 D11,67922.8%+11.6%+9.0%−1.0%+10.0%+9.0%
Reverse when the close crosses SMA 200 H117,32013.4%+2.0%−24.6%−17.7%−6.9%−22.1%
Reverse when the close crosses SMA 200 D172313.6%+4.6%+3.3%−13.5%+16.8%+26.6%
Pullback to SMA20 with the trend21,46633.1%−20.0%−52.5%−27.7%−24.8%−30.1%
Follow the SMA200 slope every 24 bars10,70748.0%−8.6%−24.4%−10.8%−13.6%−13.4%

ALL CROSSESAll 44 crosses

ConditionTradesWin rateBefore costsAfter costs1st half2nd halfRandom avg
H1 SMA 5/5017,85728.1%−6.0%−33.5%−17.5%−16.0%−25.0%
H1 SMA 5/10012,02324.8%+2.6%−15.8%−14.7%−1.2%−15.0%
H1 SMA 5/2008,06321.4%+6.0%−6.1%−5.3%−0.9%−7.3%
H1 SMA 10/5013,78632.1%−10.6%−32.1%−16.6%−15.5%−17.6%
H1 SMA 10/1009,06828.1%−5.0%−19.3%−17.6%−1.7%−10.5%
H1 SMA 10/2005,99125.5%+7.3%−2.1%−2.9%+0.8%−3.4%
H1 SMA 20/5011,53734.7%−11.0%−29.4%−10.1%−19.3%−14.7%
H1 SMA 20/1006,98632.5%−0.7%−11.8%−11.1%−0.7%−6.0%
H1 SMA 20/2004,55328.6%+7.7%+0.6%−0.6%+1.2%−0.6%
H1 SMA 50/1005,69135.9%−4.9%−13.6%−13.3%−0.3%−4.9%
H1 SMA 50/2003,23734.4%−0.5%−5.3%−6.9%+1.6%+1.3%
H1 EMA 5/5018,87824.5%−1.9%−30.8%−20.6%−10.2%−26.1%
H1 EMA 5/10013,11021.9%−1.6%−21.5%−15.3%−6.2%−14.4%
H1 EMA 5/2009,29519.5%+2.6%−11.5%−6.3%−5.2%−8.7%
H1 EMA 10/5013,74626.7%−2.3%−23.5%−17.6%−5.9%−17.5%
H1 EMA 10/1009,56224.9%+1.2%−13.4%−11.1%−2.3%−10.0%
H1 EMA 10/2006,65322.7%+4.7%−5.6%−2.9%−2.7%−3.3%
H1 EMA 20/509,88129.0%−1.3%−16.6%−10.5%−6.1%−11.5%
H1 EMA 20/1006,97427.2%+3.8%−7.1%−10.5%+3.4%−4.6%
H1 EMA 20/2004,88925.1%+5.0%−2.5%−1.6%−0.9%−1.0%
H1 EMA 50/1004,52129.9%+6.3%−0.7%+0.6%−1.3%−0.8%
H1 EMA 50/2003,21528.0%+3.5%−1.5%−2.2%+0.7%+2.3%
D1 SMA 5/5084929.3%+8.7%+7.4%−1.0%+8.4%+11.8%
D1 SMA 5/10053727.9%+2.7%+1.8%−5.8%+7.6%+17.7%
D1 SMA 5/20035322.1%+8.2%+7.6%−11.3%+18.8%+27.3%
D1 SMA 10/5065633.7%+11.6%+10.6%−2.8%+13.4%+11.0%
D1 SMA 10/10040929.3%+3.5%+2.8%−4.9%+7.7%+18.2%
D1 SMA 10/20025927.0%+13.0%+12.5%−9.2%+21.7%+28.5%
D1 SMA 20/5055437.0%+0.5%−0.4%−14.5%+14.1%+11.5%
D1 SMA 20/10032931.0%−5.1%−5.7%−8.7%+3.0%+18.1%
D1 SMA 20/20018630.6%+12.2%+11.9%−10.5%+22.4%+28.9%
D1 SMA 50/10027036.3%+2.1%+1.7%−7.5%+9.2%+18.1%
D1 SMA 50/20013339.1%+12.8%+12.6%−7.5%+20.1%+30.2%
D1 EMA 5/5095726.4%+11.4%+9.8%0.0%+9.8%+12.7%
D1 EMA 5/10064525.6%+16.0%+15.0%+0.6%+14.4%+19.1%
D1 EMA 5/20044721.7%+17.0%+16.3%−8.9%+25.2%+27.0%
D1 EMA 10/5069529.8%+10.3%+9.3%−3.4%+12.7%+14.8%
D1 EMA 10/10046128.9%+11.2%+10.4%−3.3%+13.7%+21.2%
D1 EMA 10/20035122.8%+14.6%+14.0%−13.3%+27.3%+27.9%
D1 EMA 20/5052429.0%+3.4%+2.5%−8.8%+11.4%+16.3%
D1 EMA 20/10035628.7%+9.0%+8.4%−6.3%+14.6%+22.6%
D1 EMA 20/20027724.9%+10.7%+10.2%−10.9%+21.1%+27.8%
D1 EMA 50/10024629.7%+15.2%+14.8%−6.0%+20.9%+24.3%
D1 EMA 50/20017728.8%+25.9%+25.6%−10.2%+35.8%+30.9%

Next: MACD →

This diary records tests on historical data. It does not recommend any method or symbol and does not indicate future profit or loss. Please make investment decisions at your own risk.