ATR Trailing Stops with an EMA Trend Filter
Summary
The strategy uses an ATR-scaled trailing stop to adapt exit distance to recent price movement. The stop is initialized from price and ATR, then updated according to the detected direction: it can advance with a favorable move, and a crossing of the stop flips the direction state. Entries are generated on those flips, with long trades allowed only above a long-period EMA and short trades only below it. This EMA gate is intended to reduce countertrend signals from a reactive stop system in choppy markets.
The document explains why volatility-scaled stops can behave differently from fixed-distance stops and shows the indicator and entry logic in a script. It does not provide backtest results, instrument-specific evidence, or detail on transaction costs and execution. The trend filter may reduce some countertrend entries, but it cannot eliminate losses or guarantee better performance, especially when price oscillates around the EMA or the stop flips frequently.
Key ideas
- The trailing stop distance scales with ATR, so it responds to changes in recent volatility.
- The stop updates with favorable price movement and the strategy detects direction changes when price crosses it.
- Long entries require price above the EMA, while short entries require price below it.
- The EMA filter is intended to reduce countertrend signals but cannot prevent losses in choppy conditions.
- No backtest results or execution-cost analysis are provided.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.