All indicators

XAUUSD STRATEGY BOT

Aug 7, 2025

Static chart image
SignalsOscillatorsDashboardMoving AveragesVolatility

The XAUUSD STRATEGY BOT indicator provides trend-following signals for Gold (XAUUSD) by combining EMA crossovers, RSI momentum, and ADX trend strength filtering.

Usage

The script is specifically designed for the 15-minute timeframe on XAUUSD. It generates Buy and Sell signals based on a confluence of four conditions:

  • Trend Direction: Price must be above the 200 EMA for Buy signals or below it for Sell signals.
  • Momentum Crossover: A bullish or bearish crossover between the 9 EMA and 21 EMA must occur.
  • Strength Filter: The ADX must be above the user-defined minimum threshold (default 18) to ensure the market is trending.
  • RSI Filter: The RSI must be above the "Buy Min" or below the "Sell Max" to confirm momentum.

Upon a confirmed signal, the tool plots target Stop Loss (SL) and Take Profit (TP) levels based on the Average True Range (ATR). An on-screen status panel provides real-time data on current trend status, RSI values, and ADX strength.

Details

The indicator utilizes a custom ADX calculation (RMA-based) to measure trend intensity more accurately for intraday gold movements. By requiring the price to be on the correct side of the 200 EMA, it acts as a trend-following system, aiming to capture movements in the direction of the primary trend while avoiding low-volatility periods through the ADX filter.

Settings

  • Only show signals on XAUUSD: When enabled, the script will display warnings if used on other tickers.
  • RSI Buy Min / Sell Max: Sets the momentum thresholds for signal qualification.
  • ADX Min Trend Strength: The minimum value required for the ADX to allow a signal.
  • SL/TP ATR Multiplier: Adjusts the distance of the projected exit levels based on market volatility.
  • Show status panel: Toggles the visibility of the top-right information table.

FAQ

How do I use the XAUUSD STRATEGY BOT? Add the script to your XAUUSD 15m chart and look for the "BUY" or "SELL" labels. Ensure the ADX and RSI filters align with your personal risk tolerance by adjusting the settings.

What timeframe is best for this indicator? The script is optimized and hard-coded for the 15-minute (15m) timeframe to maintain the intended signal frequency and accuracy.

How can I access this tool? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.