EMA Crossover Reversals with ATR Trailing Stops
Summary
This strategy combines fast and slow EMAs with ATR-based stop management. A bullish EMA crossover opens a long position, while a bearish crossover opens a short; once the minimum holding period has passed, an opposing signal closes the position and sets a flag to enter in the reverse direction. Stops are initially placed two ATRs from the fast EMA and then trail as the EMA and ATR change. The code also tightens a stop to the prior bar’s extreme when its overbought or oversold condition is met.
The document includes parameter defaults and a short published BTC/USDT futures backtest window, but provides no performance statistics. The description presents the strategy as potentially useful for two-way trading, while acknowledging that reversals can churn in ranging markets and ATR changes can make stop distances unsuitable. The code’s displayed take-profit concept is not implemented as a separate fixed profit target; exits are driven by reversals or stops. Results would depend on execution costs, market, and parameter choices.
Key ideas
- Fast and slow EMA direction determines bullish or bearish crossover signals.
- After a minimum holding period, an opposing signal closes a position and can trigger a reverse entry.
- ATR-based stops begin near the fast EMA and trail as conditions change.
- The prior bar’s high or low can tighten a stop under specified price conditions.
- No performance results are reported, and ranging markets may cause frequent reversals.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.