Dual EMA Crossover Trend Following with Configurable Stops
Summary
This trend-following method compares a fast and a slow exponential moving average. The described defaults are 8 and 21 periods: a fast-line cross above the slow line signals bullish direction, while a cross below signals bearish direction. Users can select long-only, short-only, both directions, or no trades. Configurable stop-loss and profit targets can be expressed in percent or pips, and positions are closed or reversed as signals change according to the selected side setting.
The document explains that crossovers may repeatedly whipsaw in range-bound markets, while tight stops can exit trades prematurely. It suggests longer averages, signal filters, and adaptive risk controls as possible refinements. It gives a BTC/USDT futures test window and timeframe, but no return, drawdown, or trade-count evidence. The published source also contains date-range and stop/target calculations whose behavior is not fully clarified by the prose, so the stated configuration should be checked before drawing conclusions from a reproduction.
Key ideas
- An 8-period EMA and a 21-period EMA define bullish and bearish crossover signals by default.
- Trading direction can be configured for long, short, both, or disabled.
- Stop-loss and profit targets are configurable in percent or pips.
- Frequent crosses can cause losses in sideways markets, and stops that are too tight may close trades early.
- The described backtest setup is not accompanied by performance results.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.