EMA Trend Entries with an ATR-Based Trailing Stop
Summary
This trend-following strategy uses an ATR-based trailing line to adapt the stop distance to recent volatility. Price crossing the stop establishes a directional state, while the trading code generates entries when price crosses that trailing line. The price input can use ordinary closes or Heikin Ashi closes, and the strategy exposes a sensitivity multiplier and ATR period.
The document includes a BTC/USDT futures backtest configuration but reports no performance statistics. It notes that EMA-style signals can lag, choppy markets may trigger repeated stop crossings, and the approach does not account for fees or position sizing. The code's EMA uses a length of one, making it effectively the selected price series; the operative crossover is therefore against the trailing stop rather than a slower EMA filter. Suggested improvements include tuning ATR settings, adding position controls and filters, and accounting for costs.
Key ideas
- The trailing stop distance is calculated as a multiple of ATR, adapting it to market volatility.
- Entries occur when the selected price series crosses the ATR trailing stop in either direction.
- The price source may be ordinary closing prices or Heikin Ashi closing prices.
- Choppy price action can cause repeated reversals, while ATR-based stops may lag or be affected by gaps.
- The supplied backtest configuration gives no performance evidence, and the strategy lacks position sizing and fee modeling.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.