PINE LIBRARY

TCD_scoring_lib_v2

99
Scoring engine for TCD (Trade Consistent & Disciplined).

Takes data from all library modules across 4 timeframes and produces:
- **BUY/SELL scores (0-10):** Multi-timeframe trend alignment scoring
- **CT Buy/Sell scores (0-18):** Counter-trend exhaustion scoring with stretched, structural, and completion signals
- **Trade recommendations:** Scalp (with-trend and counter-trend) and Swing setups with specific entry, stop loss, T1, and T2 levels
- **Validation pipeline:** Direction clamping, SL sanity checks, target hit cascading, proximity filtering, and R:R computation

Pure functions only — no `request.security()` calls. All timeframe data is passed in from the main indicator.

Used by: TCD - Trade Consistent & Disciplined (indicator)

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน