Gold Strategy Using EMA Trend Filters and Range-Sweep Reversals
Summary
This XAUUSD strategy uses a long-period exponential moving average to set directional bias and recent range levels to identify possible reversal entries. A long signal occurs when price trades below the prior rolling low, closes back above that level, and finishes above the EMA. A short signal mirrors this at the prior rolling high, with the close below both that level and the EMA. Signals can open a position or reverse an existing one, while pyramiding is disabled.
Exits use stop and limit prices based on the average entry price and current ATR, with the target distance set as a multiple of the stop distance. The document’s accompanying description mentions additional concepts such as fair value gaps and market structure breaks, but those are not implemented in the supplied strategy code. No backtest results, instrument-specific validation, or timeframe evidence are provided by the code. Since ATR changes over time, the stop and target levels can move while a position is open; users should assess this behavior and execution assumptions before relying on the rules.
Key ideas
- The EMA acts as a directional filter for both long and short entries.
- Long signals require a sweep below the previous rolling low followed by a close back above it; shorts use the corresponding high-level pattern.
- Stops and targets are set from entry price using current ATR and a configurable multiplier.
- The code does not implement all the additional concepts claimed in the accompanying description and provides no performance evidence.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.