OPEN-SOURCE SCRIPT
ICT, OB & FVG 15m-4H

Title:
ICT OB + FVG Multi-Timeframe (15m and 4H)
Description:
This indicator is designed for ICT-style price delivery analysis, automatically plotting Order Blocks (OB) and Fair Value Gaps (FVG) from the 15-minute and 4-hour timeframes on your chart.
It is built to help you identify high-probability reaction zones, track gap structure, and monitor mitigation behavior in a visual and structured way.
What this indicator does:
Detects bullish and bearish FVGs on 15m and 4H
Detects bullish and bearish OBs on 15m and 4H
Draws OB zones using candle body only (open/close), ignoring wicks
Draws FVG internal levels:
0.5 (green)
0.618 (red)
0.705 (red)
0.79 (yellow)
Displays live price labels for each FVG level
Adds timeframe tag (15m or 4H) on each FVG
Keeps FVG boundaries fixed once created
Removes FVG only when a confirmed close on its own timeframe fully mitigates the gap
Supports real-time intrabar 15m FVG detection when using lower chart timeframes (for example 1m/5m)
Uses separate active limits for 15m OBs and 4H OBs to avoid one timeframe deleting the other
How mitigation works:
OB mitigation:
Bullish OB is mitigated when close breaks below the OB body
Bearish OB is mitigated when close breaks above the OB body
FVG mitigation:
FVG remains valid until a confirmed candle close on the same source timeframe closes beyond the full gap boundary
Inputs:
Show/hide OB 15m and OB 4H
Show/hide FVG 15m and FVG 4H
Custom colors for OB and FVG zones
Maximum active FVGs
Maximum active OBs for 15m
Maximum active OBs for 4H
OB and FVG mitigation toggles
Best use:
Intraday and swing structure mapping
Liquidity and rebalance targeting
Confluence-based execution planning with ICT concepts
Disclaimer:
This tool is for technical analysis and educational purposes only. It does not provide financial advice or trade signals. Always use your own risk management and confirmation process.
ICT OB + FVG Multi-Timeframe (15m and 4H)
Description:
This indicator is designed for ICT-style price delivery analysis, automatically plotting Order Blocks (OB) and Fair Value Gaps (FVG) from the 15-minute and 4-hour timeframes on your chart.
It is built to help you identify high-probability reaction zones, track gap structure, and monitor mitigation behavior in a visual and structured way.
What this indicator does:
Detects bullish and bearish FVGs on 15m and 4H
Detects bullish and bearish OBs on 15m and 4H
Draws OB zones using candle body only (open/close), ignoring wicks
Draws FVG internal levels:
0.5 (green)
0.618 (red)
0.705 (red)
0.79 (yellow)
Displays live price labels for each FVG level
Adds timeframe tag (15m or 4H) on each FVG
Keeps FVG boundaries fixed once created
Removes FVG only when a confirmed close on its own timeframe fully mitigates the gap
Supports real-time intrabar 15m FVG detection when using lower chart timeframes (for example 1m/5m)
Uses separate active limits for 15m OBs and 4H OBs to avoid one timeframe deleting the other
How mitigation works:
OB mitigation:
Bullish OB is mitigated when close breaks below the OB body
Bearish OB is mitigated when close breaks above the OB body
FVG mitigation:
FVG remains valid until a confirmed candle close on the same source timeframe closes beyond the full gap boundary
Inputs:
Show/hide OB 15m and OB 4H
Show/hide FVG 15m and FVG 4H
Custom colors for OB and FVG zones
Maximum active FVGs
Maximum active OBs for 15m
Maximum active OBs for 4H
OB and FVG mitigation toggles
Best use:
Intraday and swing structure mapping
Liquidity and rebalance targeting
Confluence-based execution planning with ICT concepts
Disclaimer:
This tool is for technical analysis and educational purposes only. It does not provide financial advice or trade signals. Always use your own risk management and confirmation process.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.