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 อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน