INVITE-ONLY SCRIPT
Diupdate

Inversion Fair Value Gap Model [PJ Trades]

10 952
GENERAL OVERVIEW:
The Inversion Fair Value Gap Model [PJ Trades] indicator is a complete rule-based system designed to identify trade setups using the Inversion Fair Value Gap strategy taught by PJ Trades. It automates the strategy’s workflow by detecting liquidity sweeps, confirming V-shape recoveries, identifying valid Inversion Fair Value Gaps, validating higher-timeframe Fair Value Gap taps, and checking for a clear opposite Draw On Liquidity. These factors are evaluated together to produce a signal rating of A, A+, or A++, based on how many of these criteria the setup satisfies. When a long or short setup is confirmed, the indicator automatically plots an entry, stop-loss, break-even, and two take-profit levels.

A dashboard that updates in real-time displays the current directional bias, liquidity sweep activity, Inversion Fair Value Gap confirmation state, V Shape Recovery state, higher-timeframe Fair Value Gap context, opposite Draw on Liquidity, SMT divergence, and other key information relevant to the trading model. The indicator also includes optional trade statistics on the dashboard that tracks the recent win rates for A, A+, and A++ setups, as well as separate long and short win rates.

This indicator was developed by Flux Charts, in collaboration with PJ Trades.

What is the theory behind the indicator?:
The Inversion Fair Value Gap model is built on the idea that when the market pushes above a high or below a low, it often does so to sweep liquidity. If that move quickly fails and price reverses, it shows the sweep was a grab for orders and not a continuation. That quick rejection is the V Shape Recovery behavior. An Inversion Fair Value Gap forms when a Fair Value Gap that once supported the original move gets invalidated afterward. That invalidation confirms the shift in direction and becomes the new reference point for trades. The Inversion Fair Value Gap model uses this sequence because it highlights when the market has taken liquidity, rejected continuation, and started delivering in the opposite direction.

INVERSION FAIR VALUE GAP MODEL FEATURES:
The Inversion Fair Value Gap Model indicator includes 15 main features:
  1. Sessions
  2. Key Levels & Swing Levels
  3. Liquidity Levels
  4. Liquidity Sweeps
  5. V Shape Recoveries
  6. Higher-Timeframe Fair Value Gaps
  7. Inversion Fair Value Gaps
  8. Macros
  9. Bias
  10. Signals
  11. New Day Opening Gap
  12. New Week Opening Gap
  13. SMT Divergences
  14. Dashboard
  15. Alerts


SESSIONS:
The Inversion Fair Value Gap Model indicator includes five trading sessions (times in EST):
  • Asia: 20:00 - 00:00
  • London: 02:00 - 05:00
  • NY AM: 09:30 - 12:15
  • NY Lunch: 12:15 - 13:30
  • NY PM: 13:30 - 16:00


Session highs and lows are automatically tracked and used within the indicator’s signal logic.

🔹Session Zones:
Each session has a zone that outlines its active time window. These zones can be toggled on or off independently. When active, they visually separate each part of the trading day. Users can adjust the color and opacity of each session box. Users can also enable session labels, which place a label above each session zone showing its corresponding session name.
cuplikan

🔹Session Time:
Users can toggle on ‘Time’ which will display each session’s time window next to its session title.
cuplikan

🔹Session Highs/Lows:
Every session can display its own high and low as horizontal lines. Users can customize the line style for session highs/lows, choosing between solid, dashed, or dotted. The color of the lines will match the same color used for the session box. Users can adjust the color of the labels as well, which is applied to all session high/low labels.

When price has moved above a session high, or below a session low, the label will not be displayed anymore.
cuplikan

🔹Extend Levels:
When enabled, each session’s high and low levels can be extended forward by a set number of bars.
cuplikan

Please Note: Disabling a session under the main Sessions section only hides its visuals (boxes, lines, or labels). It does not impact signal detection or logic.

KEY LEVELS:
The Inversion Fair Value Gap Model indicator includes 11 key market levels that outline important structural price areas across daily, weekly, and monthly timeframes. These levels include the Daily Open, Previous Day High/Low, Weekly Open, Previous Week High/Low, Monthly Open, Previous Month High/Low, Midnight Open, and 08:30 Open. The levels can be enabled or disabled and customized in color and line style. All of the levels except the Midnight Open and 08:30 Open are used for the indicator’s signal logic.

🔹Daily Open
  • The Daily Open marks where the current trading day began.

cuplikan

🔹Previous Day High/Low
  • The Previous Day High (PDH) marks the highest price reached during the previous regular trading session. It shows where buyers pushed price to its highest point before the market closed.
  • The Previous Day Low (PDL) marks the lowest price reached during the previous regular trading session. It shows where selling pressure reached its lowest point before buyers stepped in.


When price pushes above the PDH or below the PDL, the level is removed from the chart.
cuplikan

🔹Weekly Open
  • The Weekly Open marks the first price of the current trading week.

cuplikan

🔹Previous Week High/Low
  • The Previous Week High (PWH) marks the highest price reached during the previous trading week. It shows where buying pressure reached its peak before the weekly close.
  • The Previous Week Low (PWL) marks the lowest price reached during the previous trading week. It shows where sellers pushed price to its lowest point before buyers regained control.


When price pushes above the PWH or below the PWL, the level is removed from the chart.
cuplikan

🔹Monthly Open
  • The Monthly Open marks the opening price of the current month.

cuplikan

🔹Previous Month High/Low
  • The Previous Month High (PMH) marks the highest price reached during the previous calendar month. It represents the point at which buyers achieved the strongest push before the monthly close.
  • The Previous Month Low (PML) marks the lowest price reached during the previous calendar month. It shows where selling pressure was strongest before buyers stepped back in.


When price pushes above the PMH or below the PML, the level is removed from the chart.
cuplikan

🔹Midnight Open
  • The Midnight Open marks the first price of the trading day at 00:00 EST.

cuplikan

🔹08:30 Open
  • The 08:30 Open marks the opening price at 08:30 EST.

cuplikan

🔹Customization Options:
Users can fully customize the appearance of all key levels, including the following:
  • Labels
  • Label Size
  • Line Style
  • Line Colors


