OPEN-SOURCE SCRIPT
Gold 5M Confirmation Scalper

Gold 5M Confirmation Scalper
Short description
A Gold-focused 5-minute indicator built around higher-timeframe trendline breaks, supply/demand structure confirmation, optional EMA filtering, and attached TP/SL projection boxes. Designed to help traders identify cleaner confirmation-based setups while reducing repeated signals inside an active trade window.
Full description
Gold 5M Confirmation Scalper is a discretionary confirmation indicator designed specifically for Gold / XAUUSD on the 5-minute chart.
The script combines:
15-minute trendline structure
5-minute confirmation timing
Supply and demand zone breaks
Optional EMA-based trend filtering
Projected TP / SL boxes
Suppression of repeated confirmation signals during an active trade window
The goal is to avoid noisy raw triggers and instead highlight moments where multiple pieces of structure align.
How it works
The indicator looks for a trendline break and then checks whether that move is confirmed by a nearby supply/demand break of structure within a user-defined confirmation window.
It shows:
Diamond markers for raw trendline breaks
Small “c” markers for confirmed signals
TP / SL boxes attached to the confirmation marker
Trendlines, supply/demand zones, and optional EMA context
Core logic
A confirmed setup requires alignment between:
a valid trendline break
a nearby structure break
optional trend filter agreement
optional volume filter agreement
To reduce clutter, the script can also block another confirmation signal from printing while the previous trade-box window is still active.
Built for
Gold / XAUUSD
5-minute timeframe
traders who prefer confirmation over first-touch entries
traders who want a cleaner chart with structure-based context
Main features
Gold-focused 5m workflow
Fixed higher-timeframe trendline logic
Supply and demand zone generation
Break-of-structure confirmation
Optional EMA trend filter with customizable EMA length
Optional visible EMA filter line
Attached stop-loss and take-profit boxes
Repeated confirmation suppression inside active trade window
Cleaner, reordered settings for easier use
Marker guide
Diamond = raw trendline break
“c” marker = confirmed setup
TP / SL boxes = projected trade map from the confirmation candle
Best use
This indicator works best when used as a confirmation tool, not as a standalone automated system. It is designed to help with chart structure, timing, and trade mapping, while leaving final execution and risk decisions to the trader.
Notes
Optimized for Gold on 5m
Uses a 15m structure view for trendline logic
Signals may differ from what looks obvious visually, because confirmation is based on the script’s actual supply/demand box and break rules.
EMA Zones have been given to help trade with the trend.
This is an indicator, not a strategy or backtest engine
Disclaimer
This script is for educational and charting purposes only. It does not provide financial advice, trade recommendations, or guaranteed results. Always test any tool in replay or on demo before using it in live markets.
Short description
A Gold-focused 5-minute indicator built around higher-timeframe trendline breaks, supply/demand structure confirmation, optional EMA filtering, and attached TP/SL projection boxes. Designed to help traders identify cleaner confirmation-based setups while reducing repeated signals inside an active trade window.
Full description
Gold 5M Confirmation Scalper is a discretionary confirmation indicator designed specifically for Gold / XAUUSD on the 5-minute chart.
The script combines:
15-minute trendline structure
5-minute confirmation timing
Supply and demand zone breaks
Optional EMA-based trend filtering
Projected TP / SL boxes
Suppression of repeated confirmation signals during an active trade window
The goal is to avoid noisy raw triggers and instead highlight moments where multiple pieces of structure align.
How it works
The indicator looks for a trendline break and then checks whether that move is confirmed by a nearby supply/demand break of structure within a user-defined confirmation window.
It shows:
Diamond markers for raw trendline breaks
Small “c” markers for confirmed signals
TP / SL boxes attached to the confirmation marker
Trendlines, supply/demand zones, and optional EMA context
Core logic
A confirmed setup requires alignment between:
a valid trendline break
a nearby structure break
optional trend filter agreement
optional volume filter agreement
To reduce clutter, the script can also block another confirmation signal from printing while the previous trade-box window is still active.
Built for
Gold / XAUUSD
5-minute timeframe
traders who prefer confirmation over first-touch entries
traders who want a cleaner chart with structure-based context
Main features
Gold-focused 5m workflow
Fixed higher-timeframe trendline logic
Supply and demand zone generation
Break-of-structure confirmation
Optional EMA trend filter with customizable EMA length
Optional visible EMA filter line
Attached stop-loss and take-profit boxes
Repeated confirmation suppression inside active trade window
Cleaner, reordered settings for easier use
Marker guide
Diamond = raw trendline break
“c” marker = confirmed setup
TP / SL boxes = projected trade map from the confirmation candle
Best use
This indicator works best when used as a confirmation tool, not as a standalone automated system. It is designed to help with chart structure, timing, and trade mapping, while leaving final execution and risk decisions to the trader.
Notes
Optimized for Gold on 5m
Uses a 15m structure view for trendline logic
Signals may differ from what looks obvious visually, because confirmation is based on the script’s actual supply/demand box and break rules.
EMA Zones have been given to help trade with the trend.
This is an indicator, not a strategy or backtest engine
Disclaimer
This script is for educational and charting purposes only. It does not provide financial advice, trade recommendations, or guaranteed results. Always test any tool in replay or on demo before using it in live markets.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。