|
|
|
Log In | Sign Up | ||
Moving Averages (SMA and EMA)A moving average smooths price by averaging it over a fixed number of bars, then moving that window forward one bar at a time. It is the oldest and simplest trend tool, and the building block of many other indicators, from MACD to Bollinger Bands. Traders use moving averages to see the direction of the trend, to find dynamic support and resistance, and to generate crossover signals. Types of moving averages
SMA(N) = (C1 + C2 + ... + CN) / N EMA(t) = C(t) × k + EMA(t-1) × (1 - k), where k = 2 / (N + 1) Shorter averages follow price closely; longer ones show the bigger trend. Common periods are 20 bars (about a month), 50 bars (about a quarter) and 200 bars (about a year). How traders use moving averages
The trade-off: lag versus whipsawsEvery moving average lags price, because it is built from past data. A short average lags less but crosses back and forth in sideways markets, producing whipsaws. A long average filters noise but signals late, after much of the move has happened. No setting removes this trade-off; choose the period that matches the length of trend you want to trade. Signals that sound convincing don’t always pay. Our 25-year golden cross backtest found it beat the index fund on Canadian stocks but not in the US, which is a good reason to test a moving average rule before trading it. Live chart: SPY (S&P 500 ETF), daily, with the 50-day and 200-day simple moving averages. The chart updates every trading day. Screen for it on MarketInOutUse exch(nyse,nasdaq) and type(stock) and price > 1 and advol(21) > 1 and sma(50) ca sma(200) Stocks crossing above their 200-day average: exch(nyse,nasdaq) and type(stock) and price > 1 and advol(21) > 1 and price ca sma(200) Related: MACD, Bollinger Bands, ADX and directional movement. |
Disclaimer - Privacy Policy - Terms of Service - Cookies - FAQ - Affiliates - Blog |