Skip to content
All library documents

EMA 9/20 Trend Signals with Price Crosses and Trailing Stops

Article Strategy library · Author: ChaoZhang

Summary

This trend-following strategy uses the 9-period and 20-period exponential moving averages to generate directional signals. It also describes using price crossing the 9-period EMA as an additional, faster signal. A trailing stop is intended to follow favorable price movement and exit when price reverses through the stop. The published backtest settings cover BTC/USDT futures on a daily chart over roughly one year, but the document provides no performance statistics.

The note warns that combining crossover signals can increase trading frequency and costs, that range-bound markets can produce false signals, and that results may be sensitive to parameter choices. The supplied source has implementation details that complicate the description: its price cross-under condition is coded as a second cross-over, and trailing exits are attached to price-cross entries rather than the principal EMA crossover entries. These discrepancies mean the source should be checked before treating it as a faithful implementation. Proposed extensions include indicator filters, dynamic parameters, and position sizing based on signal strength.

Key ideas

  • An upward cross of the 9-period EMA above the 20-period EMA is described as a long signal, with the reverse cross signaling short direction.
  • Price crossing the 9-period EMA is presented as an auxiliary, faster entry signal.
  • Trailing stops are intended to protect open trades by adjusting with favorable price movement.
  • The document flags transaction costs, range-bound false signals, and parameter sensitivity, and provides no backtest outcome figures.
  • The code's price cross-under test duplicates a cross-over test, creating a discrepancy with the written strategy.

Tags

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