INVITE-ONLY SCRIPT
Fair Value Gap / iVFG / Imbalance / MTF Suite

Description
This indicator detects Fair Value Gaps (FVGs) and Imbalances across up to 10 user-selected timeframes and manages them with precise retest handling and clean visualization options.
What’s unique
3-candle FVG detection per timeframe (no lookahead).
Retest handling: on the first touch the touched edge snaps to the retest wick and the zone recolors (fresh → retested).
Right-side projection limits to avoid endless extensions.
Deterministic multi-TF overlay: HTF zones are computed independently (lookahead off) and drawn in a stable, priority-based order.
iFVG / parked zones: optionally convert a filled gap into an iFVG (parked/blue) instead of deleting/greying it.
Optional Imbalance Add-on (3-candle), with split halves + 50% midline.
How it works (technical)
FVG logic (3 candles):
Bullish when low[2] > high (gap up); Bearish when high[2] < low (gap down).
The created box spans the untraded range of candle B and starts at time[2].
Retest behavior:
On the first wick-touch, the nearest boundary adapts to the wick extreme. If enabled, the box recolors to a “retested” palette.
Projection:
Boxes extend to the right; optional bar limit constrains length.
Display limits:
FIFO pruning per direction keeps only the newest N boxes; iFVG/grey pools can share or use separate limits.
Imbalance Add-on (optional):
Classic 3-candle imbalance; draws upper/lower halves and an optional 50% midline.
No lookahead / confirmation:
Calculations run with barmerge.lookahead_off; detection finalizes on bar close (repaint-free on close).
How to use
Treat fresh gaps as potential reaction zones or confluence with liquidity / structure.
Use retested gaps for continuation or rejection logic.
Limit right-projection and visible count to keep charts readable on lower TFs.
Combine with your own execution rules (entries, stops, partials).
Key settings
General: adjust/recolor on retest, right-side limit (bars).
Display Limits: max visible per direction; separate iFVG cap if desired.
Visuals: filled vs. outline, transparency, TF labels (auto or custom), label alignment.
Theme: presets (Pegasus Classic, Icefire, Solarized, Heatmap, Pastel, Monochrome) or Custom colors.
Timeframes: enable up to 10 TF slots (e.g., M1/M5/M15/H1/H4/D1…).
Add-on — Imbalance: enable/disable, midline on/off, filled/outline, colors.
Alerts
New Bullish FVG
New Bearish FVG
Add-on: New Bullish Imbalance
Add-on: New Bearish Imbalance
Notes & limitations
FVG detection is confirmed on bar close; intrabar retest recolor can occur as price interacts.
Historical rendering depends on chart history & session settings.
Many TFs + large box counts can be heavy; use projection limits and display caps for performance.
This tool does not generate trade signals; it visualizes inefficiencies for discretionary or rules-based workflows.
Disclaimer
For educational and informational purposes only. Not financial advice.
Access / Support: Invite-only. For access or assistance, please DM.
This indicator detects Fair Value Gaps (FVGs) and Imbalances across up to 10 user-selected timeframes and manages them with precise retest handling and clean visualization options.
What’s unique
3-candle FVG detection per timeframe (no lookahead).
Retest handling: on the first touch the touched edge snaps to the retest wick and the zone recolors (fresh → retested).
Right-side projection limits to avoid endless extensions.
Deterministic multi-TF overlay: HTF zones are computed independently (lookahead off) and drawn in a stable, priority-based order.
iFVG / parked zones: optionally convert a filled gap into an iFVG (parked/blue) instead of deleting/greying it.
Optional Imbalance Add-on (3-candle), with split halves + 50% midline.
How it works (technical)
FVG logic (3 candles):
Bullish when low[2] > high (gap up); Bearish when high[2] < low (gap down).
The created box spans the untraded range of candle B and starts at time[2].
Retest behavior:
On the first wick-touch, the nearest boundary adapts to the wick extreme. If enabled, the box recolors to a “retested” palette.
Projection:
Boxes extend to the right; optional bar limit constrains length.
Display limits:
FIFO pruning per direction keeps only the newest N boxes; iFVG/grey pools can share or use separate limits.
Imbalance Add-on (optional):
Classic 3-candle imbalance; draws upper/lower halves and an optional 50% midline.
No lookahead / confirmation:
Calculations run with barmerge.lookahead_off; detection finalizes on bar close (repaint-free on close).
How to use
Treat fresh gaps as potential reaction zones or confluence with liquidity / structure.
Use retested gaps for continuation or rejection logic.
Limit right-projection and visible count to keep charts readable on lower TFs.
Combine with your own execution rules (entries, stops, partials).
Key settings
General: adjust/recolor on retest, right-side limit (bars).
Display Limits: max visible per direction; separate iFVG cap if desired.
Visuals: filled vs. outline, transparency, TF labels (auto or custom), label alignment.
Theme: presets (Pegasus Classic, Icefire, Solarized, Heatmap, Pastel, Monochrome) or Custom colors.
Timeframes: enable up to 10 TF slots (e.g., M1/M5/M15/H1/H4/D1…).
Add-on — Imbalance: enable/disable, midline on/off, filled/outline, colors.
Alerts
New Bullish FVG
New Bearish FVG
Add-on: New Bullish Imbalance
Add-on: New Bearish Imbalance
Notes & limitations
FVG detection is confirmed on bar close; intrabar retest recolor can occur as price interacts.
Historical rendering depends on chart history & session settings.
Many TFs + large box counts can be heavy; use projection limits and display caps for performance.
This tool does not generate trade signals; it visualizes inefficiencies for discretionary or rules-based workflows.
Disclaimer
For educational and informational purposes only. Not financial advice.
Access / Support: Invite-only. For access or assistance, please DM.
초대 전용 스크립트
이 스크립트는 작성자가 승인한 사용자만 접근할 수 있습니다. 사용하려면 요청을 보내고 승인을 받아야 합니다. 일반적으로 결제 후에 승인이 이루어집니다. 자세한 내용은 아래 작성자의 지침을 따르거나 Project_Pegasus에게 직접 문의하세요.
트레이딩뷰는 스크립트 작성자를 완전히 신뢰하고 스크립트 작동 방식을 이해하지 않는 한 스크립트 비용을 지불하거나 사용하지 않는 것을 권장하지 않습니다. 무료 오픈소스 대체 스크립트는 커뮤니티 스크립트에서 찾을 수 있습니다.
작성자 지시 사항
To request access, please send your TradingView username via DM (or Instagram: pegasus.project.official / Email: support@pegasus-indicators.com
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
초대 전용 스크립트
이 스크립트는 작성자가 승인한 사용자만 접근할 수 있습니다. 사용하려면 요청을 보내고 승인을 받아야 합니다. 일반적으로 결제 후에 승인이 이루어집니다. 자세한 내용은 아래 작성자의 지침을 따르거나 Project_Pegasus에게 직접 문의하세요.
트레이딩뷰는 스크립트 작성자를 완전히 신뢰하고 스크립트 작동 방식을 이해하지 않는 한 스크립트 비용을 지불하거나 사용하지 않는 것을 권장하지 않습니다. 무료 오픈소스 대체 스크립트는 커뮤니티 스크립트에서 찾을 수 있습니다.
작성자 지시 사항
To request access, please send your TradingView username via DM (or Instagram: pegasus.project.official / Email: support@pegasus-indicators.com
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.