OPEN-SOURCE SCRIPT
Aggiornato RSI Scalping Gold (XAUUSD) - v5

Displays the EMA9 and SMA20 to identify the trend.
Colors the area between the two averages to better visualize the equilibrium zone.
Displays green (buy) and red (sell) arrows aligned with the candles.
The RSI is calculated but hidden from the main chart (you can activate it by checking “Display on chart” in the settings).
Colors the area between the two averages to better visualize the equilibrium zone.
Displays green (buy) and red (sell) arrows aligned with the candles.
The RSI is calculated but hidden from the main chart (you can activate it by checking “Display on chart” in the settings).
Note di rilascio
What this version adds:Visible and offset arrows and labels → clearer across all timeframes.
SL/TP directly on the label for each signal.
EMA9/SMA20 zone with transparent sky blue background.
Automatic BUY/SELL alerts as soon as the signal appears.
RSI chart updated in real time.
Note di rilascio
Custom AlertsEach signal (BUY, SELL, VWAP touch) triggers:
an audio alert
a TradingView popup (via alertcondition() + alert()).
You can then go to "Create an alert" → choose the script → select:
BUY Signal
SELL Signal
VWAP Touch Volume
Note di rilascio
XAUUSD RSI Scalping + VWAP + SMA200 - v6 Enhanced🎯 Strategy Overview
This strategy combines the power of RSI, trend confirmation from EMA/SMA, and precision of VWAP, to identify high-probability entry and exit zones on Gold (XAUUSD).
It’s specifically designed for scalping and intraday trading, with dynamic risk management through the ATR.
The goal is clear:
➡️ Trade only in the direction of the trend,
➡️ Exit before momentum fades,
➡️ And maintain dynamic SL/TP levels using volatility.
⚙️ Technical Components
🔹 Main Indicators
RSI (14) → detects overbought (>70) / oversold (<30) levels.
EMA 9 → short-term price impulse.
SMA 20 → short-term market structure.
SMA 200 → confirms the global trend.
VWAP → institutional volume-weighted mean price.
ATR (14) → defines Stop Loss / Take Profit zones dynamically.
🧠 Trading Logic
🟢 BUY Conditions
RSI crosses above 30,
Price above EMA9,
EMA9 > SMA20,
Price above SMA200 (uptrend confirmed).
📈 → A green BUY triangle appears under the candle with ATR-based SL/TP labels.
🔴 SELL Conditions
RSI crosses below 70,
Price below EMA9,
EMA9 < SMA20,
Price below SMA200 (downtrend confirmed).
📉 → A red SELL triangle appears above the candle with ATR-based SL/TP labels.
⚪ Exit Conditions
Exit Long → when RSI drops below 70 or EMA9 crosses under SMA20.
Exit Short → when RSI rises above 30 or EMA9 crosses over SMA20.
💡 You can easily rename “Exit Long” / “Exit Short” to “Close Long” / “Close Short” in the code for English labeling.
💥 Advanced Features
EMA9/SMA20 zone → blue shaded area showing short-term structure.
EMA9/VWAP zone → turns green (bullish) or red (bearish) to visualize momentum strength.
VWAP Touch + Volume Filter →
When price touches VWAP with volume above 1.2× average, a yellow label appears:
💥 “VWAP Touch Confirmed – Volume Spike”, signaling institutional reactions.
Built-in Alerts:
🚀 BUY Signal
🔻 SELL Signal
💥 VWAP Touch with Volume Confirmation
📊 RSI Dashboard
A small RSI panel in the top-right corner:
🟢 Green → RSI below 30 (oversold)
🟠 Orange → neutral
🔴 Red → RSI above 70 (overbought)
🧩 Customization Options
Adjust RSI, EMA, SMA, and ATR lengths in the settings.
Modify ATR multipliers for your preferred SL/TP ratio.
Tune RSI sensitivity for other assets (indices, forex, etc.).
Customize labels or alert messages for your trading style.
⚠️ Disclaimer
This script is for educational purposes only.
It is not financial advice.
Always test on a demo account before applying to live markets.
Past performance does not guarantee future results.
💬 Recommended Usage
Timeframes: 1min to 15min (scalping), up to 1H (intraday).
Asset: XAUUSD CFD (Gold).
Combine with volume analysis and London/New York sessions for better accuracy.
✨ Author: [Your Name or Alias]
📌 Version: v6 Enhanced (RSI + VWAP + EMA/SMA + ATR SL/TP)
🛠️ Optimized for Gold scalping traders seeking structured and visual momentum confirmation.
Note di rilascio
CorrectifNote di rilascio
correctifNote di rilascio
newNote di rilascio
CorrectifNote di rilascio
correctifNote di rilascio
UpdateNote di rilascio
updateNote di rilascio
updateNote di rilascio
updateNote di rilascio
updateNote di rilascio
XAUUSD Precision Scalper Pro (RSI + VWAP) — Description & Release Notes (EN)Overview
XAUUSD Precision Scalper Pro is a Pine v6 indicator built for M3/M5 gold scalping (CFD). It blends a tunable RSI, EMA9/SMA20 structure, VWAP, and SMA200, with an intelligent volume filter (RVOL & optional Z-Score), killzone modulation (London/NY), and prioritized, instant alerts. Goal: filtered entries, anticipatory exits, and clean intraday signals.
Key Features
1) Configurable RSI
Adjustable RSI Length and Overbought/Oversold thresholds (e.g., 80/20).
Entries
Long: crossover(RSI, RSI_OS) + bullish structure (price > EMA9 > SMA20 & > SMA200).
Short: crossunder(RSI, RSI_OB) + bearish structure.
2) Multi-MA trend structure
Plots EMA9 / SMA20 with a filled EMA9–SMA20 zone (momentum read).
SMA200 for higher-timeframe bias + crossover alerts.
3) Advanced VWAP
Configurable anchor, offset, and source.
Dynamic color: green if price > VWAP, red if price < VWAP.
EMA9/VWAP zone fill: 🟦 bullish / 🟧 bearish.
VWAP Touch event with a volume gate.
4) “Intelligent” Volume Filter
RVOL = volume / SMA(volume, len) with adjustable length.
RVOL threshold: auto (M3=1.30, else 1.20) or manual.
Optional Volume Z-Score to detect true flow spikes (custom length & σ threshold).
Killzone modulation (Europe/Brussels base):
Looser thresholds in London (08:00–11:00) and New York (13:00–16:00),
Stricter outside these sessions (all deltas configurable).
Switch: “Apply volume filter only in Killzones” to enforce volume gating only during London/NY.
5) Exits & Trade Management
Exits fire on RSI (70/30 by default) OR EMA9/SMA20 cross.
Option: restrict exits to the London–New York overlap (historically the highest liquidity window).
Labels for SL/TP & Exits.
Optional ATR-based SL/TP (custom multipliers).
6) RSI Panel & Clean UI
RSI mini-table (live value with contextual coloring).
Tidy parameter groups (Volume, Killzones, VWAP, Alerts, etc.).
7) Alerts — two complementary modes
Static alertcondition() hooks (BUY, SELL, EXIT, VWAP, SMA200 Bull/Bear).
Runtime automatic alerts (intrabar, once_per_bar) with priority:
exitShort → 2) exitLong → 3) VWAP Touch → 4) SMA200 Bull → 5) SMA200 Bear
Tuned for M3, max 1 alert per bar via an internal lock.
Important Settings (quick list)
RSI: length, OB/OS.
MAs: EMA9, SMA20, SMA200.
ATR: length, SL/TP multipliers.
VWAP: show, source, anchor, offset (auto color by price relation).
Volume:
Volume MA Length (e.g., 20),
RVOL threshold (auto or manual),
optional Z-Score (len & σ),
Killzone modulation (in/out deltas),
Apply volume filter only in Killzones (toggle).
Killzones / Exits:
Restrict exits to London–NY overlap (toggle).
Best Practices
Timeframe: start on M3 (optimized intrabar alerts). Use M5 if you prefer smoother action.
Entries: wait for confluence (RSI trigger + EMA structure + volume OK).
VWAP Touch: use primarily as context (rejection/confluence), not a stand-alone signal.
Killzones: London and New York sessions generally offer the cleanest liquidity and ranges.
Volume tuning: begin with auto RVOL, then adjust by ±0.05 to balance quantity vs. quality.
Exit overlap: enabling the London–NY overlap restriction helps avoid exits during thin periods.
Release Notes
v1.0 — “Precision Scalper Pro”
New: Auto RVOL (M3=1.30 / else 1.20) + manual override.
New: optional Volume Z-Score for true flow spikes.
New: Killzone modulation (looser in London/NY, stricter outside).
New: “Apply volume filter only in Killzones” toggle.
New: option to restrict exits to the London–NY overlap (high-liquidity window).
Improvements:
VWAP with dynamic color (green/red).
Instant runtime alerts (intrabar) with priority and 1 per bar.
EMA9/VWAP zone fill for fast intraday bias read.
QoL: SL/TP labels, RSI mini-panel, organized input groups.
Notes & Limits
On CFDs, “volume” is often tick volume: RVOL (ratio) and Z-Score were chosen to make filtering robust across brokers.
Runtime alerts are great for live feedback, but if you need persistent server-side notifications across sessions, also set up alertcondition() alerts in TradingView.
Killzones rely on Europe/London and America/New_York time zones to respect DST automatically.
Quick Start (Recommended)
Use M3.
Enable Auto RVOL, set Volume MA Length = 20.
Keep Z-Score OFF at first.
Turn Killzone modulation ON; keep “Apply volume filter only in Killzones” OFF initially.
Set Restrict exits to London–NY overlap to ON if you trade primarily during peak hours.
(Optional) Create two server-side alerts via alertcondition(): EXIT LONG & EXIT SHORT (Once per bar / open-ended).
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.