Labels:
Users can toggle on ‘Show Labels’ to display labels for each toggled-on level that price hasn’t pushed above/below. Users can also adjust the size of labels, choosing between auto, tiny, small, normal, large, or huge.

Line Style:
Users can select a line style, choosing between solid, dashed, or dotted, which is applied to all toggled-on key levels.

Line Color:
Users can choose different colors for each of the following key levels:
  • Daily Open, Previous Day High, Previous Day Low
  • Weekly Open, Previous Week High, Previous Week Low,
  • Monthly Open, Previous Month High, Previous Month Low
  • Midnight Open
  • 08:30 Open


🔹Extend Levels:
When enabled, each key level is extended forward by a set number of bars.
cuplikan

Please Note: Disabling a level in the “Key Levels” section only hides its visuals and does not affect the indicator’s signals.

🔹Swing Levels
The indicator automatically plots Swing Highs and Swing Lows which are used in the indicator’s signal generation logic.
  • A swing high forms when a candle’s high is greater than the highs of the bars immediately before and after it.
  • A swing low forms when a candle’s low is lower than the lows of the bars immediately before and after it.


🔹Swing Level Colors
Users can customize the color of Active Levels and Swept Levels.
  • Active Levels are levels that price has not pushed above or below
  • Swept Levels are levels that price pushed above or below.


🔹Swing Levels – Show Nearest
This setting determines how many swing highs/lows are displayed on the chart. The indicator will display the nearest X highs to price and the nearest X lows to price.

For example, if ‘Show Nearest’ is set to 2, the nearest 2 swing highs and nearest 2 swing lows to price will be plotted on the chart.
cuplikan

LIQUIDITY LEVELS:
The Inversion Fair Value Gap Model indicator automatically identifies and plots liquidity at key structural points in the market. These include swing highs and swing lows, session highs and lows, and major higher timeframe reference points as explained in the SESSIONS and KEY LEVELS sections above. All of these areas are treated as potential pools of resting orders and are used throughout the indicator’s signal logic.

🔹What is Buyside Liquidity?:
Buyside Liquidity (BSL) represents price levels where many buy stop orders are sitting, usually from traders holding short positions. When price moves into these areas, those stop-loss orders get triggered and short sellers are forced to buy back their positions. These zones often form above key highs such as the previous day, week, or month. Understanding BSL is important because when price reaches these levels, the sudden wave of buy orders can create sharp reactions or reversals as liquidity is taken from the market.
cuplikan

🔹What is Sellside Liquidity?:
Sellside Liquidity (SSL) represents price levels where many sell stop orders are waiting, usually from traders holding long positions. When price drops into these areas, those stop-loss orders are triggered and long traders are forced to sell their positions. These zones often form below key lows such as the previous day, week, or month. Understanding SSL is important because when price reaches these levels, the surge of sell orders can cause sharp reactions or reversals as liquidity is taken from the market.
cuplikan

🔹 Which Liquidity Levels Are Used
The indicator tracks liquidity at the following areas:
  • Asia Session High/Low
  • London High/Low
  • NY AM High/Low
  • NY Lunch High/Low
  • NY PM High/Low
  • Previous Day High and Low
  • Previous Week High and Low
  • Previous Month High and Low
  • Daily Open
  • Weekly Open
  • Monthly Open
  • Swing Highs/Lows


🔹 How Liquidity Levels Are Used
All tracked levels across sessions, swing points, and higher timeframes serve as potential liquidity targets. When price trades above one of these highs, the indicator looks for short setups if other confluences align. When price trades below lows, the indicator looks for long setups if other confluences align.

LIQUIDITY SWEEPS:
The indicator automatically detects Buyside Liquidity and Sellside Liquidity sweeps using the liquidity levels mentioned in the previous section.

🔹What is a Liquidity Sweep?
Liquidity sweeps occur when price trades beyond a key high or low and activates resting buy-stop or sell-stop orders in that area. It’s how the market gathers the liquidity needed for larger participants to enter positions.

Traders often place stop-loss orders around obvious highs and lows, such as the previous day’s, week’s, or month’s levels. When price pushes through one of these areas, it triggers the stops placed there and generates a burst of volume. This can lead to quick movements in price as those orders are executed.
cuplikan

🔹Sellside Liquidity Sweep
These occur when price dips below a Sellside Liquidity (SSL) level, taking out the stop-loss orders placed by long traders below that low. When this happens, the indicator records the sweep and begins monitoring for potential long setups as the next step in the IFVG trading strategy. Long trades are only eligible after a SSL sweep.

🔹Buyside Liquidity Sweep
These occur when price dips above a Buyside Liquidity (BSL) level, taking out the stop-loss orders placed by short seller traders above that high. When this happens, the indicator records the sweep and begins monitoring for potential short setups as the next step in the trading strategy. Short trades are only eligible after a BSL sweep.

🔹How to Use Liquidity Sweeps
Liquidity sweeps are not direct trade signals. They are best used as context when forming a directional bias. A sweep shows that the market has removed liquidity from one side, which can hint at where the next move may develop.

For example:
  • When BSL is swept, it often signals that buy stops have been triggered and the market may be preparing to move lower. Traders may then begin looking for short opportunities.
  • When SSL is swept, it often signals that sell stops have been triggered and the market may be preparing to move higher. Traders may then begin looking for long opportunities.


V SHAPE RECOVERIES:
🔹 What Is a V Shape Recovery?
A V shape recovery is a sharp, immediate reversal that happens right after price sweeps BSL or SSL. It indicates that price quickly moved back in the opposite direction after trading through the level. This behavior signals a shift in momentum and is a required confirmation in the indicator for signal generation. The indicator will not look for long trades after a SSL sweep unless a V shape recovery occurs. It will not look for short trades after a BSL sweep unless a V shape recovery occurs. Without this behavior, the indicator assumes that price may still be delivering in the direction of the sweep, so no valid setups can form.

🔹 Why V Shape Recoveries Matter
V shape recoveries help confirm that the liquidity the sweep did not immediately continue in the same direction. They separate false breaks from true continuation. A sweep without recovery often means price may keep trending, so the indicator does not generate signals in those cases. A sweep with a V shape recovery confirms rejection and sets the foundation for valid Inversion Fair Value Gap formation. This makes the V shape recovery one of the most important sequence steps in the Inversion Fair Value Gap Model.

🔹 How the Indicator Detects V Shape Recoveries
V shape recoveries can be visually intuitive when looking at a chart, but they are difficult to define consistently programmatically. To ensure reliable and repeatable detection, the indicator uses a rules-based method that evaluates candle size, candle direction, and the strength of the move immediately following the liquidity sweep. This approach removes subjectivity and allows the indicator to confirm V shape behavior the same way every time.

The indicator does not plot any visual elements specifically for V shape recoveries. Instead, the presence of a V shape recovery is implied through the signals themselves. Every valid long or short signal that appears after a liquidity sweep requires a confirmed V shape recovery. This means that if a signal is generated following a sweep, a V shape recovery has occurred.

🔹 V Shape Recovery After a Sellside Sweep (SSL Sweep)
After price trades below a sellside liquidity level, long positions are liquidated. If buyers quickly step in and force price upward with strong momentum, this forms a V shape recovery. This signals that the sweep below the low was rejected and that buyers have reclaimed control. When this occurs, the indicator begins monitoring for long setups.
cuplikan

🔹 V Shape Recovery After a Buyside Sweep (BSL Sweep)
After price pushes above a buyside liquidity level, many short positions are stopped out. If sellers immediately step in and drive price back down with strong movement, this forms a V shape recovery. This behavior reflects a quick change in candle direction immediately following the sweep. When this occurs, the indicator begins monitoring for short setups.
cuplikan

🔹Failed V Shape Recoveries
These examples show failed V shape recoveries, where price did not reverse decisively after the BSL or SSL sweep. The lack of strong response from buyers or sellers indicates that momentum did not shift. Thus, the indicator will not detect valid long/short setups using these liquidity sweeps.
cuplikan
cuplikan

HIGHER-TIMEFRAME FAIR VALUE GAPS:
Higher-timeframe Fair Value Gaps (HTF FVGs) provide important context in the Inversion Fair Value Gap Model because they show where significant imbalance occurred on larger market structures. The indicator automatically detects HTF FVGs and uses them as part of the signal rating system.

🔹 What Is a Fair Value Gap?
A Fair Value Gap (FVG) is an area where the market’s perception of fair value suddenly changes. On your chart, it appears as a three-candle pattern: a large candle in the middle, with smaller candles on each side that don’t fully overlap it.
  • A bullish FVG forms when a bullish candle is between two smaller bullish/bearish candles, where the first and third candles’ wicks don’t overlap each other at all.
  • A bearish FVG forms when a bearish candle is between two smaller bullish/bearish candles, where the first and third candles’ wicks don’t overlap each other at all.


This creates an imbalance because price moved so quickly that one side of the auction did not trade.

Examples:
cuplikan

🔹 What Makes an FVG “Higher-Timeframe”?
In this indicator, HTF FVGs are Fair Value Gaps detected on timeframes higher than the chart’s current timeframe. For example, on a 5-minute chart, a 1-hour FVG would be considered a HTF FVG. The indicator automatically plots and checks whether price interacts with these HTF FVGs during a liquidity sweep and incorporates this into the signal rating (A, A+, A++).

🔹 How the Indicator Uses Higher-Timeframe FVGs
The indicator automatically scans up to three user-selected higher timeframes for valid bullish and bearish FVGs and tracks price’s behavior around them in the background. When any of these higher timeframes are enabled, their FVGs are used directly within the signal logic.

During a liquidity sweep, the indicator checks whether price taps into any enabled HTF FVG. A tap occurs when price trades inside the boundaries of a higher-timeframe FVG during or immediately after the sweep.
  • A bullish HTF FVG tap during a sellside sweep supports a long setup.

cuplikan
  • A bearish HTF FVG tap during a buyside sweep supports a short setup.

cuplikan

When an HTF FVG tap aligns with the direction of the setup, the signal’s rating is increased. This can increase a setup’s rating from A to A+ or from A+ to A++.

🔹 Higher-Timeframe FVG Customization
Users can select up to three higher timeframes for HTF FVG detection. When a higher timeframe is enabled, its FVGs are used in the model’s signal logic. Users can also choose whether to display these HTF FVGs visually on the chart, by enabling the ‘Plot HTF FVGs’ setting.

Each enabled HTF FVG can be customized with the following options:
  • Bullish and Bearish Colors: Users can set different fill colors for bullish and bearish HTF FVGs for each selected timeframe.

cuplikan
  • Midline: When enabled, a midline is drawn through the center of each HTF FVG. Users can customize the midline’s line style, choosing between solid, dashed, or dotted and also customize the midline’s color.

cuplikan
  • Labels: When enabled, each plotted HTF FVG displays a label that shows its originating timeframe (for example, 1H, 4H).
  • Plot HTF FVGs: When disabled, the HTF FVG zones are hidden from the chart while the logic remains active in the background for signals.


Show Nearest:
This setting controls how many HTF FVGs are displayed based on proximity to current price. Users can choose to show the nearest X bullish HTF FVGs and the nearest X bearish HTF FVGs. This filter is applied across all enabled higher timeframes and does not limit by timeframe individually.

🔹When are Higher Timeframe Fair Value Gaps mitigated?
A Higher Timeframe Fair Value Gap is considered mitigated when a candle from the chart’s timeframe closes above the gap for a bearish FVG or below the gap for a bullish FVG.

INVERSION FAIR VALUE GAPS:
Inversion Fair Value Gaps (IFVGs) are a core requirement of the Inversion Fair Value Gap Model. Every long and short signal generated by the indicator requires a valid IFVG, just like liquidity sweeps and V shape recoveries. Without a confirmed IFVG, the model will not produce a setup.

🔹 What Is an Inversion Fair Value Gap?
An Inversion Fair Value Gap is a Fair Value Gap that becomes invalidated by a candle close in the opposite direction. This “flip” confirms that the original imbalance failed and that the market has shifted.
  • A bullish IFVG forms when a bearish FVG is invalidated by a candle closing above it.
  • A bearish IFVG forms when a bullish FVG is invalidated by a candle closing below it.


In the indicator, IFVGs are not used as retracement areas. Signals are generated immediately when a valid IFVG forms, not after price returns to the gap. The IFVG itself is the confirmation event that finalizes a setup sequence after a liquidity sweep and V shape recovery.

🔹 How the Indicator Plots IFVGs
The indicator only plots IFVGs that are used in long or short setups. Not every possible IFVG is shown on the chart. Only the IFVG involved in a confirmed signal is displayed. Users can disable IFVG plots entirely if they prefer a minimal view. This hides the visual gaps but does not affect the signal logic.

🔹 Customization Options
Users can customize how IFVGs appear on the chart:
Color Settings: Choose separate fill colors for bullish IFVGs and bearish IFVGs.
Midline: Toggle an optional midline inside the IFVG and choose between a solid, dashed, or dotted line.
Midline Color: Adjust the color of the IFVG Midline.

MACROS:
Macros are short, predefined time windows, where price is more likely to seek liquidity or rebalance imbalances. These periods often create sharp movements or shifts in delivery, giving additional context to setups. In the Inversion Fair Value Gap Model, macros are used as a confluence factor. When a long or short signal forms during a macro time window, the setup’s rating can increase from A to A+ or from A+ to A++.

Macros are not required for a signal to form, but they increase the signal’s rating when the setup aligns with macro timing.

🔹 How the Indicator Uses Macros
The indicator allows users to enable up to five macros. Each macro has its own start and end time, which the user can customize. These time windows are used directly in the signal logic. If a valid IFVG setup forms while price is inside any of the enabled macro windows, the indicator increases the signal’s rating.

Users may visually disable macros on the chart without affecting signal logic. Disabling visuals hides the macro zones, labels, and lines, but the underlying macro logic continues to function in the background for signals.

The indicator’s default macros use the following time periods (in EST):
  • 09:50 - 10:10
  • 10:50 - 11:10
  • 11:50 - 12:10
  • 12:50 - 13:10
  • 13:50 - 14:10


🔹 Macro Settings
Each macro displays a shaded zone representing the active time window. This zone can be toggled on or off. Users can customize:
  • The color of each macro zone
  • The opacity of each zone
  • Whether the zones display at all (‘Show Zones’)

These visuals help identify whether price is currently inside a macro window.
cuplikan

🔹 Macro Labels:
Users can enable macro labels, which place a text label showing the macro’s title and its time window. The label color is global (applies to all macros), and the label size can be adjusted. Individual macros cannot have unique label colors.
cuplikan

🔹 Macro Start/End Lines
For additional clarity, the indicator draws two vertical markers for each macro:
  • One at the start of the macro
  • One at the end of the macro


A horizontal macro line is then drawn between the highs of these two candles to highlight the full duration of the macro window. Users can customize:
The line styles (solid, dashed, dotted) of the Macro Line and Start/End Lines

BIAS:
Bias determines which direction the indicator is allowed to generate signals. A bullish bias means only long setups can be confirmed. A bearish bias means only short setups can be confirmed. The bias acts as the final directional filter after a liquidity sweep, V shape recovery, and IFVG have all been validated. Even if all model conditions are met, the indicator will only confirm the setup if the direction aligns with the active bias.

Users are able to manually set a bias or use an automatic bias filter, which is explained below.

🔹 Manual Bias
Users can manually choose the directional bias at any time and choose between Bullish, Bearish, or Both.
  • When set to Bullish, the indicator will only confirm long setups, regardless of market structure.
  • When set to Bearish, only short setups are allowed.
  • When set to Both, the indicator can confirm both long and short setups if all requirements are met.


🔹 Automatic Bias
Automatic bias is fully rules-based and determined by how the previous session interacted with major draw-on-liquidity (DOL) levels. These levels include 1-hour highs and lows, 4-hour highs and lows, previous session highs and lows (such as Asia or London), and the previous day’s high and low. The indicator evaluates whether the previous session consolidated, manipulated liquidity, or manipulated and reversed before closing. Based on this behavior, the indicator establishes a directional bias for the current session.

◇ Previous Session Consolidation:
If the previous session did not sweep any major liquidity levels and price remained inside its range, the session is classified as consolidation.
  • After the current session sweeps a key low, the bias becomes bullish.

cuplikan
  • After the current session sweeps a key high, the bias becomes bearish.

cuplikan

The bias is determined live based on which side the current session manipulates first.

◇ Previous Session Manipulation (No Reversal):
If the previous session swept a major high-timeframe level but did not reverse before the session closed, the model assigns a reversal-based bias at the start of the current session.
  • If the previous session swept a low, the current session bias is bullish.

cuplikan
  • If the previous session swept a high, the current session bias is bearish.

cuplikan

Here, bias is determined immediately because the previous session’s manipulation defines the directional framework for the current session.

◇ Previous Session Manipulation + Reversal:
If the previous session swept a DOL level and also reversed away from it within the same session, the model assigns a continuation-based bias at the start of the current session.
  • If the previous session swept a low and reversed upward, the bias for the current session is bullish.

cuplikan
  • If the previous session swept a high and reversed downward, the bias is bearish.

cuplikan

🔹 How the Indicator Uses Bias in Practice
After the indicator validates the liquidity sweep, V shape recovery, and IFVG, it checks the active bias before confirming a signal.
  • If bias is bullish, only long setups are allowed.
  • If bias is bearish, only short setups are allowed.
  • If bias is Both, setups of either direction may form.


The bias does not influence the detection of liquidity sweeps, V shape recoveries, or IFVGs. It only determines whether those validated components are allowed to produce a final signal. Automatic bias updates based on session behavior, while manual bias remains fixed until the user changes it.

SIGNALS:
Signals are the final output of the Inversion Fair Value Gap Model indicator. A signal is only generated when all model conditions are satisfied in a clear, rules-based sequence.

A signal consists of:
  • An Entry
  • A Stop-Loss (SL)
  • A Breakeven (BE) level
  • Two Take-Profit levels (TP1 and TP2)


These components are plotted immediately once the final requirement (the IFVG confirmation) is met and the directional filter (bias) allows the setup.

Signals can be rated A, A+, or A++, based on whether certain confluences were present during the setup’s formation.

🔹 What All Signals Have in Common
Each signal type (A, A+, A++) requires the same four mandatory conditions. If any of these four are missing, the indicator will not print a signal.

