Skip to content
All library documents

ATR-Scaled EMA Crossover Scalping for XAUUSD

Article TradingView scripts

Summary

This XAUUSD scalping strategy uses a fast and a slower exponential moving average to identify short-term directional crossovers, then checks RSI for momentum confirmation. Long entries require the fast average to cross above the slow average with RSI above its threshold; shorts require the reverse crossover and RSI below its threshold. An ATR filter excludes signals when measured volatility is below a configured minimum.

For each entry, take-profit and stop levels are set at configurable ATR multiples from the entry price, and the script also submits a trailing stop. The code uses percent-of-equity sizing, while plotted averages and entry markers show the signal conditions. The accompanying description recommends very short charts and warns that the approach can produce frequent trades and substantial drawdowns. No backtest results or execution-cost analysis are supplied. Performance may depend heavily on spreads, commissions, slippage, broker execution, chosen thresholds and market conditions, so the source alone does not establish an edge.

Key ideas

  • EMA crossovers define the directional entry triggers, with RSI confirming momentum.
  • An ATR threshold filters out periods of lower measured volatility.
  • ATR multiples set stop and target distances, and a trailing stop is also submitted.
  • The strategy is described as aggressive, with potential for frequent trades and drawdowns.
  • The document provides no performance results or trading-cost analysis.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.