OPEN-SOURCE SCRIPT
FVG Detector

FAIR VALUE GAP (IMBALANCE)
A convenient tool for automatically displaying imbalances on the current timeframe, and if necessary, you can display imbalances of a higher timeframe on the current chart. It has a wide and flexible system of settings. It displays not only the imbalance zone, but also the center of the imbalance, which is quite convenient
Basic settings:
PineScreener mode
The PineScreener table displays the following data:

If you have any suggestions on how to improve the indicator, please write
A convenient tool for automatically displaying imbalances on the current timeframe, and if necessary, you can display imbalances of a higher timeframe on the current chart. It has a wide and flexible system of settings. It displays not only the imbalance zone, but also the center of the imbalance, which is quite convenient
Basic settings:
- Minimum FVG size in % - Minimum imbalance size to display
- Percentage of filling FVG - For how many percent the imbalance must be covered for it to be considered invalid.
- Show FVG - The number of imbalances that will be displayed on the chart
- Show FVG middle line - Shows the middle of the imbalance
- Filling 50% FVG - When the imbalance is filled by 50%, the midpoint of the imbalance changes
- When Candle Close - The indicator performs calculations only when a candle closes and a new one begins. Prevents additional load on the system
- FVG Length - Number of candles for how long the imbalance will be extended (used for older TFs). If set to 0, the zone will be stretched to the end of the chart
- History - Displays all imbalances in history
PineScreener mode
- Candle number - When PineScreener mode is activated, the data of the specified candle will be displayed. If you need to analyze yesterday, then set to 1 and the data will be shown for yesterday.
The PineScreener table displays the following data:
- LSize - LongSize, the size of the imbalance in percentage
- LBegin - LongBegin, displays the distance to the begin imbalance in percentage
- LMiddle - LongMiddle, displays the distance to the middle imbalance in percentage
- LEnd - LongEnd, displays the distance to the end imbalance in percentage
- SSize - ShortSize, the size of the imbalance in percentage
- SBegin - ShortBegin, displays the distance to the begin imbalance in percentage
- SMiddle - ShortMiddle, displays the distance to the middle imbalance in percentage
- SEnd - ShortEnd, displays the distance to the end imbalance in percentage
- LHB - Long Hit Begin of imbalance
- LHM - Long Hit Middle of imbalance
- LHE - Long Hit End of imbalance
- SHB - Short Hit Begin of imbalance
- SHM - Short Hit Middle of imbalance
- SHE - Short Hit End of imbalance
If you have any suggestions on how to improve the indicator, please write
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.