◇ Required Component #1 – Valid Directional Bias
The bias determines whether the indicator can confirm a long or short setup.
  • Bullish bias → only long setups allowed
  • Bearish bias → only short setups allowed
  • Both → long or short setups allowed
  • Automatic bias → bias determined by session-based liquidity logic explained above


◇ Required Component #2 – Liquidity Sweep
The indicator must detect one of the following:
  • Sellside Liquidity Sweep (SSL Sweep) for potential long setups
  • Buyside Liquidity Sweep (BSL Sweep) for potential short setups


◇ Required Component #3 – V Shape Recovery
After a liquidity sweep, the indicator evaluates whether price produced a valid V shape recovery.

◇ Required Component #4 – Inversion Fair Value Gap (IFVG)
An IFVG must form in the direction of the potential setup.
  • A bullish IFVG forms when a bearish FVG is invalidated by a candle closing above that gap
  • A bearish IFVG forms when a bullish FVG is invalidated by a candle closing below that gap


The IFVG must occur after the V Shape Recovery and Liquidity Sweep. The IFVG confirmation is the final structural requirement. Once it forms, the setup is considered structurally complete.

🔹 A Signals
An A-rated signal contains exactly the four required components:
  • Valid Bias
  • Liquidity Sweep
  • V Shape Recovery
  • IFVG


An A signals represent the foundational implementation of the IFVG Model.

🔹 A+ Signals
An A+ signal includes the full A-signal structure plus ONE of the following:
  • Higher-Timeframe FVG Tap
  • Multi-Liquidity Sweep
  • Inside a Macro Window


◇ Higher-Timeframe FVG Tap
During a liquidity sweep, the indicator checks whether price taps into any enabled HTF FVG. A tap occurs when price trades inside the boundaries of a higher-timeframe FVG during or immediately after the sweep.
  • A bullish HTF FVG tap during a sellside sweep supports a long setup.
  • A bearish HTF FVG tap during a buyside sweep supports a short setup.


◇ Multi-Liquidity Sweep
A Multi-Liquidity Sweep occurs when price sweeps two liquidity levels of the same type in the same directional push.
  • Sweeping two lows in one move: Multi-Sellside Liquidity Sweep (long setups).
  • Sweeping two highs in one move → Multi-Buyside Liquidity Sweep (short setups).


◇ Inside a Macro Window
The final IFVG confirmation must occur inside a macro time window defined by the user.

If exactly one of these additional confluences is present, the signal rating is A+.

🔹 A++ Signals (Two Additional Confluences)
An A++ signal contains the full A signal structure plus TWO of the three confluences listed above.
  • HTF FVG tap + Multi-Liquidity Sweep
  • HTF FVG tap + Inside a Macro Window
  • Multi-Liquidity Sweep + Inside a Macro Window


If two confluences are present, the rating becomes A++. If all three are present, the setup is still rated a A++ (there is no A+++).

🔹 Signal Plots
When a valid long/short setup is detected, a signal with its rating appears with the following:
  • Entry: At the close of the candle that inverted a FVG
  • Stop-Loss: At the nearest swing high for short setups or nearest swing low for long setups
  • Breakeven Level: At the nearest swing high for long setups or the nearest swing low for short setups
  • Take-Profit 1: At the second nearest swing high for long setups or the second nearest swing low for short setups.
  • Take-Profit 2: At the third nearest swing high for long setups or the third nearest swing low for short setups.

cuplikan
cuplikan

After a signal reaches either TP2 or SL, the levels for Entry, SL, BE, TP1, and TP2 are removed from the chart. If another signal appears before the prior signal reaches either TP2 or SL, the levels are also removed.

Users can hover over any signal label to view a short summary of the exact criteria that were met for that setup. This includes whether a HTF FVG tap occurred, whether a multi-liquidity sweep was detected, whether the setup formed inside a macro window, and which liquidity level was swept prior to the V shape recovery.
cuplikan

🔹 Long Setup – A Rating
A long A-rated setup forms when all four core requirements of the IFVG Model occur without any additional confluences. First, price must sweep a Sellside Liquidity level. Immediately after the sweep, price must form a valid V shape recovery. Once the recovery completes, a bullish IFVG must form by invalidating a bearish Fair Value Gap with a candle close above it.

For a confirmed long signal, the indicator marks:
  • Entry: At the candle close that invalidates the bearish FVG and creates the IFVG
  • Stop Loss: At the nearest swing low
  • Breakeven: Midpoint between entry and stop-loss
  • Take Profit 1: At the second nearest swing high
  • Take Profit 2: At the third nearest swing high


In this example, price sweeps a swing low, has a V Shape recovery, and forms a bullish IFVG:
cuplikan

🔹 Short Setup – A Rating
A short A-rated setup forms when all four core requirements of the IFVG Model occur without any additional confluences. Price must first sweep a Buyside Liquidity level. Immediately after the sweep, price must form a valid V shape recovery. Once the recovery completes, a bearish IFVG must form by invalidating a bullish Fair Value Gap with a candle close below it.

For a confirmed short signal, the indicator marks:
  • Entry: At the candle close that invalidates the bullish FVG and creates the IFVG
  • Stop Loss: At the nearest swing high
  • Breakeven: Midpoint between entry and stop-loss
  • Take Profit 1: At the second nearest swing low
  • Take Profit 2: At the third nearest swing low


In this example, price sweeps a swing high, has a V shape recovery, and forms a bearish IFVG:
cuplikan

🔹 Long Setup – A+ Rating
A long A+ setup forms when the four core requirements of the IFVG Model occur and exactly one additional confluence is present. Price must sweep a Sellside Liquidity level, form a valid V shape recovery, and create a bullish IFVG by invalidating a bearish FVG. One of the following must also occur: a bullish HTF FVG tap during the liquidity sweep, a multi-sellside liquidity sweep, or the IFVG confirmation forms inside a macro window.

For a confirmed long A+ signal, the indicator marks:
  • Entry: At the candle close that creates the bullish IFVG
  • Stop Loss: At the nearest swing low
  • Breakeven: Midpoint between entry and stop-loss
  • Take Profit 1: At the second nearest swing high
  • Take Profit 2: At the third nearest swing high


In this example, price sweeps the NY AM Session Low, taps a 30-minute HTF FVG during the sweep, has a V shape recovery, and forms a bullish IFVG:
cuplikan

🔹 Short Setup – A+ Rating
A short A+ setup forms when the four core requirements of the IFVG Model occur and exactly one additional confluence is present. Price must sweep a Buyside Liquidity level, form a valid V shape recovery, and create a bearish IFVG by invalidating a bullish FVG. One of the following must also occur: a bearish HTF FVG tap, a multi-buyside liquidity sweep, or the IFVG confirmation forms inside a macro window.

For a confirmed short A+ signal, the indicator marks:
  • Entry: At the candle close that creates the bearish IFVG
  • Stop Loss: At the nearest swing high
  • Breakeven: Midpoint between entry and stop-loss
  • Take Profit 1: At the second nearest swing low
  • Take Profit 2: At the third nearest swing low


In this example, price sweeps a swing high, has a V shape recovery, and forms a bearish IFVG inside of the 13:50-14:10 macro:
cuplikan

🔹 Long Setup – A++ Rating
A long A++ setup forms when the four core requirements of the IFVG Model occur and at least two additional confluences are present. Price must sweep a Sellside Liquidity level, form a valid V shape recovery, and create a bullish IFVG. The setup must also include any two or three of the following: a bullish HTF FVG tap, a multi-sellside liquidity sweep, or the IFVG confirmation forming inside a macro window.

For a confirmed long A++ signal, the indicator marks:
  • Entry: At the candle close that creates the bullish IFVG
  • Stop Loss: At the nearest swing low
  • Breakeven: Midpoint between entry and stop-loss
  • Take Profit 1: At the second nearest swing high
  • Take Profit 2: At the third nearest swing high


In this example, price sweeps two swing lows, has a V shape recovery, taps a bullish 30-minute HTF FVG during the liquidity sweep, and forms a bullish IFVG inside of the 10:50-11:10 macro:
cuplikan

🔹 Short Setup – A++ Rating
A short A++ setup forms when the four core requirements of the IFVG Model occur and at least two additional confluences are present. Price must sweep a Buyside Liquidity level, form a valid V shape recovery, and create a bearish IFVG. The setup must also include any two or three of the following: a bearish HTF FVG tap, a multi-buyside liquidity sweep, or the IFVG confirmation forming inside a macro window.

For a confirmed short A++ signal, the indicator marks:
  • Entry: At the candle close that creates the bearish IFVG
  • Stop Loss: At the nearest swing high
  • Breakeven: Midpoint between entry and stop-loss
  • Take Profit 1: At the second nearest swing low
  • Take Profit 2: At the third nearest swing low


In this example, price sweeps a swing high, has a V shape recovery, taps a bearish 30-minute HTF FVG during the liquidity sweep, and forms a bearish IFVG inside of the 09:50-10:10 macro:
cuplikan

🔹Signal Settings
◇ Liquidity Levels Used:
Users can select which type of liquidity levels the indicator uses for identifying liquidity sweeps:
  • Swing Points: Only uses Swing Highs/Lows
  • Session Highs/Lows: Only uses Session Highs/Lows
  • Both: Uses both Swing Highs/Lows and Session Highs/Lows


◇ Bias:
This setting determines which signal directions are allowed.
  • Manual Bias: Users can manually choose the directional bias, picking between Bullish, Bearish, or Both.
  • Automatic Bias: The indicator automatically determines a directional bias based on the criteria mentioned in the previous Bias section.

◇ IFVG Sensitivity:
This setting determines the minimum gap size required for an FVG to qualify as an Inversion FVG.
  • Higher values: only larger FVGs become IFVGs
  • Lower values: smaller gaps are allowed


◇ Use First Presented IFVG:
This setting determines whether the indicator limits signals to only the first IFVG created within the manipulation leg.

What Is the First Presented IFVG?
It is the earliest FVG formed inside the displacement that causes the liquidity sweep.
  • For a bearish manipulation leg (price moving downward into the sweep), the first presented IFVG is the first FVG created at the start of that downward move:

cuplikan
  • For a bullish manipulation leg (price moving upward into the sweep), the first presented IFVG is the first FVG created at the start of that upward move:

cuplikan

When this setting is enabled, the indicator will only confirm signals when the IFVG used is derived from this first presented FVG. IFVGs that form later in the manipulation leg are not used for signal generation.
cuplikan

◇ Only Take Trades:
This setting allows users to restrict signals to a defined time window.
  • If a complete setup occurs inside the time window, it is allowed and plotted
  • If it occurs outside the window, the signal will not appear

For example, if you only wanted to see long/short signals between 9:30 AM and 12:00 PM, you would enable this setting and set the time window from 09:30 - 12:00.

◇ Minimum R:R
This setting allows users to require a minimum risk-to-reward ratio before a signal is confirmed and plotted on the chart. The risk-to-reward ratio is calculated using the distance from the Entry to the Stop-Loss (risk) and the distance from the Entry to TP2 (reward). The indicator compares these distances and determines whether the setup meets or exceeds the minimum R:R value selected by the user.
  • If the calculated R:R is equal to or greater than the chosen threshold, the signal will be displayed.
  • If the calculated R:R is lower than the threshold, the signal will not appear on the chart.

cuplikan

🔹 Signal Rating Minimum
Users can restrict which signal ratings appear:
  • A: shows all signals
  • A+: shows only A+ and A++
  • A++: shows only A++ setups


🔹 Signal Styling and Customization
The indicator provides full control over how signal labels and levels appear on your chart. Users can customize long signals, short signals, all plotted lines, and the visibility of every individual element.

◇ Long Signal Styling
Users can customize:
  • Long Signal Label Color
  • Long Signal Text Color
  • Long Signal Label Size


◇ Short Signal Styling
Users can customize:
  • Short Signal Label Color
  • Short Signal Text Color
  • Short Signal Label Size


◇ Entry, Stop Loss, Breakeven, and Take Profit Lines
Each line type can be enabled or disabled individually:
  • Entry Line
  • Stop Loss Line
  • Breakeven Line
  • Take Profit 1 & 2 Lines


