Gold Trend-Following Entries with EMA, MACD, RSI, and ATR Stops
Summary
This XAU/USD strategy combines a 50-period and 200-period EMA trend filter with MACD crossover signals and an RSI range check. It opens long positions when price and the EMA relationship indicate an uptrend, MACD crosses upward, and RSI is between 50 and 70; short entries use the opposite trend and MACD direction with RSI between 30 and 50. The script uses the full account equity for position sizing and calculates stop distances from ATR, alongside trailing-exit parameters.
The document provides indicator rules and source code, but no performance results or detailed test methodology. Its description calls the EMA condition a crossover, while the code checks the current relationship between the averages and price. The exit orders combine a price stop with trailing settings, whose behavior depends on the trading platform and instrument. Full-equity sizing makes risk control especially important, and the stated rules alone do not establish profitability across gold market conditions.
Key ideas
- The long filter requires the fast EMA above the slow EMA and price above the slow EMA.
- MACD crossovers set entry timing, while RSI ranges filter for non-extreme momentum.
- Short entries mirror the long conditions with bearish trend and momentum checks.
- Stops use ATR-based distances and trailing parameters, while order size is set to full equity.
- The document supplies no evidence of strategy performance or robustness.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.