OPEN-SOURCE SCRIPT
FVG & OB Quality Scorer

ICT FVG & OB Quality Scorer
Core idea: Not all Fair Value Gaps and Order Blocks are created equal. This indicator answers the question "Which FVG or Order Block will actually work?" by scoring every detected zone on 10 confluence pillars derived from ICT's (InnerCircleTrader) 2022–2024 Mentorship methodology.
How It Works
Every time an FVG or Order Block forms on the chart, the indicator runs it through a 10-factor scoring engine (each factor scored 0–10, total 0–100):
# Pillar What It Checks
❶ Displacement / CISD Was the move impulsive? Body > 70% of candle range = institutional candle. Also checks for Change in State of Delivery (close crossing prior candle's open).
❷ Liquidity Sweep Was BSL or SSL taken before the zone formed? Checks swing pivots, Prior Day High/Low, and IPDA 20-day levels.
❸ Premium / Discount Bullish zones in discount (< 50% of range) score high. Bearish zones in premium (> 50%) score high.
❹ Market Structure Is the zone aligned with the current trend (BOS)? With-trend = 10, counter-trend = 1.
❺ HTF Bias Does the Daily (configurable) candle direction agree with the zone? Misalignment = low probability.
❻ OTE Fibonacci Is the zone inside the 62%–79% Optimal Trade Entry retracement? The 70.5% "sweet spot" scores perfect 10.
❼ FVG + OB Overlap Is there a confluence zone where an FVG and Order Block exist at the same price level? This is ICT's highest-probability setup.
❽ Volume Was displacement volume above the 20-bar average? 3x+ average = clear institutional activity.
❾ Kill Zone Timing Formed during London KZ, NY AM KZ, or Silver Bullet windows? "Time supersedes price."
❿ Freshness First-touch zones score highest. Zones decay in score and fade in color as they age.
Grading Scale
Score Grade Meaning
86–100 S Elite — high conviction, full size
71–85 A/A+ Strong — tradeable with confirmation
51–70 B/B+ Above average — needs extra confluence
26–50 C/C+ Below average — watch only
0–25 D Weak — skip entirely
What You See On The Chart
Color-graded zones: Red (weak) → Orange → Gold → Green → Bright Green (elite)
FVGs = solid-border boxes labeled BISI / SIBI
Order Blocks = dashed-border boxes labeled +OB / -OB
CE line = dotted midline (Consequent Encroachment — ICT's 50% level)
MT line = solid midline on OBs (Mean Threshold — ICT's precision entry)
Score labels with letter grade — hover for full 10-pillar tooltip breakdown
Dashboard table ranking all active zones by score with market context (Structure, HTF Bias, Kill Zone status)
Zones fade in color as they age (freshness decay) and are removed/dimmed on mitigation
Key Settings
Min Score to Display — Set to 60+ to only see B+ and above (recommended for clean charts)
Mitigate On — Wick vs Close (ICT uses Close for higher conviction)
HTF Timeframe — Defaults to Daily; change to 4H for swing setups
IPDA Reference Lines — Toggle 20-day high/low institutional levels
Kill Zone sessions — All configurable in NY time
Core idea: Not all Fair Value Gaps and Order Blocks are created equal. This indicator answers the question "Which FVG or Order Block will actually work?" by scoring every detected zone on 10 confluence pillars derived from ICT's (InnerCircleTrader) 2022–2024 Mentorship methodology.
How It Works
Every time an FVG or Order Block forms on the chart, the indicator runs it through a 10-factor scoring engine (each factor scored 0–10, total 0–100):
# Pillar What It Checks
❶ Displacement / CISD Was the move impulsive? Body > 70% of candle range = institutional candle. Also checks for Change in State of Delivery (close crossing prior candle's open).
❷ Liquidity Sweep Was BSL or SSL taken before the zone formed? Checks swing pivots, Prior Day High/Low, and IPDA 20-day levels.
❸ Premium / Discount Bullish zones in discount (< 50% of range) score high. Bearish zones in premium (> 50%) score high.
❹ Market Structure Is the zone aligned with the current trend (BOS)? With-trend = 10, counter-trend = 1.
❺ HTF Bias Does the Daily (configurable) candle direction agree with the zone? Misalignment = low probability.
❻ OTE Fibonacci Is the zone inside the 62%–79% Optimal Trade Entry retracement? The 70.5% "sweet spot" scores perfect 10.
❼ FVG + OB Overlap Is there a confluence zone where an FVG and Order Block exist at the same price level? This is ICT's highest-probability setup.
❽ Volume Was displacement volume above the 20-bar average? 3x+ average = clear institutional activity.
❾ Kill Zone Timing Formed during London KZ, NY AM KZ, or Silver Bullet windows? "Time supersedes price."
❿ Freshness First-touch zones score highest. Zones decay in score and fade in color as they age.
Grading Scale
Score Grade Meaning
86–100 S Elite — high conviction, full size
71–85 A/A+ Strong — tradeable with confirmation
51–70 B/B+ Above average — needs extra confluence
26–50 C/C+ Below average — watch only
0–25 D Weak — skip entirely
What You See On The Chart
Color-graded zones: Red (weak) → Orange → Gold → Green → Bright Green (elite)
FVGs = solid-border boxes labeled BISI / SIBI
Order Blocks = dashed-border boxes labeled +OB / -OB
CE line = dotted midline (Consequent Encroachment — ICT's 50% level)
MT line = solid midline on OBs (Mean Threshold — ICT's precision entry)
Score labels with letter grade — hover for full 10-pillar tooltip breakdown
Dashboard table ranking all active zones by score with market context (Structure, HTF Bias, Kill Zone status)
Zones fade in color as they age (freshness decay) and are removed/dimmed on mitigation
Key Settings
Min Score to Display — Set to 60+ to only see B+ and above (recommended for clean charts)
Mitigate On — Wick vs Close (ICT uses Close for higher conviction)
HTF Timeframe — Defaults to Daily; change to 4H for swing setups
IPDA Reference Lines — Toggle 20-day high/low institutional levels
Kill Zone sessions — All configurable in NY time
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.