Users can also set custom colors for each line so every level is easy to track during live price movement.

◇ Show Price Labels
Price labels can be toggled on or off individually for each level. Users can choose whether to show or hide the price for:
  • Entry
  • Stop loss
  • Breakeven
  • Take Profit 1 & 2


NEW DAY OPENING GAP:
The New Day Opening Gap (NDOG) highlights the price difference between the previous day’s closing candle and the first candle of the new trading day. The indicator tracks this gap automatically each day and makes it available as optional context for users.

🔹 What Is the New Day Opening Gap?
A New Day Opening Gap forms when the trading day opens at a price different from the previous day’s final closing price.
If the new day opens above the prior day’s close → Bullish NDOG
If the new day opens below the prior day’s close → Bearish NDOG

This gap acts as a short-term draw on liquidity because the market may revisit the gap to rebalance price delivery. While the NDOG is not a required component for IFVG signals.

🔹 How the Indicator Uses the New Day Opening Gap
When enabled, the indicator plots the gap as a rectangular zone spanning from the previous day’s close to the new day’s open. The zone remains active until it is fully filled by price or until the next day’s opening gap forms. Once price trades through the entire gap, or once a new NDOG replaces it the following day, the zone becomes inactive and is removed from the chart. The indicator does not use the NDOG for signal generation. It is strictly a visual tool that helps traders identify areas where price may retrace or seek liquidity during the session.
cuplikan

🔹 Customization Options
Users have full control over how the New Day Opening Gap displays on the chart:
Show New Day Opening Gap: Toggle the NDOG zone on or off
Bullish NDOG Color: Customize the fill color for gaps formed above the prior close
Bearish NDOG Color: Customize the fill color for gaps formed below the prior close

NEW WEEK OPENING GAP:
The New Week Opening Gap (NWOG) highlights the price difference between the previous week’s final closing candle and the first candle of the new trading week. The indicator tracks this gap automatically each week and provides it as optional context for users.

🔹 What Is the New Week Opening Gap?
A New Week Opening Gap forms when the new trading week opens at a price different from the previous week’s closing price.
  • If the new week opens above the prior week’s close → Bullish NWOG
  • If the new week opens below the prior week’s close → Bearish NWOG


This gap often serves as a medium-term draw on liquidity because price may return to rebalance the weekly displacement. The NWOG is not a required component for IFVG signals.

🔹 How the Indicator Uses the New Week Opening Gap
When enabled, the indicator plots the gap as a rectangular zone spanning from the previous week’s close to the new week’s open. The zone remains active until it is fully filled by price or until the next week’s opening gap forms. Once price trades through the entire gap, or once a new NWOG replaces it the following week, the zone becomes inactive and is removed from the chart. The indicator does not use the NWOG for signal generation. It is purely a visual reference to help traders identify areas where price may rebalance or seek liquidity during the week.
cuplikan

🔹 Customization Options
Users have full control over how the New Week Opening Gap displays on the chart:
  • Show New Week Opening Gap: Toggle the NWOG zone on or off
  • Bullish NWOG Color: Set the fill color for gaps formed above the prior weekly close
  • Bearish NWOG Color: Set the fill color for gaps formed below the prior weekly close


SMT DIVERGENCES:
The indicator automatically marks SMT Divergences that occur between the current selected chart ticker and a second user-selected ticker.

A SMT Divergence forms when the prices of the currently selected chart ticker and the user-selected ticker don’t follow each other. For example, if the current chart’s ticker symbol is NNQ and the user-selected ticker is $ES. If NNQ does not sweep the low of the NY AM Session, but ES sweeps that same exact session’s low during the same candle, then a SMT Divergence is detected.

In the images below, NNQ and ES form a low at 12:20 AM on November 12th. At 12:35 AM, the 12:20 AM low is taken out on $NQ. However, on ES, price failed to take out this exact low at 12:35 AM. Thus, an SMT Divergence is detected, and a line is drawn between the two lows on $NQ.

ES Chart:
cuplikan

NNQ Chart:
cuplikan

🔹 SMT Divergence Settings
The indicator includes settings that allow users to control how SMT Divergences are detected and displayed.

◇ Length
Length controls how sensitive the pivot detection is when finding highs and lows for SMT.
  • Lower Length: confirms swings with fewer bars, so more swings qualify.
  • Higher Length: requires more bars to confirm a swing, so fewer swings qualify.


◇ Divergence Length
The Divergence Length setting defines how many bars apart the two swing points may be for them to count as part of the same SMT Divergence.
  • Higher Values: The two instruments can form their swing highs or lows farther apart in time. As long as both swings occur within this wider bar window, the indicator compares them for divergence.
  • Lower Values: The two swing points must occur very close to each other.


◇ Show Last
This setting limits how many recent SMT Divergences are displayed on the chart. For example, setting Show Last to 1 will only show the most recent SMT Divergence, while higher values allow more historical SMT Divergences to remain visible on the chart.

◇ Divergence Ticker
Users can change the ticker used for detections. Since SMT Divergences occur by comparing two tickers, the inputted ticker within the settings will always be compared to the current selected ticker on your chart.

DASHBOARD:
The dashboard provides a live summary of all major components of the Inversion Fair Value Gap Model. It updates every candle and displays the current state of each requirement used in the setup logic.

🔹 Real-Time Model Components
The state of each component is displayed with the following:
  • ✔️ = condition is satisfied
  • ❌ = condition is not satisfied
  • 🐂 / 🐻 = current directional bias (bullish or bearish)


The dashboard actively tracks the following:
◇ Bias (🐂 Bullish, 🐻 Bearish, or Both)
  • Shows the current bias with a bull or bear emoji. If using automatic bias, the dashboard updates as soon as the session logic determines a direction.


◇ Liquidity Sweep
  • Displays ✔️ once a valid BSL Sweep (for shorts) or SSL Sweep (for longs) is detected.
  • Shows ❌ when no sweep is present.


◇ V Shape Recovery
  • Displays ✔️ when a confirmed V shape recovery forms after the sweep.
  • Shows ❌ until a valid V shape appears.


◇ Inversion Fair Value Gap (IFVG)
  • Shows ✔️ once a bullish or bearish IFVG forms in the correct direction.
  • Shows ❌ when no IFVG has yet confirmed.


