OPEN-SOURCE SCRIPT
⚪ SILVER — RISK MATRIX + UQ vC (Final HUD)

Silver RISK MATRIX + UQ vC is an advanced Pine Script v5 indicator for silver futures (SIL) trading, featuring a 3-column bottom-right HUD combining a 7-factor risk matrix with UQ predictive scoring. It quantifies position, structure, trend conflicts, impulse, volume, fake breaks, and VWAP deviation into total risk levels (LOW/MEDIUM/HIGH) while fusing predictive BUY/SELL probabilities with directional risk and multi-timeframe trend boosts.
Risk Matrix Breakdown
Position Risk
Measures % distance to 18-period support/resistance: <0.10% resistance = high risk (🟥🟥), <0.25% = medium (🟧⬜), <0.10% support = safe (🟩⬜). Silver-tuned for tight proximity sensitivity.
Structure Risk
Detects pivot-based CHoCH conflicts (close breaks prior HH/HL but structure opposes) or fake breaks, scoring 2 for conflicts using tight 2-left/2-right pivots suited to silver's volatility.
Other Factors
Trend Conf: 5m vs 30m EMA40 mismatch (2 points).
Impulse: Body >1.2x 4-period EMA abs body (exhaustion).
Volume: >3.2x/2.2x 20-SMA thresholds for extreme/obvious surges.
Fake Break: Wick >1.2x body (top/bottom).
VWAP: >1.2%/0.6% deviation. Total ≥6=HIGH (red), ≥3=MEDIUM (orange).
UQ Predictive Engine
Base Prediction
Averages flow (OBV+price), momentum (RSI/MFI), VWAP, trend (EMA20/50), turbo (BB width expansion) into pred_buy/sell (0-1 normalized).
Directional Risk
BUY risk weights fakeUp wicks, impulse, bear vol, low position; SELL mirrors. Clamped 0-1.
Trend Boost
Adds 15% for 2H alignment, 10% for 30m, 5% for VWAP (directional).
Final Fusion
BUY_FINAL = 55% pred + 25% risk + 20% boost; normalized vs SELL counterpart. Displays blocks (🟩🟩🟩🟩=≥80%) and stars (⭐⭐⭐⭐⭐=≥85%).
HUD Layout & Usage
20-row table separates RISK MATRIX (rows 1-10) from UQ (11-18): metric | visual box/block | Chinese explanation. Perfect for silver's high-volatility scalping, balancing exhaustive risk scanning with probabilistic edge quantification. Ready in both English and Chinese
Risk Matrix Breakdown
Position Risk
Measures % distance to 18-period support/resistance: <0.10% resistance = high risk (🟥🟥), <0.25% = medium (🟧⬜), <0.10% support = safe (🟩⬜). Silver-tuned for tight proximity sensitivity.
Structure Risk
Detects pivot-based CHoCH conflicts (close breaks prior HH/HL but structure opposes) or fake breaks, scoring 2 for conflicts using tight 2-left/2-right pivots suited to silver's volatility.
Other Factors
Trend Conf: 5m vs 30m EMA40 mismatch (2 points).
Impulse: Body >1.2x 4-period EMA abs body (exhaustion).
Volume: >3.2x/2.2x 20-SMA thresholds for extreme/obvious surges.
Fake Break: Wick >1.2x body (top/bottom).
VWAP: >1.2%/0.6% deviation. Total ≥6=HIGH (red), ≥3=MEDIUM (orange).
UQ Predictive Engine
Base Prediction
Averages flow (OBV+price), momentum (RSI/MFI), VWAP, trend (EMA20/50), turbo (BB width expansion) into pred_buy/sell (0-1 normalized).
Directional Risk
BUY risk weights fakeUp wicks, impulse, bear vol, low position; SELL mirrors. Clamped 0-1.
Trend Boost
Adds 15% for 2H alignment, 10% for 30m, 5% for VWAP (directional).
Final Fusion
BUY_FINAL = 55% pred + 25% risk + 20% boost; normalized vs SELL counterpart. Displays blocks (🟩🟩🟩🟩=≥80%) and stars (⭐⭐⭐⭐⭐=≥85%).
HUD Layout & Usage
20-row table separates RISK MATRIX (rows 1-10) from UQ (11-18): metric | visual box/block | Chinese explanation. Perfect for silver's high-volatility scalping, balancing exhaustive risk scanning with probabilistic edge quantification. Ready in both English and Chinese
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน