Skip to content
All library documents

EMA Trend Strategy with Close-Based Entries and Exits

Article Strategy library · Author: ChaoZhang

Summary

This note presents a simple long-only strategy using an exponential moving average (EMA) as a trend filter. It enters when the prior candle closes above the EMA and exits when the current candle closes below it. The EMA length is configurable, and the supplied settings include a 21-period length. The document also gives backtest configuration for BTC/USDT on Binance over a stated 2023 date range, but reports no performance statistics or comparative results.

The strategy is intended for trending markets, where the EMA may help define direction. The note warns that sideways trading can produce false signals and that entries may arrive late, exposing the strategy to whipsaws. It has no stop-loss, trade-frequency rule, or position-sizing guidance, so losses and exposure are not fully managed by the described rules. The source also contains date logic that appears fixed despite a year input, and its implementation may not exactly match the prose description. Adding risk controls and signal filters would require separate evaluation rather than being established by the supplied backtest settings.

Key ideas

  • The strategy enters long after a prior close above the EMA and exits on a close below it.
  • The EMA period is configurable, with a supplied default of 21.
  • The note identifies trend markets as a better fit and warns of false signals in ranges.
  • No stop-loss, position-sizing rule, or performance results are provided.

Tags

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