PROTECTED SOURCE SCRIPT
TraderFa Automatic FVG

he Fair Value Gap (FVG) indicator is a powerful technical analysis tool that identifies market inefficiencies by highlighting Fair Value Gaps across multiple timeframes. Discover key trading zones where institutions might be active—don’t miss your edge!
Introduction to the FVG Indicator
The Fair Value Gap indicator is designed to automatically detect areas of price imbalance—commonly referred to as Fair Value Gaps (FVGs)—directly on your chart. These zones occur when price moves aggressively in one direction, leaving behind a gap that represents a lack of order matching, and often becomes a magnet for future price action.
The concept is widely used by professional traders and is deeply rooted in liquidity-based analysis and institutional trading logic.
Key Features
Multi-timeframe FVG detection (up to 4 timeframes simultaneously):
Gain a layered perspective by monitoring price gaps on different timeframes all at once.
Automatic detection of bullish and bearish FVGs:
Highlighted zones where price surged or dropped too quickly—potential reaction areas.
Option to display or hide mitigated gaps:
You can choose to keep showing gaps that have already been filled or remove them from view.
Custom color settings for each timeframe:
Assign different colors for bullish and bearish gaps in each timeframe for better visual clarity.

How the Indicator Works
Utilizing the capabilities of Pine Script, the indicator fetches data such as high, low, open, and time from higher timeframes and compares it with current candles to detect valid FVGs.
The detection logic is based on:
A bullish FVG forms when the low of the current candle is higher than the high of two candles ago.
A bearish FVG forms when the high of the current candle is lower than the low of two candles ago.
These gaps are then visualized using boxes and labels, and updated or removed depending on whether the price has returned to fill the gap.
Use Cases in Trading
Reveal hidden liquidity zones:
Institutional traders often place orders around FVGs. Identifying these can help pinpoint high-probability entries.
Set precise entry, exit, or target zones:
Use gaps to identify potential reversal or continuation zones with minimal risk exposure.
Optimize multi-timeframe confluence:
Seeing FVGs from various timeframes simultaneously allows you to discover overlapping zones—excellent for timing trades with confidence.
Customizable Settings :
Enable/disable each of the four timeframes independently
Select your desired timeframe for each layer
Pick unique colors for bullish and bearish gaps
Show or hide mitigated (filled) gaps based on strategy
Final Thoughts
The FVG indicator is a refined, high-precision tool built for traders who use price action and liquidity principles. Whether you're scalping or trading swing setups, this indicator offers an edge by visually representing inefficiencies in price—helping you anticipate where price is likely to react.
Ready to see the market through the lens of institutional behavior? Add the FVG indicator to your chart today and start spotting the gaps that really matter.
Introduction to the FVG Indicator
The Fair Value Gap indicator is designed to automatically detect areas of price imbalance—commonly referred to as Fair Value Gaps (FVGs)—directly on your chart. These zones occur when price moves aggressively in one direction, leaving behind a gap that represents a lack of order matching, and often becomes a magnet for future price action.
The concept is widely used by professional traders and is deeply rooted in liquidity-based analysis and institutional trading logic.
Key Features
Multi-timeframe FVG detection (up to 4 timeframes simultaneously):
Gain a layered perspective by monitoring price gaps on different timeframes all at once.
Automatic detection of bullish and bearish FVGs:
Highlighted zones where price surged or dropped too quickly—potential reaction areas.
Option to display or hide mitigated gaps:
You can choose to keep showing gaps that have already been filled or remove them from view.
Custom color settings for each timeframe:
Assign different colors for bullish and bearish gaps in each timeframe for better visual clarity.
How the Indicator Works
Utilizing the capabilities of Pine Script, the indicator fetches data such as high, low, open, and time from higher timeframes and compares it with current candles to detect valid FVGs.
The detection logic is based on:
A bullish FVG forms when the low of the current candle is higher than the high of two candles ago.
A bearish FVG forms when the high of the current candle is lower than the low of two candles ago.
These gaps are then visualized using boxes and labels, and updated or removed depending on whether the price has returned to fill the gap.
Use Cases in Trading
Reveal hidden liquidity zones:
Institutional traders often place orders around FVGs. Identifying these can help pinpoint high-probability entries.
Set precise entry, exit, or target zones:
Use gaps to identify potential reversal or continuation zones with minimal risk exposure.
Optimize multi-timeframe confluence:
Seeing FVGs from various timeframes simultaneously allows you to discover overlapping zones—excellent for timing trades with confidence.
Customizable Settings :
Enable/disable each of the four timeframes independently
Select your desired timeframe for each layer
Pick unique colors for bullish and bearish gaps
Show or hide mitigated (filled) gaps based on strategy
Final Thoughts
The FVG indicator is a refined, high-precision tool built for traders who use price action and liquidity principles. Whether you're scalping or trading swing setups, this indicator offers an edge by visually representing inefficiencies in price—helping you anticipate where price is likely to react.
Ready to see the market through the lens of institutional behavior? Add the FVG indicator to your chart today and start spotting the gaps that really matter.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.