OPEN-SOURCE SCRIPT
Cập nhật TRI - Multi-Timeframe FVG

TRI - MULTI-TIMEFRAME FAIR VALUE GAPS v1.0.0
DESCRIPTION:
Advanced multi-timeframe Fair Value Gap (FVG) indicator that displays FVG zones from higher timeframes
on your current chart. Supports automatic or manual timeframe selection with comprehensive visualization
and alert system.
KEY FEATURES:
HOW IT WORKS:
A Fair Value Gap (FVG) is detected when there's a 3-candle pattern with a gap between candle 1 and
candle 3, indicating institutional order flow imbalances. Bullish FVG occurs when candle 3's low is
above candle 1's high (gap up), creating a demand zone shown in green. Bearish FVG occurs when candle
3's high is below candle 1's low (gap down), creating a supply zone shown in red.
The indicator uses request.security() to fetch data from the selected higher timeframe, detects FVG
patterns on that timeframe, and displays them on your current chart. FVG zones remain active until
price closes through them (mitigation), then change color and remain visible for a configurable
number of bars before disappearing.
TIMEFRAME CONFIGURATION:
Configure different FVG timeframes based on current chart timeframe:
All timeframes are configurable via input settings.
BEST USE:
Works on all timeframes and asset classes. Particularly useful for intraday traders who want to see
higher timeframe FVG zones on their lower timeframe charts. FVG zones often act as support/resistance
and are frequently filled by price returning to rebalance the imbalance. Use them to identify potential
entry/exit points, stop-loss placement, and institutional order flow areas.
DESCRIPTION:
Advanced multi-timeframe Fair Value Gap (FVG) indicator that displays FVG zones from higher timeframes
on your current chart. Supports automatic or manual timeframe selection with comprehensive visualization
and alert system.
KEY FEATURES:
- Multi-timeframe FVG detection - view FVG from any higher timeframe
- Automatic timeframe selection - configure different FVG timeframes for each chart timeframe
- Automatic mitigation detection - zones change color when price mitigates them
- Configurable FVG threshold - filter out small gaps
- Customizable visualization - colors, borders, labels, text colors
- Smart zone inclusion - larger zones automatically remove smaller included zones
- Memory efficient - automatic cleanup of expired zones
HOW IT WORKS:
A Fair Value Gap (FVG) is detected when there's a 3-candle pattern with a gap between candle 1 and
candle 3, indicating institutional order flow imbalances. Bullish FVG occurs when candle 3's low is
above candle 1's high (gap up), creating a demand zone shown in green. Bearish FVG occurs when candle
3's high is below candle 1's low (gap down), creating a supply zone shown in red.
The indicator uses request.security() to fetch data from the selected higher timeframe, detects FVG
patterns on that timeframe, and displays them on your current chart. FVG zones remain active until
price closes through them (mitigation), then change color and remain visible for a configurable
number of bars before disappearing.
TIMEFRAME CONFIGURATION:
Configure different FVG timeframes based on current chart timeframe:
- 1m-5m charts → Default 4h FVG
- 15m charts → Default 4h FVG
- 30m-1h charts → Default 4h FVG
- 4h charts → Default 4h FVG
- Daily charts → Default Daily FVG
- Weekly charts → Default Weekly FVG
- Monthly charts → Default Monthly FVG
All timeframes are configurable via input settings.
BEST USE:
Works on all timeframes and asset classes. Particularly useful for intraday traders who want to see
higher timeframe FVG zones on their lower timeframe charts. FVG zones often act as support/resistance
and are frequently filled by price returning to rebalance the imbalance. Use them to identify potential
entry/exit points, stop-loss placement, and institutional order flow areas.
Phát hành các Ghi chú
TRI - MULTI-TIMEFRAME FAIR VALUE GAPS v1.0.0DESCRIPTION:
Advanced multi-timeframe Fair Value Gap (FVG) indicator that displays FVG zones from higher timeframes
on your current chart. Supports automatic or manual timeframe selection with comprehensive visualization
and alert system.
KEY FEATURES:
- Multi-timeframe FVG detection - view FVG from any higher timeframe
- Automatic timeframe selection - configure different FVG timeframes for each chart timeframe
- Automatic mitigation detection - zones change color when price mitigates them
- Configurable FVG threshold - filter out small gaps
- Customizable visualization - colors, borders, labels, text colors
- Smart zone inclusion - larger zones automatically remove smaller included zones
- Memory efficient - automatic cleanup of expired zones
HOW IT WORKS:
A Fair Value Gap (FVG) is detected when there's a 3-candle pattern with a gap between candle 1 and
candle 3, indicating institutional order flow imbalances. Bullish FVG occurs when candle 3's low is
above candle 1's high (gap up), creating a demand zone shown in green. Bearish FVG occurs when candle
3's high is below candle 1's low (gap down), creating a supply zone shown in red.
The indicator uses request.security() to fetch data from the selected higher timeframe, detects FVG
patterns on that timeframe, and displays them on your current chart. FVG zones remain active until
price closes through them (mitigation), then change color and remain visible for a configurable
number of bars before disappearing.
TIMEFRAME CONFIGURATION:
Configure different FVG timeframes based on current chart timeframe:
- 1m-5m charts → Default 4h FVG
- 15m charts → Default 4h FVG
- 30m-1h charts → Default 4h FVG
- 4h charts → Default 4h FVG
- Daily charts → Default Daily FVG
- Weekly charts → Default Weekly FVG
- Monthly charts → Default Monthly FVG
All timeframes are configurable via input settings.
BEST USE:
Works on all timeframes and asset classes. Particularly useful for intraday traders who want to see
higher timeframe FVG zones on their lower timeframe charts. FVG zones often act as support/resistance
and are frequently filled by price returning to rebalance the imbalance. Use them to identify potential
entry/exit points, stop-loss placement, and institutional order flow areas.
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.