OPEN-SOURCE SCRIPT
Gold Sniper (Liquidity Sweep)

Concept: Stop Hunting the "Smart Money" Way Most traders lose money because they enter exactly where "Smart Money" is looking to trigger Stop Losses. We have all been there: You buy at support, the price dips just below your stop loss, takes you out, and then rockets up without you.
Gold Sniper is designed to capitalize on this exact behavior. Instead of buying the support, this script waits for the Liquidity Sweep (the "Stop Hunt"). It identifies when price breaks a key structure level to trap sellers, and signals an entry only when the price reclaims that level with momentum.
How It Works (The Logic) This indicator looks for a specific "Perfect Storm" setup using a 4-step confirmation process:
Identifies Support (Yellow Dots): It tracks local pivot lows (default 10 bars) to visualize the "Floor" where retail traders likely have their stop losses.
Detects the Sweep: It waits for price to drop below these yellow dots. This is the "Trap" phase where liquidity is grabbed.
Confirms the Reclaim: It does NOT catch the falling knife. It waits for a candle to close back ABOVE the broken support level.
Momentum Check (RSI): It ensures internal strength (RSI) is rising compared to the previous low, confirming that the drop was a trap, not a genuine crash.
Visual Features
Yellow Dots: Dynamic Support Levels / Pivot Lows.
"SWEEP BUY" Label: Signals exactly when the trap is complete and the reclaim has occurred.
Red Line (Hard Stop): Automatically draws a Stop Loss level at the lowest point of the sweep candle.
How to Use This Strategy
Wait for the Setup: Do not trade if price is just drifting. Wait for price to challenge and break the Yellow Dots.
The Trigger: Enter immediately on the Close of the candle with the "SWEEP BUY" label.
Stop Loss: Place your Hard Stop at the Red Line provided by the indicator.
Rule: If price touches the Red Line, the setup has failed (it was a real crash, not a sweep). Exit immediately.
Best Timeframes: Optimized for 1-Minute and 5-Minute scalping on Gold (XAUUSD) and Futures, but works on all liquid assets.
Settings
Pivot Lookback: How many bars back to check for the support floor (Default: 10).
RSI Length: Sensitivity of the momentum filter (Default: 14).
Disclaimer: This tool is for educational purposes and market analysis only. It identifies high-probability "Liquidity Sweep" setups but does not guarantee future results. Always manage your risk.
Gold Sniper is designed to capitalize on this exact behavior. Instead of buying the support, this script waits for the Liquidity Sweep (the "Stop Hunt"). It identifies when price breaks a key structure level to trap sellers, and signals an entry only when the price reclaims that level with momentum.
How It Works (The Logic) This indicator looks for a specific "Perfect Storm" setup using a 4-step confirmation process:
Identifies Support (Yellow Dots): It tracks local pivot lows (default 10 bars) to visualize the "Floor" where retail traders likely have their stop losses.
Detects the Sweep: It waits for price to drop below these yellow dots. This is the "Trap" phase where liquidity is grabbed.
Confirms the Reclaim: It does NOT catch the falling knife. It waits for a candle to close back ABOVE the broken support level.
Momentum Check (RSI): It ensures internal strength (RSI) is rising compared to the previous low, confirming that the drop was a trap, not a genuine crash.
Visual Features
Yellow Dots: Dynamic Support Levels / Pivot Lows.
"SWEEP BUY" Label: Signals exactly when the trap is complete and the reclaim has occurred.
Red Line (Hard Stop): Automatically draws a Stop Loss level at the lowest point of the sweep candle.
How to Use This Strategy
Wait for the Setup: Do not trade if price is just drifting. Wait for price to challenge and break the Yellow Dots.
The Trigger: Enter immediately on the Close of the candle with the "SWEEP BUY" label.
Stop Loss: Place your Hard Stop at the Red Line provided by the indicator.
Rule: If price touches the Red Line, the setup has failed (it was a real crash, not a sweep). Exit immediately.
Best Timeframes: Optimized for 1-Minute and 5-Minute scalping on Gold (XAUUSD) and Futures, but works on all liquid assets.
Settings
Pivot Lookback: How many bars back to check for the support floor (Default: 10).
RSI Length: Sensitivity of the momentum filter (Default: 14).
Disclaimer: This tool is for educational purposes and market analysis only. It identifies high-probability "Liquidity Sweep" setups but does not guarantee future results. Always manage your risk.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。