XAUUSD Hybrid Scalper v2 Strategy for TradingView FREE

Published: August 17, 2026 | Category: Free Strategy

If you trade on TradingView and are looking for a free strategy for the gold market, "XAUUSD Hybrid Scalper v2" is a great option. It is written in Pine Script version 6 and is completely free (MPL 2.0 license).

What Is This Strategy?

XAUUSD Hybrid Scalper v2 is a hybrid strategy that runs two independent trading systems together:

How It Works

Long entry (SMA system): fast SMA crosses above the slow SMA.

Short entry (SMA system): fast SMA crosses below the slow SMA.

Buy (hybrid): EMA20 > EMA50 + RSI crosses above 50 + strong bullish candle + inside the session.

Sell (hybrid): EMA20 < EMA50 + RSI crosses below 50 + strong bearish candle + inside the session.

Exit: Stop Loss 1.5 × ATR and Take Profit 2.0 × ATR (ATR period: 14).

Inputs (Settings)

GroupParameterDefault
SMAFast / Slow SMA14 / 28
EMAFast / Slow EMA (trend filter)20 / 50
RSILength / crossover level14 / 50
ATRLength / SL mult / TP mult14 / 1.5 / 2.0
SessionTrading session08:00–17:00 (GMT+0)
SizeFixed lots0.10 (changeable)
Capital / feeInitial capital / commission$10,000 / 0.02%

Sound Alerts & Display

How to Add It to TradingView

  1. Download the Pine Script file from the link below.
  2. Open an XAUUSD chart in TradingView.
  3. Click Pine Editor at the bottom of the page.
  4. Copy the code into the editor (replace previous content).
  5. Click Add to chart.
  6. Review the strategy settings in the Settings tab.
  7. For backtesting, open the Strategy Tester tab.
  8. For alerts: right-click the strategy → Add alert → choose the alert options.
⚠️ Note: the default size is 0.10 lots and can be changed in Properties (Settings). Always backtest and demo before live trading.

Download

📥 Download XAUUSD Hybrid Scalper v2 (.pine) — Free

Conclusion

This free strategy is ideal for TradingView users looking for a simple but complete system (alerts, lines and triangles) on gold. Please read the risk warning below before use.

Disclaimer: this strategy is provided free "as is" with no guarantee of profitability. Trading financial markets involves the risk of losing capital.

More MT5 Expert Advisors and robots → MQL5 Expert Home