OPEN-SOURCE SCRIPT

XAUUSD Scalper Pro by QUANTRADZ

266
Gold Scalping Direction & Pullback Signals is a trend-following indicator designed to identify potential BUY and SELL opportunities on XAU/USD. It is intended primarily for 1-minute, 3-minute and 5-minute charts.

The indicator combines trend direction, momentum, volatility and candle confirmation into a configurable scoring system. Signals are designed to appear only after a candle has closed, helping traders avoid acting on incomplete candles.

HOW IT WORKS

The indicator analyzes:

• EMA 20 and EMA 50 for short-term trend direction• Optional EMA 200 for the broader market trend• RSI for momentum confirmation• ADX and DMI for trend strength and directional pressure• ATR for volatility filtering and risk-level calculations• Pullbacks toward the moving averages• Candle-body strength for entry confirmation• Optional higher-timeframe trend alignment

BUY SIGNAL

A BUY signal may appear when the short-term trend is bullish, price completes a valid pullback, momentum supports further upside and a strong bullish candle closes.

SELL SIGNAL

A SELL signal may appear when the short-term trend is bearish, price completes a valid pullback, momentum supports further downside and a strong bearish candle closes.

SIGNAL SCORING

Each bullish or bearish condition contributes to a directional score. A signal appears only when the score reaches the selected minimum threshold.

A higher threshold generally produces fewer but more selective signals. A lower threshold produces more signals but may also increase false entries.

CHART FEATURES

• Confirmed BUY and SELL markers• EMA 20, EMA 50 and optional EMA 200• Bullish and bearish condition scores• Trend and momentum dashboard• Optional higher-timeframe confirmation• ATR-based stop-loss and target guides• Configurable signal cooldown• Optional session and volatility filters• Confirmed BUY and SELL alerts

SUGGESTED USE

This indicator is designed for trend-pullback trading. It should not be used to enter every signal automatically.

Before considering an entry:

Confirm that the market is trending.

Avoid flat or frequently crossing moving averages.

Wait for the signal candle to close.

Check nearby support and resistance.

Avoid major economic announcements and abnormal volatility.

Use appropriate risk management.

For normal spot, CFD or futures trading, ATR levels can help estimate possible stop-loss and profit-target locations.

For fixed-payout trades, the ATR stop and target lines do not represent expiry rules. Each expiry duration should be tested separately using historical and demo results.

NON-REPAINTING BEHAVIOR

Signals are designed to use confirmed candle data and appear after the signal candle closes. Higher-timeframe calculations are designed to avoid lookahead.

Users should independently verify this behavior with TradingView’s Bar Replay feature before using the indicator.

IMPORTANT LIMITATIONS

This indicator does not predict the market and does not guarantee profitable trades. Signals can fail during ranging conditions, sudden news events, low liquidity or rapid reversals.

TradingView prices may differ from prices displayed by a broker or fixed-payout platform. Small differences can significantly affect short-duration trades.

Always test the indicator on historical data and a demo account before considering real-money trading. Past performance does not guarantee future results. Never risk money you cannot afford to lose.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.