Skip to content
All library documents

Dual EMA Crossover Signals for Trend Following

Article Strategy library · Author: ChaoZhang

Summary

This strategy uses a fast and a slow exponential moving average to signal changes in trend direction. The example uses periods of 29 and 86: a fast average above the slow average leads to a long position, while a fast average below it leads to a short. Positions use a fixed share of equity, and the source includes a historical backtest configuration for BTC futures.

The method is simple to calculate and interpret, but moving-average crossovers lag price changes and can give repeated signals in choppy conditions. The article describes no explicit stop loss or take-profit rule; the sample code enters in the indicated direction without defining those exits. Although backtest settings are included, the document provides no returns or other evidence to assess performance. Any practical use would require testing across market regimes and accounting for trading costs and risk controls.

Key ideas

  • The strategy compares fast and slow EMAs to infer trend direction.
  • It enters long when the fast EMA is above the slow EMA and short when it is below.
  • The example uses EMA periods of 29 and 86 and fixed equity-based sizing.
  • The approach can lag turning points and may produce poor signals in sideways markets.
  • The document includes backtest settings but reports no performance results or explicit stop-loss and take-profit rules.

Tags

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