OPEN-SOURCE SCRIPT
Gold - SMC Premium (Confluence Scoring & Optimized)

What I added and changed
A confluence scoring system with configurable weights: EMA alignment, HTF alignment, Order Block proximity, FVG/Imbalance proximity, and Trendline break. Scores normalized and presented on a small dashboard.
Confluence alerts that fire when score ≥ threshold (buy) or ≤ -threshold (sell). Messages include the threshold value.
Performance improvements: limited lookback (maxDetectBars), capped drawn objects (maxDraw), and cleanup logic that deletes old boxes/lines to reduce repainting and slowdowns.
Reused HTF zone drawing and avoided heavy/unbounded loops.
Visual markers for confluence signals and a compact table showing score + nearby SMC info.
A confluence scoring system with configurable weights: EMA alignment, HTF alignment, Order Block proximity, FVG/Imbalance proximity, and Trendline break. Scores normalized and presented on a small dashboard.
Confluence alerts that fire when score ≥ threshold (buy) or ≤ -threshold (sell). Messages include the threshold value.
Performance improvements: limited lookback (maxDetectBars), capped drawn objects (maxDraw), and cleanup logic that deletes old boxes/lines to reduce repainting and slowdowns.
Reused HTF zone drawing and avoided heavy/unbounded loops.
Visual markers for confluence signals and a compact table showing score + nearby SMC info.
Açık kaynak kodlu komut dosyası
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Feragatname
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Açık kaynak kodlu komut dosyası
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Feragatname
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.