INVITE-ONLY SCRIPT

FVG / Imbalance MTF Pro (4 HTFs + Alerts) - (@JP7FX)

150
FVG / Imbalance MTF Pro (jp7fx)

This indicator finds and plots Fair Value Gaps across up to four higher timeframes on a single chart. It shows them as lines, zones, 50 percent levels and labels, and can fire alerts when new gaps form or when price mitigates them.

Core logic
The script detects bullish and bearish FVGs using the classic three candle logic:
• Bullish FVG when high[2] is below the current low.
• Bearish FVG when low[2] is above the current high.

All logic runs on the selected higher timeframes through request.security, then projects the zones down onto your current chart timeframe. The script also checks that your chart timeframe is equal to or lower than the selected HTFs so the plots stay meaningful.

Multi timeframe control
You can configure up to four separate FVG layers: TF1, TF2, TF3 and TF4.
For each TF you can choose:
• Timeframe (or link it to the chart).
• Display mode, Lines and Zones, Zones Only, Lines Only, or Disable.
• Whether to show the 50 percent line.
• Whether to show a label with the TF name next to each FVG.

Inputs also convert the timeframe into minutes and hours so labels can show clear tags such as “15m”, “1h” and so on.

Visuals per timeframe
For every timeframe you can set:
• Entry and stop FVG line colours.
• 50 percent line colour and line style.
• Bullish and bearish zone fill colours.
• Separate colours for mitigated bullish and mitigated bearish zones.
• Label text colours for demand and supply.

Each FVG can draw:
• Two lines for the “entry” and “stop” edges of the gap.
• An optional 50 percent line through the zone.
• A shaded box that tracks the zone as price trades into it.
• A label that shows the originating timeframe.

Line and zone behaviour
Global settings let you control:

• Maximum number of FVG lines and zones kept on the chart.
• Line style for FVG edges and 50 percent lines.
• Whether lines and zones extend to the right.
• Whether zones update with price movement as price trades deeper.
• Whether the zone colour changes once the FVG has been mitigated.
• Label offset so you can push the TF labels to the right of price.
• An option to avoid overlapping zones per timeframe by checking for box overlap.

The script uses arrays of lines, boxes and labels for each TF and for demand and supply separately. It removes the oldest objects once the max count is hit and deletes or recolours zones when price reaches them.

Bar colouring
You can optionally colour the bar that creates the chart timeframe FVG.
• Bullish FVG origin bar can show as green.
• Bearish FVG origin bar can show as red.

Alerts
The indicator exposes alertcondition signals for both creation and mitigation. For each timeframe it supports:
• FVG zone created, bullish or bearish.
• Bullish FVG mitigated.
• Bearish FVG mitigated.

You choose the alert pack per TF through the inputs, then set the alert from the chart by right clicking the indicator and adding an alert.

Use case
This tool is for traders who map and trade Fair Value Gaps across multiple higher timeframes and want clean, configurable MTF FVG zones with clear labels, mitigation behaviour and alerts all in one script.

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.