Skip to content
All library documents

EMA 5 and EMA 13 Crossovers for Short-Term Trend Signals

Article Strategy library · Author: ChaoZhang

Summary

The document presents a short-term trend-following method based on the crossover of a 5-period and a 13-period exponential moving average. Its explanation describes going long when the faster average rises above the slower one and short when it falls below. It notes that EMAs weight recent prices more heavily than simple moving averages, making them quicker to respond, while still lagging price.

The supplied strategy code differs from that two-sided description: it opens short positions while the fast EMA is below the slow EMA and closes them when the fast EMA rises above it; the apparent long-entry rule is commented out. The document also lists input settings and a BTC-USDT futures backtest period, but gives no performance statistics. It cautions that crossover signals can whipsaw in sideways markets, that the chosen periods may not generalize, and that the described approach lacks an explicit stop loss. Trend filters, stops, parameter testing, and additional indicators are proposed as possible refinements.

Key ideas

  • The described signal uses a 5-period EMA crossing a 13-period EMA to indicate short-term direction.
  • The fast EMA is more responsive than the slow EMA, though crossover signals still lag price.
  • The included code trades short when the fast EMA is below the slow EMA and closes above it.
  • The code does not implement the long entry described in the accompanying explanation.
  • No backtest performance results are provided, and sideways markets may generate repeated false signals.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.