Skip to content
All library documents

Multi-EMA Trend Filtering with an ATR Trailing Stop

Article Strategy library · Author: ianzeng123

Summary

This strategy combines four exponential moving averages with an ATR-based trailing stop. It treats price above all four averages as an uptrend and price below all four as a downtrend. A long or short signal requires price to cross the trailing stop in the matching trend direction. The article also describes a trading-session filter, with US market hours as its default example, and discusses adjustable ATR settings and chart displays.

The document explains the intended benefits of trend confirmation and a volatility-sensitive stop, while warning that lag, ranging markets, parameter choices, sudden gaps, and repeated crossovers can undermine results. It proposes additions such as trend-strength and volume filters, adaptive stop settings, and market-state classification. A backtest configuration for SOL/USDT futures on five-minute data is supplied, but no performance results are reported. The source code shown does not implement the described session filter, so that feature should not be assumed to be active in the published strategy. The described rules are a starting point for evaluation, not evidence of profitability.

Key ideas

  • Price above or below all four EMAs defines the strategy’s trend direction.
  • A price crossover of the ATR trailing stop triggers an entry only when it agrees with the EMA trend filter.
  • The ATR multiple sets a stop distance that adjusts with measured volatility.
  • Trend confirmation may delay entries and exits, while ranging markets can produce missed or repeated signals.
  • The article recommends testing parameter choices across market conditions and considering additional risk controls.

Tags

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