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
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。