◇ Higher-Timeframe FVG Interaction
  • Displays ✔️ when price is currently inside any enabled HTF FVG or taps a HTF FVG during a liquidity sweep.
  • Displays ❌ when price is not inside a HTF imbalance.


◇ Clear Opposite Draw on Liquidity (DOL)
  • Shows ✔️ when a clear opposite-side draw is present in the model logic.
  • Shows ❌ if no clear opposite draw is detected.


◇ SMT Divergence
  • Shows ✔️ for 20 candles immediately after an SMT Divergence forms.
  • After 20 candles, it returns to ❌ unless a new SMT Divergence is detected.

cuplikan

🔹 Signal Information Display
When a valid long or short signal appears, the dashboard expands to show the full details of the setup, including:
  • Signal Rating
  • Entry Price
  • Stop-Loss Price
  • Breakeven Price
  • Take Profit 1 Price
  • Take Profit 2 Price

cuplikan

🔹 Trade Statistics Module
Users can enable a built-in statistics panel to view historical performance of signals across all ratings. The trade stats include:
  • A Signal Win Rate
  • A+ Signal Win Rate
  • A++ Signal Win Rate
  • Long Signal Win Rate
  • Short Signal Win Rate
  • Total Number of Trades Used in the Calculations

cuplikan

A trade is counted as a win if price reaches breakeven before stop-loss. A trade is counted as a loss if price hits stop-loss before breakeven.

🔹 Dashboard Customization
The dashboard includes several options to control its appearance and position:
  • Show Dashboard: Toggle the entire dashboard on or off
  • Dashboard Size: Choose the size of the dashboard
  • Dashboard Position: Choose the location of the dashboard on the chart
  • Trade Stats Text Color: Customize the color of the 2nd column outputs under the Trade Stats section in the dashboard


◇ Component Toggles
Users can enable or disable the display of any model component based on preference. Each of these items can be shown or hidden independently:
  • Setup Rating
  • Entry
  • Stop-Loss
  • Breakeven
  • Take Profit 1
  • Take Profit 2
  • Bias
  • Liquidity Sweep
  • Higher-Timeframe FVG Interaction
  • V Shape Recovery
  • Inversion FVG
  • Clear Opposite Draw on Liquidity
  • Trade Stats


These toggles only affect visual display. Disabling any of them does not affect the underlying indicator’s logic.

ALERTS:
The Inversion Fair Value Gap Model includes full alert functionality using AnyAlert(), allowing users to receive notifications in real time for all major model components and signal events.

Users can enable or disable each alert type in the “Alerts” section of the settings. After selecting which alerts they want active, they can create a single TradingView alert using the AnyAlert() condition. This will automatically trigger alerts for all enabled events as soon as they occur on the chart.

Available Alerts:
  • Long Signal
  • Short Signal
  • Breakeven Hit (BE)
  • Take Profit 1 Hit (TP1)
  • Take Profit 2 Hit (TP2)
  • Stop-Loss Hit (SL)
  • Liquidity Sweep Detected
  • SMT Divergence Detected


How to Receive Alerts:
  1. Open the TradingView alert creation window.
  2. Select the IFVG Model indicator as the alert condition.
  3. Choose AnyAlert() from the condition dropdown.
  4. Create the alert.


IMPORTANT NOTES:
TradingView has limitations when running features on multiple timeframes such as the HTF FVGs, which can result in the following restriction:

Computation Error:
The computation of using MTF features is very intensive on TradingView. This can sometimes cause calculation timeouts. When this occurs, simply force the recalculation by modifying one indicator’s settings or by removing the indicator and adding it to your chart again.

UNIQUENESS:
This indicator is unique because it organizes every part of the Inversion Fair Value Gap Model into one structured, rules based system. It detects liquidity sweeps, confirms V shape recoveries, identifies valid IFVGs, checks higher timeframe FVG taps, reads macro timing, and applies a session based directional bias. All of these components are evaluated in a fixed sequence so users always know exactly why a signal appears. Every part of the logic is customizable, including which liquidity types are used, which IFVGs qualify for signals, which time windows allow trades, the minimum risk to reward for a setup, and all visual elements on the chart. The tool also includes optional SMT Divergence detection, daily and weekly opening gaps, a live dashboard that shows the state of each model requirement, and optional signal performance statistics.
Catatan Rilis
1. Fixed a bug causing missing signals due to a function error.
2. Added a light/dark mode option for the checklist to match different chart backgrounds.
Catatan Rilis
1. Added a light/dark mode option that applies to all dashboard sections (Setup Information, Checklist, and Trade Stats).
2. Added a setting to adjust the thickness of Session High/Low lines.
3. Sessions now auto-hide on timeframes above 1H to prevent chart clutter.
4. Added a setting to customize the color of SMT Divergence lines and SMT text.
5. Fixed an issue causing Key Levels to plot incorrectly.
6. Key Levels now draw from their true origin point. For example, the PDL starts at the previous day’s low.
7. Default Bias mode is now Manual (Both) instead of Automatic.
8. Alerts now include timeframe information.
9. Setting a session’s opacity to 0 no longer hides its high/low levels.
10. Setups that have a Multi-Liquidity Sweep now display every swept level instead of just one.
11. Added a “Show Last” setting for Sessions, letting you display the last X occurrences of any enabled session. For example, if you have NY AM enabled and set Show Last to 2, you’ll see the two most recent NY AM sessions.
Catatan Rilis
1. Added a feature to quickly see if a signal reached SL, BE, TP 1, or TP 2.
When hovering over a signal one of the following will be displayed:
- If a trade hits SL before BE, "🔴SL"
- If a trade hits BE before SL, "🔹BE"
- If a trade hits TP1 before SL, display "🟢TP 1"
- If a trade hits TP1 before SL, display "🟢TP 2"
- If a new signal appears before SL/BE are reached, nothing is displayed

2. Performance optimizations
Catatan Rilis
1. Fixed runtime error bugs
Catatan Rilis
1. Added a setting to adjust Session High/Low label size.
2. Added a setting to adjust Session High/Low label position.
3. When hovering over past signals, you'll be able to see what the SL, BE, TP 1, and TP 2 levels were.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.