Skip to content
All library documents

Gold Trend Strategy with EMA, MACD, RSI, and ATR Exits

Article TradingView scripts

Summary

This gold strategy combines a fast and slow exponential moving average trend filter with MACD crossover timing and an RSI range filter. It opens long positions when the averages indicate an uptrend, MACD crosses upward, and RSI remains in a moderate bullish zone; short entries apply the corresponding bearish conditions. The script also plots the averages and entry markers.

Risk controls use an ATR-based stop distance and trailing exit logic, while the strategy allocates the full specified equity percentage per trade. The accompanying description identifies choppy markets, infrequent signals, and large exposure as concerns, and suggests the approach is aimed at sustained trends. Although the page lists expected performance ranges, it provides no supporting test period, instrument settings, or evidence for those estimates. The source code and description also differ in describing trend identification: the code checks the EMA relationship and price location, rather than requiring a fresh EMA crossover. Treat performance claims as unverified and evaluate sizing, execution assumptions, and exits before use.

Key ideas

  • The strategy filters direction with the relationship between fast and slow EMAs and the close relative to the slow EMA.
  • MACD crossovers time entries, while RSI ranges screen out more extreme momentum readings.
  • ATR determines the stop distance, and the script also configures a trailing exit.
  • The strategy uses full-equity percentage sizing, which can create substantial drawdown exposure.
  • The page gives performance estimates without supporting test details, and its crossover description does not match the code's trend condition.

Tags

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