OPEN-SOURCE SCRIPT

ICT, OB & FVG 15m-4H

1 196
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.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.