OPEN-SOURCE SCRIPT
FVGs (with strebgth values)

Graded FVGs – Percentage Strength
A smarter Fair Value Gap indicator designed to filter out weak, low-quality gaps and focus on the FVGs that actually matter.
Unlike standard FVG indicators that plot nearly every imbalance on the chart, this indicator uses a dynamic percentage-based strength system to rank each Fair Value Gap using displacement, gap size, trend direction, liquidity behaviour, structure, and optional volume confirmation.
The result is a much cleaner chart with far more relevant FVGs.
What Is a Fair Value Gap (FVG)?
A Fair Value Gap is an imbalance in price delivery created when price moves aggressively in one direction.
A bullish FVG forms when:
The current candle’s low is above the high from 2 candles earlier.
A bearish FVG forms when:
The current candle’s high is below the low from 2 candles earlier.
These gaps often act as:
Areas of institutional interest
Rebalancing zones
Continuation entries
Reversal zones
Liquidity attraction points
However, most FVG indicators plot every imbalance, including weak and meaningless gaps.
This indicator solves that problem.
How This Indicator Works
Instead of simply plotting every FVG, this indicator gives each FVG a percentage strength score.
The score is based on multiple conditions including:
Gap size relative to ATR
Displacement candle strength
EMA trend alignment
Liquidity sweep behaviour
Structure breaks
Volume confirmation (optional)
Each condition increases the overall FVG quality score.
The final result is displayed as:
Bull FVG 75%
Bear FVG 88%
inside the zone itself.
Strength Percentage Meaning
30–40%
Weak FVG
Usually smaller imbalances.
Can still work in trending conditions but less reliable.
Best used for:
Scalping
Aggressive entries
Lower timeframe continuation trades
50–70%
Strong FVG
The ideal balance between:
frequency
quality
readability
Usually formed with:
decent displacement
trend alignment
healthy imbalance size
Best used for:
Intraday trading
Gold scalping
Forex
Indices
This is the recommended range.
80–100%
Elite FVG
Very strong institutional-style imbalance.
Usually formed with:
powerful displacement
trend continuation
strong imbalance size
liquidity sweep or structure confirmation
These appear less often but are typically the highest quality zones.
Best used for:
swing trades
HTF entries
major continuation setups
confluence trading
Colour Grading
The indicator automatically grades the strength visually.
Standard Zones
Normal bullish or bearish imbalance zones.
Strong Zones
Brighter colours showing stronger imbalance conditions.
Elite Zones
Highest-quality zones with strongest confirmation.
This allows you to identify stronger opportunities instantly without reading every percentage value.
Best Ways To Use This Indicator
1. Trend Continuation Entries
One of the best uses.
Look for:
bullish FVGs above EMAs
bearish FVGs below EMAs
Wait for price to retrace into the FVG and react.
This often provides:
continuation entries
reduced drawdown entries
lower risk entries
2. Liquidity Sweep + FVG
Very powerful setup.
Example:
price sweeps a previous low
aggressive bullish candle forms
bullish FVG appears
This often signals:
liquidity grab
institutional reversal
market shift
Enable:
Use Liquidity Sweep In Strength
for this style.
3. BOS / CHoCH Confirmation
Strong FVGs after:
Break of Structure
Change of Character
are typically higher probability.
Recommended:
Use alongside market structure
Use with order blocks
Use with liquidity zones
4. Session Trading
FVGs work extremely well during:
London Open
New York Open
New York Killzone
Especially on:
XAUUSD
NASDAQ
US30
GBPJPY
Avoid weak overnight low-volume sessions.
Best Settings By Market
XAUUSD (Gold)
1 Minute Scalping
Recommended:
Minimum Strength %: 40
Use Trend Score: ON
Use Structure Score: OFF
Use Volume Score: OFF
Use Sweep Score: OFF
Why?
Gold produces huge amounts of imbalance.
Volume filters can become too restrictive.
5 Minute Gold
Recommended:
Minimum Strength %: 50
Use Trend Score: ON
Use Sweep Score: ON
Use Structure Score: OFF
This gives cleaner zones while still producing enough setups.
Forex Pairs
Best on:
GBPJPY
EURUSD
GBPUSD
AUDUSD
Recommended:
Minimum Strength %: 50–60
Use Trend Score: ON
Use Structure Score: ON
Forex tends to respect cleaner structure-based FVGs.
Indices (NAS100 / US30)
Recommended:
Minimum Strength %: 55–70
Use Trend Score: ON
Use Sweep Score: ON
Indices respond well to displacement and liquidity sweeps.
Higher Timeframes (1H / 4H / Daily)
Recommended:
Minimum Strength %: 70+
Use All Filters: ON
Higher timeframe FVGs are stronger and fewer are needed.
Understanding The Settings
Minimum FVG Strength %
Controls how selective the indicator becomes.
Lower values:
more FVGs
more aggressive
more clutter
Higher values:
cleaner chart
fewer signals
stronger quality
Recommended:
40–60%
Use EMA Trend In Strength
Adds strength when:
bullish FVGs are above EMAs
bearish FVGs are below EMAs
Highly recommended for trending markets.
Use Structure Break In Strength
Adds strength if price breaks recent highs/lows.
Useful for:
structure traders
BOS traders
smart money concepts
Can become restrictive on low timeframes.
Use Liquidity Sweep In Strength
Adds strength if the market sweeps liquidity before the FVG forms.
One of the most powerful confirmations.
Recommended for:
reversals
smart money concepts
gold scalping
Use Volume In Strength
Uses above-average volume to increase FVG quality.
Useful on:
indices
stocks
futures
Less useful on:
spot forex
some gold brokers
Extend Active Gaps
Keeps active FVGs extending into current price.
Recommended ON.
This helps track:
live mitigation
future reactions
unfilled imbalance
Delete Filled FVGs
Automatically removes fully mitigated zones.
Recommended ON for clean charts.
Turn OFF if you want to study historical reactions.
Trading Tips
Best Results Come From Confluence
Do not trade FVGs alone.
Combine with:
liquidity sweeps
BOS
CHoCH
order blocks
session highs/lows
HTF bias
Stronger Is Not Always Better
An 80% FVG is not automatically a winning trade.
Market context matters more than the score itself.
Lower Timeframes Need Looser Settings
1m and 5m charts require:
lower strength thresholds
fewer filters
otherwise the chart becomes too restrictive.
Recommended Beginner Setup
Perfect balance between:
clean charts
enough setups
strong quality
Minimum Strength %: 45
Trend Score: ON
Sweep Score: OFF
Structure Score: OFF
Volume Score: OFF
Works extremely well on:
Gold
NASDAQ
GBPJPY
EURUSD
Final Notes
This indicator is designed to help traders focus on:
higher quality imbalance zones
cleaner charts
institutional-style price delivery
smarter FVG filtering
It is not intended to predict the market alone.
The best results come when combining this tool with:
market structure
liquidity
trend
session timing
risk management
Used correctly, this indicator can dramatically reduce chart clutter while improving the quality of the FVGs you trade.
A smarter Fair Value Gap indicator designed to filter out weak, low-quality gaps and focus on the FVGs that actually matter.
Unlike standard FVG indicators that plot nearly every imbalance on the chart, this indicator uses a dynamic percentage-based strength system to rank each Fair Value Gap using displacement, gap size, trend direction, liquidity behaviour, structure, and optional volume confirmation.
The result is a much cleaner chart with far more relevant FVGs.
What Is a Fair Value Gap (FVG)?
A Fair Value Gap is an imbalance in price delivery created when price moves aggressively in one direction.
A bullish FVG forms when:
The current candle’s low is above the high from 2 candles earlier.
A bearish FVG forms when:
The current candle’s high is below the low from 2 candles earlier.
These gaps often act as:
Areas of institutional interest
Rebalancing zones
Continuation entries
Reversal zones
Liquidity attraction points
However, most FVG indicators plot every imbalance, including weak and meaningless gaps.
This indicator solves that problem.
How This Indicator Works
Instead of simply plotting every FVG, this indicator gives each FVG a percentage strength score.
The score is based on multiple conditions including:
Gap size relative to ATR
Displacement candle strength
EMA trend alignment
Liquidity sweep behaviour
Structure breaks
Volume confirmation (optional)
Each condition increases the overall FVG quality score.
The final result is displayed as:
Bull FVG 75%
Bear FVG 88%
inside the zone itself.
Strength Percentage Meaning
30–40%
Weak FVG
Usually smaller imbalances.
Can still work in trending conditions but less reliable.
Best used for:
Scalping
Aggressive entries
Lower timeframe continuation trades
50–70%
Strong FVG
The ideal balance between:
frequency
quality
readability
Usually formed with:
decent displacement
trend alignment
healthy imbalance size
Best used for:
Intraday trading
Gold scalping
Forex
Indices
This is the recommended range.
80–100%
Elite FVG
Very strong institutional-style imbalance.
Usually formed with:
powerful displacement
trend continuation
strong imbalance size
liquidity sweep or structure confirmation
These appear less often but are typically the highest quality zones.
Best used for:
swing trades
HTF entries
major continuation setups
confluence trading
Colour Grading
The indicator automatically grades the strength visually.
Standard Zones
Normal bullish or bearish imbalance zones.
Strong Zones
Brighter colours showing stronger imbalance conditions.
Elite Zones
Highest-quality zones with strongest confirmation.
This allows you to identify stronger opportunities instantly without reading every percentage value.
Best Ways To Use This Indicator
1. Trend Continuation Entries
One of the best uses.
Look for:
bullish FVGs above EMAs
bearish FVGs below EMAs
Wait for price to retrace into the FVG and react.
This often provides:
continuation entries
reduced drawdown entries
lower risk entries
2. Liquidity Sweep + FVG
Very powerful setup.
Example:
price sweeps a previous low
aggressive bullish candle forms
bullish FVG appears
This often signals:
liquidity grab
institutional reversal
market shift
Enable:
Use Liquidity Sweep In Strength
for this style.
3. BOS / CHoCH Confirmation
Strong FVGs after:
Break of Structure
Change of Character
are typically higher probability.
Recommended:
Use alongside market structure
Use with order blocks
Use with liquidity zones
4. Session Trading
FVGs work extremely well during:
London Open
New York Open
New York Killzone
Especially on:
XAUUSD
NASDAQ
US30
GBPJPY
Avoid weak overnight low-volume sessions.
Best Settings By Market
XAUUSD (Gold)
1 Minute Scalping
Recommended:
Minimum Strength %: 40
Use Trend Score: ON
Use Structure Score: OFF
Use Volume Score: OFF
Use Sweep Score: OFF
Why?
Gold produces huge amounts of imbalance.
Volume filters can become too restrictive.
5 Minute Gold
Recommended:
Minimum Strength %: 50
Use Trend Score: ON
Use Sweep Score: ON
Use Structure Score: OFF
This gives cleaner zones while still producing enough setups.
Forex Pairs
Best on:
GBPJPY
EURUSD
GBPUSD
AUDUSD
Recommended:
Minimum Strength %: 50–60
Use Trend Score: ON
Use Structure Score: ON
Forex tends to respect cleaner structure-based FVGs.
Indices (NAS100 / US30)
Recommended:
Minimum Strength %: 55–70
Use Trend Score: ON
Use Sweep Score: ON
Indices respond well to displacement and liquidity sweeps.
Higher Timeframes (1H / 4H / Daily)
Recommended:
Minimum Strength %: 70+
Use All Filters: ON
Higher timeframe FVGs are stronger and fewer are needed.
Understanding The Settings
Minimum FVG Strength %
Controls how selective the indicator becomes.
Lower values:
more FVGs
more aggressive
more clutter
Higher values:
cleaner chart
fewer signals
stronger quality
Recommended:
40–60%
Use EMA Trend In Strength
Adds strength when:
bullish FVGs are above EMAs
bearish FVGs are below EMAs
Highly recommended for trending markets.
Use Structure Break In Strength
Adds strength if price breaks recent highs/lows.
Useful for:
structure traders
BOS traders
smart money concepts
Can become restrictive on low timeframes.
Use Liquidity Sweep In Strength
Adds strength if the market sweeps liquidity before the FVG forms.
One of the most powerful confirmations.
Recommended for:
reversals
smart money concepts
gold scalping
Use Volume In Strength
Uses above-average volume to increase FVG quality.
Useful on:
indices
stocks
futures
Less useful on:
spot forex
some gold brokers
Extend Active Gaps
Keeps active FVGs extending into current price.
Recommended ON.
This helps track:
live mitigation
future reactions
unfilled imbalance
Delete Filled FVGs
Automatically removes fully mitigated zones.
Recommended ON for clean charts.
Turn OFF if you want to study historical reactions.
Trading Tips
Best Results Come From Confluence
Do not trade FVGs alone.
Combine with:
liquidity sweeps
BOS
CHoCH
order blocks
session highs/lows
HTF bias
Stronger Is Not Always Better
An 80% FVG is not automatically a winning trade.
Market context matters more than the score itself.
Lower Timeframes Need Looser Settings
1m and 5m charts require:
lower strength thresholds
fewer filters
otherwise the chart becomes too restrictive.
Recommended Beginner Setup
Perfect balance between:
clean charts
enough setups
strong quality
Minimum Strength %: 45
Trend Score: ON
Sweep Score: OFF
Structure Score: OFF
Volume Score: OFF
Works extremely well on:
Gold
NASDAQ
GBPJPY
EURUSD
Final Notes
This indicator is designed to help traders focus on:
higher quality imbalance zones
cleaner charts
institutional-style price delivery
smarter FVG filtering
It is not intended to predict the market alone.
The best results come when combining this tool with:
market structure
liquidity
trend
session timing
risk management
Used correctly, this indicator can dramatically reduce chart clutter while improving the quality of the FVGs you trade.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.