Skip to content
All library documents

EMA Crossover Signals with Longer-Term Trend Filters

Article Strategy library · Author: ChaoZhang

Summary

This strategy uses 5, 9, and 21-period exponential moving averages (EMAs) to generate directional signals, with 100- and 200-period EMAs available for broader trend context. A crossover of the 5-period EMA above or below the 9-period EMA is the basic entry cue. The text describes the 21-period EMA as a confirmation filter when both faster averages are on the same side of it. The supplied code, however, requires the 5- and 9-period averages to cross the 21-period average on the same bar, so its entry rule differs from the prose description.

The document provides example backtest settings for BTC/USDT futures, using daily bars with an hourly base period over a stated date range, but reports no performance results. It identifies false crossovers, short-term signals that conflict with larger trends, and sensitivity to market and parameter choices as limitations. It suggests testing parameter combinations, adding indicator filters, and considering EMA-based or trailing exits; the code itself does not implement explicit stop-loss or take-profit rules.

Key ideas

  • A 5-period EMA crossing the 9-period EMA is the basic long or short signal described in the prose.
  • The prose presents the 21-period EMA as a confirmation filter, while the supplied code uses simultaneous crossovers involving that average.
  • The 100- and 200-period EMAs provide context for longer-term market direction.
  • False signals, changing market conditions, and parameter sensitivity can weaken crossover strategies.
  • The example settings specify BTC/USDT futures and daily bars, but the document gives no backtest performance results.

Tags

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