EMA Crossover Signals for Trend-Following Trades
Summary
This document explains a trend-following approach that compares a fast exponential moving average with a slower one. The stated defaults are 9 periods and 20 periods. A cross of the fast line above the slow line triggers a long entry, while a cross below triggers a short entry. The strategy includes a choice of long, short, or both directions, along with date inputs intended to constrain a test period.
The published settings describe a one-month BTC/USDT futures backtest at a one-hour period, but no performance statistics are provided. The discussion identifies whipsaws, delayed signals near trend turns, and sensitivity to parameter choices as limitations. It proposes testing other EMA periods, adding filters such as RSI or MACD, and using stops or volatility-based position management. Although start and end dates are described as controls, the supplied code sets its date-range condition to always true, so that condition does not enforce the selected dates in this version.
Key ideas
- The strategy uses crossings between fast and slow EMAs to set long or short direction.
- The example uses fast and slow EMA periods of 9 and 20.
- Whipsaws and late entries near trend reversals can erode results and increase trading costs.
- The date inputs in the example code do not constrain entries because its date condition is always enabled.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.