XAUUSD STRATEGY BOT
Aug 7, 2025

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.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

