Skip to content
All library documents

EMA Crossover Trend Strategy with Fast and Slow Moving Averages

Article Strategy library · Author: ChaoZhang

Summary

This strategy uses a fast and a slower exponential moving average to generate directional signals: a cross above prompts a long entry, and a cross below marks a sell signal. It plots several additional fast and slow EMAs as a visual ribbon, while the supplied trading logic specifically bases entries and long-position exits on the crossover of the shortest EMA and another fast EMA.

The document explains the approach as a simple trend-following method and discusses the usual trade-offs: EMA signals lag, can whipsaw in sideways markets, and depend on the chosen periods. It proposes stop losses, re-entry rules, other indicator filters, and slippage-aware testing as possible improvements. Published settings identify a short Bitcoin futures backtest interval, but no returns or other measured results are provided. The source closes long positions on a downward cross and does not implement the separate short entries described in parts of the prose, so the practical strategy is narrower than the overview suggests.

Key ideas

  • A cross of the fast EMA above the selected comparison EMA generates a long entry.
  • A cross below that EMA closes the long position in the supplied trading logic.
  • Additional EMA lines form a visual ribbon, but they do not all affect the entry and exit rules.
  • Lag and sideways-market whipsaws are key risks of crossover signals.
  • The published backtest settings include no performance results, and the code does not open short positions.

Tags

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