OPEN-SOURCE SCRIPT
Yetty FVG Pro

YETTY FVG PRO
Yetty FVG Pro is a clean fair value gap and inversion fair value gap indicator designed to display the most recent imbalance zones without filling the chart with old or irrelevant boxes.
The indicator identifies confirmed three-candle fair value gaps on the chart’s current timeframe and monitors those zones for a potential inversion. Traders can independently control how many FVG and IFVG zones remain visible.
The default display shows:
• One recent active FVG
• Three recent IFVG zones
• Bullish FVGs in green
• Bearish FVGs in red
• Bullish IFVGs in aqua
• Bearish IFVGs in fuchsia
WHAT IS A FAIR VALUE GAP?
A fair value gap, or FVG, is a three-candle price imbalance created when the first and third candles do not overlap completely.
This can occur when price moves rapidly through an area without balanced two-sided trading.
The untraded area between the first and third candles becomes the fair value gap.
These zones may later act as areas of interest when price returns.
BULLISH FAIR VALUE GAP
A bullish FVG forms when:
1. Price moves sharply upward.
2. The low of the third candle is above the high of the first candle.
3. A visible gap remains between those two prices.
4. The completed zone meets the selected minimum-size requirement.
Bullish FVGs are displayed in green by default.
A bullish FVG can represent an area where price moved upward with strong displacement. Traders may monitor the zone for a reaction, support, continuation or failure.
BEARISH FAIR VALUE GAP
A bearish FVG forms when:
1. Price moves sharply downward.
2. The high of the third candle is below the low of the first candle.
3. A visible gap remains between those two prices.
4. The completed zone meets the selected minimum-size requirement.
Bearish FVGs are displayed in red by default.
A bearish FVG can represent an area where price moved downward with strong displacement. Traders may monitor the zone for a reaction, resistance, continuation or failure.
WHAT IS AN INVERSION FAIR VALUE GAP?
An inversion fair value gap, or IFVG, forms when price completely invalidates an existing FVG by closing through the opposite side of the entire zone.
Instead of deleting that failed FVG, Yetty FVG Pro converts it into an IFVG.
This allows traders to see where a previous imbalance failed and may have changed its directional role.
BULLISH IFVG
A bullish IFVG begins as a bearish FVG.
It becomes a bullish IFVG when a confirmed candle closes above the top of the entire bearish FVG zone.
The original bearish zone is then converted into an aqua bullish IFVG.
This indicates that price has broken completely through a previous bearish imbalance. Traders may watch the converted zone for potential support if price returns.
BEARISH IFVG
A bearish IFVG begins as a bullish FVG.
It becomes a bearish IFVG when a confirmed candle closes below the bottom of the entire bullish FVG zone.
The original bullish zone is then converted into a fuchsia bearish IFVG.
This indicates that price has broken completely through a previous bullish imbalance. Traders may watch the converted zone for potential resistance if price returns.
HOW TO USE IT
Yetty FVG Pro is designed to provide areas of interest rather than automatic trade-entry signals.
Start by identifying the broader direction and structure of the market.
In an upward-trending market, traders may give more attention to bullish FVGs and bullish IFVGs below or near current price.
In a downward-trending market, traders may give more attention to bearish FVGs and bearish IFVGs above or near current price.
When price returns to a displayed zone, observe how it reacts.
Possible reactions may include:
• Immediate rejection from the zone
• Partial entry followed by continuation
• Full traversal of the zone
• Consolidation inside the zone
• A complete close through the zone
• Conversion from an FVG into an IFVG
A zone should not automatically be treated as an entry. Evaluate the reaction alongside market structure, trend, liquidity, volume and risk.
POSSIBLE BULLISH WORKFLOW
1. Establish that the larger market context is bullish.
2. Identify a recent bullish FVG or bullish IFVG.
3. Wait for price to return to the zone.
4. Look for buyers to defend the area.
5. Wait for bullish confirmation.
6. Establish an entry, stop and target using your own trading plan.
Bullish confirmation might include:
• A rejection wick
• A bullish engulfing candle
• A liquidity sweep beneath the zone
• A short-term bullish structure break
• Increased buying volume
• Reclaiming VWAP or an important EMA
POSSIBLE BEARISH WORKFLOW
1. Establish that the larger market context is bearish.
2. Identify a recent bearish FVG or bearish IFVG.
3. Wait for price to return to the zone.
4. Look for sellers to defend the area.
5. Wait for bearish confirmation.
6. Establish an entry, stop and target using your own trading plan.
Bearish confirmation might include:
• A rejection wick
• A bearish engulfing candle
• A liquidity sweep above the zone
• A short-term bearish structure break
• Increased selling volume
• Rejection from VWAP or an important EMA
USING FVGs WITH IFVGs
An active FVG shows an imbalance that has not yet closed completely through its opposite boundary.
An IFVG shows that the original FVG failed and inverted.
This distinction can help traders separate an active imbalance from a zone where price has already demonstrated a directional change.
For example:
A bullish FVG may initially act as support.
If price later closes below the entire bullish FVG, the zone becomes a bearish IFVG.
If price returns to that converted zone from below, traders may monitor it as potential resistance.
The reverse logic applies when a bearish FVG becomes a bullish IFVG.
USING YETTY FVG PRO WITH OTHER TOOLS
FVG and IFVG zones can become more meaningful when they align with other areas of interest, including:
• Yetty ORB Pro boundaries
• Yetty Liquidity Sweep Pro levels
• Previous session highs or lows
• Higher-timeframe support and resistance
• VWAP
• The 9, 21 or 200 EMA
• Opening-range breakouts
• Swing highs and swing lows
• Supply and demand zones
• Strong displacement candles
Confluence does not guarantee that a zone will hold, but it can provide additional context for evaluating a reaction.
CHART TIMEFRAME
Yetty FVG Pro uses the chart’s current timeframe only.
If the indicator is applied to a one-minute chart, it identifies one-minute FVGs and IFVGs.
If it is applied to a five-minute chart, it identifies five-minute FVGs and IFVGs.
If it is applied to a 15-minute chart, it identifies 15-minute FVGs and IFVGs.
Changing the chart timeframe causes the indicator to calculate zones from the candles on the newly selected timeframe.
Lower timeframes will generally create more zones.
Higher timeframes will generally create fewer but broader zones.
DISPLAY SETTINGS
Show FVGs
Turns the active FVG boxes on or off.
Show IFVGs
Turns inversion fair value gap boxes on or off.
Number of FVG Zones to Show
Controls how many recent active FVG zones remain visible.
The available range is one through five.
The default is one FVG.
Number of IFVG Zones to Show
Controls how many recent inversion zones remain visible.
The available range is one through five.
The default is three IFVGs.
FVG and IFVG counts are controlled separately. For example, a trader can display one FVG while keeping three IFVGs visible.
Show Box Labels
Displays the directional classification inside each zone:
• BULL FVG
• BEAR FVG
• BULL IFVG
• BEAR IFVG
Extend Boxes Past Pattern
Controls how many additional candles each box extends beyond the completed three-candle pattern.
The default extension is five bars.
Box Fill Transparency
Controls the transparency of all displayed zones.
A higher number creates a more transparent box.
The default transparency is 85.
MINIMUM FVG SIZE
The Minimum FVG Size setting controls the smallest imbalance that can qualify as an FVG.
This value is measured in ticks and automatically uses the instrument’s minimum tick size.
Increasing the minimum size filters out smaller gaps and reduces the number of displayed zones.
Decreasing it makes the indicator more sensitive and allows smaller gaps to qualify.
The default minimum is one tick.
COLORS
The default colors are:
• Bullish FVG: lime green
• Bearish FVG: red
• Bullish IFVG: aqua
• Bearish IFVG: fuchsia
Every color can be customized from the indicator settings.
ALERTS
Yetty FVG Pro includes alert conditions for:
• New bullish FVG
• New bearish FVG
• New bullish IFVG
• New bearish IFVG
To create an alert:
1. Add Yetty FVG Pro to the chart.
2. Open TradingView’s alert menu.
3. Select Yetty FVG Pro under Conditions.
4. Choose the desired FVG or IFVG event.
5. Configure the notification method and expiration.
6. Create the alert.
Alerts are triggered from confirmed candle conditions.
IMPORTANT NOTES
Yetty FVG Pro displays price imbalances and inversion zones. It does not automatically place trades or determine entries, stop-losses, profit targets or position sizes.
A fair value gap is not guaranteed to be filled.
A zone is not guaranteed to produce a reversal or continuation.
Price can partially enter a zone, trade completely through it or move away without returning.
An IFVG appears only after a candle closes completely through the opposite side of an existing FVG. A wick through the zone without the required close does not create an inversion.
Because the indicator limits how many zones remain visible, an older box may be removed when a newer qualifying zone forms. Removing the box from the chart does not mean the historical price area has ceased to exist; it means the selected display limit has been reached.
The indicator evaluates patterns using completed candles.
For the clearest price information, use standard candlestick charts. Non-standard chart types such as Heikin Ashi, Renko, Kagi, Line Break, Point & Figure or Range charts may calculate prices differently and can produce misleading zones.
No indicator can predict future market movement or eliminate trading risk. Yetty FVG Pro should be used as an informational charting tool within a complete trading and risk-management plan.
Suggested starting point: NQ or MNQ on a five-minute standard candlestick chart using the default display of one FVG and three IFVGs.
Yetty FVG Pro is a clean fair value gap and inversion fair value gap indicator designed to display the most recent imbalance zones without filling the chart with old or irrelevant boxes.
The indicator identifies confirmed three-candle fair value gaps on the chart’s current timeframe and monitors those zones for a potential inversion. Traders can independently control how many FVG and IFVG zones remain visible.
The default display shows:
• One recent active FVG
• Three recent IFVG zones
• Bullish FVGs in green
• Bearish FVGs in red
• Bullish IFVGs in aqua
• Bearish IFVGs in fuchsia
WHAT IS A FAIR VALUE GAP?
A fair value gap, or FVG, is a three-candle price imbalance created when the first and third candles do not overlap completely.
This can occur when price moves rapidly through an area without balanced two-sided trading.
The untraded area between the first and third candles becomes the fair value gap.
These zones may later act as areas of interest when price returns.
BULLISH FAIR VALUE GAP
A bullish FVG forms when:
1. Price moves sharply upward.
2. The low of the third candle is above the high of the first candle.
3. A visible gap remains between those two prices.
4. The completed zone meets the selected minimum-size requirement.
Bullish FVGs are displayed in green by default.
A bullish FVG can represent an area where price moved upward with strong displacement. Traders may monitor the zone for a reaction, support, continuation or failure.
BEARISH FAIR VALUE GAP
A bearish FVG forms when:
1. Price moves sharply downward.
2. The high of the third candle is below the low of the first candle.
3. A visible gap remains between those two prices.
4. The completed zone meets the selected minimum-size requirement.
Bearish FVGs are displayed in red by default.
A bearish FVG can represent an area where price moved downward with strong displacement. Traders may monitor the zone for a reaction, resistance, continuation or failure.
WHAT IS AN INVERSION FAIR VALUE GAP?
An inversion fair value gap, or IFVG, forms when price completely invalidates an existing FVG by closing through the opposite side of the entire zone.
Instead of deleting that failed FVG, Yetty FVG Pro converts it into an IFVG.
This allows traders to see where a previous imbalance failed and may have changed its directional role.
BULLISH IFVG
A bullish IFVG begins as a bearish FVG.
It becomes a bullish IFVG when a confirmed candle closes above the top of the entire bearish FVG zone.
The original bearish zone is then converted into an aqua bullish IFVG.
This indicates that price has broken completely through a previous bearish imbalance. Traders may watch the converted zone for potential support if price returns.
BEARISH IFVG
A bearish IFVG begins as a bullish FVG.
It becomes a bearish IFVG when a confirmed candle closes below the bottom of the entire bullish FVG zone.
The original bullish zone is then converted into a fuchsia bearish IFVG.
This indicates that price has broken completely through a previous bullish imbalance. Traders may watch the converted zone for potential resistance if price returns.
HOW TO USE IT
Yetty FVG Pro is designed to provide areas of interest rather than automatic trade-entry signals.
Start by identifying the broader direction and structure of the market.
In an upward-trending market, traders may give more attention to bullish FVGs and bullish IFVGs below or near current price.
In a downward-trending market, traders may give more attention to bearish FVGs and bearish IFVGs above or near current price.
When price returns to a displayed zone, observe how it reacts.
Possible reactions may include:
• Immediate rejection from the zone
• Partial entry followed by continuation
• Full traversal of the zone
• Consolidation inside the zone
• A complete close through the zone
• Conversion from an FVG into an IFVG
A zone should not automatically be treated as an entry. Evaluate the reaction alongside market structure, trend, liquidity, volume and risk.
POSSIBLE BULLISH WORKFLOW
1. Establish that the larger market context is bullish.
2. Identify a recent bullish FVG or bullish IFVG.
3. Wait for price to return to the zone.
4. Look for buyers to defend the area.
5. Wait for bullish confirmation.
6. Establish an entry, stop and target using your own trading plan.
Bullish confirmation might include:
• A rejection wick
• A bullish engulfing candle
• A liquidity sweep beneath the zone
• A short-term bullish structure break
• Increased buying volume
• Reclaiming VWAP or an important EMA
POSSIBLE BEARISH WORKFLOW
1. Establish that the larger market context is bearish.
2. Identify a recent bearish FVG or bearish IFVG.
3. Wait for price to return to the zone.
4. Look for sellers to defend the area.
5. Wait for bearish confirmation.
6. Establish an entry, stop and target using your own trading plan.
Bearish confirmation might include:
• A rejection wick
• A bearish engulfing candle
• A liquidity sweep above the zone
• A short-term bearish structure break
• Increased selling volume
• Rejection from VWAP or an important EMA
USING FVGs WITH IFVGs
An active FVG shows an imbalance that has not yet closed completely through its opposite boundary.
An IFVG shows that the original FVG failed and inverted.
This distinction can help traders separate an active imbalance from a zone where price has already demonstrated a directional change.
For example:
A bullish FVG may initially act as support.
If price later closes below the entire bullish FVG, the zone becomes a bearish IFVG.
If price returns to that converted zone from below, traders may monitor it as potential resistance.
The reverse logic applies when a bearish FVG becomes a bullish IFVG.
USING YETTY FVG PRO WITH OTHER TOOLS
FVG and IFVG zones can become more meaningful when they align with other areas of interest, including:
• Yetty ORB Pro boundaries
• Yetty Liquidity Sweep Pro levels
• Previous session highs or lows
• Higher-timeframe support and resistance
• VWAP
• The 9, 21 or 200 EMA
• Opening-range breakouts
• Swing highs and swing lows
• Supply and demand zones
• Strong displacement candles
Confluence does not guarantee that a zone will hold, but it can provide additional context for evaluating a reaction.
CHART TIMEFRAME
Yetty FVG Pro uses the chart’s current timeframe only.
If the indicator is applied to a one-minute chart, it identifies one-minute FVGs and IFVGs.
If it is applied to a five-minute chart, it identifies five-minute FVGs and IFVGs.
If it is applied to a 15-minute chart, it identifies 15-minute FVGs and IFVGs.
Changing the chart timeframe causes the indicator to calculate zones from the candles on the newly selected timeframe.
Lower timeframes will generally create more zones.
Higher timeframes will generally create fewer but broader zones.
DISPLAY SETTINGS
Show FVGs
Turns the active FVG boxes on or off.
Show IFVGs
Turns inversion fair value gap boxes on or off.
Number of FVG Zones to Show
Controls how many recent active FVG zones remain visible.
The available range is one through five.
The default is one FVG.
Number of IFVG Zones to Show
Controls how many recent inversion zones remain visible.
The available range is one through five.
The default is three IFVGs.
FVG and IFVG counts are controlled separately. For example, a trader can display one FVG while keeping three IFVGs visible.
Show Box Labels
Displays the directional classification inside each zone:
• BULL FVG
• BEAR FVG
• BULL IFVG
• BEAR IFVG
Extend Boxes Past Pattern
Controls how many additional candles each box extends beyond the completed three-candle pattern.
The default extension is five bars.
Box Fill Transparency
Controls the transparency of all displayed zones.
A higher number creates a more transparent box.
The default transparency is 85.
MINIMUM FVG SIZE
The Minimum FVG Size setting controls the smallest imbalance that can qualify as an FVG.
This value is measured in ticks and automatically uses the instrument’s minimum tick size.
Increasing the minimum size filters out smaller gaps and reduces the number of displayed zones.
Decreasing it makes the indicator more sensitive and allows smaller gaps to qualify.
The default minimum is one tick.
COLORS
The default colors are:
• Bullish FVG: lime green
• Bearish FVG: red
• Bullish IFVG: aqua
• Bearish IFVG: fuchsia
Every color can be customized from the indicator settings.
ALERTS
Yetty FVG Pro includes alert conditions for:
• New bullish FVG
• New bearish FVG
• New bullish IFVG
• New bearish IFVG
To create an alert:
1. Add Yetty FVG Pro to the chart.
2. Open TradingView’s alert menu.
3. Select Yetty FVG Pro under Conditions.
4. Choose the desired FVG or IFVG event.
5. Configure the notification method and expiration.
6. Create the alert.
Alerts are triggered from confirmed candle conditions.
IMPORTANT NOTES
Yetty FVG Pro displays price imbalances and inversion zones. It does not automatically place trades or determine entries, stop-losses, profit targets or position sizes.
A fair value gap is not guaranteed to be filled.
A zone is not guaranteed to produce a reversal or continuation.
Price can partially enter a zone, trade completely through it or move away without returning.
An IFVG appears only after a candle closes completely through the opposite side of an existing FVG. A wick through the zone without the required close does not create an inversion.
Because the indicator limits how many zones remain visible, an older box may be removed when a newer qualifying zone forms. Removing the box from the chart does not mean the historical price area has ceased to exist; it means the selected display limit has been reached.
The indicator evaluates patterns using completed candles.
For the clearest price information, use standard candlestick charts. Non-standard chart types such as Heikin Ashi, Renko, Kagi, Line Break, Point & Figure or Range charts may calculate prices differently and can produce misleading zones.
No indicator can predict future market movement or eliminate trading risk. Yetty FVG Pro should be used as an informational charting tool within a complete trading and risk-management plan.
Suggested starting point: NQ or MNQ on a five-minute standard candlestick chart using the default display of one FVG and three IFVGs.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。