OPEN-SOURCE SCRIPT
Gold Prime

Gold Sniper — Liquidity Sweep + RSI Divergence
A dual-strategy precision trading system built for XAU/USD on 5-minute charts, combining two of the highest-performing intraday edges: institutional liquidity sweeps (ICT/Smart Money concepts) and RSI divergence scalping.
The Two Engines
Liquidity Sweep Reversal — Detects when price breaks above a session high or below a session low, then reverses back inside the range. This is the classic "stop hunt" pattern where large players trigger retail stops before moving in the opposite direction. Entries fire on confirmed reversal candles with stops placed beyond the sweep wick and a 2:1 reward-to-risk target.
RSI Divergence Scalp — Spots bullish divergence (price makes a lower low but RSI makes a higher low) and bearish divergence (price higher high, RSI lower high) for quick mean-reversion entries during active sessions. Uses ATR-based stops for volatility-adaptive risk management with a 1.5:1 reward-to-risk target.
Confluence Signals
When both strategies fire in the same direction simultaneously, the script marks it with a gold diamond ⚡ — these are the highest-probability setups where smart-money positioning aligns with momentum exhaustion.
Features
Session filter for London/NY hours (08:00–20:00 UTC by default) — background dims during off-hours
Automatic SL/TP lines drawn on chart with price labels at each signal
Live dashboard (top-right) showing RSI, ATR, sweep levels, session status, daily trade count, and current position
Built-in strategy tester — view equity curve, win rate, profit factor, and full trade list in the Strategy Tester tab
8 alert conditions including separate Buy/Sell alerts for each strategy plus confluence alerts
Configurable max daily trades, trade direction filter (long/short/both), and risk per trade
All parameters adjustable via settings — no code editing needed
Recommended Setup
Instrument: XAU/USD (gold)
Timeframe: 5-minute
Session: London + NY overlap (08:00–20:00 UTC)
Risk per trade: 0.5–1% of account
Max daily trades: 10
How to Read the Chart
Green triangles ▲ — Liquidity Sweep BUY
Red triangles ▼ — Liquidity Sweep SELL
Purple circles — RSI Divergence signals
Gold diamonds ⚡ — Confluence (highest conviction)
Red dashed lines — Stop loss levels
Green dashed lines — Take profit levels
Step lines — Running session high/low being tracked
Important Notes
This script is for educational and analytical purposes. Signals are based on historical patterns — past performance does not guarantee future results. Always demo-test with your specific broker, spreads, and execution conditions before risking real capital. Gold is volatile and leveraged trading can result in rapid losses. Not financial advice.
A dual-strategy precision trading system built for XAU/USD on 5-minute charts, combining two of the highest-performing intraday edges: institutional liquidity sweeps (ICT/Smart Money concepts) and RSI divergence scalping.
The Two Engines
Liquidity Sweep Reversal — Detects when price breaks above a session high or below a session low, then reverses back inside the range. This is the classic "stop hunt" pattern where large players trigger retail stops before moving in the opposite direction. Entries fire on confirmed reversal candles with stops placed beyond the sweep wick and a 2:1 reward-to-risk target.
RSI Divergence Scalp — Spots bullish divergence (price makes a lower low but RSI makes a higher low) and bearish divergence (price higher high, RSI lower high) for quick mean-reversion entries during active sessions. Uses ATR-based stops for volatility-adaptive risk management with a 1.5:1 reward-to-risk target.
Confluence Signals
When both strategies fire in the same direction simultaneously, the script marks it with a gold diamond ⚡ — these are the highest-probability setups where smart-money positioning aligns with momentum exhaustion.
Features
Session filter for London/NY hours (08:00–20:00 UTC by default) — background dims during off-hours
Automatic SL/TP lines drawn on chart with price labels at each signal
Live dashboard (top-right) showing RSI, ATR, sweep levels, session status, daily trade count, and current position
Built-in strategy tester — view equity curve, win rate, profit factor, and full trade list in the Strategy Tester tab
8 alert conditions including separate Buy/Sell alerts for each strategy plus confluence alerts
Configurable max daily trades, trade direction filter (long/short/both), and risk per trade
All parameters adjustable via settings — no code editing needed
Recommended Setup
Instrument: XAU/USD (gold)
Timeframe: 5-minute
Session: London + NY overlap (08:00–20:00 UTC)
Risk per trade: 0.5–1% of account
Max daily trades: 10
How to Read the Chart
Green triangles ▲ — Liquidity Sweep BUY
Red triangles ▼ — Liquidity Sweep SELL
Purple circles — RSI Divergence signals
Gold diamonds ⚡ — Confluence (highest conviction)
Red dashed lines — Stop loss levels
Green dashed lines — Take profit levels
Step lines — Running session high/low being tracked
Important Notes
This script is for educational and analytical purposes. Signals are based on historical patterns — past performance does not guarantee future results. Always demo-test with your specific broker, spreads, and execution conditions before risking real capital. Gold is volatile and leveraged trading can result in rapid losses. Not financial advice.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.