XAUUSD Hybrid Scalper v2 Strategy for TradingView FREE
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:
- System 1 — SMA Crossover: fast (14) and slow (28) SMA crossover — classic Long/Short signals.
- System 2 — Hybrid Scalper: trend (EMA20 above EMA50), RSI crossover of level 50, strong candle and a session filter — more precise Buy/Sell signals.
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)
| Group | Parameter | Default |
|---|---|---|
| SMA | Fast / Slow SMA | 14 / 28 |
| EMA | Fast / Slow EMA (trend filter) | 20 / 50 |
| RSI | Length / crossover level | 14 / 50 |
| ATR | Length / SL mult / TP mult | 14 / 1.5 / 2.0 |
| Session | Trading session | 08:00–17:00 (GMT+0) |
| Size | Fixed lots | 0.10 (changeable) |
| Capital / fee | Initial capital / commission | $10,000 / 0.02% |
Sound Alerts & Display
- Sound alerts: for all entries and exits with symbol and price.
- Colored horizontal lines: Long/Short entries and EXL/EXS exits.
- Colored triangles: below/above candles for all 6 events.
- SL/TP lines: display of the open position's stop and target.
How to Add It to TradingView
- Download the Pine Script file from the link below.
- Open an XAUUSD chart in TradingView.
- Click Pine Editor at the bottom of the page.
- Copy the code into the editor (replace previous content).
- Click Add to chart.
- Review the strategy settings in the Settings tab.
- For backtesting, open the Strategy Tester tab.
- For alerts: right-click the strategy → Add alert → choose the alert options.
Download
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.
More MT5 Expert Advisors and robots → MQL5 Expert Home