Inversion Fair Value Gap Model [PJ Trades]GENERAL OVERVIEW:
The Inversion Fair Value Gap Model 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:
Sessions
Key Levels & Swing Levels
Liquidity Levels
Liquidity Sweeps
V Shape Recoveries
Higher-Timeframe Fair Value Gaps
Inversion Fair Value Gaps
Macros
Bias
Signals
New Day Opening Gap
New Week Opening Gap
SMT Divergences
Dashboard
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.
🔹Session Time:
Users can toggle on ‘Time’ which will display each session’s time window next to its session title.
🔹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.
🔹Extend Levels:
When enabled, each session’s high and low levels can be extended forward by a set number of bars.
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.
🔹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.
🔹Weekly Open
The Weekly Open marks the first price of the current trading week.
🔹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.
🔹Monthly Open
The Monthly Open marks the opening price of the current month.
🔹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.
🔹Midnight Open
The Midnight Open marks the first price of the trading day at 00:00 EST.
🔹08:30 Open
The 08:30 Open marks the opening price at 08:30 EST.
🔹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.
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.
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.
🔹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.
🔹 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.
🔹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.
🔹 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.
🔹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.
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:
🔹 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.
A bearish HTF FVG tap during a buyside sweep supports a short setup.
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.
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.
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.
🔹 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.
🔹 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.
After the current session sweeps a key high, the bias becomes bearish.
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.
If the previous session swept a high, the current session bias is bearish.
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.
If the previous session swept a high and reversed downward, the bias is bearish.
🔹 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.
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.
🔹 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:
🔹 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:
🔹 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:
🔹 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:
🔹 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:
🔹 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:
🔹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:
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:
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.
◇ 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.
🔹 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.
🔹 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.
🔹 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 SEED_ALEXDRAYM_SHORTINTEREST2:NQ and the user-selected ticker is $ES. If SEED_ALEXDRAYM_SHORTINTEREST2:NQ does not sweep the low of the NY AM Session, but NYSE:ES sweeps that same exact session’s low during the same candle, then a SMT Divergence is detected.
In the images below, SEED_ALEXDRAYM_SHORTINTEREST2:NQ and NYSE: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 NYSE: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.
NYSE:ES Chart:
SEED_ALEXDRAYM_SHORTINTEREST2:NQ Chart:
🔹 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.
🔹 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
🔹 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
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:
Open the TradingView alert creation window.
Select the IFVG Model indicator as the alert condition.
Choose AnyAlert() from the condition dropdown.
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.
Cerca negli script per "fvg"
Atif's Liquidity Toolkit💎 GENERAL OVERVIEW:
Atif’s Liquidity Toolkit is a price-action-based indicator used to identify Buyside & Sellside Liquidity Levels, Liquidity Sweeps, FVG Sweeps, and Buy/Sell signals, following specific rules from Atif Hussain.
This indicator was developed by Flux Charts in collaboration with Atif Hussain.
🔹Purpose of this indicator:
The purpose of Atif’s Liquidity Toolkit is to help traders understand where liquidity is forming, when it’s being taken, and how momentum shifts immediately afterward. It automates the entire process of identifying buyside & sellside liquidity, detecting liquidity sweeps, and confirming whether displacement followed through a Fair Value Gap. The goal is to give traders a consistent, rule-based framework to interpret market structure.
🎯ATIF’S LIQUIDITY TOOLKIT FEATURES:
Atif’s Liquidity Toolkit indicator includes 6 main features:
Fair Value Gaps
Multi-Timeframe Liquidity Levels
Liquidity Sweeps
Fair Value Gap Sweeps
Buy & Sell Signals with Take-Profit & Stop-Loss Levels
Alerts
1️⃣Fair Value Gaps
🔹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.
Bullish & Bearish FVGs:
In the settings, you can toggle on/off FVGs, choose the invalidation method, adjust the sensitivity, and toggle on FVG Midline & Labels.
🔹Invalidation Method:
The Invalidation Method setting allows traders to choose how an FVG is invalidated. You can choose between Close and Wick.
Close: A candle must close below a bullish FVG or above a bearish FVG to invalidate it.
Wick: A candle’s wick must go below a bullish FVG or above a bearish FVG to invalidate it.
🔹Sensitivity:
The sensitivity setting determines the minimum gap size required for an FVG detection. A higher sensitivity will filter out smaller gaps, while a lower sensitivity will detect more frequent, smaller gaps. Setting the sensitivity to 0 will display all gaps, regardless of their size.
On the left, the sensitivity is 5. On the right, the sensitivity is 0.
🔹Midline:
When enabled, a dashed line is drawn at the center of the FVG.
🔹Labels:
When enabled, a text label will be plotted with the gap, clearly identifying the zone as a FVG.
2️⃣ Multi-Timeframe Liquidity Levels
The indicator automatically detects and plots Buyside Liquidity (BSL) & Sellside Liquidity (SSL) Levels across up to three timeframes simultaneously.
🔹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.
🔹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.
Atif’s Liquidity Toolkit indicator automatically plots Buyside & Sellside Liquidity levels using the following levels:
Previous Day High (PDH) & Previous Day Low (PDL)
Previous Week High (PWH) & Previous Week Low (PWL)
Previous Month High (PMH) & Previous Month Low (PML)
Asia Session Highs/Lows
London Session Highs/Lows
New York Session Highs/Lows
The session start and end times are not customizable. The following times in EST are used for each session:
Asia Session: 20:00-00:00
London Session: 02:00-05:00
New York Sessions:
NY AM: 09:30-11:00
NY Lunch: 12:00-13:00
NY PM: 14:00-16:00
Users can also plot swing highs/lows using a lookback period and choosing the higher timeframe. Users can choose two custom higher timeframes and also enable swing highs/lows from the current chart’s timeframe.
There are three settings to customize for the current chart’s timeframe and higher timeframes:
Current TF - when toggled on, swing highs/lows will be plotted from the chart’s timeframe using the pivot length input
HTF 1 - when toggled on, swing highs/lows will be plotted from the user-inputted timeframe using the pivot length input
HTF 2 - when toggled on, swing highs/lows will be plotted from the user-inputted timeframe using the pivot length input
The Pivot Length controls how far back the indicator checks to confirm whether a candle’s high or low is a true swing point (also called a “pivot”). When detecting a swing high, the indicator checks if that candle’s high is higher than the highs of the previous X candles and the next X candles. For a swing low, it checks if the candle’s low is lower than the lows of the previous X candles and the next X candles. The number X comes from your Pivot Length setting.
A lower Pivot Length input (for example, 3 or 4) means the indicator only looks at a few candles on each side, so it will detect more swing points, including smaller, less significant ones. A higher Pivot Length input (for example, 20 or 25) makes the indicator look at more candles on each side, so it only marks major turning points that stand out clearly on the chart.
In short:
Low Pivot Length = more frequent, smaller levels (short-term focus)
High Pivot Length = fewer, stronger levels (major swing focus)
The Pivot Length input for each setting (Current TF, HTF 1, and HTF 2) are displayed below in the red boxes:
Each liquidity level is plotted with a text label, making it easy to identify where a level came from. You can turn off the ‘Show Levels’ setting if you don’t want to see the levels on your chart.
Please note: Liquidity Levels play a key role in finding liquidity sweeps, FVG Sweeps, and Buy/Sell signals. Keeping the levels turned off will not stop the indicator from using the levels that are enabled from being used for the other features mentioned.
3️⃣Liquidity Sweeps:
The indicator automatically detects bullish and bearish liquidity sweeps using the liquidity levels you have enabled.
🔹What is a Liquidity Sweep?
A liquidity sweep is a market phenomenon where significant players, such as institutional traders, deliberately drive prices through key levels to trigger clusters of pending buy or sell orders. 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 often creates a short-term fake-out before the market reverses in the opposite direction.
By detecting these sweeps in real time, traders can identify potential reversal areas or “trap” areas where liquidity has been taken.
🔹Bullish 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. The indicator marks a zone around the candle that swept the SSL to highlight where liquidity was removed from the market.
When this happens, it shows that the market just cleared out sell-side liquidity, meaning traders who were long had their stops hit. This is often followed by a reversal or strong reaction upward, because the market no longer has pending liquidity to fill below that level.
🔹Bearish 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. The indicator marks a zone around the candle that swept the BSL to highlight where liquidity was removed from the market.
When this happens, it shows that the market just cleared out buyside liquidity, meaning short traders had their stops hit. This is often followed by a reversal or strong reaction downward, because the market no longer has pending liquidity to fill above that level.
Under the ‘Liquidity Sweeps’ section in the settings, you can toggle on/off Bullish Regular Sweeps and Bearish Regular Sweeps. You can also customize the line style and color of liquidity levels that have been swept.
🔹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 Buyside Liquidity (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 Sellside Liquidity (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.
It’s common practice to use liquidity sweeps as the first step in building a trade idea. Many traders will wait for additional confirmation, such as a fair value gap forming after the sweep, before opening a position.
Under the ‘Liquidity Sweeps’ section in the settings, you can toggle on/off:
Bullish Regular Sweeps - when disabled, Bullish Regular Sweeps won’t appear on your chart.
Bearish Regular Sweeps - when disabled, Bearish Regular Sweeps won’t appear on your chart.
4️⃣Fair Value Gap Sweeps:
The indicator automatically detects bullish and bearish Fair Value Gap sweeps (FVG Sweep) using the liquidity levels you have enabled.
🔹What is a FVG Sweep?
A FVG Sweep is a specific type of liquidity sweep that not only clears liquidity above or below a key level, but also forms a Fair Value Gap (FVG) immediately afterward.
The liquidity sweep shows where stop orders were triggered, areas where the market aggressively took out one side’s liquidity. The formation of a Fair Value Gap right after the sweep confirms that displacement followed. This means that the sweep was not just a stop hunt, but a deliberate move backed by momentum.
In simple terms, a regular liquidity sweep only tells you that liquidity was taken. A FVG Sweep tells you that liquidity was taken and a strong directional move started immediately after, leaving an imbalance in price. That imbalance represents where aggressive buyers or sellers entered the market without enough opposite-side orders to keep price balanced. This combination adds a confirmation and intent behind regular liquidity sweeps.
🔹Bullish FVG Sweep
The indicator automatically detects bullish FVG Sweeps when price takes out a Sellside Liquidity (SSL) level and then forms a bullish FVG within the next few candles. This sequence shows that sellers were stopped out and buyers immediately entered the market with momentum.
🔹Bearish FVG Sweep
The indicator automatically detects bearish FVG Sweeps when price takes out a Buyside Liquidity (BSL) level and then forms a bearish FVG shortly after. This shows that short sellers’ stops were triggered, and new selling pressure entered the market right away.
🔹How to Use FVG Sweeps
Unlike regular liquidity sweeps, FVG Sweeps can be used as trade entries because they confirm both liquidity being cleared and immediate momentum. A regular sweep only shows that stop-losses were triggered, but an FVG Sweep proves that price not only cleared liquidity but also moved away with momentum, leaving behind an imbalance (Fair Value Gap). This shift often marks the start of a new short-term trend.
We’ll cover this in more detail in the Buy and Sell Signal section below, but in short, a bullish FVG Sweep can act as confirmation for a potential long entry after price takes out a low, while a bearish FVG Sweep can confirm a short entry after price takes out a high.
The strongest FVG Sweeps come from extremely sharp reversals. On the chart, they look like a “V” shape for bullish setups or an inverted “V” shape for bearish setups. This shape shows how quickly momentum shifted after liquidity was cleared. When price instantly reverses and leaves a Fair Value Gap behind, it’s a clear sign that buyers or sellers stepped in aggressively and absorbed all available liquidity on the opposite side.
In practice, traders often use FVG Sweeps as a trigger to align their bias. For example, after a bullish FVG Sweep, the focus shifts toward looking for long setups within the new imbalance or during a small retracement into the Fair Value Gap. After a bearish FVG Sweep, traders focus on short setups as price retraces back into the gap before continuing lower. The key takeaway is that FVG Sweeps show conviction.
Under the ‘Liquidity Sweeps’ section in the settings, you can toggle on/off:
Bullish FVG Sweeps - when disabled, Bullish FVG Sweeps won’t appear on your chart.
Bearish FVG Sweeps - when disabled, Bearish FVG Sweeps won’t appear on your chart.
Please Note: the settings you choose to use for Fair Value Gaps, under the ‘Fair Value Gaps’ section, will be used for FVG Sweeps. This is important because if you increase the sensitivity value for FVGs, not all FVG Sweeps will appear if the FVG’s size doesn’t meet the sensitivity threshold.
5️⃣Buy & Sell Signals:
This indicator also plots Buy & Sell signals. These signals follow logic based on Atif Hussain’s FVG trading model. The entry requirements for a Long & Short signal are outlined below.
🔹Buy Signal:
In order for a Buy Signal to generate, the following conditions must occur in order:
Bullish FVG Sweep
Price Retraces to the Bullish FVG
🔹Sell Signal:
In order for a Buy Signal to generate, the following conditions must occur in order:
Bearish FVG Sweep
Price Retraces to the FVG
🔹Require Retracement:
Under the ‘Signals’ section in the settings, you can toggle on/off the ‘Require Retracement’ setting. When disabled, a long/short signal will appear immediately after a Bullish or Bearish FVG Sweep, instead of waiting for price to retrace back to the gap.
Please Note: the liquidity levels you enable under the ‘Liquidity Levels’ section will be the levels used for signals. Thus, if you only have the Previous Day Highs/Lows enabled, then only those levels will be used to generate buy/sell signals. Also, long Signals will only appear if Bullish FVG Sweeps are enabled, and Short Signals will only appear if Bearish FVG Sweeps are enabled.
When a Buy Signal or Sell Signal is plotted, three suggested take-profit levels and one suggested stop-loss level are plotted. There are two different Take-Profit methods you can choose from within the indicator settings: Manual or Auto.
🔹Manual Take-Profit:
If you’re using manual take-profit levels, you can customize the Risk-to-Reward (RR) for Take-Profit 1, 2, and 3 by adjusting the “RR 1”, “RR 2”, and “RR 3” settings. Setting RR 1 to 1 means take-profit 1 is a 1:1 risk-to-reward ratio. The stop-loss will always be placed at the recent low for Buy Signals, and at the recent high for Sell Signals.
🔹Auto Take-Profit:
If you select to use Auto Take-Profit instead of Manual, then Take-Profit 1, 2, and 3 will be automatically determined based on nearby liquidity levels. The stop-loss will be placed at the recent low for Buy Signals, and at the recent high for Sell Signals. Take-Profit Levels 1, 2, and 3 will be placed at the three closest opposite liquidity levels. If the take-profit 2 and take-profit 3 levels are too far away, only one take-profit level will be displayed.
🔹Signal Settings:
Long Signals:
When enabled, long signals are shown. When disabled, long signals will not appear.
Short Signals:
When enabled, short signals are shown. When disabled, short signals will not appear.
Require Retracement:
When enabled, price must retrace to a FVG after a FVG Sweep in order for a signal to be generated.
Take-Profit Levels:
When enabled, take-profit levels (TP 1, TP 2, and TP 3) are shown with long/short signals. When disabled, take-profit levels and their price labels are not displayed.
Take-Profit Labels:
When enabled, take-profit labels are displayed when price reaches one of the three take-profit levels. When disabled, labels won’t appear when price reaches take-profit levels.
Stop-Loss Levels:
When enabled, stop-loss levels are shown for long/short signals. When disabled, the stop-loss level and its price label are not displayed.
Stop-Loss Labels:
When enabled, stop-loss levels are shown for long/short signals. When disabled, a label won’t appear when price reaches the stop-loss level.
6️⃣Alerts:
The indicator supports alerts, so you never miss a key market move. You can choose to receive alerts for each of the following conditions:
Bearish Liquidity Sweep
Bullish Liquidity Sweep
Bearish FVG Sweep
Bullish FVG Sweep
Long Signal
Short Signal
TP 1
TP 2
TP 3
Stop-Loss
‼️Important Notes:
TradingView has limitations when running features on multiple timeframes, such as the liquidity levels, which can result in the following error:
🔹Computation Error:
The computation of using MTF features are 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 identifies a specific type of liquidity event referred to as FVG Sweeps, where price takes liquidity and then immediately forms a Fair Value Gap in the opposite direction. These FVG Sweeps serve as the foundation of the model, and the script uses them as the required condition for generating Buy and Sell signals. Once an FVG Sweep is confirmed, the indicator automatically produces a fully defined trade idea with a stop-loss and up to three take-profit targets, following a consistent rule-based execution approach.
Manipulation Model [FB]GENERAL OVERVIEW:
The Manipulation Model indicator is a complete rule-based system that identifies and confirms setups from the Funded Brothers Manipulation Model. It detects large impulsive candles, called Manipulation Candles and Almost Manipulation Candles, that form around key market levels such as session highs/lows, daily, weekly, and monthly levels, or higher timeframe Fair Value Gaps (FVGs). Using this structure, the indicator automatically marks long, short, bulltrap, and beartrap setups with predefined entry, stop loss, and take profit areas.
This indicator was developed by Flux Charts in collaboration with the Funded Brothers.
ATTRIBUTION NOTICE:
This indicator incorporates concepts and source code from the indicator “MCs with Alerts” authored by @hamza_xau on TradingView. We have received full written permission from the original author to use and commercialize this code within this invite-only script.
Original script: MCs with Alerts:
What is the purpose of the indicator?:
The indicator automates detection of the Manipulation Model trading strategy setups by combining candle structure, key levels, session timing, and higher timeframe Fair Value Gaps. It removes discretion by enforcing fixed conditions for valid signals and automatically managing entry, stop-loss, and take-profit logic.
What is the theory behind the indicator?:
The indicator is built on how price interacts with major reference points such as session highs and lows, or daily and weekly levels. These levels are commonly referenced in technical analysis as areas where price previously reversed or consolidated. Manipulation Candles identify moments when price breaks past these reference points on both sides of the prior candle before closing firmly in one direction. When these candles form near higher timeframe Fair Value Gaps, it reflects price reacting inside an area that previously showed directional imbalance. The higher timeframe EMA filter aligns all detected setups with the broader market trend, allowing only signals that match the dominant direction.
MANIPULATION MODEL FEATURES:
Manipulation Candlesticks
Almost Manipulation Candlesticks
Higher Timeframe Fair Value Gaps
Sessions
Key Levels
Signals
Dashboard
Alerts
MANIPULATION CANDLESTICKS:
Manipulation Candlesticks (MCs) are candles that sweep both sides of the previous candle’s range and close outside of it. In the Manipulation Model indicator, these candles form the foundation for the long/short setups. Once one forms, the indicator checks its position relative to sessions, key levels, and higher timeframe Fair Value Gaps to determine if a valid setup exists.
🔹What is a Manipulation Candlestick?
A Manipulation Candlestick (MC) is defined by structure rather than size. It forms when price takes out both the high and low of the previous candle, then closes outside that range.
A bullish Manipulation Candle occurs when price sweeps below the previous candle’s low and then closes above the previous candle’s high.
A bearish Manipulation Candle occurs when price sweeps above the previous candle’s high and then closes below the previous candle’s low.
🔹How to interpret and use Manipulation Candlesticks:
Manipulation Candlesticks show where price made a strong one-sided move after taking both sides of the previous candle’s range. When one forms, it marks an area where buyers or sellers were likely trapped as price moved aggressively in one direction.
A bullish MC shows strong buying after a false move lower. Price sweeps below the prior low, takes out the prior high, and closes above the previous range, confirming buyers are in control.
A bearish MC shows strong selling after a false move higher than the previous candle’s high. Price sweeps above the prior high, drops below the prior low, and closes beneath the previous range, confirming sellers are dominant.
🔹How Manipulation Candlesticks are identified:
The indicator confirms Manipulation Candles using three filters once a candle closes:
Sweep Condition:
Price must take both sides of the previous candle’s range, moving above its high and below its low, before closing outside that range.
Directional Close:
A bullish MC must close above the previous high, and a bearish MC must close below the previous low.
Wick Confirmation:
A bullish MC must have a smaller upper wick (high - close) than lower wick (open - low), and a bearish MC must have a smaller lower wick (close - low) than upper wick (high - open).
Once these conditions are met at candle close, it is confirmed as a bullish or bearish Manipulation Candle.
🔹Bullish Manipulation Candle
A bullish Manipulation Candle forms when price sweeps below the previous candle’s low, then breaks above its high, and closes above it. The lower wick must be larger than the upper wick, showing little pullback as price pushed upward and confirming strong buying pressure.
🔹Bearish Manipulation Candle
A bearish Manipulation Candle forms when price sweeps above the previous candle’s high, then drops below its low, and closes beneath it. The upper wick must be larger than the lower wick, showing little pullback as price moved downward and confirming strong selling pressure.
🔹Manipulation Candle Visuals
When the indicator detects a Manipulation Candle, it automatically changes the candle’s color on the chart. Both bullish and bearish Manipulation Candles use the same color. Users can change this color in the settings by adjusting the “Manipulation Candlestick” option found under the “Style Customization” section.
The candle coloring feature can also be turned off entirely, which only removes the visual highlight from the chart and does not affect the signals or any of the indicator’s underlying logic that uses Manipulation Candlesticks.
ALMOST MANIPULATION CANDLESTICKS:
Almost Manipulation Candlesticks (AMCs) are similar to Manipulation Candles, except they close inside the previous candle’s range instead of outside it. In the Manipulation Model indicator, these candles help identify when price is showing the same sweeping behavior but hasn’t yet confirmed full displacement. They act as early warnings that a manipulation event may be developing. Just like Manipulation Candles, the indicator checks an AMC’s position relative to sessions, key levels, and higher timeframe Fair Value Gaps to determine if a valid setup exists.
🔹What is an Almost Manipulation Candlestick?
An Almost Manipulation Candlestick (AMC) forms when price sweeps both the high and low of the previous candle and closes inside that candle’s range.
A bullish AMC occurs when price sweeps below the previous low, moves above the previous high, and closes within the previous candle’s body instead of above it.
A bearish AMC occurs when price sweeps above the previous high, drops below the previous low, and closes within the previous candle’s body instead of beneath it.
🔹How to Interpret and Use Almost Manipulation Candlesticks:
Almost Manipulation Candles highlight hesitation or early signs of manipulation.
A bullish AMC indicates buyers pushed price up after sweeping lower, but price did not close decisively above the prior high.
A bearish AMC indicates sellers pushed price down after sweeping higher, but price did not close decisively below the prior low.
🔹How Almost Manipulation Candlesticks are identified:
The indicator confirms Almost Manipulation Candles using the same sweep and wick logic as Manipulation Candles, except the candle’s close must remain inside the previous candle’s range:
Sweep Condition:
Price must take both sides of the previous candle’s range, moving above its high and below its low.
Candle Close Location:
The candle’s close must stay within the prior candle’s range.
Wick Confirmation:
For a bullish AMC, the lower wick must be larger than the upper wick. For a bearish AMC, the upper wick must be larger than the lower wick.
Once these conditions are met at candle close, it is confirmed as a bullish or bearish Almost Manipulation Candle.
🔹Bullish Almost Manipulation Candle
A bullish AMC forms when price sweeps below the previous candle’s low, moves above the prior candle’s high, and closes back inside the previous candle’s range. The lower wick must be larger than the upper wick, showing that buyers defended lower prices but the move did not close decisively upward.
🔹Bearish Almost Manipulation Candle
A bearish AMC forms when price sweeps above the previous candle’s high, drops below the previous candle’s low, and closes back inside the previous candle’s range. The upper wick must be larger than the lower wick, showing that sellers rejected higher prices but the candle did not close decisively lower.
🔹Almost Manipulation Candle Visuals
When the indicator detects an Almost Manipulation Candle, it automatically changes the candle’s color on the chart. Both bullish and bearish Almost Manipulation Candles use the same color. Users can change this color in the settings by adjusting the “Almost Manipulation Candlestick” option found under the “Style Customization” section.
The candle coloring feature can also be turned off entirely, which only removes the visual highlight from the chart and does not affect the signals or any of the indicator’s underlying logic that uses Almost Manipulation Candlesticks.
HIGHER TIMEFRAME FAIR VALUE GAPS:
The Manipulation Model indicator automatically plots Fair Value Gaps from two user-selected higher timeframes.
🔹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.
Bullish & Bearish FVGs:
🔹Why are Fair Value Gaps important?:
Fair Value Gaps (FVGs) show where price moved so quickly that one side of the market never got a chance to trade. They represent sudden shifts in what traders believe something is worth, where “fair value” changed. When a large candle drives straight through an area without overlap from the candles before and after it, it means buyers or sellers were so aggressive that the market skipped that price zone entirely.
These gaps matter because they mark the moment when confidence in price changes. If price rallies and never pulls back, it signals that traders accept the new higher prices as fair and are willing to keep buying there. The same logic applies in reverse for bearish gaps. They tell you where the market re-priced aggressively and where value was last accepted.
🔹How are Fair Value Gaps used?:
Higher Timeframe FVGs are used as a confluence for all setups within the Manipulation Model indicator. The indicator automatically detects and plots these imbalances from the chosen higher timeframe onto the current chart. When a Manipulation or Almost Manipulation Candle forms near or inside a higher timeframe Fair Value Gap, it adds context to the setup. They are not trade signals by themselves but act as a supporting element that contextualizes setups.
🔹When are Higher Timeframe Fair Value Gaps mitigated?
A Higher Timeframe Fair Value Gap is considered mitigated when the selected higher timeframe closes above the gap for a bearish FVG or below the gap for a bullish FVG.
🔹Higher Timeframe FVG Settings:
Timeframe 1 / Timeframe 2:
Select up to two higher timeframes to use for Fair Value Gaps. Disabling either one removes it visually from the chart but does not affect signal generation. However, the timeframes you select will be used for signal generation logic.
For example, if you select the 1-hour and 4-hour timeframes, then the 1-hour and 4-hour FVGs will be used for signal generation logic, which is explained in the signals section below.
Combine Zones:
When enabled, overlapping FVGs on the same higher timeframe are merged into a single zone. This keeps the chart clean and prevents duplicate zones from displaying.
Midline:
Adds a center line through each higher timeframe FVG.
Labels:
Displays a “ FVG” label beside each zone. This helps users see which timeframe the FVG is detected from.
Color Customization:
Each timeframe has separate color settings for bullish and bearish FVGs. Users can adjust these colors independently for both timeframes to fit their chart layout.
FVG Display Limit:
Controls how many higher timeframe FVGs are shown at once. Only the nearest X active gaps to current price will appear, helping maintain a clear view of relevant imbalances.
SESSIONS:
The Manipulation Model indicator includes six customizable trading sessions: Asia, London, NY AM, NYSE, London Close, and NY PM. All session times and visuals are fully user-configurable. Each session has adjustable start and end times that can be set to match your preferred schedule. Users can also customize visuals for each session, including the color, opacity, and visibility of session zones.
Session highs and lows are automatically tracked and used within the indicator’s signal logic. When a Manipulation or Almost Manipulation Candle forms near a session high or low, it is recognized within the indicator’s signal detection.
Default times used for each session (in EST):
Asia: 20:00 - 00:00
London: 02:00 - 05:00
NY AM: 08:00 - 09:30
NYSE: 09:30 - 10:00
London Close: 10:00 - 11:00
NY PM: 11:00 - 14:00
🔹Session Settings:
Session Boxes:
Each session has a box that outlines its active time window. These boxes 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.
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.
Labels and Price Display:
Labels can be toggled on for all session highs and lows. Users can adjust label color, text size, and choose whether to show the price next to the label. Users can adjust the text size, choosing between tiny, small, normal, large, and huge.
Extend Levels:
When enabled, each session’s high and low levels can be extended forward by a set number of bars.
Session Titles:
Titles for each enabled session (e.g., “Asia,” “London,” “NY AM”) can be displayed directly on the chart.
Show Last:
The “Show Last” setting allows you to choose how many recent sessions of each type appear on the chart. For example, if you only have the Asia session enabled and have this setting set to 2, the recent two Asia sessions will be displayed.
🔹Sessions Used
Under the “Sessions Used” section in the settings, users can choose which sessions are active for signal generation. Only sessions enabled here will produce signals. For example, if you want setups to form only during the London session, turn off all other sessions in this section.
Disabling a session under the main Sessions section only hides its visuals (boxes, lines, or labels). It does not impact signal detection or logic. However, changing a session’s start and end time in either section will affect signals, since signals are tied to the exact session windows defined by the user. This distinction ensures you have full control over what’s displayed visually versus what contributes to active trade signal logic.
Please Note: Signals are only detected and plotted on your chart during sessions. Signals can not be detected outside of session time windows.
KEY LEVELS:
The Manipulation Model indicator includes 10 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, and Midnight Open. The levels can be enabled or disabled and customized in color and line style. These levels are used for the indicator’s signal logic.
🔹Daily Open
The Daily Open marks where the current trading day began.
🔹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. This value is automatically pulled from the daily chart and projected forward onto intraday timeframes.
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. Like the PDH, this level is retrieved from the prior day’s data and extended into the current session.
🔹Weekly Open
The Weekly Open marks the first price of the current trading week.
🔹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. This value is automatically pulled from the weekly chart and extended forward into the current week for easy reference on intraday timeframes.
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. Like the PWH, this level is sourced from the prior week’s data and projected onto the current week’s chart.
🔹Monthly Open
The Monthly Open marks the opening price of the current month.
🔹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. This level is automatically retrieved from the monthly chart and extended into the new month on all lower timeframes.
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. Like the PMH, this value is pulled from the prior month’s data and extended into the new month on all lower timeframes.
🔹Midnight Open
The Midnight Open marks the first price of the trading day at 00:00 EST.
🔹Customization Options:
Users can fully customize the appearance of all key levels, including the following:
Daily Levels: Daily Open, PDH, and PDL
Weekly Levels: Weekly Open, PWH, and PWL
Monthly Levels: Monthly Open, PMH, and PML
Midnight Open
Color Settings:
Each group of levels (Daily, Weekly, Monthly) shares a single color for the Open, High, and Low lines. For example, the Daily Open, PDH, and PDL all use the same color. Colors can be changed for each group, but not for individual levels within the same group.
Line Style:
Users can select a global line style, choosing between solid, dashed, or dotted, for all Daily, Weekly, and Monthly levels. This style applies to all levels within those groups. For example, the Weekly Open, PWH, and PWL must all share the same line style.
The Midnight Open has its own independent line style setting and can use a different style from the other key levels.
Show Labels:
When enabled, text labels appear to the right of each key level. Users can adjust label color, but only one label color is applied to all levels for consistency.
🔹Key Levels Used:
Under the “Key Levels Used” section, users can choose which Key Levels and Session Levels (Session Highs/Lows) are factored into signal generation. Only levels enabled here are considered within the logic that confirms setups.
Users can choose between the following levels:
Daily Open
Previous Day High/Low
Weekly Open
Previous Week High/Low
Monthly Open
Previous Month High/Low
Asia Session High/Low
London Session High/Low
NY AM Session High/Low
NY Lunch Session High/Low
NY PM Session High/Low
London Close Session High/Low
Midnight Open
For example, if you only want to see setups that form using the Daily and Weekly levels, you should only enable the Daily Open, Previous Day High/Low, Weekly Open, and Previous Week High/Low.
Disabling a level in the main “Key Levels” section only hides its visuals, while disabling it in “Key Levels Used” removes it entirely from the signal logic. Adjusting or removing any level in this section directly affects how setups are detected since the indicator references these levels when confirming Long, Short, Bulltrap, and Beartrap setups.
SIGNALS:
The Manipulation Model indicator automatically identifies Long, Short, Bulltrap, and Beartrap setups based on the interaction between Manipulation Candles (MCs), Almost Manipulation Candles (AMCs), and two main entry conditions: Key Levels and Fair Value Gaps (FVGs).
Each signal type uses the structure of a Manipulation or Almost Manipulation Candle as its foundation. When one of these candles forms and aligns with the entry conditions, the indicator automatically plots labels for an entry, stop loss (SL), and take profit (TP). Every signal follows a mechanical set of rules and is marked in real time. Once confirmed on a candle close, the signal remains fixed on the chart and does not repaint.
🔹Higher Timeframe Bias Filter
Before a signal is generated, the indicator automatically determines directional bias using the 50-period Exponential Moving Average (EMA) on the 1-hour timeframe.
If price is above the 50 EMA, only bullish setups are allowed.
If price is below the 50 EMA, only bearish setups are allowed.
🔹Stop Loss and Take Profit Logic:
For every setup, the stop loss is placed at the low of the Manipulation or Almost Manipulation Candle for bullish setups, and at the high for bearish setups. The take profit is automatically calculated at a 1:1 risk-to-reward ratio relative to that distance.
Users can adjust both the SL Multiplier and TP Multiplier in the settings, under the “General Configuration” section, to extend or contract these levels. For example, increasing the TP Multiplier to 1.5 sets the take profit at 1.5x the distance between the entry and stop loss.
🔹Signal Input Settings:
Candle Type:
Choose which candle type is used to generate signals. Options include:
Manipulation Candle (MC) only
Almost Manipulation Candle (AMC) only
Both (signals are generated from either candle type)
Entry Method:
Determines whether signals are generated based on:
Key Levels only
Fair Value Gaps only
Both (signals are generated from Key Levels AND Fair Value Gaps)
Setup Types:
You can enable or disable specific setup types. Only the selected setup types will appear on your chart:
Long Setups
Short Setups
Bulltrap Setups
Beartrap Setups
🔹Long Setup – Manipulation Candle + Key Level:
A long setup forms when a bullish Manipulation Candle touches a toggled-on key level under the “Key Levels Used” section and closes above it during a toggled-on session from the “Sessions Used” section. After the candle closes and price is above the 1-hour 50 EMA, the indicator marks:
Entry: At the close of the bullish Manipulation Candle
Stop Loss: At the low of the same candle
Take Profit: Equal distance above the entry, based on TP multiplier
In this example, a bullish MC touches the PDH during the London Session and closes above the level:
🔹Short Setup – Manipulation Candle + Key Level
A short setup forms when a bearish Manipulation Candle touches a toggled-on key level under the “Key Levels Used” section and closes below it during a toggled-on session from the “Sessions Used” section. After the candle closes and price is below the 1-hour 50 EMA, the indicator marks:
Entry: At the close of the bearish Manipulation Candle
Stop Loss: At the high of the same candle
Take Profit: Equal distance below the entry, based on the TP Multiplier
In this example, a bearish MC touches the Daily Open during the NY AM Session and closes below the level:
🔹Trap Confirmation Settings
Two settings control how bulltrap and beartrap setups are confirmed once a Manipulation or Almost Manipulation Candle forms.
Candles Between Confirmation:
This setting defines the maximum number of candles allowed between the initial Manipulation Candle and the confirmation candle that closes back in the opposite direction.
For example, if this value is set to 2, the confirmation candle must appear within two bars of the Manipulation Candle for the setup to remain valid. If too many candles form in between, the bull/bear trap setup is ignored.
Trap Wick-to-Body Ratio:
This input measures the ratio of the confirmation candle’s wick size to its body size for bulltrap and beartrap setups. Lower values require a larger body compared to the wick, meaning the confirmation candle must close more decisively. If the ratio is above the threshold set by the user, the confirmation candle for a bulltrap/beartrap setup is considered valid.
For example, if the wick is 10 points and the body is 10 points, the ratio is 1.0 (10 / 10). If the wick is 10 points and the body is 20 points, the ratio is 0.5 (10 / 20).
🔹Beartrap Setup – Manipulation Candle + Key Level
A beartrap setup forms when a bearish Manipulation Candle touches a toggled-on key level under the “Key Levels Used” section. The candle does not need to close above or below the level, it only needs to touch it. After this bearish MC forms, a confirmation candle must close back above the MC’s high during an enabled session under the “Sessions Used” section. The sweep or initial touch can occur before or outside the session, but the confirmation candle must close within an active session window.
To confirm the setup, the following conditions must be met:
The confirmation candle must close within the limit set by the Candles Between Confirmation input.
Its wick-to-body ratio must be less than or equal to the Trap Wick-to-Body Ratio input
Once these conditions are met and price is above the 1-hour 50 EMA, the indicator marks:
Entry: At the close of the confirmation candle
Stop Loss: At the low of the confirmation candle
Take Profit: Equal distance above the entry, measured 1:1 from the candle’s body and scaled by the TP Multiplier
In this example, a bearish Manipulation Candle touches the Daily Open level before price reverses and a confirmation candle closes above it. The confirmation candle occurs during the Asia Session, has a strong body with minimal wicks, meeting the Trap Wick-to-Body Ratio requirement, and it forms just two candles after the bearish MC which is within the limit set by the Candles Between Confirmation input.
🔹Bulltrap Setup – Manipulation Candle + Key Level
A bulltrap setup forms when a bullish Manipulation Candle touches a toggled-on key level under the “Key Levels Used” section. The MC does not need to close above or below the level, it only needs to touch it. After this bullish MC forms, a confirmation candle must close back below the MC’s low during an enabled session under the “Sessions Used” section. The initial key level touch from the MC can occur before or outside the session, but the confirmation candle must close within an active session window.
To confirm the setup, the following conditions must be met:
The confirmation candle must close within the limit set by the Candles Between Confirmation input.
Its wick-to-body ratio must be less than or equal to the Trap Wick-to-Body Ratio input.
Once these conditions are met and price is below the 1-hour 50 EMA, the indicator marks:
Entry: At the close of the confirmation candle
Stop Loss: At the high of the confirmation candle
Take Profit: Equal distance below the entry, measured 1:1 from the candle’s body and scaled by the TP Multiplier
In this example, a bullish Manipulation Candle touches the Daily Open level before price reverses and a confirmation candle closes below it. The confirmation candle forms during the NY AM Session, has a strong body with minimal wicks that meet the Trap Wick-to-Body Ratio requirement, and it appears two candles after the bullish MC which is within the limit defined by the Candles Between Confirmation input.
🔹Long Setup – Almost Manipulation Candle + Key Level
A long setup forms when a bullish Almost Manipulation Candle (AMC) touches a toggled-on key level under the “Key Levels Used” section and closes above it during a toggled-on session from the “Sessions Used” section. After the candle closes and price is above the 1-hour 50 EMA, the indicator marks:
Entry: At the close of the bullish Almost Manipulation Candle
Stop Loss: At the low of the same candle
Take Profit: Equal distance above the entry, based on the TP Multiplier
In this example, a bullish AMC touches the Daily Open during the NYSE Session and closes above the level.
🔹Short Setup – Almost Manipulation Candle + Key Level
A short setup forms when a bearish Almost Manipulation Candle (AMC) touches a toggled-on key level under the “Key Levels Used” section and closes below it during a toggled-on session from the “Sessions Used” section. After the candle closes and price is below the 1-hour 50 EMA, the indicator marks:
Entry: At the close of the bearish Almost Manipulation Candle
Stop Loss: At the high of the same candle
Take Profit: Equal distance below the entry, based on the TP Multiplier
In this example, a bearish AMC touches the Midnight Open during the NY AM Session and closes below the level.
🔹Beartrap Setup – Almost Manipulation Candle + Key Level
A beartrap setup forms when a bearish Almost Manipulation Candle (AMC) touches a toggled-on key level under the “Key Levels Used” section. The candle does not need to close above or below the level, it only needs to touch it. After this bearish AMC forms, a confirmation candle must close back above the AMC’s high during an enabled session under the “Sessions Used” section. The initial touch can occur before or outside the session, but the confirmation candle must close within an active session window.
To confirm the setup, the following conditions must be met:
The confirmation candle must close within the limit set by the Candles Between Confirmation input.
Its wick-to-body ratio must be less than or equal to the Trap Wick-to-Body Ratio input.
Once these conditions are met and price is above the 1-hour 50 EMA, the indicator marks:
Entry: At the close of the confirmation candle
Stop Loss: At the low of the confirmation candle
Take Profit: Equal distance above the entry, measured 1:1 from the candle’s body and scaled by the TP Multiplier
In this example, a bearish AMC touches the Midnight Open before price reverses and a confirmation candle closes above it. The confirmation candle forms during the London Session, has a large body with minimal wicks that meet the Trap Wick-to-Body Ratio requirement, and appears seven candles after the bearish AMC which is within the Candles Between Confirmation limit (10 by default).
🔹Bulltrap Setup – Almost Manipulation Candle + Key Level
A bulltrap setup forms when a bullish AMC touches a toggled-on key level under the “Key Levels Used” section. The candle does not need to close above or below the level; it only needs to touch it. After this bullish AMC forms, a confirmation candle must close back below the AMC’s low during an enabled session under the “Sessions Used” section. The initial touch can occur before or outside the session, but the confirmation candle must close within an active session window.
To confirm the setup, the following conditions must be met:
The confirmation candle must close within the limit set by the Candles Between Confirmation input.
Its wick-to-body ratio must be less than or equal to the Trap Wick-to-Body Ratio input.
Once these conditions are met and price is below the 1-hour 50 EMA, the indicator marks:
Entry: At the close of the confirmation candle
Stop Loss: At the high of the confirmation candle
Take Profit: Equal distance below the entry, measured 1:1 from the candle’s body and scaled by the TP Multiplier
In this example, a bullish AMC touches the NY Lunch Session Low before price reverses and a confirmation candle closes below it. The confirmation candle forms during the Asia Session, has a strong body with minimal wicks that meet the Trap Wick-to-Body Ratio requirement, and appears six candles after the bullish AMC which is within the Candles Between Confirmation limit.
🔹Long Setup – Manipulation Candle + Fair Value Gap
A long setup forms when a bullish Manipulation Candle touches a bullish higher timeframe Fair Value Gap (FVG) from one of the two higher timeframe inputs under the “Fair Value Gaps” section. The candle must close during an enabled session under the “Sessions Used” section. After the candle closes and price is above the 1-hour 50 EMA, the indicator marks:
Entry: At the close of the bullish Manipulation Candle
Stop Loss: At the low of the same candle
Take Profit: Equal distance above the entry, scaled by the TP Multiplier
In this example, a bullish MC taps into a bullish 1-hour FVG during the Asia Session.
🔹Short Setup – Manipulation Candle + Fair Value Gap
A short setup forms when a bearish Manipulation Candle touches a bearish higher timeframe FVG from one of the two selected higher timeframe inputs under the “Fair Value Gaps” section. The candle must also close during an enabled session under the “Sessions Used” section. After the candle closes and price is below the 1-hour 50 EMA, the indicator marks:
Entry: At the close of the bearish Manipulation Candle
Stop Loss: At the high of the same candle
Take Profit: Equal distance below the entry, scaled by the TP Multiplier
In this example, a bearish MC taps a bearish 1-hour FVG during the Asia Session.
🔹Beartrap Setup – Manipulation Candle + Fair Value Gap
A beartrap setup forms when a bearish Manipulation Candle touches a bullish or bearish higher timeframe FVG from one of the two higher timeframe inputs under the “Higher Timeframe FVG Settings” section. After the bearish MC forms, price must reverse and a confirmation candle must close above the bearish MC’s high during an enabled session under the “Sessions Used” section. The initial touch of the FVG can occur before or outside the session, but the confirmation candle must close within an active session window.
To confirm the setup, the following conditions must be met:
The confirmation candle must close within the limit set by the Candles Between Confirmation input.
Its wick-to-body ratio must be less than or equal to the Trap Wick-to-Body Ratio input.
Once these conditions are met and price is above the 1-hour 50 EMA, the indicator marks:
Entry: At the close of the confirmation candle
Stop Loss: At the low of the confirmation candle
Take Profit: Equal distance above the entry, measured 1:1 from the candle’s body and scaled by the TP Multiplier
In this example, a bearish MC taps a 1-hour bearish FVG, price reverses, and a confirmation candle closes above the bearish MC’s high. The confirmation candle forms during the London Session, has a strong body with minimal wicks that meet the Trap Wick-to-Body Ratio requirement, and appears two candles after the bearish MC which is within the Candles Between Confirmation limit.
🔹Bulltrap Setup – Manipulation Candle + Fair Value Gap
A bulltrap setup forms when a bullish MC touches a bearish or bullish higher timeframeFVG from one of the two higher timeframe inputs under the “Higher Timeframe FVG Settings” section. After the bullish MC forms, price must reverse and a confirmation candle must close below the MC’s low during an enabled session under the “Sessions Used” section. The initial touch of the FVG can occur before or outside the session, but the confirmation candle must close within an active session window.
To confirm the setup, the following conditions must be met:
The confirmation candle must close within the limit set by the Candles Between Confirmation input.
Its wick-to-body ratio must be less than or equal to the Trap Wick-to-Body Ratio input.
Once these conditions are met and price is below the 1-hour 50 EMA, the indicator marks:
Entry: At the close of the confirmation candle
Stop Loss: At the high of the confirmation candle
Take Profit: Equal distance below the entry, measured 1:1 from the candle’s body and scaled by the TP Multiplier
In this example, a bullish MC taps a 4-hour bearish FVG, price reverses, and a confirmation candle closes below the bullish MC’s low. The confirmation candle forms during the NY PM Session, has a strong body with minimal wicks that meet the Trap Wick-to-Body Ratio requirement, and appears six candles after the bullish MC which is within the Candles Between Confirmation limit.
🔹Long Setup – Almost Manipulation Candle + Fair Value Gap
A long setup forms when a bullish AMC touches a bullish higher timeframe FVG from one of the two higher timeframe inputs under the “Fair Value Gaps” section. The candle must close during an enabled session under the “Sessions Used” section. After the candle closes and price is above the 1-hour 50 EMA, the indicator marks:
Entry: At the close of the bullish AMC
Stop Loss: At the low of the same candle
Take Profit: Equal distance above the entry, scaled by the TP Multiplier
In this example, a bullish AMC taps into a bullish 1-hour FVG during the London Session.
🔹Short Setup – Almost Manipulation Candle + Fair Value Gap
A short setup forms when a bearish AMC touches a bearish higher timeframe FVG from one of the two selected higher timeframe inputs under the “Fair Value Gaps” section. The candle must also close during an enabled session under the “Sessions Used” section. After the candle closes and price is below the 1-hour 50 EMA, the indicator marks:
Entry: At the close of the bearish AMC
Stop Loss: At the high of the same candle
Take Profit: Equal distance below the entry, scaled by the TP Multiplier
In this example, a bearish AMC taps a bearish 1-hour FVG during the NY PM Session.
🔹Beartrap Setup – Almost Manipulation Candle + Fair Value Gap
A beartrap setup forms when a bearish AMC touches a bullish or bearish higher timeframe FVG from one of the two higher timeframe inputs under the “Higher Timeframe FVG Settings” section. After the bearish AMC forms, price must reverse and a confirmation candle must close above the bearish AMC’s high during an enabled session under the “Sessions Used” section. The initial touch of the FVG can occur before or outside the session, but the confirmation candle must close within an active session window.
To confirm the setup, the following conditions must be met:
The confirmation candle must close within the limit set by the Candles Between Confirmation input.
Its wick-to-body ratio must be less than or equal to the Trap Wick-to-Body Ratio input.
Once these conditions are met and price is above the 1-hour 50 EMA, the indicator marks:
Entry: At the close of the confirmation candle
Stop Loss: At the low of the confirmation candle
Take Profit: Equal distance above the entry, measured 1:1 from the candle’s body and scaled by the TP Multiplier
In this example, a bearish AMC taps a 4-hour bearish FVG, price reverses, and a confirmation candle closes above the bearish AMC’s high. The confirmation candle forms during the NY PM Session, has a strong body with minimal wicks that meet the Trap Wick-to-Body Ratio requirement, and appears seven candles after the bearish AMC, which is within the Candles Between Confirmation limit.
🔹Bulltrap Setup – Almost Manipulation Candle + Fair Value Gap
A bulltrap setup forms when a bullish AMC touches a bearish or bullish higher timeframe FVG from one of the two higher timeframe inputs under the “Higher Timeframe FVG Settings” section. After the bullish AMC forms, price must reverse and a confirmation candle must close below the AMC’s low during an enabled session under the “Sessions Used” section. The initial touch of the FVG can occur before or outside the session, but the confirmation candle must close within an active session window.
To confirm the setup, the following conditions must be met:
The confirmation candle must close within the limit set by the Candles Between Confirmation input.
Its wick-to-body ratio must be less than or equal to the Trap Wick-to-Body Ratio input.
Once these conditions are met and price is below the 1-hour 50 EMA, the indicator marks:
Entry: At the close of the confirmation candle
Stop Loss: At the high of the confirmation candle
Take Profit: Equal distance below the entry, measured 1:1 from the candle’s body and scaled by the TP Multiplier
In this example, a bullish AMC taps a 1-hour bullish FVG, price reverses, and a confirmation candle closes below the bullish AMC’s low. The confirmation candle forms during the Asia Session, has a strong body with minimal wicks that meet the Trap Wick-to-Body Ratio requirement, and appears six candles after the bullish AMC, which is within the Candles Between Confirmation limit.
🔹Signal Style Customization
The Manipulation Model indicator provides full visual customization for all signal elements, allowing users to easily adjust the appearance of entry, stop loss, and take profit labels.
Label Colors:
Users can customize the label color for Long Setups (Long and Beartrap) and Short Setups (Short and Bulltrap).
Long and Beartrap setups share the same label color.
Short and Bulltrap setups share the same label color.
Label text color can also be customized and applied globally to all signal labels.
Stop Loss (SL) and Take Profit (TP) Labels:
The SL and TP label colors can be customized independently.
Users can toggle SL Labels and TP Labels on or off. When turned off, the corresponding labels are hidden, but their levels remain active on the chart.
Entry, Stop Loss, and Take Profit Lines:
Each of these lines can be individually toggled on or off.
Entry Line: Marks the entry price level.
Stop Loss Line: Displays the SL level derived from each setup’s logic.
Take Profit Line: Displays the TP level calculated using the Take Profit Multiplier setting.
Users can also toggle the labels for each line on or off and adjust the color for each line type independently.
WIN RATE DASHBOARD:
The Win Rate Dashboard gives traders a quick way to see the recent performance of their enabled setups. It automatically calculates and displays win rates for each signal type turned on under the “General Configuration” section, based on the sessions and key levels currently active in the settings.
The dashboard updates in real time, showing both the win rate percentage and total trade count for all enabled signal types combined. It looks back at a set number of bars to calculate results, providing a simple performance snapshot directly on your chart.
How It Works:
When a signal triggers, the indicator tracks whether price first reaches the Take Profit (TP) or Stop Loss (SL) level.
A winning trade is recorded when the take profit is hit before the stop loss.
A losing trade is recorded when the stop loss is hit before the take profit.
The win rate = (Winning Trades / Total Trades) x 100
🔹Dashboard Customization:
Users can adjust the dashboard’s appearance with the following settings:
Background Color
Frame Color
Border Color
Text Color
You can also toggle the dashboard on or off from the settings menu. It appears in the top-right corner of the chart by default and its position cannot be changed.
🔹Disclaimer:
The Win Rate Dashboard provides historical performance data based on the signals and conditions you’ve enabled. These results are calculated from past bars and are not indicative of future performance or profitability.
ALERTS:
The Manipulation Model indicator includes full alert functionality powered by AnyAlert(), allowing users to receive notifications for all major setups and level breaks in real time.
Users can choose exactly which alerts they want to receive under the “Alerts” section of the settings. Once your preferred alerts are toggled on, you can create a TradingView alert using the AnyAlert() condition. This will automatically trigger alerts for all selected events as they occur on your chart.
Available Alerts:
Long Setup
Short Setup
Bulltrap Setup
Beartrap Setup
Manipulation Candle
Almost Manipulation Candle
Previous Day High/Low Break
Current Day Open Break
Previous Week High/Low Break
Current Week Open Break
Previous Month High/Low Break
Current Month Open Break
Asia Session High/Low Break
London Session High/Low Break
NY AM Session High/Low Break
NYSE Session High/Low Break
London Close Session High/Low Break
NY PM Session High/Low Break
Midnight Open Break
To receive alerts:
Open the alert creation window in TradingView
Select “Manipulation Model ” as the condition
Choose AnyAlert() from the dropdown
Create the alert
IMPORTANT NOTES:
TradingView has limitations when running features on multiple timeframes, 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:
The Manipulation Model is unique because every setup type is fully rule-based and tied to strict structural logic. Traders can control exactly how signals form by selecting which candle types are used, which key levels and sessions are active, and whether entries trigger from Key Levels, Fair Value Gaps, or both. All setups use objective rules for confirmation, wick-to-body ratio, and higher timeframe bias. The indicator also provides full customization for visuals, alerts, and trade parameters like TP and SL multipliers. A built-in Win Rate Dashboard tracks real-time performance for all enabled setup types based on the user’s active sessions and signal filters. Together, these features make it a complete, mechanical implementation of the Funded Brothers Manipulation Model and it works across all asset classes including stocks, crypto, forex, and futures.
Smart Money Concepts by WeloTradesThe "Smart Money Concepts by WeloTrades" indicator is designed to offer traders a comprehensive tool that integrates multiple advanced features to aid in market analysis. By combining order blocks, liquidity levels, fair value gaps, trendlines, and market structure analysis, the indicator provides a holistic approach to understanding market dynamics and making informed trading decisions.
Components and Their Integration:
Order Blocks and Breaker Blocks Detection
Functionality: Order blocks represent areas where significant buying or selling occurred, creating potential support or resistance zones. Breaker blocks signal potential reversals.
Integration: By detecting and visualizing these blocks, the indicator helps traders identify key levels where price might react, aiding in entry and exit decisions. The customizable settings allow traders to adjust the visibility and parameters to suit their specific trading strategy.
Liquidity Levels Analysis
Functionality: Liquidity levels indicate zones where significant price movements can occur due to the presence of large orders. These are areas where smart money might be executing trades.
Integration: By tracking these high-probability liquidity areas, traders can anticipate potential price movements. Customizable display limits and mitigation strategies ensure that the information is tailored to the trader’s needs, providing precise and actionable insights.
Fair Value Gaps (FVG)
Functionality: Fair value gaps highlight areas where there is an imbalance between buyers and sellers. These gaps often represent potential trading opportunities.
Integration: The ability to identify and analyze FVGs helps traders spot potential entries based on market inefficiencies. The touch and break detection functionalities provide further refinement, enhancing the precision of trading signals.
Trendlines
Functionality: Trendlines help in identifying the direction of the market and potential reversal points. The additional trendline adds a layer of confirmation for breaks or retests.
Integration: Automatically drawn trendlines assist traders in visualizing market trends and making decisions about potential entries and exits. The additional trendline for stronger confirmation reduces the risk of false signals, providing more reliable trading opportunities.
Market Structure Analysis
Functionality: Understanding market structure is crucial for identifying key support and resistance levels and overall market dynamics. This component displays internal, external, and composite market structures.
Integration: By automatically highlighting shifts in market structure, the indicator helps traders recognize important levels and potential changes in market direction. This analysis is critical for strategic planning and execution in trading.
Customizable Alerts
Functionality: Alerts ensure that traders do not miss significant market events, such as the formation or breach of order blocks, liquidity levels, and trendline interactions.
Integration: Customizable alerts enhance the user experience by providing timely notifications of key events. This feature ensures that traders can act quickly and efficiently, leveraging the insights provided by the indicator.
Interactive Visualization
Functionality: Customizable visual aspects of the indicator allow traders to tailor the display to their preferences and trading style.
Integration: This feature enhances user engagement and usability, making it easier for traders to interpret the data and make informed decisions. Personalization options like colors, styles, and display formats improve the overall effectiveness of the indicator.
How Components Work Together
Comprehensive Market Analysis
Each component of the indicator addresses a different aspect of market analysis. Order blocks and liquidity levels highlight potential support and resistance zones, while fair value gaps and trendlines provide additional context for potential entries and exits. Market structure analysis ties everything together by offering a broad view of market dynamics.
Synergistic Insights
The integration of multiple features allows for cross-validation of trading signals. For instance, an order block coinciding with a high-probability liquidity level and a fair value gap can provide a stronger signal than any of these features alone. This synergy enhances the reliability of the insights and trading signals generated by the indicator.
Enhanced Decision Making
By combining these advanced features into a single tool, traders are equipped with a powerful resource for making informed decisions. The customizable alerts and interactive visualization further support this by ensuring that traders can act quickly on the insights provided.
Order Blocks ( OB) & Breaker Blocks (BB) Visuals:
📝 OB Input Settings
📊 Timeframe #1
TF #1🕑: Enable or disable Timeframe 1.
What it is: A boolean input to toggle the use of the first timeframe.
What it does: Enables or disables Timeframe 1 for the OB settings.
How to use it: Check or uncheck the box to enable or disable.
📊 Timeframe 1 Selection
Timeframe #1🕑: Select the timeframe for Timeframe 1.
What it is: A dropdown to select the desired timeframe.
What it does: Sets the timeframe for Timeframe 1.
How to use it: Choose a timeframe from the dropdown list.
📊 Timeframe #2
TF #2🕑: Enable or disable Timeframe 2.
What it is: A boolean input to toggle the use of the second timeframe.
What it does: Enables or disables Timeframe 2 for the OB settings.
How to use it: Check or uncheck the box to enable or disable.
📊 Timeframe 2 Selection
Timeframe #2🕑: Select the timeframe for Timeframe 2.
What it is: A dropdown to select the desired timeframe.
What it does: Sets the timeframe for Timeframe 2.
How to use it: Choose a timeframe from the dropdown list.
Additional Info: Higher TF Chart & Lower TF Setting / Lower TF Chart & Higher TF Setting.
📏 Show OBs
OB (Length)📏: Toggle the display of Order Blocks.
What it is: A boolean input to enable or disable the display of Order Blocks.
What it does: Shows or hides Order Blocks based on the selected swing length.
How to use it: Check or uncheck the box to enable or disable.
📏 Swing Length Option
Swing Length Option: Select the swing length option.
What it is: A dropdown to choose between SHORT, MID, LONG, or CUSTOM.
What it does: Sets the length of swings for Order Blocks.
How to use it: Choose an option from the dropdown.
Additional Info: Default lengths are SHORT=10, MID=28, LONG=50.
🔧 Custom Swing Length
🔧custom: Specify a custom swing length.
What it is: An integer input for setting a custom swing length.
What it does: Overrides the default swing lengths if set to CUSTOM.
How to use it: Enter a custom integer value (only shown when CUSTOM is selected).
📛 Show BBs
BB (Method)📛: Toggle the display of Breaker Blocks.
What it is: A boolean input to enable or disable the display of Breaker Blocks.
What it does: Shows or hides Breaker Blocks.
How to use it: Check or uncheck the box to enable or disable.
📛 OB End Method
OB End Method: Select the method for determining the end of a Breaker Block.
What it is: A dropdown to choose between Wick and Close.
What it does: Sets the criteria for when a Breaker Block is considered mitigated.
How to use it: Choose an option from the dropdown.
Additional Info: Wicks: OB is mitigated when the price wicks through the OB Level. Close: OB is mitigated when the closing price is within the OB Level.
🔍 Max Bullish Zones
🔍Max Bullish: Set the maximum number of Bullish Order Blocks to display.
What it is: A dropdown to select the maximum number of Bullish Order Blocks.
What it does: Limits the number of Bullish Order Blocks shown on the chart.
How to use it: Choose a value from the dropdown (1-10).
🔍 Max Bearish Zones
🔍Max Bearish: Set the maximum number of Bearish Order Blocks to display.
What it is: A dropdown to select the maximum number of Bearish Order Blocks.
What it does: Limits the number of Bearish Order Blocks shown on the chart.
How to use it: Choose a value from the dropdown (1-10).
🟩 Bullish OB Color
Bullish OB Color: Set the color for Bullish Order Blocks.
What it is: A color picker to set the color of Bullish Order Blocks.
What it does: Changes the color of Bullish Order Blocks on the chart.
How to use it: Select a color from the color picker.
🟥 Bearish OB Color
Bearish OB Color: Set the color for Bearish Order Blocks.
What it is: A color picker to set the color of Bearish Order Blocks.
What it does: Changes the color of Bearish Order Blocks on the chart.
How to use it: Select a color from the color picker.
🔧 OB & BB Range
↔ OB & BB Range: Select the range option for OB and BB.
What it is: A dropdown to choose between RANGE and CUSTOM.
What it does: Sets how far the OB or BB should extend.
How to use it: Choose an option from the dropdown.
Additional Info: RANGE = Current price, CUSTOM = Adjustable Range.
🔧 Custom OB & BB Range
🔧Custom: Specify a custom range for OB and BB.
What it is: An integer input for setting a custom range.
What it does: Defines how far the OB or BB should go, based on a custom value.
How to use it: Enter a custom integer value (range: 1000-500000).
💬 Text Options
💬Text Options: Set text size and color for OB and BB.
What it is: A dropdown to select text size and a color picker to choose text color.
What it does: Changes the size and color of the text displayed for OB and BB.
How to use it: Select a size from the dropdown and a color from the color picker.
💬 Show Timeframe OB
Text: Toggle to display the timeframe of OB.
What it is: A boolean input to show or hide the timeframe text for OB.
What it does: Displays the timeframe information for Order Blocks on the chart.
How to use it: Check or uncheck the box to enable or disable.
💬 Show Volume
Volume: Toggle to display the volume of OB.
What it is: A boolean input to show or hide the volume information for Order Blocks.
What it does: Displays the volume information for Order Blocks on the chart.
How to use it: Check or uncheck the box to enable or disable.
Additional Info:
What it represents: The volume displayed represents the total trading volume that occurred during the formation of the Order Block. This can indicate the level of participation or interest in that price level.
How it's calculated: The volume is the sum of all traded volumes within the candles that form the Order Block.
What it means: Higher volume at an Order Block level may suggest stronger support or resistance. It shows the amount of trading activity and can be an indicator of the potential strength or validity of the Order Block.
Why it's shown: To give traders an idea of the market participation and to help assess the strength of the Order Block.
💬 Show Percentage
%: Toggle to display the percentage of OB.
What it is: A boolean input to show or hide the percentage information for Order Blocks.
What it does: Displays the percentage information for Order Blocks on the chart.
How to use it: Check or uncheck the box to enable or disable.
Additional Info:
What it represents: The percentage displayed usually represents the proportion of price movement relative to the Order Block.
How it's calculated: This can be the percentage move from the start to the end of the Order Block or the retracement level that price has reached relative to the Order Block's range.
What it means: It helps traders understand the extent of price movement within the Order Block and can indicate the significance of the price level.
Why it's shown: To provide a clearer understanding of the price dynamics and the importance of the Order Block within the overall price movement.
Additional Information
Volume Example: If an Order Block forms over three candles with volumes of 100, 150, and 200, the total volume displayed for that Order Block would be 450.
Percentage Example: If the price moves from 100 to 110 within an Order Block, and the total range of the Order Block is from 100 to 120, the percentage shown might be 50% (since the price has moved halfway through the Order Block's range).
Liquidity Levels visuals:
📊 Liquidity Levels Input Settings
📊 Current Timeframe
TF #1🕑: Enable or disable the current timeframe.
What it is: A boolean input to toggle the use of the current timeframe.
What it does: Enables or disables the display of liquidity levels for the current timeframe.
How to use it: Check or uncheck the box to enable or disable.
📊 Higher Timeframe
Higher Timeframe: Select the higher timeframe for liquidity levels.
What it is: A dropdown to select the desired higher timeframe.
What it does: Sets the higher timeframe for liquidity levels.
How to use it: Choose a timeframe from the dropdown list.
📏 Liquidity Length Option
📏Liquidity Length: Select the length for liquidity levels.
What it is: A dropdown to choose between SHORT, MID, LONG, or CUSTOM.
What it does: Sets the length of swings for liquidity levels.
How to use it: Choose an option from the dropdown.
Additional Info: Default lengths are SHORT=10, MID=28, LONG=50.
🔧 Custom Liquidity Length
🔧custom: Specify a custom length for liquidity levels.
What it is: An integer input for setting a custom swing length.
What it does: Overrides the default liquidity lengths if set to CUSTOM.
How to use it: Enter a custom integer value (only shown when CUSTOM is selected).
📛 Mitigation Method
📛Mitigation (Method): Select the method for determining the mitigation of liquidity levels.
What it is: A dropdown to choose between Close and Wick.
What it does: Sets the criteria for when a liquidity level is considered mitigated.
How to use it: Choose an option from the dropdown.
Additional Info:
Wick: Level is mitigated when the price wicks through the level.
Close: Level is mitigated when the closing price is within the level.
📛 Display Mitigated Levels
-: Select to display or hide mitigated levels.
What it is: A dropdown to choose between Remove and Show.
What it does: Displays or hides mitigated liquidity levels.
How to use it: Choose an option from the dropdown.
Additional Info:
Remove: Hide mitigated levels.
Show: Display mitigated levels.
🔍 Max Buy Side Liquidity
🔍Max Buy Side Liquidity: Set the maximum number of Buy Side Liquidity Levels to display.
What it is: An integer input to set the maximum number of Buy Side Liquidity Levels.
What it does: Limits the number of Buy Side Liquidity Levels shown on the chart.
How to use it: Enter a value between 0 and 50.
🟦 Buy Side Liquidity Color
Buy Side Liquidity Color: Set the color for Buy Side Liquidity Levels.
What it is: A color picker to set the color of Buy Side Liquidity Levels.
What it does: Changes the color of Buy Side Liquidity Levels on the chart.
How to use it: Select a color from the color picker.
Additional Info:
Tooltip: Set the maximum number of Buy Side Liquidity Levels to display. Default: 5, Min: 1, Max: 50.
If liquidity levels are not displayed as expected, try increasing the max count.
🔍 Max Sell Side Liquidity
🔍Max Sell Side Liquidity: Set the maximum number of Sell Side Liquidity Levels to display.
What it is: An integer input to set the maximum number of Sell Side Liquidity Levels.
What it does: Limits the number of Sell Side Liquidity Levels shown on the chart.
How to use it: Enter a value between 0 and 50.
🟥 Sell Side Liquidity Color
Sell Side Liquidity Color: Set the color for Sell Side Liquidity Levels.
What it is: A color picker to set the color of Sell Side Liquidity Levels.
What it does: Changes the color of Sell Side Liquidity Levels on the chart.
How to use it: Select a color from the color picker.
Additional Info:
Tooltip: Set the maximum number of Sell Side Liquidity Levels to display. Default: 5, Min: 1, Max: 50.
If liquidity levels are not displayed as expected, try increasing the max count.
✂ Box Style (Height)
✂ Box Style (↕): Set the box height style for liquidity levels.
What it is: A float input to set the height of the boxes.
What it does: Adjusts the height of the boxes displaying liquidity levels.
How to use it: Enter a value between -50 and 50.
Additional Info: Default value is -5.
📏 Box Length
b: Set the box length of liquidity levels.
What it is: An integer input to set the length of the boxes.
What it does: Adjusts the length of the boxes displaying liquidity levels.
How to use it: Enter a value between 0 and 500.
Additional Info: Default value is 20.
⏭ Extend Liquidity Levels
Extend ⏭: Toggle to extend liquidity levels beyond the current range.
What it is: A boolean input to enable or disable the extension of liquidity levels.
What it does: Extends liquidity levels beyond their default range.
How to use it: Check or uncheck the box to enable or disable.
Additional Info: Extend liquidity levels beyond the current range.
💬 Text Options
💬 Text Options: Set text size and color for liquidity levels.
What it is: A dropdown to select text size and a color picker to choose text color.
What it does: Changes the size and color of the text displayed for liquidity levels.
How to use it: Select a size from the dropdown and a color from the color picker.
💬 Show Text
Text: Toggle to display text for liquidity levels.
What it is: A boolean input to show or hide the text for liquidity levels.
What it does: Displays the text information for liquidity levels on the chart.
How to use it: Check or uncheck the box to enable or disable.
💬 Show Volume
Volume: Toggle to display the volume of liquidity levels.
What it is: A boolean input to show or hide the volume information for liquidity levels.
What it does: Displays the volume information for liquidity levels on the chart.
How to use it: Check or uncheck the box to enable or disable.
Additional Info:
What it represents: The volume displayed represents the total trading volume that occurred during the formation of the liquidity level. This can indicate the level of participation or interest in that price level.
How it's calculated: The volume is the sum of all traded volumes within the candles that form the liquidity level.
What it means: Higher volume at a liquidity level may suggest stronger support or resistance. It shows the amount of trading activity and can be an indicator of the potential strength or validity of the liquidity level.
Why it's shown: To give traders an idea of the market participation and to help assess the strength of the liquidity level.
💬 Show Percentage
%: Toggle to display the percentage of liquidity levels.
What it is: A boolean input to show or hide the percentage information for liquidity levels.
What it does: Displays the percentage information for liquidity levels on the chart.
How to use it: Check or uncheck the box to enable or disable.
Additional Info:
What it represents: The percentage displayed usually represents the proportion of price movement relative to the liquidity level.
How it's calculated: This can be the percentage move from the start to the end of the liquidity level or the retracement level that price has reached relative to the liquidity level's range.
What it means: It helps traders understand the extent of price movement within the liquidity level and can indicate the significance of the price level.
Why it's shown: To provide a clearer understanding of the price dynamics and the importance of the liquidity level within the overall price movement.
Fair Value Gaps visuals:
📊 Fair Value Gaps Input Settings
📊 Show FVG
TF #1🕑: Enable or disable Fair Value Gaps for Timeframe 1.
What it is: A boolean input to toggle the display of Fair Value Gaps.
What it does: Shows or hides Fair Value Gaps on the chart.
How to use it: Check or uncheck the box to enable or disable.
📊 Select Timeframe
Timeframe: Select the timeframe for Fair Value Gaps.
What it is: A dropdown to select the desired timeframe.
What it does: Sets the timeframe for Fair Value Gaps.
How to use it: Choose a timeframe from the dropdown list.
Additional Info: Higher TF Chart & Lower TF Setting or Lower TF Chart & Higher TF Setting.
📛 FVG Break Method
📛FVG Break (Method): Select the method for determining when an FVG is mitigated.
What it is: A dropdown to choose between Touch, Wicks, Close, or Average.
What it does: Sets the criteria for when a Fair Value Gap is considered mitigated.
How to use it: Choose an option from the dropdown.
Additional Info:
Touch: FVG is mitigated when the price touches the gap.
Wicks: FVG is mitigated when the price wicks through the gap.
Close: FVG is mitigated when the closing price is within the gap.
Average: FVG is mitigated when the average price (average of high and low) is within the gap.
📛 Show Mitigated FVG
show: Toggle to display mitigated FVGs.
What it is: A boolean input to show or hide mitigated Fair Value Gaps.
What it does: Displays or hides mitigated Fair Value Gaps.
How to use it: Check or uncheck the box to enable or disable.
📛 Fill FVG
Fill: Toggle to fill Fair Value Gaps.
What it is: A boolean input to fill the Fair Value Gaps with color.
What it does: Adds a color fill to the Fair Value Gaps.
How to use it: Check or uncheck the box to enable or disable.
📛 Shade FVG
Shade: Toggle to shade Fair Value Gaps.
What it is: A boolean input to shade the Fair Value Gaps.
What it does: Adds a shade effect to the Fair Value Gaps.
How to use it: Check or uncheck the box to enable or disable.
Additional Info: Select the method to break FVGs and toggle the visibility of FVG Breaks (fill FVG and/or shade FVG).
🔍 Max Bullish FVG
🔍Max Bullish FVG: Set the maximum number of Bullish Fair Value Gaps to display.
What it is: An integer input to set the maximum number of Bullish Fair Value Gaps.
What it does: Limits the number of Bullish Fair Value Gaps shown on the chart.
How to use it: Enter a value between 0 and 50.
🔍 Max Bearish FVG
🔍Max Bearish FVG: Set the maximum number of Bearish Fair Value Gaps to display.
What it is: An integer input to set the maximum number of Bearish Fair Value Gaps.
What it does: Limits the number of Bearish Fair Value Gaps shown on the chart.
How to use it: Enter a value between 0 and 50.
🟥 Bearish FVG Color
Bearish FVG Color: Set the color for Bearish Fair Value Gaps.
What it is: A color picker to set the color of Bearish Fair Value Gaps.
What it does: Changes the color of Bearish Fair Value Gaps on the chart.
How to use it: Select a color from the color picker.
Additional Info:
Tooltip: Set the maximum number of Bearish Fair Value Gaps to display. Default: 5, Min: 1, Max: 50.
If Fair Value Gaps are not displayed as expected, try increasing the max count.
🟦 Bullish FVG Color
Bullish FVG Color: Set the color for Bullish Fair Value Gaps.
What it is: A color picker to set the color of Bullish Fair Value Gaps.
What it does: Changes the color of Bullish Fair Value Gaps on the chart.
How to use it: Select a color from the color picker.
Additional Info:
Tooltip: Set the maximum number of Bullish Fair Value Gaps to display. Default: 5, Min: 1, Max: 50.
If Fair Value Gaps are not displayed as expected, try increasing the max count.
📏 FVG Range
↔ FVG Range: Set the range for Fair Value Gaps.
What it is: An integer input to set the range of the Fair Value Gaps.
What it does: Adjusts the range of the Fair Value Gaps displayed.
How to use it: Enter a value between 0 and 100.
Additional Info: Adjustable length only works when both RANGE & EXTEND display OFF. Range=current price, Extend=Full Range.
⏭ Extend FVG
Extend⏭: Toggle to extend Fair Value Gaps beyond the current range.
What it is: A boolean input to enable or disable the extension of Fair Value Gaps.
What it does: Extends Fair Value Gaps beyond their default range.
How to use it: Check or uncheck the box to enable or disable.
⏯ FVG Range
Range⏯: Toggle the range of Fair Value Gaps.
What it is: A boolean input to enable or disable the range display for Fair Value Gaps.
What it does: Sets the range of Fair Value Gaps displayed.
How to use it: Check or uncheck the box to enable or disable.
↕ Max Width
↕ Max Width: Set the maximum width of Fair Value Gaps.
What it is: A float input to set the maximum width of Fair Value Gaps.
What it does: Limits the width of Fair Value Gaps as a percentage of the price range.
How to use it: Enter a value between 0 and 5.0.
Additional Info: FVGs wider than this value will be ignored.
♻ Filter FVG
Filter FVG ♻: Toggle to filter out small Fair Value Gaps.
What it is: A boolean input to filter out small Fair Value Gaps.
What it does: Ignores Fair Value Gaps smaller than the specified max width.
How to use it: Check or uncheck the box to enable or disable.
➖ Mid Line Style
➖Mid Line Style: Select the style of the mid line for Fair Value Gaps.
What it is: A dropdown to choose between Solid, Dashed, or Dotted.
What it does: Sets the style of the mid line within Fair Value Gaps.
How to use it: Choose an option from the dropdown.
🎨 Mid Line Color
Mid Line Color: Set the color for the mid line within Fair Value Gaps.
What it is: A color picker to set the color of the mid line.
What it does: Changes the color of the mid line within Fair Value Gaps.
How to use it: Select a color from the color picker.
Additional Information
Mitigation Methods: Each method (Touch, Wicks, Close, Average) provides different criteria for when a Fair Value Gap is considered mitigated, helping traders to understand the dynamics of price movements within gaps.
Volume and Percentage: Displaying volume and percentage information for Fair Value Gaps helps traders gauge the strength and significance of these gaps in relation to trading activity and price movements.
Trendlines visuals:
📊 Trendlines Input Settings
📊 Show Trendlines
Trendlines & Trendlines Difference(%) ↕: Enable or disable trendlines and set the percentage difference from the first trendline.
What it is: A boolean input to toggle the display of trendlines.
What it does: Shows or hides trendlines on the chart and allows setting a percentage difference from the first trendline.
How to use it: Check or uncheck the box to enable or disable.
Additional Info: The percentage difference determines the distance of the second trendline from the first one.
📏 Trendline Length Option
📏Trendline Length: Select the length for trendlines.
What it is: A dropdown to choose between SHORT, MID, LONG, or CUSTOM.
What it does: Sets the length of trendlines.
How to use it: Choose an option from the dropdown.
Additional Info: Default lengths are SHORT=50, MID=100, LONG=200.
🔧 Custom Trendline Length
🔧custom: Specify a custom length for trendlines.
What it is: An integer input for setting a custom trendline length.
What it does: Overrides the default trendline lengths if set to CUSTOM.
How to use it: Enter a custom integer value (only shown when CUSTOM is selected).
🔍 Max Bearish Trendlines
🔍Max Trendlines Bearish: Set the maximum number of bearish trendlines to display.
What it is: A dropdown to select the maximum number of bearish trendlines.
What it does: Limits the number of bearish trendlines shown on the chart.
How to use it: Choose a value from the dropdown (2-20).
🟩 Bearish Trendline Color
Bearish Trendline Color: Set the color for bearish trendlines.
What it is: A color picker to set the color of bearish trendlines.
What it does: Changes the color of bearish trendlines on the chart.
How to use it: Select a color from the color picker.
Additional Info: Adjust to control how many bearish trendlines are displayed.
🔍 Max Bullish Trendlines
🔍Max Trendlines Bullish: Set the maximum number of bullish trendlines to display.
What it is: A dropdown to select the maximum number of bullish trendlines.
What it does: Limits the number of bullish trendlines shown on the chart.
How to use it: Choose a value from the dropdown (2-20).
🟥 Bullish Trendline Color
Bullish Trendline Color: Set the color for bullish trendlines.
What it is: A color picker to set the color of bullish trendlines.
What it does: Changes the color of bullish trendlines on the chart.
How to use it: Select a color from the color picker.
Additional Info: Adjust to control how many bullish trendlines are displayed.
📐 Degrees Text
📐Degrees ° (💬 Size): Enable or disable degrees text and set its size and color.
What it is: A boolean input to show or hide the degrees text for trendlines.
What it does: Displays the degrees text for trendlines.
How to use it: Check or uncheck the box to enable or disable.
📏 Text Size for Degrees
Text Size: Set the text size for degrees on trendlines.
What it is: A dropdown to select the size of the degrees text.
What it does: Changes the size of the degrees text displayed for trendlines.
How to use it: Choose a size from the dropdown (XS, S, M, L, XL).
🎨 Degrees Text Color
Degrees Text Color: Set the color for the degrees text on trendlines.
What it is: A color picker to set the color of the degrees text.
What it does: Changes the color of the degrees text on the chart.
How to use it: Select a color from the color picker.
♻ Filter Degrees
♻ Filter Degrees °: Enable or disable angle filtering and set the angle range.
What it is: A boolean input to filter trendlines by their angle.
What it does: Shows only trendlines within a specified angle range.
How to use it: Check or uncheck the box to enable or disable.
Additional Info: Angles outside this range will be filtered out.
🔢 Angle Range
Angle Range: Set the angle range for filtering trendlines.
What it is: Two float inputs to set the minimum and maximum angle for trendlines.
What it does: Defines the range of angles for which trendlines will be shown.
How to use it: Enter values for the minimum and maximum angles.
➖ Line Style
➖Style #1 & #2: Select the style of the primary and secondary trendlines.
What it is: Two dropdowns to choose between Solid, Dashed, or Dotted for the trendlines.
What it does: Sets the style of the primary and secondary trendlines.
How to use it: Choose a style from each dropdown.
📏 Line Thickness
: Set the thickness for the trendlines.
What it is: An integer input to set the thickness of the trendlines.
What it does: Adjusts the thickness of the trendlines displayed on the chart.
How to use it: Enter a value between 1 and 5.
Additional Information
Trendline Percentage Difference: Setting a percentage difference helps in analyzing the relative position and angle of trendlines.
Filtering by Angle: This feature allows focusing on trendlines within a specific angle range, enhancing the clarity of trend analysis.
BOS & CHOCH Market Structure visuals:
📊 BOS & CHOCH Market Structure Input Settings
📏 Market Structure Length Option
📏Market Structure: Select the market structure length option.
What it is: A dropdown to choose between INTERNAL, EXTERNAL, ALL, CUSTOM, or NONE.
What it does: Sets the type of market structure to be displayed.
How to use it: Choose an option from the dropdown.
Additional Info:
INTERNAL: Only internal structure.
EXTERNAL: Only external structure.
ALL: Both internal and external structures.
CUSTOM: Custom lengths.
NONE: No structure.
🔧 Custom Internal Length
🔧Custom Internal: Specify a custom length for internal market structure.
What it is: An integer input for setting a custom internal length.
What it does: Defines the length of internal market structures if CUSTOM is selected.
How to use it: Enter a custom integer value (only shown when CUSTOM is selected).
💬 Internal Label Size
💬Internal Label Size: Set the label size for internal market structures.
What it is: A dropdown to select the size of the labels.
What it does: Changes the size of the labels for internal market structures.
How to use it: Choose a size from the dropdown (XS, S, M, L, XL).
🟩 Internal Bullish Color
Internal Bullish Color: Set the color for bullish internal market structures.
What it is: A color picker to set the color of bullish internal market structures.
What it does: Changes the color of bullish internal market structures on the chart.
How to use it: Select a color from the color picker.
🟥 Internal Bearish Color
Internal Bearish Color: Set the color for bearish internal market structures.
What it is: A color picker to set the color of bearish internal market structures.
What it does: Changes the color of bearish internal market structures on the chart.
How to use it: Select a color from the color picker.
🔧 Custom External Length
🔧Custom External: Specify a custom length for external market structure.
What it is: An integer input for setting a custom external length.
What it does: Defines the length of external market structures if CUSTOM is selected.
How to use it: Enter a custom integer value (only shown when CUSTOM is selected).
💬 External Label Size
💬External Label Size: Set the label size for external market structures.
What it is: A dropdown to select the size of the labels.
What it does: Changes the size of the labels for external market structures.
How to use it: Choose a size from the dropdown (XS, S, M, L, XL).
🟩 External Bullish Color
External Bullish Color: Set the color for bullish external market structures.
What it is: A color picker to set the color of bullish external market structures.
What it does: Changes the color of bullish external market structures on the chart.
How to use it: Select a color from the color picker.
🟥 External Bearish Color
External Bearish Color: Set the color for bearish external market structures.
What it is: A color picker to set the color of bearish external market structures.
What it does: Changes the color of bearish external market structures on the chart.
How to use it: Select a color from the color picker.
📐 Show Equal Highs and Lows
EQL & EQH📐: Toggle visibility for equal highs and lows.
What it is: A boolean input to show or hide equal highs and lows.
What it does: Displays or hides equal highs and lows on the chart.
How to use it: Check or uncheck the box to enable or disable.
📏 Equal Highs and Lows Threshold
Equal Highs and Lows Threshold: Set the threshold for equal highs and lows.
What it is: A float input to set the threshold for equal highs and lows.
What it does: Defines the range within which highs and lows are considered equal.
How to use it: Enter a value between 0 and 10.
💬 Label Size for Equal Highs and Lows
💬Label Size for Equal Highs and Lows: Set the label size for equal highs and lows.
What it is: A dropdown to select the size of the labels.
What it does: Changes the size of the labels for equal highs and lows.
How to use it: Choose a size from the dropdown (XS, S, M, L, XL).
🟩 Bullish Color for Equal Highs and Lows
Bullish Color for Equal Highs and Lows: Set the color for bullish equal highs and lows.
What it is: A color picker to set the color of bullish equal highs and lows.
What it does: Changes the color of bullish equal highs and lows on the chart.
How to use it: Select a color from the color picker.
🟥 Bearish Color for Equal Highs and Lows
Bearish Color for Equal Highs and Lows: Set the color for bearish equal highs and lows.
What it is: A color picker to set the color of bearish equal highs and lows.
What it does: Changes the color of bearish equal highs and lows on the chart.
How to use it: Select a color from the color picker.
📏 Show Swing Points
Swing Points📏: Toggle visibility for swing points.
What it is: A boolean input to show or hide swing points.
What it does: Displays or hides swing points on the chart.
How to use it: Check or uncheck the box to enable or disable.
📏 Swing Points Length Option
Swing Points Length Option: Select the length for swing points.
What it is: A dropdown to choose between SHORT, MID, LONG, or CUSTOM.
What it does: Sets the length of swing points.
How to use it: Choose an option from the dropdown.
Additional Info: Default lengths are SHORT=10, MID=28, LONG=50.
💬 Swing Points Label Size
💬Swing Points Label Size: Set the label size for swing points.
What it is: A dropdown to select the size of the labels.
What it does: Changes the size of the labels for swing points.
How to use it: Choose a size from the dropdown (XS, S, M, L, XL).
🎨 Swing Points Color
Swing Points Color: Set the color for swing points.
What it is: A color picker to set the color of swing points.
What it does: Changes the color of swing points on the chart.
How to use it: Select a color from the color picker.
🔧 Custom Swing Points Length
🔧Custom Swings: Specify a custom length for swing points.
What it is: An integer input for setting a custom length for swing points.
What it does: Defines the length of swing points if CUSTOM is selected.
How to use it: Enter a custom integer value (only shown when CUSTOM is selected).
Additional Information
Market Structure Types: Understanding internal and external structures helps in analyzing different market behaviors.
Equal Highs and Lows: This feature identifies areas where price action is balanced, which can be significant for trading strategies.
Swing Points: Highlighting swing points aids in recognizing significant market reversals or continuations.
Benefits
Enhance your trading strategy by visualizing smart money's influence on price movements.
Make informed decisions with real-time data on significant market structures.
Reduce manual analysis with automated detection of key trading signals.
Ideal For
Traders looking for an edge in forex, equities, and cryptocurrency markets by understanding the underlying forces driving market dynamics.
Acknowledgements
Special thanks to these amazing creators for inspiration and their creations:
I want to thank these amazing creators for creating there amazing indicators , that inspired me and also gave me a head start by making this indicator! Without their amazing indicators it wouldn't be possible!
Flux Charts: Volumized Order Blocks
LuxAlgo: Trend Lines
UAlgo: Fair Value Gaps (FVG)
By Leviathan: Market Structure
Sonarlab: Liquidity Levels
Note
Remember to always backtest the indicator first before integrating it into your strategy! For any questions about the indicator, please feel free to ask for assistance.
Mars Signals - Ultimate Institutional Suite v3.0(Joker)Comprehensive Trading Manual
Mars Signals – Ultimate Institutional Suite v3.0 (Joker)
## Chapter 1 – Philosophy & System Architecture
This script is not a simple “buy/sell” indicator.
Mars Signals – UIS v3.0 (Joker) is designed as an institutional-style analytical assistant that layers several methodologies into a single, coherent framework.
The system is built on four core pillars:
1. Smart Money Concepts (SMC)
- Detection of Order Blocks (professional demand/supply zones).
- Detection of Fair Value Gaps (FVGs) (price imbalances).
2. Smart DCA Strategy
- Combination of RSI and Bollinger Bands
- Identifies statistically discounted zones for scaling into spot positions or exiting shorts.
3. Volume Profile (Visible Range Simulation)
- Distribution of volume by price, not by time.
- Identification of POC (Point of Control) and high-/low-volume areas.
4. Wyckoff Helper – Spring
- Detection of bear traps, liquidity grabs, and sharp bullish reversals.
All four pillars feed into a Confluence Engine (Scoring System).
The final output is presented in the Dashboard, with a clear, human-readable signal:
- STRONG LONG 🚀
- WEAK LONG ↗
- NEUTRAL / WAIT
- WEAK SHORT ↘
- STRONG SHORT 🩸
This allows the trader to see *how many* and *which* layers of the system support a bullish or bearish bias at any given time.
## Chapter 2 – Settings Overview
### 2.1 General & Dashboard Group
- Show Dashboard Panel (`show_dash`)
Turns the dashboard table in the corner of the chart ON/OFF.
- Show Signal Recommendation (`show_rec`)
- If enabled, the textual signal (STRONG LONG, WEAK SHORT, etc.) is displayed.
- If disabled, you only see feature status (ON/OFF) and the current price.
- Dashboard Position (`dash_pos`)
Determines where the dashboard appears on the chart:
- `Top Right`
- `Bottom Right`
- `Top Left`
### 2.2 Smart Money (SMC) Group
- Enable SMC Strategy (`show_smc`)
Globally enables or disables the Order Block and FVG logic.
- Order Block Pivot Lookback (`ob_period`)
Main parameter for detecting key pivot highs/lows (swing points).
- Default value: 5
- Concept:
A bar is considered a pivot low if its low is lower than the lows of the previous 5 and the next 5 bars.
Similarly, a pivot high has a high higher than the previous 5 and the next 5 bars.
These pivots are used as anchors for Order Blocks.
- Increasing `ob_period`:
- Fewer levels.
- But levels tend to be more significant and reliable.
- In highly volatile markets (major news, war events, FOMC, etc.),
using values 7–10 is recommended to filter out weak levels.
- Show Fair Value Gaps (`show_fvg`)
Enables/disables the drawing of FVG zones (imbalances).
- Bullish OB Color (`c_ob_bull`)
- Color of Bullish Order Blocks (Demand Zones).
- Default: semi-transparent green (transparency ≈ 80).
- Bearish OB Color (`c_ob_bear`)
- Color of Bearish Order Blocks (Supply Zones).
- Default: semi-transparent red.
- Bullish FVG Color (`c_fvg_bull`)
- Color of Bullish FVG (upward imbalance), typically yellow.
- Bearish FVG Color (`c_fvg_bear`)
- Color of Bearish FVG (downward imbalance), typically purple.
### 2.3 Smart DCA Strategy Group
- Enable DCA Zones (`show_dca`)
Enables the Smart DCA logic and visual labels.
- RSI Length (`rsi_len`)
Lookback period for RSI (default: 14).
- Shorter → more sensitive, more noise.
- Longer → fewer signals, higher reliability.
- Bollinger Bands Length (`bb_len`)
Moving average period for Bollinger Bands (default: 20).
- BB Multiplier (`bb_mult`)
Standard deviation multiplier for Bollinger Bands (default: 2.0).
- For extremely volatile markets, values like 2.5–3.0 can be used so that only extreme deviations trigger a DCA signal.
### 2.4 Volume Profile (Visible Range Sim) Group
- Show Volume Profile (`show_vp`)
Enables the simulated Volume Profile bars on the right side of the chart.
- Volume Lookback Bars (`vp_lookback`)
Number of bars used to compute the Volume Profile (default: 150).
- Higher values → broader historical context, heavier computation.
- Row Count (`vp_rows`)
Number of vertical price segments (rows) to divide the total price range into (default: 30).
- Width (%) (`vp_width`)
Relative width of each volume bar as a percentage.
In the code, bar widths are scaled relative to the row with the maximum volume.
> Technical note: Volume Profile calculations are executed only on the last bar (`barstate.islast`) to keep the script performant even on higher timeframes.
### 2.5 Wyckoff Helper Group
- Show Wyckoff Events (`show_wyc`)
Enables detection and plotting of Wyckoff Spring events.
- Volume MA Length (`vol_ma_len`)
Length of the moving average on volume.
A bar is considered to have Ultra Volume if its volume is more than 2× the volume MA.
## Chapter 3 – Smart Money Strategy (Order Blocks & FVG)
### 3.1 What Is an Order Block?
An Order Block (OB) represents the footprint of large institutional orders:
- Bullish Order Block (Demand Zone)
The last selling region (bearish candle/cluster) before a strong upward move.
- Bearish Order Block (Supply Zone)
The last buying region (bullish candle/cluster) before a strong downward move.
Institutions and large players place heavy orders in these regions. Typical price behavior:
- Price moves away from the zone.
- Later returns to the same zone to fill unfilled orders.
- Then continues the larger trend.
In the script:
- If `pl` (pivot low) forms → a Bullish OB is created.
- If `ph` (pivot high) forms → a Bearish OB is created.
The box is drawn:
- From `bar_index ` to `bar_index`.
- Between `low ` and `high `.
- `extend=extend.right` extends the OB into the future, so it acts as a dynamic support/resistance zone.
- Only the last 4 OB boxes are kept to avoid clutter.
### 3.2 Order Block Color Guide
- Semi-transparent Green (`c_ob_bull`)
- Represents a Bullish Order Block (Demand Zone).
- Interpretation: a price region with a high probability of bullish reaction.
- Semi-transparent Red (`c_ob_bear`)
- Represents a Bearish Order Block (Supply Zone).
- Interpretation: a price region with a high probability of bearish reaction.
Overlap (Multiple OBs in the Same Area)
When two or more Order Blocks overlap:
- The shared area appears visually denser/stronger.
- This suggests higher order density.
- Such zones can be treated as high-priority levels for entries, exits, and stop-loss placement.
### 3.3 Demand/Supply Logic in the Scoring Engine
is_in_demand = low <= ta.lowest(low, 20)
is_in_supply = high >= ta.highest(high, 20)
- If current price is near the lowest lows of the last 20 bars, it is considered in a Demand Zone → positive impact on score.
- If current price is near the highest highs of the last 20 bars, it is considered in a Supply Zone → negative impact on score.
This logic complements Order Blocks and helps the Dashboard distinguish whether:
- Market is currently in a statistically cheap (long-friendly) area, or
- In a statistically expensive (short-friendly) area.
### 3.4 Fair Value Gaps (FVG)
#### Concept
When the market moves aggressively:
- Some price levels are skipped and never traded.
- A gap between wicks/shadows of consecutive candles appears.
- These regions are called Fair Value Gaps (FVGs) or Imbalances.
The market generally “dislikes” imbalance and often:
- Returns to these zones in the future.
- Fills the gap (rebalance).
- Then resumes its dominant direction.
#### Implementation in the Code
Bullish FVG (Yellow)
fvg_bull_cond = show_smc and show_fvg and low > high and close > high
if fvg_bull_cond
box.new(bar_index , high , bar_index, low, ...)
Core condition:
`low > high ` → the current low is above the high of two bars ago; the space between them is an untraded gap.
Bearish FVG (Purple)
fvg_bear_cond = show_smc and show_fvg and high < low and close < low
if fvg_bear_cond
box.new(bar_index , low , bar_index, high, ...)
Core condition:
`high < low ` → the current high is below the low of two bars ago; again a price gap exists.
#### FVG Color Guide
- Transparent Yellow (`c_fvg_bull`) – Bullish FVG
Often acts like a magnet for price:
- Price tends to retrace into this zone,
- Fill the imbalance,
- And then continue higher.
- Transparent Purple (`c_fvg_bear`) – Bearish FVG
Price tends to:
- Retrace upward into the purple area,
- Fill the imbalance,
- And then resume downward movement.
#### Trading with FVGs
- FVGs are *not* standalone entry signals.
They are best used as:
- Targets (take-profit zones), or
- Reaction areas where you expect a pause or reversal.
Examples:
- If you are long, a bearish FVG above is often an excellent take-profit zone.
- If you are short, a bullish FVG below is often a good cover/exit zone.
### 3.5 Core SMC Trading Templates
#### Reversal Long
1. Price trades down into a green Order Block (Demand Zone).
2. A bullish confirmation candle (Close > Open) forms inside or just above the OB.
3. If this zone is close to or aligned with a bullish FVG (yellow), the signal is reinforced.
4. Entry:
- At the close of the confirmation candle, or
- Using a limit order near the upper boundary of the OB.
5. Stop-loss:
- Slightly below the OB.
- If the OB is broken decisively and price consolidates below it, the zone loses validity.
6. Targets:
- The next FVG,
- Or the next red Order Block (Supply Zone) above.
#### Reversal Short
The mirror scenario:
- Price rallies into a red Order Block (Supply).
- A bearish confirmation candle forms (Close < Open).
- FVG/premium structure above can act as a confluence.
- Stop-loss goes above the OB.
- Targets: lower FVGs or subsequent green OBs below.
## Chapter 4 – Smart DCA Strategy (RSI + Bollinger Bands)
### 4.1 Smart DCA Concept
- Classic DCA = buying at fixed time intervals regardless of price.
- Smart DCA = scaling in only when:
- Price is statistically cheaper than usual, and
- The market is in a clear oversold condition.
Code logic:
rsi_val = ta.rsi(close, rsi_len)
= ta.bb(close, bb_len, bb_mult)
dca_buy = show_dca and rsi_val < 30 and close < bb_lower
dca_sell = show_dca and rsi_val > 70 and close > bb_upper
Conditions:
- DCA Buy – Smart Scale-In Zone
- RSI < 30 → oversold.
- Close < lower Bollinger Band → price has broken below its typical volatility envelope.
- DCA Sell – Overbought/Distribution Zone
- RSI > 70 → overbought.
- Close > upper Bollinger Band → price is extended far above the mean.
### 4.2 Visual Representation on the Chart
- Green “DCA” Label Below Candle
- Shape: `labelup`.
- Color: lime background, white text.
- Meaning: statistically attractive level for laddered spot entries or short exits.
- Red “SELL” Label Above Candle
- Warning that the market is in an extended, overbought condition.
- Suitable for profit-taking on longs or considering short entries (with proper confluence and risk management).
- Light Green Background (`bgcolor`)
- When `dca_buy` is true, the candle background turns very light green (high transparency).
- This helps visually identify DCA Zones across the chart at a glance.
### 4.3 Practical Use in Trading
#### Spot Trading
Used to build a better average entry price:
- Every time a DCA label appears, allocate a fixed portion of capital (e.g., 2–5%).
- Combining DCA signals with:
- Green OBs (Demand Zones), and/or
- The Volume Profile POC
makes the zone structurally more important.
#### Futures Trading
- Longs
- Use DCA Buy signals as low-risk zones for opening or adding to longs when:
- Price is inside a green OB, or
- The Dashboard already leans LONG.
- Shorts
- Use DCA Sell signals as:
- Exit zones for longs, or
- Areas to initiate shorts with stops above structural highs.
## Chapter 5 – Volume Profile (Visible Range Simulation)
### 5.1 Concept
Traditional volume (histogram under the chart) shows volume over time.
Volume Profile shows volume by price level:
- At which prices has the highest trading activity occurred?
- Where did buyers and sellers agree the most (High Volume Nodes – HVNs)?
- Where did price move quickly due to low participation (Low Volume Nodes – LVNs)?
### 5.2 Implementation in the Script
Executed only when `show_vp` is enabled and on the last bar:
1. The last `vp_lookback` bars (default 150) are processed.
2. The minimum low and maximum high over this window define the price range.
3. This price range is divided into `vp_rows` segments (e.g., 30 rows).
4. For each row:
- All bars are scanned.
- If the mid-price `(high + low ) / 2` falls inside a row, that bar’s volume is added to the row total.
5. The row with the greatest volume is stored as `max_vol_idx` (the POC row).
6. For each row, a volume box is drawn on the right side of the chart.
### 5.3 Color Scheme
- Semi-transparent Orange
- The row with the maximum volume – the Point of Control (POC).
- Represents the strongest support/resistance level from a volume perspective.
- Semi-transparent Blue
- Other volume rows.
- The taller the bar → the higher the volume → the stronger the interest at that price band.
### 5.4 Trading Applications
- If price is above POC and retraces back into it:
→ POC often acts as support, suitable for long setups.
- If price is below POC and rallies into it:
→ POC often acts as resistance, suitable for short setups or profit-taking.
HVNs (Tall Blue Bars)
- Represent areas of equilibrium where the market has spent time and traded heavily.
- Price tends to consolidate here before choosing a direction.
LVNs (Short or Nearly Empty Bars)
- Represent low participation zones.
- Price often moves quickly through these areas – useful for targeting fast moves.
## Chapter 6 – Wyckoff Helper – Spring
### 6.1 Spring Concept
In the Wyckoff framework:
- A Spring is a false break of support.
- The market briefly trades below a well-defined support level, triggers stop losses,
then sharply reverses upward as institutional buyers absorb liquidity.
This movement:
- Clears out weak hands (retail sellers).
- Provides large players with liquidity to enter long positions.
- Often initiates a new uptrend.
### 6.2 Code Logic
Conditions for a Spring:
1. The current low is lower than the lowest low of the previous 50 bars
→ apparent break of a long-standing support.
2. The bar closes bullish (Close > Open)
→ the breakdown was rejected.
3. Volume is significantly elevated:
→ `volume > 2 × volume_MA` (Ultra Volume).
When all conditions are met and `show_wyc` is enabled:
- A pink diamond is plotted below the bar,
- With the label “Spring” – one of the strongest long signals in this system.
### 6.3 Trading Use
- After a valid Spring, markets frequently enter a meaningful bullish phase.
- The highest quality setups occur when:
- The Spring forms inside a green Order Block, and
- Near or on the Volume Profile POC.
Entries:
- At the close of the Spring bar, or
- On the first pullback into the mid-range of the Spring candle.
Stop-loss:
- Slightly below the Spring’s lowest point (wick low plus a small buffer).
## Chapter 7 – Confluence Engine & Dashboard
### 7.1 Scoring Logic
For each bar, the script:
1. Resets `score` to 0.
2. Adjusts the score based on different signals.
SMC Contribution
if show_smc
if is_in_demand
score += 1
if is_in_supply
score -= 1
- Being in Demand → `+1`
- Being in Supply → `-1`
DCA Contribution
if show_dca
if dca_buy
score += 2
if dca_sell
score -= 2
- DCA Buy → `+2` (strong, statistically driven long signal)
- DCA Sell → `-2`
Wyckoff Spring Contribution
if show_wyc
if wyc_spring
score += 2
- Spring → `+2` (entry of strong money)
### 7.2 Mapping Score to Dashboard Signal
- score ≥ 2 → STRONG LONG 🚀
Multiple bullish conditions aligned.
- score = 1 → WEAK LONG ↗
Some bullish bias, but only one layer clearly positive.
- score = 0 → NEUTRAL / WAIT
Rough balance between buying and selling forces; staying flat is usually preferable.
- score = -1 → WEAK SHORT ↘
Mild bearish bias, suited for cautious or short-term plays.
- score ≤ -2 → STRONG SHORT 🩸
Convergence of several bearish signals.
### 7.3 Dashboard Structure
The dashboard is a two-column table:
- Row 0
- Column 0: `"Mars Signals"` – black background, white text.
- Column 1: `"UIS v3.0"` – black background, yellow text.
- Row 1
- Column 0: `"Price:"` (light grey background).
- Column 1: current closing price (`close`) with a semi-transparent blue background.
- Row 2
- Column 0: `"SMC:"`
- Column 1:
- `"ON"` (green) if `show_smc = true`
- `"OFF"` (grey) otherwise.
- Row 3
- Column 0: `"DCA:"`
- Column 1:
- `"ON"` (green) if `show_dca = true`
- `"OFF"` (grey) otherwise.
- Row 4
- Column 0: `"Signal:"`
- Column 1: signal text (`status_txt`) with background color `status_col`
(green, red, teal, maroon, etc.)
- If `show_rec = false`, these cells are cleared.
## Chapter 8 – Visual Legend (Colors, Shapes & Actions)
For quick reading inside TradingView, the visual elements are described line by line instead of a table.
Chart Element: Green Box
Color / Shape: Transparent green rectangle
Core Meaning: Bullish Order Block (Demand Zone)
Suggested Trader Response: Look for longs, Smart DCA adds, closing or reducing shorts.
Chart Element: Red Box
Color / Shape: Transparent red rectangle
Core Meaning: Bearish Order Block (Supply Zone)
Suggested Trader Response: Look for shorts, or take profit on existing longs.
Chart Element: Yellow Area
Color / Shape: Transparent yellow zone
Core Meaning: Bullish FVG / upside imbalance
Suggested Trader Response: Short take-profit zone or expected rebalance area.
Chart Element: Purple Area
Color / Shape: Transparent purple zone
Core Meaning: Bearish FVG / downside imbalance
Suggested Trader Response: Long take-profit zone or temporary supply region.
Chart Element: Green "DCA" Label
Color / Shape: Green label with white text, plotted below the candle
Core Meaning: Smart ladder-in buy zone, DCA buy opportunity
Suggested Trader Response: Spot DCA entry, partial short exit.
Chart Element: Red "SELL" Label
Color / Shape: Red label with white text, plotted above the candle
Core Meaning: Overbought / distribution zone
Suggested Trader Response: Take profit on longs, consider initiating shorts.
Chart Element: Light Green Background (bgcolor)
Color / Shape: Very transparent light-green background behind bars
Core Meaning: Active DCA Buy zone
Suggested Trader Response: Treat as a discount zone on the chart.
Chart Element: Orange Bar on Right
Color / Shape: Transparent orange horizontal bar in the volume profile
Core Meaning: POC – price with highest traded volume
Suggested Trader Response: Strong support or resistance; key reference level.
Chart Element: Blue Bars on Right
Color / Shape: Transparent blue horizontal bars in the volume profile
Core Meaning: Other volume levels, showing high-volume and low-volume nodes
Suggested Trader Response: Use to identify balance zones (HVN) and fast-move corridors (LVN).
Chart Element: Pink "Spring" Diamond
Color / Shape: Pink diamond with white text below the candle
Core Meaning: Wyckoff Spring – liquidity grab and potential major bullish reversal
Suggested Trader Response: One of the strongest long signals in the suite; look for high-quality long setups with tight risk.
Chart Element: STRONG LONG in Dashboard
Color / Shape: Green background, white text in the Signal row
Core Meaning: Multiple bullish layers in confluence
Suggested Trader Response: Consider initiating or increasing longs with strict risk management.
Chart Element: STRONG SHORT in Dashboard
Color / Shape: Red background, white text in the Signal row
Core Meaning: Multiple bearish layers in confluence
Suggested Trader Response: Consider initiating or increasing shorts with a logical, well-placed stop.
## Chapter 9 – Timeframe-Based Trading Playbook
### 9.1 Timeframe Selection
- Scalping
- Timeframes: 1M, 5M, 15M
- Objective: fast intraday moves (minutes to a few hours).
- Recommendation: focus on SMC + Wyckoff.
Smart DCA on very low timeframes may introduce excessive noise.
- Day Trading
- Timeframes: 15M, 1H, 4H
- Provides a good balance between signal quality and frequency.
- Recommendation: use the full stack – SMC + DCA + Volume Profile + Wyckoff + Dashboard.
- Swing Trading & Position Investing
- Timeframes: Daily, Weekly
- Emphasis on Smart DCA + Volume Profile.
- SMC and Wyckoff are used mainly to fine-tune swing entries within larger trends.
### 9.2 Scenario A – Scalping Long
Example: 5-Minute Chart
1. Price is declining into a green OB (Bullish Demand).
2. A candle with a long lower wick and bullish close (Pin Bar / Rejection) forms inside the OB.
3. A Spring diamond appears below the same candle → very strong confluence.
4. The Dashboard shows at least WEAK LONG ↗, ideally STRONG LONG 🚀.
5. Entry:
- On the close of the confirmation candle, or
- On the first pullback into the mid-range of that candle.
6. Stop-loss:
- Slightly below the OB.
7. Targets:
- Nearby bearish FVG above, and/or
- The next red OB.
### 9.3 Scenario B – Day-Trading Short
Recommended Timeframes: 1H or 4H
1. The market completes a strong impulsive move upward.
2. Price enters a red Order Block (Supply).
3. In the same zone, a purple FVG appears or remains unfilled.
4. On a lower timeframe (e.g., 15M), RSI enters overbought territory and a DCA Sell signal appears.
5. The main timeframe Dashboard (1H) shows WEAK SHORT ↘ or STRONG SHORT 🩸.
Trade Plan
- Open a short near the upper boundary of the red OB.
- Place the stop above the OB or above the last swing high.
- Targets:
- A yellow FVG lower on the chart, and/or
- The next green OB (Demand) below.
### 9.4 Scenario C – Swing / Investment with Smart DCA
Timeframes: Daily / Weekly
1. On the daily or weekly chart, each time a green “DCA” label appears:
- Allocate a fixed fraction of your capital (e.g., 3–5%) to that asset.
2. Check whether this DCA zone aligns with the orange POC of the Volume Profile:
- If yes → the quality of the entry zone is significantly higher.
3. If the DCA signal sits inside a daily green OB, the probability of a medium-term bottom increases.
4. Always build the position laddered, never all-in at a single price.
Exits for investors:
- Near weekly red OBs or large purple FVG zones.
- Ideally via partial profit-taking rather than closing 100% at once.
### 9.5 Case Study 1 – BTCUSDT (15-Minute)
- Context: Price has sold off down towards 65,000 USD.
- A green OB had previously formed at that level.
- Near the lower boundary of this OB, a partially filled yellow FVG is present.
- As price returns to this region, a Spring appears.
- The Dashboard shifts from NEUTRAL / WAIT to WEAK LONG ↗.
Plan
- Enter a long near the OB low.
- Place stop below the Spring low.
- First target: a purple FVG around 66,200.
- Second (optional) target: the first red OB above that level.
### 9.6 Case Study 2 – Meme Coin (PEPE – 4H)
- After a strong pump, price enters a corrective phase.
- On the 4H chart, RSI drops below 30; price breaks below the lower Bollinger Band → a DCA label prints.
- The Volume Profile shows the POC at approximately the same level.
- The Dashboard displays STRONG LONG 🚀.
Plan
- Execute laddered buys in the combined DCA + POC zone.
- Place a protective stop below the last significant swing low.
- Target: an expected 20–30% upside move towards the next red OB or purple FVG.
## Chapter 10 – Risk Management, Psychology & Advanced Tuning
### 10.1 Risk Management
No signal, regardless of its strength, replaces risk control.
Recommendations:
- In futures, do not expose more than 1–3% of account equity to risk per trade.
- Adjust leverage to the volatility of the instrument (lower leverage for highly volatile altcoins).
- Place stop-losses in zones where the idea is clearly invalidated:
- Below/above the relevant Order Block or Spring, not randomly in the middle of the structure.
### 10.2 Market-Specific Parameter Tuning
- Calmer Markets (e.g., major FX pairs)
- `ob_period`: 3–5.
- `bb_mult`: 2.0 is usually sufficient.
- Highly Volatile Markets (Crypto, news-driven assets)
- `ob_period`: 7–10 to highlight only the most robust OBs.
- `bb_mult`: 2.5–3.0 so that only extreme deviations trigger DCA.
- `vol_ma_len`: increase (e.g., to ~30) so that Spring triggers only on truly exceptional
volume spikes.
### 10.3 Trading Psychology
- STRONG LONG 🚀 does not mean “risk-free”.
It means the probability of a successful long, given the model’s logic, is higher than average.
- Treat Mars Signals as a confirmation and context system, not a full replacement for your own decision-making.
- Example of disciplined thinking:
- The Dashboard prints STRONG LONG,
- But price is simultaneously testing a multi-month macro resistance or a major negative news event is imminent,
- In such cases, trade smaller, widen stops appropriately, or skip the trade.
## Chapter 11 – Technical Notes & FAQ
### 11.1 Does the Script Repaint?
- Order Blocks and Springs are based on completed pivot structures and confirmed candles.
- Until a pivot is confirmed, an OB does not exist; after confirmation, behavior is stable under classic SMC assumptions.
- The script is designed to be structurally consistent rather than repainting signals arbitrarily.
### 11.2 Computational Load of Volume Profile
- On the last bar, the script processes up to `vp_lookback` bars × `vp_rows` rows.
- On very low timeframes with heavy zooming, this can become demanding.
- If you experience performance issues:
- Reduce `vp_lookback` or `vp_rows`, or
- Temporarily disable Volume Profile (`show_vp = false`).
### 11.3 Multi-Timeframe Behavior
- This version of the script is not internally multi-timeframe.
All logic (OB, DCA, Spring, Volume Profile) is computed on the active timeframe only.
- Practical workflow:
- Analyze overall structure and key zones on higher timeframes (4H / Daily).
- Use lower timeframes (15M / 1H) with the same tool for timing entries and exits.
## Conclusion
Mars Signals – Ultimate Institutional Suite v3.0 (Joker) is a multi-layer trading framework that unifies:
- Price structure (Order Blocks & FVG),
- Statistical behavior (Smart DCA via RSI + Bollinger),
- Volume distribution by price (Volume Profile with POC, HVN, LVN),
- Liquidity events (Wyckoff Spring),
into a single, coherent system driven by a transparent Confluence Scoring Engine.
The final output is presented in clear, actionable language:
> STRONG LONG / WEAK LONG / NEUTRAL / WEAK SHORT / STRONG SHORT
The system is designed to support professional decision-making, not to replace it.
Used together with strict risk management and disciplined execution,
Mars Signals – UIS v3.0 (Joker) can serve as a central reference manual and operational guide
for your trading workflow, from scalping to swing and investment positioning.
ROBUST iFVG [SurgeGuru]The FVG/iFVG Robust Lifecycle indicator is a sophisticated market structure tool that moves beyond simple gap detection. It tracks the complete narrative of a Fair Value Gap—from its creation as a market imbalance to its resolution and the establishment of a new equilibrium zone. This dual-phase, institutional-grade approach provides a dynamic map of support and resistance, offering a profound edge in predicting price behavior.
Core Concept: The Two-Phase Lifecycle
The indicator is built on the principle that a Fair Value Gap has two distinct lives:
Phase 1: The Imbalance (FVG)
What it is: A rapid price move that leaves behind a "gap" or "void" with no trading activity.
Market Implication: Represents a moment of intense buying or selling pressure, creating an inefficient area price is statistically likely to return to.
Phase 2: The Equilibrium (iFVG)
What it is: A powerful support/resistance zone that forms the instant the original FVG is filled.
Market Implication: Represents the market's new consensus of "fair value" after the initial imbalance has been arbitraged away. This is often where institutional order flow resides for the next significant move.
Differentiators & "Robust" Features
Lifecycle Tracking: Unlike basic FVG tools that disappear once filled, this indicator captures the subsequent, often more important, iFVG phase.
Configurable Longevity: Offers two professional methods for managing iFVG lifespan (Full Cross or Number of Bars), preventing chart clutter while preserving relevant levels.
Advanced Alerting: Provides separate, configurable alerts for both FVG creation and iFVG formation, allowing traders to anticipate both the fill of an imbalance and the reaction at the new equilibrium.
Visual Hierarchy: Uses distinct, customizable colors and borders to instantly communicate the difference between an active imbalance (FVG) and an active decision zone (iFVG).
Code Architecture & How It Works
The script is a state management system built around two primary arrays that track the lifecycle of detected gaps.
1. Core Data Structures
The entire system is powered by parallel arrays that maintain the state of each detected zone:
FVG Arrays (Tracks Phase 1 - The Imbalance):
fvg_boxes : Stores the drawing object for each FVG.
fvg_top & fvg_bot : Store the price boundaries of the gap.
fvg_is_bull : Stores whether the FVG is bullish or bearish.
fvg_mitigated : The core state flag; becomes true when the FVG is filled, triggering the creation of an iFVG.
iFVG Arrays (Tracks Phase 2 - The Equilibrium):
ifvg_boxes : Stores the drawing object for each Inverse FVG.
ifvg_top & ifvg_bot : Inherits the price values from the parent FVG.
ifvg_is_bull : Is the inverse of the parent FVG's bias.
ifvg_original_fvg_index : Maintains a link back to the parent FVG for advanced management.
2. The Operational Workflow (Step-by-Step)
On every new bar, the script executes the following sequence:
STEP A: FVG Detection
The script checks for the 3-bar FVG pattern:
bullish_fvg = low > high (Current low is above the high from two bars ago)
bearish_fvg = high < low (Current high is below the low from two bars ago)
Upon detection, it creates a new box and pushes all its properties (price levels, bullish flag, etc.) into the FVG Arrays.
STEP B: FVG Management & Mitigation Check
The script iterates through all active FVGs in the fvg_boxes array.
For each FVG, it checks if the current price has "mitigated" (filled) the gap:
A Bullish FVG is mitigated if the current bar's low (body_low) crosses below the FVG's bottom boundary (bot_val).
A Bearish FVG is mitigated if the current bar's high (body_high) crosses above the FVG's top boundary (top_val).
If mitigation occurs, the script sets the FVG's fvg_mitigated flag to true.
STEP C: iFVG Creation (The Phase Transition)
The moment an FVG's fvg_mitigated flag is set to true, the script immediately creates a new iFVG.
It takes the exact same price levels from the parent FVG but inverts the bias (a mitigated Bullish FVG creates a Bearish iFVG, and vice versa).
It draws a new box with the user-defined iFVG color and border, and pushes all its properties into the iFVG Arrays.
STEP D: iFVG Lifecycle Management
The script iterates through all active iFVGs.
Depending on the user's setting, it manages the iFVG's lifespan:
Full Cross Mode: The iFVG remains active until price fully crosses through it again. Once crossed, the iFVG and its parent FVG are permanently deleted.
Number of Bars Mode: The iFVG remains visible for a fixed number of bars after its creation, then is automatically deactivated.
STEP E: Cleanup & Garbage Collection
The script constantly manages the visibility of boxes based on user toggles (show_normal_fvg, show_ifvg). If a feature is turned off, the boxes are not deleted but made transparent, allowing for fast performance and instant reactivation.
3. Alert System Architecture
The alert system is integrated into the state transitions:
FVG Alerts fire during STEP A (on creation).
iFVG Alerts fire during STEP C (on creation, which is the moment of FVG mitigation).
iFVG Mitigation Alerts fire during STEP D (when an iFVG is removed in Full Cross mode).
Conclusion
The FVG/iFVG Robust Lifecycle is not a mere indicator; it is a state-aware market analysis engine. By architecting a system that tracks the entire lifecycle of a price gap, it provides a dynamic, self-cleaning map of market imbalance and subsequent equilibrium. This offers a systematic framework for identifying high-probability support/resistance zones, making it an indispensable tool for discerning the underlying structure of price action.
Credits: TONO . this robust system was upgraded from his code.
Advanced Smart Trading Suite with OTE═══════════════════════════════════════
ADVANCED SMART TRADING SUITE WITH OPTIMAL TRADE ENTRY
═══════════════════════════════════════
A comprehensive institutional trading system combining multiple advanced concepts including multi-timeframe liquidity analysis, order blocks, fair value gaps, and optimal trade entry zones. Features optional anti-repainting controls for confirmed signal generation.
───────────────────────────────────────
WHAT THIS INDICATOR DOES
───────────────────────────────────────
This all-in-one trading suite provides:
- Multi-Timeframe Liquidity Detection - HTF (Higher Timeframe), LTF (Lower Timeframe), and current timeframe liquidity sweep identification
- Order Blocks - Institutional accumulation/distribution zones with enhanced detection
- Fair Value Gaps (FVG) - Price imbalance detection
- Inverse Fair Value Gaps (iFVG) - Counter-trend imbalance zones
- Optimal Trade Entry (OTE) Zones - Fibonacci retracement-based entry zones (0.618-0.786)
- Trading Sessions - Asian, London, and New York session visualization
- Anti-Repainting Controls - Optional confirmed signals with adjustable confirmation bars
- Comprehensive Alert System - Notifications for all major events
───────────────────────────────────────
HOW IT WORKS
───────────────────────────────────────
ANTI-REPAINTING SYSTEM:
This indicator includes optional anti-repainting controls that fundamentally change how signals are generated:
Confirmed Mode (Recommended):
- Signals wait for confirmation bars before appearing
- No repainting - what you see is final
- Adjustable confirmation period (1-5 bars)
- Slight lag in signal generation
- Better for backtesting and systematic trading
Live Mode:
- Signals appear immediately as patterns develop
- May repaint as new bars form
- Faster signal generation
- Better for discretionary real-time trading
The confirmation system affects all features: liquidity sweeps, order blocks, FVGs, and OTE zones.
LIQUIDITY SWEEP DETECTION:
Three-Tier System:
1. Current Timeframe Liquidity:
- Detects swing highs/lows on chart timeframe
- Configurable lookback and confirmation periods
- Session-tagged for context (Asian/London/NY)
2. HTF (Higher Timeframe) Key Liquidity:
- Default: 4H timeframe (configurable to Daily/Weekly)
- Strength-based filtering using ATR multipliers
- Distance-based clustering prevention
- Only strongest levels displayed (top 1-10)
- Labels show timeframe and strength rating
3. LTF (Lower Timeframe) Key Liquidity:
- Default: 1H timeframe (configurable)
- Precision entry/exit levels
- Strength-based ranking
- Distance filtering to avoid clutter
Sweep Detection Methods:
- Wick Break: Any wick beyond the level
- Close Break: Close price beyond the level
- Full Retrace: Break and close back inside (stop hunt detection)
Buffer System:
- Configurable ATR-based buffer for sweep confirmation
- Prevents false positives from minor price fluctuations
ORDER BLOCKS (Enhanced):
Detection Methodology:
- Identifies the last opposing candle before significant structure break
- Bullish OB: Last red candle before bullish break
- Bearish OB: Last green candle before bearish break
Enhanced Filters:
1. Size Filter:
- Minimum order block size (ATR-based)
- Ensures significant zones only
2. Volume Filter:
- Requires above-average volume (configurable multiplier)
- Confirms institutional participation
3. Imbalance Filter:
- Requires strong directional move after OB formation
- Validates true institutional activity
Violation Detection:
- Wick-based: Any wick through the zone
- Close-based: Close price through the zone
- Automatic removal of broken order blocks
FAIR VALUE GAPS (FVG):
Bullish FVG: Gap between candle 3 low and candle 1 high (three-bar pattern)
Bearish FVG: Gap between candle 3 high and candle 1 low
Requirements:
- Minimum gap size (ATR-based)
- Clear price imbalance
- No overlap between the three candles
Fill Detection:
- Configurable fill threshold (default 50%)
- Tracks partial and complete fills
- Removes filled gaps to keep chart clean
INVERSE FAIR VALUE GAPS (iFVG):
What are iFVGs:
- Counter-trend FVGs that form after original FVG is filled
- Indicate potential reversal or continuation failure
- Form within specific timeframe after original FVG
Detection Rules:
- Must occur after a FVG is filled
- Must form within 20 bars of original FVG
- Minimum size requirement (ATR-based)
- Opposite direction to original FVG
Visual Distinction:
- Dashed border boxes
- Different color scheme from regular FVGs
- Combined labels when FVG and iFVG overlap
OPTIMAL TRADE ENTRY (OTE) ZONES:
Based on Fibonacci retracement principles used by institutional traders:
Concept:
After a structure break (swing high/low violation), price often retraces to specific Fibonacci levels before continuing. The OTE zone (0.618 to 0.786) represents the optimal entry area.
Bullish OTE Formation:
1. Swing low is formed
2. Structure breaks above previous swing high (bullish structure break)
3. Price retraces into 0.618-0.786 Fibonacci zone
4. Entry signal when price enters and holds in OTE zone
Bearish OTE Formation:
1. Swing high is formed
2. Structure breaks below previous swing low (bearish structure break)
3. Price retraces into 0.618-0.786 Fibonacci zone
4. Entry signal when price enters and holds in OTE zone
Key Fibonacci Levels:
- 0.618 (Golden ratio - primary target)
- 0.705 (Square root of 0.5 - institutional level)
- 0.786 (Square root of 0.618 - deep retracement)
Structure Break Requirement:
- Optional setting to require confirmed structure break
- Prevents premature OTE zone identification
- Ensures proper swing structure is established
Entry/Exit Tracking:
- Green checkmark: Price entered OTE zone validly
- Red X: Price exited OTE zone (stop or target)
- Real-time status monitoring
TRADING SESSIONS:
Displays three major trading sessions with full customization:
Asian Session (Tokyo + Sydney):
- Default: 01:00-13:00 UTC+4
- Typically lower volatility
- Sets up key levels for London open
London Session:
- Default: 11:00-20:00 UTC+4
- Highest liquidity period
- Major institutional moves
New York Session:
- Default: 16:00-01:00 UTC+4
- US market hours
- High impact news events
Features:
- Real-time status indicators (🟢 Open / 🔴 Closed)
- Session high/low tracking
- Overlap detection and highlighting
- Historical session display (0-30 days)
- Customizable colors and borders
───────────────────────────────────────
HOW TO USE
───────────────────────────────────────
MASTER CONTROLS:
Enable/disable major features independently:
- Trading Sessions
- Liquidity Sweeps (Current TF)
- HTF Liquidity Sweeps
- LTF Liquidity Sweeps
- Order Blocks
- Fair Value Gaps
- Inverse Fair Value Gaps
- Optimal Trade Entry Zones
ANTI-REPAINTING SETUP:
For Backtesting/Systematic Trading:
1. Enable "Use Confirmed Signals"
2. Set Confirmation Bars to 2-3
3. All signals will wait for confirmation
4. No repainting will occur
For Real-Time Discretionary Trading:
1. Disable "Use Confirmed Signals"
2. Signals appear immediately
3. Be aware signals may adjust with new bars
MULTI-TIMEFRAME LIQUIDITY STRATEGY:
Top-Down Analysis:
1. Identify HTF liquidity levels (4H/Daily) for major targets
2. Find LTF liquidity levels (1H) for entry refinement
3. Wait for HTF liquidity sweep (liquidity grab)
4. Enter on LTF order block in direction of HTF sweep
5. Target next HTF or LTF liquidity level
Liquidity Sweep Trading:
1. HTF liquidity sweep = major institutional move
2. Look for immediate reversal or continuation
3. Use order blocks for entry timing
4. Place stops beyond the swept liquidity
SESSION-BASED TRADING:
Asian Session Strategy:
1. Identify Asian session high/low
2. Wait for London or NY session to open
3. Trade breakouts of Asian range
4. Target previous day's highs/lows
London/NY Session Strategy:
1. Watch for liquidity sweeps at session open
2. Enter on order block confirmation
3. Use OTE zones for retracement entries
4. Target session high/low or HTF liquidity
OTE ZONE TRADING:
Setup Identification:
1. Wait for clear swing high/low formation
2. Confirm structure break in intended direction
3. Monitor for price retracement to 0.618-0.786 zone
4. Enter when price enters OTE zone with confirmation
Entry Rules:
- Bullish: Long when price enters OTE zone from above
- Bearish: Short when price enters OTE zone from below
- Stop loss: Beyond 0.786 level or swing extreme
- Target: Previous swing high/low or HTF liquidity
Exit Management:
- Indicator tracks when price exits OTE zone
- Red X indicates position should be managed/closed
- Use order blocks or FVGs for partial profit targets
FAIR VALUE GAP STRATEGY:
FVG Entry Method:
1. Wait for FVG formation
2. Monitor for price return to FVG
3. Enter on first touch of FVG zone
4. Stop beyond FVG boundary
5. Target: Fill of FVG or next liquidity level
iFVG Reversal Strategy:
1. Original FVG is filled
2. iFVG forms in opposite direction
3. Indicates failed move or reversal
4. Enter on iFVG confirmation
5. Target: Opposite end of range or next structure
Combined FVG + iFVG:
- When both overlap, indicator combines labels
- Represents high-probability reversal zone
- Use with order blocks for confirmation
ORDER BLOCK STRATEGY:
Entry Approach:
1. Wait for order block formation after structure break
2. Enter on first return to order block
3. Place stop beyond order block boundary
4. Target: Next order block or liquidity level
Confirmation Layers:
- Order block + FVG = strong confluence
- Order block + Liquidity sweep = institutional setup
- Order block + OTE zone = optimal entry
- Order block + Session open = high probability
Volume Analysis:
- Wider colored section = stronger institutional interest
- Use volume bars to confirm order block strength
- Higher volume order blocks = more reliable
───────────────────────────────────────
CONFIGURATION GUIDE
───────────────────────────────────────
LIQUIDITY SETTINGS:
Lookback: 5-30 bars
- Lower = more frequent, sensitive levels
- Higher = fewer, more significant levels
- Recommended: 15 for intraday, 20-25 for swing
Sweep Detection Type:
- Wick Break: Most sensitive
- Close Break: More conservative
- Full Retrace: Stop hunt detection
Sweep Buffer: 0-1.0 ATR
- Adds distance requirement for sweep confirmation
- Prevents false positives
- Recommended: 0.1 for most markets
HTF/LTF LIQUIDITY:
HTF Timeframe Selection:
- Swing trading: 1D or 1W
- Day trading: 4H or 1D
- Scalping: 1H or 4H
LTF Timeframe Selection:
- Swing trading: 4H or 1D
- Day trading: 1H or 4H
- Scalping: 15m or 1H
Strength Filters:
- Min Pivot Strength: Higher = fewer, stronger levels
- Min Distance: Higher = less clustering
- Recommended: 2.0 ATR for HTF, 1.5 ATR for LTF
ORDER BLOCK SETTINGS:
Swing Length: 5-20
- Controls sensitivity of structure break detection
- Lower = more order blocks, faster signals
- Higher = fewer order blocks, stronger signals
- Recommended: 8-10 for most timeframes
Enhancement Filters:
- Min Size: 0.5-1.5 ATR typical
- Volume Multiplier: 1.2-2.0 typical
- Imbalance: Enable for strongest signals only
OTE SETTINGS:
Swing Length: 5-50
- Controls OTE zone formation sensitivity
- Lower = more frequent, smaller moves
- Higher = fewer, larger trend moves
- Recommended: 10-15 for intraday
Require Structure Break:
- Enabled: Only shows OTE after confirmed break
- Disabled: Shows potential OTE zones earlier
- Recommended: Enable for higher probability setups
FVG SETTINGS:
Min FVG Size: 0.1-2.0 ATR
- Lower = more gaps detected
- Higher = only significant gaps
- Recommended: 0.5 ATR for most markets
Fill Threshold: 0.1-1.0
- Determines when gap is considered "filled"
- 0.5 = 50% fill required
- Higher = more conservative
iFVG Min Size: 0.1-2.0 ATR
- Typically smaller than regular FVG
- Recommended: 0.3 ATR
ALERT SYSTEM:
Available Alerts:
- Liquidity Sweeps (Current TF)
- HTF Liquidity Sweeps
- LTF Liquidity Sweeps
- Session Changes (Open/Close)
- OTE Entry Signals
Alert Setup:
1. Enable alerts in settings
2. Select specific alert types
3. Create TradingView alert using "Any alert() function call"
4. Configure delivery method (mobile, email, webhook)
Alert Messages Include:
- Event type and direction
- Confirmation status (if using confirmed mode)
- Price level
- Timeframe (for liquidity sweeps)
───────────────────────────────────────
RECOMMENDED CONFIGURATIONS
───────────────────────────────────────
For Day Trading (15m-1H charts):
- HTF Liquidity: 4H
- LTF Liquidity: 1H
- Liquidity Lookback: 15
- Order Block Swing Length: 8
- OTE Swing Length: 10
- Confirmed Signals: Enabled, 2 bars
For Swing Trading (4H-1D charts):
- HTF Liquidity: 1D or 1W
- LTF Liquidity: 4H
- Liquidity Lookback: 20
- Order Block Swing Length: 10
- OTE Swing Length: 15
- Confirmed Signals: Enabled, 2-3 bars
For Scalping (5m-15m charts):
- HTF Liquidity: 1H or 4H
- LTF Liquidity: 15m or 1H
- Liquidity Lookback: 10-12
- Order Block Swing Length: 6-8
- OTE Swing Length: 8
- Confirmed Signals: Optional
───────────────────────────────────────
PERFORMANCE OPTIMIZATION
───────────────────────────────────────
This indicator is optimized with:
- max_bars_back declarations for efficient lookback
- Automatic memory cleanup every 10 bars
- Conditional execution based on enabled features
- Drawing object limits to prevent performance degradation
Memory Management:
- Old liquidity zones automatically removed
- Filled FVGs/iFVGs cleaned up
- Exited OTE zones removed
- Mitigated order blocks deleted
Best Practices:
- Enable only needed features
- Use appropriate timeframe combinations
- Don't display excessive historical sessions
- Monitor drawing object counts on lower timeframes
───────────────────────────────────────
EDUCATIONAL DISCLAIMER
───────────────────────────────────────
This indicator combines multiple institutional trading concepts:
- Liquidity theory (where orders accumulate)
- Order flow analysis (institutional footprints)
- Price imbalance detection (FVGs)
- Fibonacci retracement theory (OTE zones)
- Session-based trading (time-of-day patterns)
All calculations use standard technical analysis methods:
- Pivot high/low detection
- ATR-based normalization
- Volume analysis
- Fibonacci ratios
- Time-based filtering
The indicator identifies potential setups but does not predict future price movements. Success depends on proper application within a complete trading plan including risk management, position sizing, and market context analysis.
───────────────────────────────────────
USAGE DISCLAIMER
───────────────────────────────────────
This tool is for educational and analytical purposes. Trading involves substantial risk of loss. The anti-repainting features provide confirmed signals but do not guarantee profitability. Always conduct independent analysis, use proper risk management, and never risk capital you cannot afford to lose. Past performance does not indicate future results.
iFVG Strategie by Futures.RobbyiFVG Strategy Checklist by Futures.Robby
Updated: October 27, 2025
Description
This script is a manual checklist designed to help traders evaluate their setups based on the iFVG (Fair Value Gap) strategy. It serves solely as a visual aid and does not perform automatic analysis, signal generation, or trade execution.
How It Works
The script creates an interactive checklist directly on the chart. Traders manually select which criteria are met, and the script calculates a percentage score, displaying it with color coding:
Green (≥ 60%): Good fulfillment of criteria
Orange (40–59%): Partial fulfillment
Red (< 40%): Poor fulfillment
Checklist Criteria
The checklist is divided into two main sections:
1. Trade Criteria (8 Points)
Eight manually selectable criteria to assess setup quality:
Trade im Bias → Trade in Bias: Trade follows the higher timeframe trend (H1/H4/Daily).
BE Level → BE Level: Swing point between entry and target.
Sweep → Sweep: Price hits a key swing before reversing.
Displacement → Displacement: iFVG broken by strong candles.
Leg FVG geschlossen → Leg FVG Closed: No open m1 to m5 FVGs to target.
FVG Reaktion → FVG Reaction: Reaction at FVG during sweep (HTF).
FVG Größe → FVG Size: 6 to 10 points.
Anzahl Kerzen → Number of Candles: Maximum of 6 candles.
2. Goals (1 Point)
Six optional goal conditions, counted together as 1 point:
Equal H / L → Equal High/Low
Session H / L → Session High/Low
News H / L → News High/Low
HTF Swing Point → HTF Swing Point
HTF OB → HTF Order Block
HTF FVG → HTF FVG
Settings and Customization
The script’s settings are translated as follows:
Group: Trade Criteria
Trade im Bias → Trade in Bias
Tooltip: Trendrichtung folgt HTF (H1/H4/Täglich) – Trend follows HTF direction
BE Level → BE Level
Tooltip: Swingpunkt zwischen Einstieg und Ziel – Swing point between entry and target
Sweep → Sweep
Tooltip: Kurs erreicht markanten Swing – Price hits key swing before inverse
Displacement → Displacement
Tooltip: iFVG durch starke Kerzen gebrochen – iFVG broken by strong candles
Leg FVG geschlossen → Leg FVG Closed
Tooltip: Keine offenen m1 bis m5 FVGs bis Ziel – No open m1 to m5 FVGs to target
FVG Reaktion → FVG Reaction
Tooltip: Reaktion an FVG beim Sweep (HTF) – Reaction at FVG during sweep (HTF)
FVG Größe → FVG Size
Tooltip: 6 bis 10 Punkte – 6 to 10 points
Anzahl Kerzen → Number of Candles
Tooltip: Maximal 6 Kerzen – Maximum of 6 candles
Group: Goals
Equal H / L → Equal High/Low
Session H / L → Session High/Low
News H / L → News High/Low
HTF Swing Point → HTF Swing Point
HTF OB → HTF Order Block
HTF FVG → HTF FVG
ℹ️ Ziele zählen gemeinsam als 1 Punkt → ℹ️ Goals count together as 1 point
Window Position & Size
Fensterposition → Window Position
oben rechts → top right
oben links → top left
unten rechts → bottom right
unten links → bottom left
Tabellengröße → Table Size
normal → normal
small → small
tiny → tiny
Translation of Chart Table Contents
The table headers and entries on the chart are translated as follows:
Table Headers:
Trade Checkliste → Trade Checklist
Ziele → Goals
Status Symbols:
✅ → ✅ (Fulfilled)
❌ → ❌ (Not fulfilled)
Individual Criteria (Trade Criteria):
Trade im Bias → Trade in Bias
BE Level → BE Level
Sweep → Sweep
Displacement → Displacement
Leg FVG geschlossen → Leg FVG Closed
FVG Reaktion → FVG Reaction
FVG Größe → FVG Size
Anzahl Kerzen → Number of Candles
Individual Criteria (Goals):
Equal H / L → Equal High/Low
Session H / L → Session High/Low
News H / L → News High/Low
HTF Swing Point → HTF Swing Point
HTF OB → HTF Order Block
HTF FVG → HTF FVG
Note Line:
Ziele zählen gemeinsam als 1 Punkt → Goals count together as 1 point
Important Note
This tool is not an automated indicator, but a visual decision aid for traders who want to apply their strategy in a structured and conscious way.
AQPRO Block Force
📝 INTRODUCTION
AQPRO Block Force is a powerful trading tool designed to identify and track Orderblocks (OBs) in real-time based on Fair Value Gap (FVG) principles. This indicator employs quite strict yet effective FVG filtering criteria to ensure only significant OBs are displayed, avoiding minor inefficiencies or duplicates within the same impulse or corrective moves. Each OB adapts dynamically to price action and can be categorized as Classic, Strong, or Extreme, based on proprietary conditions and best ideas from SMC (Smart Money Concepts).
In addition to plotting Orderblocks, the indicator offers useful filtering systems like an Age Filter to ensure cleanliness of the OB data on the chart and prevent old, irrelevant OBs from obstructing the chart. Users can also enable MTF (Multi-Timeframe) functionality to view OBs from other timeframes, providing a comprehensive analysis across multiple levels of market structure. With extensive customization options, AQPRO Block Force allows traders to tailor the visuals and behavior to fit their specific trading preferences.
This indicator does not parse any instituotinal data, order books and other fancy financial sources for finding order blocks nor it uses them for confirmation purposes. Calculations algorithms of order blocks are based purely on current asset's price history.
IMPORTANT NOTE: in the sections below term 'quality' will be applied to orderblocks quite a number of times. By 'quality' in the context of orderblocks we mean the reaction of price upon the sweep of orderblock. Basically, if the price reverses after reaching the orderblock, this orderblock is considered to be of high quality. Definition for low -quality orderblock can be deducted by analogy.
🎯 PURPOSE OF USAGE
This indicator serves one and only purpose — help traders identify most lucrative institutional orderblocks on the chart in real time. Even though event of price reaching an orderblock cannot be considered as a sole signal in many trading strategies without proper confirmation, such event nevertheless is quite important in SMC-based trading, because when price sweeps OB it usually means, that a reversal will soon follow, but, of course, this is not the case every time.
Traders should not expect from this indicator detection of perfect orderblocks, which would surely revese the price on encounter, but they can expect is a time-proven algorithm of determing orderblocks that on average produces more high-quality orderblocks than simple similar tools from open-source libraries.
More in-depth advices on the usage will be given in the sections below, but for now let's summarise subgoals of the indicator:
Detecting orderblocks filtered through strict FVG validation rules to improve overall quality of orderblocks;
Classifying orderblocks as Classic, Strong, or Extreme based on wether or not classic orderblocks pass filtering conditions, which are based on crossing critical price levels and SMC principles like ChoCh (Change of Character);
Eliminating clutter and manage chart space with the Age Filter, removing old OBs outside a user-defined age range;
Utilizing MTF functionality to track significant OBs from other timeframes alongside current timeframe analysis;
Providing traders with customization options for indicator's visuals to help them organize information on the chart in a clean way.
⚙️ SETTINGS OVERVIEW
This indicator's customization options allow you to fully control its functionality and visuals. Below is a breakdown of the settings grouped by the exact setting sections and parameters from the indicator:
🔑 Main Settings
Show OBs from current timeframe — toggles the display of OBs from the current timeframe on the chart;
Show classic OBs — enables or disables the display of Classic OBs;
Show strong OBs — enables or disables the display of Strong OBs, which meet the ChoCh-based filter criteria;
Show extreme OBs — enables or disables the display of Extreme OBs, which exceed proprietary price level risk thresholds.
⏳ Filter: Age
Use Age Filter — toggles the Age Filter, which removes old OBs based on their age;
Max Age — sets the maximum age of OBs to be displayed (in bars). OBs older than this value will be hidden;
Min Age — sets the minimum age of OBs to be displayed (in bars). OBs younger than this value will not be shown.
🌋 MTF Settings
Show MTF OBs — toggles the display of OBs from higher timeframes;
Timeframe — select the timeframe to use for MTF OB detection (e.g., 15m, 1h).
⏳ MTF / Filter: Age
Use Age Filter (MTF) — toggles the Age Filter for MTF OBs;
Max Age — sets the maximum age of MTF OBs to be displayed (in bars);
Min Age — sets the minimum age of MTF OBs to be displayed (in bars).
🎨 Visual Settings
Classic OB (Bullish) — sets the color for bullish Classic OBs;
Classic OB (Bearish) — sets the color for bearish Classic OBs;
Strong OB (Bullish) — sets the color for bullish Strong OBs;
Strong OB (Bearish) — sets the color for bearish Strong OBs;
Extreme OB (Bullish) — sets the color for bullish Extreme OBs;
Extreme OB (Bearish) — sets the color for bearish Extreme OBs.
📈 APPLICATION GUIDE
Application methodology of this indicator is pretty much the same as with any other indicator, whose purpose is to find and display orderblocks on the chart. However, before actually diving into the guide on application, we want to make a small step back to remind traders of the history of orderblocks as a concept, its limitations and benefits.
Orderblocks themselves are essentially just zones of potential institutional interest, which if reached are expected to reverse the price in the opposite direction. 'Potential' is a suitable remark for indicator's success probability, because, as was mentioned above, orderblocks don't guarantee price reversal regardless of quality of the indicator. This is the case for the simplest of reasons — orderblocks are based solely on price history and thus are to be considered a mathematical model , degree of success of which is never 100%, because all mathematical models abide by a "golden rule of trading" : past performance doesn't guarantee future results.
However, the extensive history of orderblocks clearly shows that this tool, despite being decades old, can still help traders produce market insights and improve any strategy's performance. Orderblocks can be used both as a primary source of signals and as confirmation tool, but from our experience they are better to be used as confirmation tool. Our indicator is not an exception in this matter and we advice any trader to use it mainly for confirmation purposes, because use-case of orderblocks as confirmation tools have much success stories on average than being used as primary signal source.
This being said, let's return to the application guide and start reviewing the indicator from the most basic step — how it will look like when you first load it on your chart:
This indicator consisis of 3 main logic blocks:
Orderblock evaluation;
MTF Orderblock evaluation;
Orderblock post-filtering.
The principles behind these logic blocks will be easy to understand for truly experiences traders, but we understand the need to explain them to a wider audience, so let's review each of these logic blocks below.
ORDERBLOCK EVALUATION
Principles behind our orderblock detection logic are as follows:
Find FVG (Fair Value Gap) .
Note: this indicator uses only three-candle FVGs and doesn't track FVGs with insidebars after third (farther) candle.
If you don't know what FVG means, we recommend researching this term in the Internet, but the basic explanation is this: FVG is the formation of candles, which are positioned in a way that there are an unclosed price area between 1st and 3rd candle.
Conditions:
bullish FVG = high of 3rd candle < low of 1st candle AND high of 3rd candle < close of 2nd candle AND high of 2nd candle < close of 1st candle AND low of 3rd candle < low of 2nd candle ;
bearish FVG = low of 3rd candle < high of 1st candle AND low of 3rd candle > close of 2nd candle AND low of 2nd candle > close of 1st candle AND high of 3rd candle > high of 2nd candle .
See visual showcase of valid & invalid bullish & bearish FVGs on the screenshot below:
As was shown on the screenshot above, the only correc t formation for FVGs are considered to be just like on pictures 1 and 2 (leftmost column of patterns) . Only these formations will take part in further determenings orderblocks.
Send FVGs through filtering conditions.
This is the truly important part. Without properly filtering FVGs we would get huge clusters of FVGs on the chart and they will not make sense to be reviewed, because there will be just too much of them and their quality will be very questionable .
Even though there is a quite number of ways to filter FVGs, we decided to go with the ones we deem actually useful. For this indicator we chose two methods, that work in tandem — 1) base candle's inside bar condition and 2) single appearance on current impulse/correction line. Let's review these conditions below and start with looking at the examples of them on the screenshot below:
Examples of 1st & 2nd conditions are displayed on the left and right charts respectively.
The filtering logic in 1st and 2nd is quite connected and further explanation should help you understand it just enough to start trading with our indicator.
Let's start with explaining the term 'base candle' and logic behind it. Base candle candle be explained quite shortly: it is the latest candle on the chart, whose high or low broke previous base candle's high or low respectively. The first candle in the time series of price data is by default considered the base candle. If any new candle after base candle doesn't overtake base candle's high or low (meaning, that this candle is inside the range of base candle), such candle is called an "inside bar" .
Inside bar's term is important to understand, because FVGs, which appear inside the inside bars are usually quite useless, because price doesn't react from them, so orderblocks with such FVGs are also of bad quality as well. Clear depiction of inside bar was provided in the screenshot of conditions above on the left chart, so we won't waste time making another example.
However, this is not it. Base candle, inside bars and a few other types of bars are all a part of SMC ideas and in the world of SMC there is a special term, that hold the most important place and is considered the cornerstone of SMC methodology — impulse/correction lines (valid pullbacks) . The average definition of impulse/correction lines is quite hard to understand for an average trader, but we can summarise like this:
Impulse/correction line is a line, that starts at the beginning of the sequence of base candles, each new candle of which consistently updates previous base candle's respective high/low.
We won't go into description of this principle because it is outside of scope of this indicator, but you can research this topic in the Internet by keywords ' impulse correction trading ' or 'valid pullback principles trading '. The general idea of usage of impulse/correction lines in the context of this indicator is that each such lines 'holds' inside at least one FVG and we need to find exactly the first FVG, while leaving all other FVGs behind, because they to be of worse quality on average.
Basically, by using translating these terms into conditions from example above, we have achieved a simple yet powerful filtering system. system for FVGs, which allows us to work with orderblocks of much higher quality than average open-source indicators.
If FVG passed filters, evaluate its OB.
When FVG is confirmed, we can start the evaluation of its orderblock. The evaluation of orderblocks consists of several checkpoints: 1) is orderblock beyond current ChoCh* AND/OR 2) is orderblock from extreme price levels, calculated by our proprietary risk system. Let's review these checkpoints below.
* ChoCh (Change of Character, fundamental SMC idea) — price level, which if broken by close of price can potentially cause a revesal of the trend to direction opposite to the the previous one. To learn more about ChoCh please research the term on the Internet, because this indicator uses its standard definition and explaining of this term goes beyond the scope of this indicator.
To determine if orderblock is beyond current ChoCh levels, we need to first determine where these levels are on the chart. ChoCh levels of this indicator are calculated with a very lite approach, which is based on pivot points.
You can see basic demonstration of ChoCh levels in action on the screenshot below:
IMPORTANT NOTE: pivot period for pivots points inside our indicator is by default equal to 5 and cannot be changed in settings at the moment of publication.
On the screenshot above you can clearly see that ChoCh levels are essentially highest/lowest pivot point levels in between certain range of bars, where price doesn't update its extremum. You can see on there screenshot a new type of line — BoS (Break of Structure). BoS is almost the same thing as ChoCh, but with one change: it is a confirmation of price updating its extremum in the same direction as it was before, while ChoCh updates price extremum in the direction opposite to which it was before .
Why do these levels matter when evaluating the orderblocks? Orderblocks, which are located beyond current BoS/ChoCh levels, are of much higher quality on average than average orderblocks and they are called Strong Orderblocks .
On the chart such orderblocks are marked with 'Strong OB' label inside the body of an orderblock.
You can see the examples of Strong OBs on the screenshot below:
That was the explanation of the 1st orderblock evaluation criteria. Now let's talk about the 2nd one.
Our 2nd evaluation criteria for orderblocks is a test on whether or price is behind specific price level, which is calculated by our proprietary risk system, which is based on fundamental of statistics, such as 'standard deviation' and etc.
This criteria allows us to catch orderblocks, which are located at quite extreme price levels, and mark them on trader's chart explicitly. Orderblocks, which are above our custom price levels, are called Extreme Orderblocks an are marked with 'Extreme OB' label inside orderblock's body.
You can see the example of Extreme OB on the screenshot below:
That was the explanation of the 2nd evaluation criteria of the orderblock.
If an orderblock doesn't pass any of these two criterias, it is considered a classic orderblock. These orderblock are most common ones and have the lowest success rate among other types of orderblocks, listed above. Such orderblocks are marked with 'OB' label inside the orderblock's body.
You can see the examples of classic OB on the screenshot below:
This is it for orderblock evaluation logic. After doing all these steps, all orderblocks that we found are collected and displayed on the chart with their bodies and label marks.
What happens after the detection of the orderblocks?
All active orderblocks are being tracked in real time and their statuses are being updated as well (Strong orderblock can become Extreme orderblock and vice versa) . By an active orderblock we mean an orderblock, which wasn't swept by price's high or low. Bodies of active orderblocks are prolonged to the next candle on each new candle.
If an orderblock was swept, indicator will stop prolonging this orderblock and will mark it as swept on the chart with almost hollow body and dashed border line of the orderblock's body. Also swept orderblocks lose their name label, so you won't see any text in the orderblock after it was swept, but you will see its colour.
You can see the example of an active & swept orderblocks on the screenshot below:
This functionality helps distinguish active orderblocks from swept ones (inactive) and make more informed decisions.
MTF OB EVALUATION
Principles of MTF OBs evaluation are exactly the same as they are for current timeframe's OBs.
MTF OBs are displayed on the chart in same way as other OBs, but with one little change: to the right side of MTF OB's status will be postfix of the timeframe, from which this OB came from. Timeframe for MTF OBs can be chosen by user in the settings of the indicator.
MTF OBs also preserve their statuses (Strong, Extreme and Classic) when displayed on the current timeframe, so you won't stack of mistakenly marked MTF OBs as Extreme just because they are far away from the price.
You can see the example of MTF OBs on the screenshot below:
Also MTF OBs when swept lose only their name label, but the timeframe postfix will still be there, so you could distinguish MTF OBs from OBs of the current timeframe.
See the example of swept MTF OBs below:
Overall MTF orderblocks is a very useful to get a sense of where the higher timeframe liquidity reside and then adjust your strategy accordingly. Taking your trades from the place of high liquidity, like orderblocks, doesn't guarantee certain solid price reaction, but it definitely provides a trader with much a greater change of 1) catching a decent price move 2) not losing money white trading against institutional players.
As was stated above, we recommend using this tool as a confirmation system for your main trading strategy, because its usage as primary source of signals in the long-run is not viable, judging from historical backtest results and general public opinions of traders.
ORDERBLOCK POST-FILTERING
To enhance filtering capabilities of this indicator even further, we decided to add two filters, which would help reduce the amount of bad and untradeable orderblocks. These two filters are 1) age filter and 2) cancellation filter. Let's review both of them below.
Talking about the age filter , this filter was designed to help get rid of old orderblocks, which clutter the chart with visual noise and make it harder to find valueable orderblocks. This filter has to parameters: min age and max age . What does age mean in the context of an orderblock? It is the distance between OB's left border's bar and current bar. If this distance is between min age and max age values, such orderblock is considered valid and age filter passes it for further evaluation, but this distance is too short or too long, age filter deletes this orderblock from the chart.
You can the example of an orderblock which didn't pass age filter requirements and was deleted from the chart on the screenshot below:
It is important to mention that the missing orderblock from the right chart will be appear on the chart right when its age will exceed min age parameter of age filter.
The principle of work for max age parameter can be deducted by analogy: if the orderblock's age in bigger than max age value of age filter, this orderblock will be deleted from the chart .
For MTF OBs we decided to their own age filter, so that it won't abide by current timeframe's restrictions, because MTF OBs are usually much older than OB from current timeframe, so they would deleted a lot of time before they even appear on the chart, if they would abide by the age filter of current timeframe.
Default parameters of age filter are "max age = 500" and "min age = 0" . "Min age = 0" means that there is restrictions on the minimum age of orderblocks and they will appear on the chart as soon as the indicator validates them.
That was the explanation of the age filter.
Talking about the cancellation filter , this filter was intended to spot orderblocks which were extremely untradable and visually alert traders about them on the chart. In this indicator this filter works like this: for each orderblock cancellation filter creates a special price level and checks if it was broken by the close of price.
This special price level consists of the farthest border. of the orderblock ( top border for bearish OBs and bottom border for bullish OBs) and a certain threshold, which is added to the farthest border. This threshold is based on the current ATR value of the asset. This filter helps detect the orderblocks which should not be considered for trading, because price has already went too far beyond the liquidity of this orderblock.
Orderblocks, which are spotted by this filter, are marked with '❌' emoji on the price history.
You can see the example of an orderblock which was spotted by the cancellation filter in the screenshot below:
This filter is applied to both current timeframe and MTF timeframe and is NOT configurable in the settings.
🔔 ALERTS
This indicator employs alerts for an event when new signal occurs on the current timeframe or on MTF timeframe. While creating the alert below 'Condition' field choose 'any alert() function call'.
When this alert is triggered, it will generate this kind of message:
// Alerts for current timeframe
string msg_template = "EXCHANGE:ASSET, TIMEFRAME: BULLISH_OR_BEARISH OB at SWEPT_OB_BORDER_PRICE was reached."
string msg_example = "BINANCE:BTCUSDT, 15m: bearish OB at 170000.00 was reached."
// Alerts for MTF timeframe
string msg_template_mtf = "EXCHANGE:ASSET, TIMEFRAME: BULLISH_OR_BEARISH MTF OB at SWEPT_OB_BORDER_PRICE was reached."
string msg_example_mtf = "BINANCE:BTCUSDT, 15m: bearish MTF OB at 170000.00 was reached."
📌 NOTES
These OBs work on any timeframe, but we would advise to to use on higher timeframes, starting from at least 15m, because liquidity from higher timeframe tends to be much valuable when deciding which orderblock to take for a trade;
Use these OBs as a confirmation tool for your main strategy and refrain from using them as primary signal source. Traders, which use SMC-based strategies, will benefit from these orderblocks the most;
We recommend trading only with Strong and Extreme orderblocks, because they are proved to be of much greater quality than classic orderblocks and they work quite well in mid-term and long-term trading strategies. Classic orderblocs can be used for short-term trading strategies, but even in this case these OBs cannot be blindly trusted;
We strongly advise against take for a trading orderblocks, which were spotted by cancellation filter, because they are considered to be voided of liquidity;
Don't forget that you can toggle different types of OBs, MTF settings and visual settings in the settings of the indicator and fine-tune them to your liking.
🏁 AFTERWORD
AQPRO Block Force is an indicator which designed with idea of helping trading save time on automatically detecting valuable orderblocks on the chart, evaluate their strength and filter out bad orderblocks. These employ the best principles of SMC, including FVGs, valid pullbacks and etc. FVGs play the key role in validating the existence of a particular orderblock and work in tandem with valid pullback to determine the maximum amount of true FVGs even in the most cluttered impulse/correction moves of the price. Our filters — Age Filter and Cancellation Filter — enhance the quality of the orderblocks by allowing only the newest and liquid orderblocks to appear on the chart. Additional MTF functionality allow trader to see orderblocks from other timeframe, which can be chosen in the settings, and get a sense of where the global liquidity resides. This indicator will be a useful confirmation tool to any trading strategy, but the SMC traders will surely get the most benefits out of it.
ℹ️ If you have questions about this or any other our indicator, please leave it in the comments.
D3m4h GIFVGDescription
D3m4h GIFVG is an indicator designed to automatically detect market imbalances—often referred to as FVGs (Fair Value Gaps)—and potential pivot-based shifts in market structure. It offers a dynamic approach to visualizing supply/demand inefficiencies and pivot-based trend changes. Key features include:
1. Pivot-Based Bullish/Bearish Detection
The indicator identifies higher-high/lower-low pivot logic as well as “outside bar” pivots.
It tracks when the market transitions from bullish to bearish ranges, or vice versa, by using multiple checks:
Pivot low/high detection
Break-of-structure (when price crosses the last pivot)
Opposing FVG detection to confirm an intraday pivot shift
2. FVG (Fair Value Gap) Detection
The script automatically scans for bullish or bearish FVG conditions:
Bullish FVG: Candle at position (bar_index - 2) has a high below the current candle’s low.
Bearish FVG: Candle at position (bar_index - 2) has a low above the current candle’s high.
When it detects an FVG, it draws a box on the chart to highlight the price gap (yellow boxes by default).
3. Pivot Range FVG
If an FVG forms while the market is in a bullish pivot range, the script can paint a special “blue” FVG to underscore its significance. The same logic applies if a newly formed FVG appears in a bearish pivot range.
4. Filled Gap Cleanup
You can optionally hide standard FVG boxes once they’re filled. For example, if the candle’s body (or candle range) covers that gap, the box is removed to keep your chart clean.
5. Pivot-Range FVG “Raided” Cleanup
If the pivot-based FVG is later filled from the opposing direction, it turns green and can optionally remove itself after a set number of bars.
6. Informative Table
A small table on the chart optionally displays whether or not the pivot-based FVG has been “raided”. You can toggle this table on/off in the settings.
How It Works
1. Pivot Shifts
The script tracks the last pivot high/low using a combination of candle-based pivot detection and break-of-structure checks (when price crosses the last pivot in the opposite direction).
When a shift is detected, the pivot range ID increments—this helps the script know when to remove old pivot-based FVGs or draw new ones.
2. FVG Formation
Each new bar checks if a bullish or bearish FVG formed (comparing the high of bar two bars ago to the current low, or the low of bar two bars ago to the current high).
If one is found, a box is drawn to highlight the imbalance. Its color and extension depend on script settings.
3. Imbalance or Pivot FVG
Standard imbalance boxes appear in yellow.
If the new imbalance coincides with a bullish or bearish pivot range, a special “pivot imbalance” box in blue is drawn.
3. Hide Filled
If a newly formed candle’s body fully covers the FVG, the box is considered filled. If Hide Filled Gaps is enabled, the box is deleted once it’s covered.
4. Raid Status
For the pivot-based (blue) FVG, once price invalidates it from the opposite side, it changes color to green and gets removed after a user-defined number of bars.
How to Use
1. Look for FVGs
Observe yellow boxes to identify potential intraday imbalances. Watch for price returning to fill these zones.
If you see a “blue” box, it signifies a pivot-based FVG in line with a recognized shift in structure—arguably a higher-probability zone.
2. “Hide Filled Gaps”
Turn this on if you only want to see currently active or partially filled imbalances. The script cleans up old, fully covered boxes to keep your chart neat.
3. Pivot Shifts
Note the script’s internal pivot logic. Each new pivot re-defines bullish or bearish states. Use these states to gauge the short-term trend shifts.
4. Toggle the Table
You can show or hide the chart table by enabling/disabling “Show Table” from the inputs. This table indicates if the pivot-based “GIFVG” has been “raided” or not.
5. Extend Count
Adjust the extendCount in the code if you want FVG boxes to extend further or shorter in time.
Underlying Concepts
Fair Value Gaps
Market inefficiencies that occur when price jumps, leaving a “gap” from the candle 2 bars ago to the current candle. They can act like mini supply/demand zones where price may revisit for balance.
Pivot Ranges
The script tries to maintain an internal sense of whether the market is in a bullish or bearish pivot range. When it sees a contrary FVG or break-of-structure, it flips the pivot state.
Outside Bars
A candle that has both a higher high and a lower low than the previous bar. The script uses these to mark significant pivot shifts.
By combining pivot-based logic with FVG detection, the D3m4h GIFVG indicator helps highlight potential areas of liquidity or unfilled value. Traders can use these zones to plan entries/exits or to confirm short-term trend shifts.
Smart Money Flow TrackerSmart Money Flow Tracker - Liquidity & Fair Value Gap Indicator
Overview
The Smart Money Flow Tracker is a comprehensive Pine Script indicator designed to identify and analyze institutional trading patterns through liquidity prints and Fair Value Gaps (FVGs). This advanced tool combines multiple analytical approaches to help traders understand where smart money is operating in the market, providing crucial insights for better trade timing and market structure analysis.
Core Functionality
1. Liquidity Prints Detection
The indicator identifies liquidity prints by analyzing pivot highs and lows that represent potential areas where institutional orders may be resting. Key features include:
Pivot-Based Analysis: Uses configurable pivot lengths (default 5) to identify significant highs and lows
Volume Confirmation: Optional volume filter ensures liquidity prints occur during periods of significant trading activity
Dynamic Labeling: Visual markers on chart showing liquidity print locations with customizable colors
Success Rate Tracking: Monitors how often liquidity prints lead to meaningful price reactions
2. Fair Value Gap (FVG) Analysis with Volume Integration
Advanced FVG detection that goes beyond basic gap identification:
Three-Bar Pattern Recognition: Identifies gaps where the high of bar 1 is below the low of bar 3 (bullish) or low of bar 1 is above high of bar 3 (bearish)
Volume-Enhanced Detection: Incorporates comprehensive volume analysis including:
Average volume calculation over configurable periods
Total volume across the 3-bar FVG pattern
Dominant volume bar identification
Volume ratio calculations for strength assessment
Volume Threshold Filtering: Optional minimum volume requirements to filter out low-conviction FVGs
Visual Enhancement: FVG boxes with volume-based coloring and detailed volume labels
3. Comprehensive Statistics Dashboard
Real-time statistics table displaying:
Total liquidity prints detected
Success rate percentage with dynamic color coding
Volume filter status
Total Fair Value Gaps identified
High-volume FVG count and percentage
All metrics update in real-time as new data becomes available
4. Advanced Alert System
Multiple alert conditions for different scenarios:
Standard liquidity print detection
Volume-confirmed liquidity prints
Bullish and bearish FVG formation
High-volume FVG alerts for institutional-grade setups
Key Input Parameters
Display Controls
Show Liquidity Prints: Toggle main functionality on/off
Show Statistics Table: Control visibility of the analytics dashboard
Show Fair Value Gaps: Enable/disable FVG detection and display
Technical Settings
Pivot Length: Adjusts sensitivity of liquidity print detection (1-20 range)
Volume Confirmation: Requires above-average volume for liquidity print validation
Volume Lookback: Period for calculating average volume (5-50 bars)
FVG Volume Settings
Show FVG Volume Info: Display detailed volume metrics on FVG labels
FVG Volume Threshold: Minimum volume multiplier for high-volume FVG classification
FVG Volume Average Period: Lookback period for FVG volume calculations
Visual Customization
Bullish/Bearish Colors: Separate color schemes for different market directions
Text Colors: Bright lime green for optimal visibility on all background types
Table Positioning: Flexible placement options for the statistics dashboard
Trading Applications & Use Cases
1. Institutional Order Flow Analysis
Liquidity Hunting: Identify areas where institutions may be targeting retail stops
Smart Money Tracking: Follow institutional footprints through volume-confirmed liquidity prints
Market Structure Understanding: Recognize key levels where large orders are likely resting
2. Fair Value Gap Trading Strategies
Gap Fill Trading: Trade the statistical tendency of FVGs to get filled
Volume-Confirmed Entries: Use high-volume FVGs as higher-probability trade setups
Institutional FVG Recognition: Focus on FVGs with dominant volume bars indicating institutional participation
3. Multi-Timeframe Analysis
Higher Timeframe Context: Use on daily/weekly charts to identify major institutional levels
Intraday Precision: Apply to lower timeframes for precise entry and exit timing
Cross-Timeframe Confirmation: Combine signals across multiple timeframes for enhanced accuracy
4. Risk Management Applications
Stop Loss Placement: Use liquidity print levels as logical stop loss areas
Position Sizing: Adjust position sizes based on volume confirmation and success rates
Trade Filtering: Use statistics dashboard to assess current market conditions
Technical Logic & Methodology
Liquidity Print Algorithm
Pivot Identification: Scans for pivot highs/lows using the specified lookback period
Volume Validation: Optionally confirms prints occur during above-average volume periods
Success Tracking: Monitors subsequent price action to calculate effectiveness rates
Dynamic Updates: Continuously updates statistics as new data becomes available
FVG Detection Process
Pattern Recognition: Identifies 3-bar patterns with qualifying gaps
Volume Analysis: Calculates comprehensive volume metrics across the pattern
Strength Assessment: Determines volume ratios and dominant bars
Classification: Categorizes FVGs based on volume thresholds and characteristics
Visual Representation: Creates boxes and labels with volume-based styling
Statistical Framework
Real-time Calculations: All metrics update with each new bar
Percentage-based Metrics: Success rates and volume confirmations shown as percentages
Color-coded Feedback: Visual indicators for quick assessment of current conditions
Historical Tracking: Maintains running totals throughout the session
Best Practices for Usage
1. Parameter Optimization
Start with default settings and adjust based on market conditions
Lower pivot lengths for more sensitive detection on volatile instruments
Higher volume thresholds for cleaner signals in high-volume markets
2. Market Context Consideration
Combine with broader market structure analysis
Consider economic events and news that may affect institutional flow
Adjust expectations based on market volatility and liquidity conditions
3. Integration with Other Analysis
Use alongside support/resistance levels for confluence
Combine with momentum indicators for timing confirmation
Integrate with volume profile analysis for additional context
Conclusion
The Smart Money Flow Tracker represents a sophisticated approach to institutional flow analysis, combining traditional liquidity concepts with modern volume analytics. By providing both visual signals and comprehensive statistics, it enables traders to make more informed decisions based on where smart money is likely operating in the market. The indicator's flexibility and customization options make it suitable for various trading styles and timeframes, from scalping to position trading.
SMC Analysis - Fair Value Gaps (Enhanced)SMC Analysis - Fair Value Gaps (Enhanced) Script Summary
Overview
The "SMC Analysis - Fair Value Gaps (Enhanced)" script, written in Pine Script (version 6), is a technical analysis indicator designed for TradingView to identify and visualize Fair Value Gaps (FVGs) on a price chart. It supports both the main timeframe and multiple higher timeframes (MTF) for comprehensive market analysis. FVGs are price gaps formed by a three-candle pattern, indicating potential areas of market inefficiency where price may return to fill the gap.
Key Features
FVG Detection:
Identifies bullish FVGs: Occur when the high of a candle two bars prior is lower than the low of the current candle, with the middle candle being bullish (close > open).
Identifies bearish FVGs: Occur when the low of a candle two bars prior is higher than the high of the current candle, with the middle candle being bearish (close < open).
Visualizes FVGs as colored boxes on the chart (green for bullish, red for bearish).
Mitigation Tracking:
Tracks when FVGs are touched (price overlaps the gap range) or mitigated (price fully closes the gap).
Strict Mode: Marks an FVG as mitigated when price touches the gap range.
Normal Mode: Requires a full breakthrough (price crossing the gap’s bottom for bullish FVGs or top for bearish FVGs) for mitigation.
Optionally converts FVG box borders to dashed lines and increases transparency when partially touched.
Multi-Timeframe (MTF) Support:
Analyzes FVGs on three user-defined higher timeframes (default: 15m, 60m, 240m).
Displays MTF FVGs with distinct labels and slightly more transparent colors.
Ensures no duplicate processing of MTF bars to maintain performance.
Customization Options:
FVG Length: Adjustable duration for how long FVGs are displayed (default: 20 bars).
Show/Hide FVGs: Toggle visibility for main timeframe and each MTF.
Color Customization: User-defined colors for bullish and bearish FVGs (default: green and red).
Display Options: Toggle for showing dashed lines after partial touches and strict mitigation mode.
Performance Optimization:
Limits the number of displayed boxes (50 for main timeframe, 20 per MTF) to prevent performance issues.
Automatically removes older boxes to maintain a clean chart.
Functionality
Visualization: Draws boxes around detected FVGs, with customizable colors and text labels ("FVG" for main timeframe, "FVG " for MTF).
Dynamic Updates: Extends or terminates FVG boxes based on mitigation status and user settings.
Efficient Storage: Uses arrays to manage FVG data (boxes, tops, bottoms, indices, mitigation status, and touch status) separately for main and MTF analyses.
Use Case
This indicator is designed for traders using Smart Money Concepts (SMC) to identify areas of market inefficiency (FVGs) for potential price reversals or continuations. The MTF support allows analysis across different timeframes, aiding in confirming trends or spotting higher-timeframe support/resistance zones.
[GetSparx] Lacuna Pro⚡ Lacuna Pro – Institutional Liquidity Framework
This indicator is a premium Smart Money Concepts (SMC) trading toolkit designed to help traders identify high-probability entry and exit zones by visualizing real-time market inefficiencies. It combines Fair Value Gaps (FVGs), Break of Structure (BOS), Change of Character (CHoCH), and Supply & Demand Zones into a unified, configurable framework.
Unlike many public indicators that simply "overlay concepts", this indicator implements strict internal validation to filter out noise and provide only institutional-grade levels — making it a valuable execution layer for SMC-based strategies.
🧠 What the Script Does – and Why the Combination Matters
This is more than just a combination of known SMC tools — it's a complete workflow assistant:
-FVGs highlight where liquidity is likely resting due to institutional imbalance.
-BOS & CHoCH define structural context: whether the market is trending or shifting.
-Supply & Demand Zones show where institutions are likely to react.
-Each component works together to create a layered confluence system:
-FVG inside a Demand Zone after a Bullish CHoCH → High-probability Long Setup
-Bearish BOS into a Supply Zone + fresh Bearish FVG → High-probability Short Setup
📘 Core Concepts Explained
Fair Value Gap (FVG)
FVGs occur when price moves with strong momentum and leaves a gap between candles — suggesting inefficiency. Bullish FVGs lie below price; bearish ones above. Price often returns to these levels before continuing.
An FVG is detected when a three-candle sequence reveals a price imbalance:
- Bullish : Candle 2’s low is higher than Candle 1’s high
- Bearish : Candle 2’s high is lower than Candle 1’s low
These setups indicate a sudden burst of institutional momentum, often causing price to revisit the gap for rebalancing.
Break of Structure (BOS)
A BOS signals trend continuation when price breaks the previous swing high or low in the direction of the current trend.
The script uses a 3-bar pivot system to detect local swing highs and lows — a swing high forms when the highest candle is flanked by two lower highs on each side (and vice versa for swing lows).
A BOS is confirmed when price closes beyond the most recent swing point in alignment with the current trend direction.
Change of Character (CHoCH)
A CHoCH signals a potential trend reversal by breaking a structure level in the opposite direction of the prevailing trend.
It is detected when price breaks the most recent opposing swing and simultaneously flips the internal trend state.
CHoCH events always take precedence over BOS to avoid conflicting signals.
The internal trend engine ensures that these structural shifts are valid and not caused by random volatility.
Supply & Demand Zones
These zones mark institutional interest and are formed using precise price action rules — not arbitrary support/resistance.
A valid zone begins when a small-bodied base candle (such as a star or doji) appears at a local swing point. This candle must be followed by a strong impulse candle — either a bullish engulfing (for demand) or bearish breakout (for supply).
- Demand Zone : From the base candle's low to the impulse candle's high
- Supply Zone : From the base candle's high to the impulse candle's low
These zones represent likely institutional entries or exits, often acting as magnets or rejection areas. Once price decisively breaks through a zone, it is automatically removed — keeping the chart clean and relevant.
Zone Detection Logic – When a Zone Is Drawn or Skipped
Below are the precise rules used to determine whether a Supply or Demand Zone is valid and shown on the chart
A Supply or Demand Zone is only drawn if all of the following conditions are met:
-A small-bodied base candle forms at a local high or low (body size below threshold)
-The base candle is followed by a strong impulse candle (engulfing or breakout)
-The impulse direction matches the expected context (e.g., bearish impulse from swing high = Supply)
-The candle wicks do not invalidate the structure (e.g., no long opposing wick that retraces the move)
-The zone meets the minimum size threshold based on % or ATR filter
If any of these criteria are not satisfied, the zone is skipped to avoid false or weak levels.
This ensures only clean, institutional-grade Supply & Demand Zones are shown on the chart.
(e.g. small-bodied star + bullish engulfing at swing low = Demand Zone, or bearish breakout at swing high = Supply Zone).
🔍 Core Functionality & Original Features
1. 📉 Fair Value Gaps (FVGs) – Dynamic, Validated, and Clean
Unlike scripts that draw every gap, this script applies strict quality control to ensure only meaningful FVGs appear:
Minimum Threshold Filtering
Filters out small or noisy gaps by requiring each FVG to exceed a % or ATR-based size threshold. Prevents micro-gap clutter on lower timeframes.
Momentum Candle Verification
Requires a strong middle candle (candle 2) between two extremes. Large opposing wicks invalidate the setup.
Partial Fill Adjustment
When price partially fills a gap, the FVG box automatically shrinks to show only the remaining imbalance. If fully filled, the box is removed.
Multi-Timeframe Overlays
View institutional gaps from 15m, 1H, 4H, or Daily overlaid onto any chart for top-down analysis and entry refinement.
2. 🧱 Structural Shifts – BOS & CHoCH
Structural logic is built around pivot detection with real-time trend state awareness:
Pivot Logic (Customizable Strength)
Local highs/lows are detected using pivot length (default: 3 bars left/right). Breaks are only confirmed if they align with the internal trend state.
BOS = Continuation
Breaks a swing in trend direction (e.g., HL → HH → BOS at previous HH)
CHoCH = Reversal
Breaks a structure against trend (e.g., HH → HL → break of HL = Bearish CHoCH)
Conflict Resolution
If both BOS and CHoCH could trigger, CHoCH takes priority. This avoids false positives and ensures a single, clear structure signal per swing.
Styling & Visibility
All structure lines and labels are customizable — colors, line style (solid/dashed), and which signals to display (BOS/CHoCH/both).
3. 🧠 Supply & Demand Zones – Smart Detection & Maintenance
These zones are generated using strict price action logic, not arbitrary support/resistance lines:
-Formation Conditions
-Small-bodied "base candle" at a local high/low
-Followed by an impulse candle (bullish/bearish engulfing or breakout)
-Zone Bounds
- Demand : From base candle low to impulse high
- Supply : From base candle high to impulse low
Automatic Cleanup
Once price decisively pierces a zone, it’s automatically removed from the chart. This keeps the display relevant and clutter-free.
Multi-Timeframe Zones
Toggle zones from your current timeframe or overlay from 1H, 4H, and Daily — ideal for confluence stacking.
Zone Compression Filtering
Optional compression % ensures overlapping zones are combined logically to reduce redundancy.
🧩 How It Works Together – Practical Usage Flow
This indicator is designed to follow a structured workflow used by institutional-style traders:
Trend Structure
Identify trend using BOS and CHoCH on your timeframe.
Liquidity Zones
Look for supply/demand zones aligning with the structural bias.
Execution Areas
Wait for an unfilled FVG in confluence with the above conditions.
📸 Screenshot Captions
Screenshot 1: CHoCH + Demand Zone + Bullish FVG
📌 Reversal Setup with Confluence
A Bullish CHoCH confirms a structural shift. Price enters a Demand Zone and reacts from an unfilled Bullish FVG, creating a high-probability long opportunity.
Screenshot 2: Bearish BOS + FVG Fill
📌 Trend Continuation Confirmation
Price breaks a swing low, triggering a Bearish BOS. A Bearish FVG forms and price returns to fill it before continuing lower — validating the trend and the gap.
Screenshot 3: Multi-Timeframe Overlay (FVGs from 1H and 4H)
📌 Top-Down Liquidity Mapping
Overlaid 1H and 4H FVGs provide institutional-level insight on lower timeframes. Combined with structure signals, this supports precise entry alignment across timeframes.
As price partially fills a bullish gap, the FVG box auto-adjusts to show only the remaining imbalance. Fully filled zones are automatically removed, keeping the chart clean.
Screenshot 4: Supply Zone Rejection
📌 Institutional Supply in Action
Price enters a Supply Zone formed from a base candle + bearish impulse. A sharp rejection confirms active sell-side interest at this level. Zone opgevuld box verdwijnt
Screenshot 5: Bullish BOS + Internal Trend Logic
📌 Trend Continuation with Structure Awareness
A Higher Low forms, followed by a Higher High, triggering a Bullish BOS. The internal trend engine confirms direction and filters false reversals.
Screenshot 6: Zone Compression Logic
📌 Smart Zone Consolidation
Closely overlapping supply zones are merged using compression logic to prevent clutter. Only the strongest institutional levels remain visible.
⚙ Full Customization Panel
You can configure:
-FVG display per timeframe + color scheme
-BOS/CHoCH styling, label text, and detection toggles
-Zone settings: visibility, compression %, length
-Auto-cleanup behavior for FVGs and zones
🔐 Why Invite-Only?
This indicator contains original logic not available in public indicators, including:
-Momentum-candle verified FVGs
-Real-time partial fill trimming
-Auto-removal of invalidated structure/zones
-Conflict-aware BOS/CHoCH logic
-Multi-timeframe overlays with internal state tracking
-Proprietary compression-based zone filtering
This script is part of a private paid offering. It is not based on reused or repackaged educational code. The logic and structure management are exclusive to this implementation.
⚠ Disclaimer
This tool is for educational and analytical use only. It does not provide financial advice or trading signals. Always use proper risk management and do your own due diligence.
Fair Value Gap [UkutaLabs]█ OVERVIEW
Fair Value Gaps are price jumps caused by the imbalance buying and selling pressures in trading and are most commonly used amongst price action traders. Fair Value Gaps are formed via a three-candle sequence in which a large candle’s neighbouring candles’ upper and lower wicks do not fully overlap the large candle.
The Fair Value Gaps Indicator also supports Multi Time Frame Plotting, allowing you to plot the Fair Value Gaps from higher time frames onto lower time frame charts.
The Fair Value Gaps Indicator is a powerful trading toolkit that provides users with more information than they would typically have available to them by allowing them to configure several charts worth of information onto one single chart.
█ USAGE
The script automatically identifies imbalances between buying and selling pressure in the market in real time, offering traders valuable insight into current market sentiment. These gaps are considered to be levels where the supply and demand of a commodity are imbalanced, and the price tends to return to fill these gaps (But are not guaranteed to).
The Fair Value Gaps Indicator also allows gaps from higher time frames to be drawn on lower time frame charts, providing traders with more information than they would typically have access to to further simplify the decision making process.
█ SETTINGS
Configuration
• Show Labels: Determines whether labels that identify which time frame a FVG is calculated from.
• Max FVG Display: Determines the limit to the number of FVGs that can be drawn from all time frames. Set this value to 0 to remove this limit.
Current Time Frame
• Display: Determines whether or not FVGs from the current time frame will be drawn on the chart.
• Bullish Color: Determines the color of Bullish FVGs calculated from the current time frame.
• Bearish Color: Determines the color of Bearish FVGs calculated from the current time frame.
5 Minute (Higher Time Frame)
• Display: Determines whether or not FVGs from the 5 minute time frame will be drawn on the chart.
• Bullish Color: Determines the color of Bullish FVGs calculated from the 5 minute time frame.
• Bearish Color: Determines the color of Bearish FVGs calculated from the 5 minute time frame.
15 Minute (Higher Time Frame)
• Display: Determines whether or not FVGs from the 15 minute time frame will be drawn on the chart.
• Bullish Color: Determines the color of Bullish FVGs calculated from the 15 minute time frame.
• Bearish Color: Determines the color of Bearish FVGs calculated from the 15 minute time frame.
30 Minute (Higher Time Frame)
• Display: Determines whether or not FVGs from the 30 minute time frame will be drawn on the chart.
• Bullish Color: Determines the color of Bullish FVGs calculated from the 30 minute time frame.
• Bearish Color: Determines the color of Bearish FVGs calculated from the 30 minute time frame.
60 Minute (Higher Time Frame)
• Display: Determines whether or not FVGs from the 60 minute time frame will be drawn on the chart.
• Bullish Color: Determines the color of Bullish FVGs calculated from the 60 minute time frame.
• Bearish Color: Determines the color of Bearish FVGs calculated from the 60 minute time frame.
240 Minute (Higher Time Frame)
• Display: Determines whether or not FVGs from the 240 minute time frame will be drawn on the chart.
• Bullish Color: Determines the color of Bullish FVGs calculated from the 240 minute time frame.
• Bearish Color: Determines the color of Bearish FVGs calculated from the 240 minute time frame.
Daily (Higher Time Frame)
• Display: Determines whether or not FVGs from the daily time frame will be drawn on the chart.
• Bullish Color: Determines the color of Bullish FVGs calculated from the daily time frame.
• Bearish Color: Determines the color of Bearish FVGs calculated from the daily time frame.
ICT Silver Bullet with signals
The "ICT Silver Bullet with signals" indicator (inspired from the lectures of "The Inner Circle Trader" (ICT)),
goes a step further than the ICT Silver Bullet publication, which I made for LuxAlgo :
• uses HTF candles
• instant drawing of Support & Resistance (S/R) lines when price retraces into FVG
• NWOG - NDOG S/R lines
• signals
The Silver Bullet (SB) window which is a specific 1-hour interval where a Fair Value Gap (FVG) pattern can be formed.
When price goes back to the FVG, without breaking it, Support & Resistance lines will be drawn immediately.
There are 3 different Silver Bullet windows (New York local time):
The London Open Silver Bullet (03 AM — 04 AM ~ 03:00 — 04:00)
The AM Session Silver Bullet (10 AM — 11 AM ~ 10:00 — 11:00)
The PM Session Silver Bullet (02 PM — 03 PM ~ 14:00 — 15:00)
🔶 USAGE
This technique can visualise potential support/resistance lines, which can be used as targets.
The script contains 2 main components:
• forming of a Fair Value Gap (FVG)
• drawing support/resistance (S/R) lines
🔹 Forming of FVG
When HTF candles forms an FVG, the FVG will be drawn at the end (close) of the last HTF candle.
To make it easier to visualise the 2 HTF candles that form the FVG, you can enable
• SHOW -> HTF candles
During the SB session, when a FVG is broken, the FVG will be removed, together with its S/R lines.
The same goes if price did not retrace into FVG at the last bar of the SB session
Only exception is when "Remove broken FVG's" is disabled.
In this case a FVG can be broken, as long as price bounces back before the end of the SB session, it will remain to be visible:
🔹 Drawing support/resistance lines
S/R target lines are drawn immediately when price retraces into the FVG.
They will remain updated until they are broken (target hit)
Potential S/R lines are formed by:
• previous swings (swing settings (left-right)
• New Week Opening Gap (NWOG): close on Friday - weekly open
• New Day Opening Gap (NWOG): close previous day - current daily open
Only non-broken lines are included.
Broken =
• minimum of open and close below potential S/R line
• maximum of open and close above potential S/R line
NDOG lines are coloured fuchsia (as in the ICT lectures), NWOG are coloured white (darkmode) or black (lightmode ~ ICT lectures)
Swing line colour can be set as desired.
Here S/R includes NDOG lines:
The same situation, with "Extend Target-lines to their source" enabled:
Here with NWOG lines:
This publication contains a "Minimum Trade Framework (mTFW)", which represents the best-case expected price delivery, this is not your actual trade entry - exit range.
• 40 ticks for index futures or indices
• 15 pips for Forex pairs
The minimum distance (if applicable) can be shown by enabling "Show" - "Minimum Trade Framework" -> blue arrow from close to mTFW
Potential S/R lines needs to be higher (bullish) or lower (bearish) than mTFW.
🔶 SETTINGS
(check USAGE for deeper insights and explanation)
🔹 Only last x bars: when enabled, the script will do most of the calculations at these last x candles, potentially this can speeds calculations.
🔹 Swing settings (left-right): Sets the length, which will set the lookback period/sensitivity of the ZigZag patterns (which directs the trend and points for S/R lines)
🔹 FVG
HTF (minutes): 1-15 minutes.
• When the chart TF is equal of higher, calculations are based on current TF.
• Chart TF > 15 minutes will give the warning: "Please use a timeframe <= 15 minutes".
Remove broken FVG's: when enabled the script will remove FVG (+ associated S/R lines) immediately when FVG is broken at opposite direction.
FVG's still will be automatically removed at the end of the SB session, when there is no retrace, together with associated S/R lines,...
~ trend: Only include FVG in the same direction as the current trend
Note -> when set 'right' (swing setting) rather high ( > 3), he trend change will be delayed as well (default 'right' max 5)
Extend: extend FVG to max right side of SB session
🔹 Targets – support/resistance
Extend Target-lines to their source: extend lines to their origin
Colours (Swing S/R lines)
🔹 Show
SB session: show lines and labels of SB session (+ colour)
• Labels can be disabled separately in the 'Style' section, colour is set at the 'Inputs' section
Trend : Show trend (ZigZag, coloured ~ trend)
HTF candles: Show the 2 HTF candles that form the FVG
Minimum Trade Framework: blue arrow (if applicable)
🔶 ALERTS
There are 4 signals provided (bullish/bearish):
FVG Formed
FVG Retrace
Target reached
FVG cancelled
You can choose between dynamic alerts - only 1 alert needs to be set for all signals, or you can set specific alerts as desired.
💜 PURPLE BARS 😈
• Since TradingView has chosen to give away our precious Purple coloured Wizard Badge, bars are coloured purple 😊😉
[Yorsh] BJN HTF Delivery v1.01. Executive Summary
The BJN HTF Delivery v1.0 is a precision-engineered utility for TradingView designed to solve one of the biggest challenges for low-timeframe (LTF) traders: understanding and tracking the real-time interaction of price with Higher Timeframe (HTF) imbalances.
Unlike typical MTF indicators that plot static, clunky boxes, this tool features a dynamic, real-time mitigation engine. It visually represents how HTF Fair Value Gaps (FVGs) are being "delivered" and consumed by LTF price action. Its primary competitive advantage is its ability to provide this crucial context through lightweight, intelligent markers instead of persistent boxes, resulting in an exceptionally clean and responsive chart, optimized for scalpers and day traders.
2. Core Features Overview
This indicator is built around a sophisticated engine that tracks the lifecycle of a single, user-defined HTF FVG from its creation to its final invalidation.
A. Focused Higher Timeframe (HTF) FVG Projection
Singular Timeframe Analysis: The indicator focuses on plotting FVGs from one critical higher timeframe of your choice (e.g., 15-minute FVGs on a 1-minute chart). This provides clear, unambiguous context without the clutter of multiple MTF levels.
Initial State: A newly formed, untouched HTF FVG is drawn as a complete, semi-transparent box, representing a "full" zone of imbalance.
B. The Real-Time Mitigation & Resizing Engine
This is the indicator's core innovation. As price on your LTF chart interacts with the projected HTF FVG, the indicator provides instant feedback:
Dynamic Resizing: When price wicks into the FVG, the indicator doesn't just sit there. It instantly resizes the FVG box in real-time, shrinking it to show only the remaining, unmitigated portion. This gives you a precise, constantly updated view of how much of the imbalance is left.
Intelligent Mitigation Markers: As the box is resized, the indicator places a small, clean arrow marker (▲ for bullish, ▼ for bearish) at the point of the wick. This provides a crystal-clear historical footprint showing exactly where price mitigated the zone. This marker remains even after the box is fully consumed, serving as a permanent reference point without cluttering the chart.
C. Advanced Invalidation Logic for a Clean Chart
The indicator's most powerful feature is how it handles the potential invalidation of an FVG, keeping your chart exceptionally clean.
Box Deletion on Full Wick-Through: The moment price wicks entirely through an HTF FVG, the large, colored box is immediately deleted. This is the primary mechanism for noise reduction. Instead of leaving a useless box on the screen, the indicator removes it.
"Pending Invalidation" Markers: Upon deleting the box, the indicator places a special, subtle marker (e.g., 'X', diamond) at the tip of the invalidating wick. This signifies that the FVG is "on life support"—it has been violated on the LTF but is awaiting a candle close on the HTF for official confirmation of its death.
Trailing Marker Logic: This "pending" marker isn't static. If subsequent LTF candles continue to push past the FVG, the marker will trail the extreme wick, providing a dynamic visual of the ongoing price struggle.
True Invalidation & Cleanup: The pending marker is only removed once the FVG is truly invalidated, either by a confirmed HTF candle close beyond it or by price wicking its protective structural point. This completes the FVG's lifecycle, leaving behind only the essential, lightweight mitigation markers.
3. The Performance & Cleanliness Advantage
This indicator is built for traders who demand a pristine and responsive trading environment. It achieves this through a philosophy of "information, not clutter."
Replacing Boxes with Markers: The fundamental advantage is the script's logic of replacing large, screen-hogging boxes with small, precise markers at the earliest opportunity. The box only exists while the FVG is untouched. The moment it's mitigated, the focus shifts to a lightweight marker, preserving chart visibility.
Optimized HTF Data Calls: The script is engineered for peak efficiency. It fetches all the necessary HTF data—FVG conditions, structural points, and the critical HTF close price—in a single, consolidated data request. This drastically reduces server load and ensures the indicator has no discernible impact on platform performance.
Strict History Limit: By processing only a recent number of days (e.g., 7 days by default), the indicator avoids the performance trap of analyzing and drawing thousands of irrelevant historical objects, ensuring a fast and smooth experience.
The result is a tool that delivers more actionable, real-time information than its competitors while simultaneously creating a cleaner, more readable chart.
4. Ideal User Profile
This indicator is a mission-critical tool for:
Low-Timeframe Scalpers and Day Traders: Who execute on charts like the 1-minute or 15-second and need instant feedback on how their price action is interacting with dominant HTF levels.
SMC / ICT Traders: Who deeply understand the concepts of liquidity delivery, mitigation, and FVG invalidation. This tool automates the visual tracking of these precise concepts.
Minimalist Traders: Anyone who values a clean workspace and believes that an indicator should add clarity, not visual noise.
5. Conclusion
The BJN HTF Delivery v1.0 is not just another FVG plotter; it is a sophisticated delivery analysis tool. It brilliantly visualizes the dynamic relationship between different timeframes, showing how HTF zones of imbalance are consumed in real-time. By prioritizing a "marker-first" philosophy and intelligent object management, it offers a uniquely clean, fast, and powerful way to keep HTF context at the forefront of your LTF trading without ever sacrificing chart clarity or performance.
Hidden BreakerHidden Breaker
DESCRIPTION
The Hidden Breaker identifies Order Blocks and tracks their transformation when they interact with Fair Value Gaps. It displays both standard Order Blocks and those modified by FVG (Breaker Blocks) across multiple timeframes within a single chart view.
METHODOLOGY ORIGIN
This indicator is based on concepts from the MoneyTaur trading methodology, which focuses on identifying Order Blocks hidden behind Fair Value Gaps from the multi-timeframe perspective.
WHAT MAKES THIS UNIQUE
- Box Management System: User-controlled box allocation through dynamic filters, ensuring all detected blocks remain visible within Pine Script's 500 box limit. Users can manage which blocks to display through price range and filter adjustments.
- Creates unified columnar visualization
- Processes 70+ timeframes (incl custom)
- Tracks each block's complete lifecycle
KEY FEATURES
Order Blocks (OB): Detects engulfing candle patterns between candle bodies with customizable deviation tolerance.
Breaker Blocks (BB): Order Blocks (candle body) that crossed Fair Value Gaps by 100% without being touched by wicks.
Partial Breaker Blocks (PBB): Candle bodies that didn't fit 100% within an FVG or were partially mitigated by wicks. Min BB size in % after passing FVG is adjustable within filter.
Multi-Timeframe Analysis: Processes 70+ timeframes without repainting
Visual Organization: Displays blocks in columns by timeframe for easy comparison. Spacing is adjustable within menu.
FVG Counter: Shows interaction count (1-5) for each block
Statistics Table: Real-time monitoring of detected blocks
Price Range Filter: Manages Pine Script's 500 box limit effectively
HOW IT WORKS
The indicator uses a three-stage detection process:
Stage 1 - Order Block Detection:
Identifies engulfing patterns where one candle body fully engulfs the body of the previous opposite candle. The system allows for small price deviations. The detected zone spans from the open to close of the engulfed candle.
Stage 2 - FVG Interaction:
Monitors for Fair Value Gaps that occur when the candle's low is above the high from two candles ago (bullish gap) or when the high is below the low from two candles ago (bearish gap). When such a gap overlaps an existing Order Block, the system evaluates:
Checks whether the OB’s body is fully contained within the FVG range (passed 100% through it without wick contact) — shown as 1H | 1, where 1H is the timeframe and 1 the FVG count.
The percentage of the OB body retained within the FVG after zone adjustment is filter-controlled.
Directional bias is inherited from the FVG.
Blocks with multiple FVG interactions (counted 1–5+) allow filtering of BBs based on their FVG overlap frequency.
Stage 3 - Single or Multi-Timeframe Processing:
Collects data from multiple timeframes simultaneously, processes it without repainting, and displays horizontal boxes with timeframe labels arranged in vertical columns, where each timeframe occupies its own designated horizontal space for clear visual separation.
DETECTION CRITERIA
Order Block: Engulfing with body-to-body alignment within adjustable deviation tolerance
Breaker Block: OB that intersects with subsequent FVG. When filter is set to 100%, shows only BBs where the body fully passed through FVG without wick touches.
Partial Breaker Block (PBB): An Order Block partially intersected by an FVG or partially mitigated by a subsequent candle, narrowing the original Breaker Block range.
FVG validation: Gap between candles 1 and 3
VISUAL GUIDE
Green: Bullish Order Blocks
Red: Bearish Order Blocks
Blue: Bullish Breaker Blocks
Orange: Bearish Breaker Blocks
Teal: Bullish Partial Breaker Blocks
Purple: Bearish Partial Breaker Blocks
Numbers: FVG interaction count (1-5)
Percentages: Remaining unmitigated area
SETTINGS
Block Type Selection: Choose to display OB only, BB/PBB only
Deviation (%): Tolerance for engulfing pattern detection
Min Engulfing Impulse (%): Minimum required price movement for valid engulfing
FVG Filter: Set minimum FVG count required (1-5)
Min BB Size after FVG (%): Minimum remaining size of an BB after passing an FVG
Hide if Mitigated More Than (%): Visibility threshold for partially mitigated blocks
Price Range Filter (%): Limit Block detection to specific price ranges from current price
Price Range Axis (%): Offset reference point for price range
Timeframe Groups: Select from 6 predefined groups or custom timeframes
Max Bars to Scan: Historical lookback period (100-10000)
Replay Mode: used for historical backtesting and visual analysis for higher TF data.
TIMEFRAME GROUPS
Group 1: Minutes & Short Hours (5m-4H)
Group 2: Extended Hours (5H-23H)
Group 3: Days (1D-19D)
Group 4: Weeks (1W-12W)
Group 5: Months (1M-12M)
Group 6: 19 Custom timeframes
USAGE NOTES
Select appropriate timeframe groups for your analysis style
Adjust deviation and impulse settings based on market volatility
Use FVG filter to focus on blocks with multiple gap interactions
Monitor the statistics table to ensure box count stays under 500. If approaching limit, narrow the price range filter
Each box shows its description aligned vertically by timeframe
TECHNICAL SPECIFICATIONS
Pine Script Version 6
Default scan range: 5000 historical bars
Maximum 500 boxes per chart (Pine Script limitation)
Non-repainting calculations
Compatible with all markets and timeframes
Optimized memory management for multi-timeframe processing
TERMS AND CONDITIONS
This indicator and its documentation do not constitute financial or investment advice.
Users should make independent trading decisions and accept full responsibility for their outcomes.
Use of this tool implies that you understand the risks of financial markets and agree that the author is not liable for any loss or damage arising from its use.
This indicator is designed solely as a visualisation tool to assist with chart analysis.
It does not teach, promote, or automate any specific trading strategy, concept, or methodology.
All visual elements — such as OBs, BBs, PBBs, FVGs, and related interactions — are intended to support manual study and backtesting, not to generate trading signals.
Past performance does not guarantee future results. By using this tool, users agree to these terms.
Rapid ICT Suite - MTF Concepts & iFVGTitle: Rapid ICT Suite - MTF Concepts & iFVG
Overview
Unlock a new level of market analysis with the Rapid ICT Suite, a comprehensive, all-in-one indicator designed for the discerning price action trader. This powerful tool merges two distinct analytical engines into one seamless experience, allowing you to overlay critical Higher Timeframe (HTF) market structure onto your current chart while simultaneously tracking real-time Fair Value Gaps (FVGs) and their inversions (iFVGs).
Whether you are a scalper needing to respect 1H structure, a day trader aligning with the 4H bias, or a swing trader mapping the daily trend, this indicator provides the clarity and context you need to make higher-probability trading decisions. It was built from the ground up to solve common issues traders face, delivering stable, precise, and flexible analysis.
The Strategy: Targeting IRL with iFVG Entries
The Destination (The "Why"): Internal Range Liquidity (IRL)
On a Higher Timeframe (HTF), we will identify major Internal Range Liquidity (IRL) zones. In the context of ICT, IRL simply refers to unmitigated Fair Value Gaps (FVGs) that exist within a broader trading range.
These HTF FVGs act as powerful magnets for price. The market will often seek out these zones to rebalance before continuing its next major move. By plotting these on our chart, we establish a clear directional bias and a high-probability target. Our indicator will now label these HTF FVG boxes as "IRL".
The Entry Signal (The "How"): Inverted Fair Value Gaps (iFVG)
Once we have our HTF IRL target, we drop down to our Lower Timeframe (LTF) for execution.
We wait for price to create an Inverted Fair Value Gap (iFVG). An iFVG is a regular FVG that has failed and been traded through, signifying a shift in momentum.
An iFVG appearing on the LTF provides a high-precision entry signal to take a trade in the direction of the HTF IRL zone. It's our confirmation that the market is likely now making its move towards that destination.
Key Features
Multi-Timeframe Order Blocks (Boxes): Automatically identify and plot key HTF demand and supply zones (Order Blocks) onto your chart.
Multi-Timeframe Fair Value Gaps (Boxes): See where HTF imbalances exist, giving you a clear map of institutional reference points and potential targets.
Multi-Timeframe Liquidity Pools (Boxes): Pinpoint where buy-side and sell-side liquidity is likely resting, based on clusters of old highs and lows.
Current Timeframe FVG & iFVG (Lines/Labels): A second, independent engine tracks FVGs on your chosen timeframe, monitors them for mitigation, and automatically identifies when an FVG has been inverted (iFVG), a crucial shift in market dynamics.
The "Rapid" Advantage: Solving Trader Frustrations
This indicator was engineered to overcome three of the most common problems with technical indicators:
1. ✅ No More Flickering or "Ghost" Signals
The Problem: Many indicators show signals on the live, forming candle. This causes zones or signals to appear and disappear ("flicker"), leading to confusion and false entries.
The Solution: The Rapid ICT Suite uses 100% confirmed, closed-candle data for all its calculations (OB, FVG, and Liquidity). A zone will only appear on your chart after the price action that confirms it is complete. This means every signal is stable, reliable, and non-repainting.
2. ✅ Frame-Perfect, Precise Placement
The Problem: Indicators that use lookback logic often draw their signals one candle too late, causing a visual disconnect between the price pattern and the signal itself.
The Solution: We have corrected this common flaw. Every box and line is drawn starting from the exact confirmation candle of the pattern. This frame-perfect precision is critical for accurate analysis and planning your entries.
3. ✅ The Dual Analysis Engine: Uncluttered & Flexible
The Problem: Trying to analyze multiple timeframes at once can lead to cluttered charts and mental overload .
The Solution: This suite contains two independent parts that you can control separately.
Part 1 gives you the macro context—the HTF structure where big moves originate.
Part 2 gives you the micro details—the real-time FVG and iFVG story on your trading timeframe.
Use them together for a complete picture, or toggle one off to focus on a specific aspect of your strategy. This flexibility keeps your workspace clean and your analysis sharp.
How to Use & Settings Explained
The indicator settings are neatly organized into two main parts.
Part 1: MTF Concepts (OB, FVG, Liq)
This section controls the Higher Timeframe boxes that are overlaid onto your current chart.
Higher-TF for OB/FVG/Liq: This is the most important setting. Select the higher timeframe you want to analyze. For example, if you are trading on the 15-minute chart, you might set this to 240 (4-Hour) to see the key 4H zones.
Show Order-Blocks / FVGs / Liquidity: Simple toggles to turn each type of HTF zone on or off.
Max... Count: Controls how many of the most recent zones are displayed on the chart, preventing clutter from old, irrelevant zones.
Part 2: FVG & iFVG (Lines/Labels)
This section controls the second engine, which analyzes FVGs and iFVGs on its own selected timeframe.
Timeframe for FVG/iFVG: Choose the timeframe for this analysis. You can leave it blank to use your current chart's timeframe, or set it to a specific one.
Mitigation Type & Mitigation %: A powerful feature to define when an FVG is considered "used up."
Type: Choose if mitigation is counted from the candle's Wick or Close.
Percent: Set how far price must retrace into an FVG (e.g., 50%) before it is considered mitigated and the lines are removed from your chart.
FVG/iFVG Count: Controls how many of the most recent FVG/iFVG zones are displayed.
Style & Color Settings: Fully customize the appearance of the lines and labels to match your chart theme.
Final Words
This indicator was built to provide actionable clarity. By understanding the interplay between higher-timeframe structure and current price action, you can significantly enhance your trading edge. Thank you for choosing the Rapid ICT Suite.
Happy trading!
Plyo Tap'n'Slap (TnS) by OutOfOptionsThe Model
This Strategy/Model takes advantage of the strongest trend signature in the market, which is also the most basic move in the market. This basic move is what most traders consider to be a staircase, or trendline. ICT traders call this setup a “unicorn” which is just another word for when an Order block overlaps with an FVG. The beauty of this model is that you don't need to know what ANY of these things are.
The entry comes when a candles High or Low overlaps with a FVG that is at least 3 points away from both edges of the FVG. If the candle is too close to the edge then the setups is invalid (see rules for more). TO find a candle that overlaps with the FVG it also can not cut through any other price action, for example, A potential entry cant cut through another wick to make it overlap with the FVG. (see rules for more)
TnS gets its TP by analyzing what is called the "OG TP" The OG TP is determined by looking for the first tapped into the FVG, then looking for an immediate High or Low to the left of the candle that first tapped the FVG. IF there is no immediate High or low next to the candle that first tapped the FVG, then target the candle itself (see rules for more). IF the "OG TP" has already been hit before TnS gets its entry, then look to the left of the TnS entry candle for the immediate High or Low next to it. If there is no immediate High or Low next to the TnS Entry candle, then target the Entry candles, High or Low (see rules for more)
Model Rules
Overlapping H/L MUST be at least 3 points away from both edges of the FVG,
Overlapping H/L cannot cut through PA to make it overlap with the FVG,
Entries can only be the highest overlapping high or the lowest overlapping low,
If TnS Has already played out within the FVG then it should no longer be used,
If the FVGs OG TP has already been hit then use the TnS entry to re-align for your target,
No using NWOGs/NDOGs for setups. A NWOG is NOT the same thing as an FVG so this example
V2 Rules
If its a Bullish FVG then you need a bearish candle H/L that overlaps for your entry
If its a Bearish FVG then you need a bullish candle H/L that overlaps for your entry
Indicator Functionality
The indicator uses specific logic to identify FVGs that match the requirements of the TnS model, ensuring at least one valid entry exists per the default V1 rules of the model, or the stricter V2 rules if configured via settings. If entries (up to 2 per model rules) are identified, the FVG is highlighted, and each entry and its stop loss is marked with a line. The line styles, colors, and FVG color, which can vary depending on whether the entry is bullish or bearish, are configurable via settings.
Once the FVG is tapped into, the indicator will highlight the take profit spot and list all applicable entries, stop losses, and take profits in a table, the position and presence of which can be controlled within the indicator settings. When price action hits either stop loss or take profit, all elements are removed from the chart to avoid clutter.
Additionally, the indicator allows filtering of entries based on Risk/Reward (R:R), filtering out entries where take profit is less than the model stop loss and entries for which the stop loss resides inside the FVG itself. To help visualize setups where the FVG is outside the current visual range, the indicator has options to extend the FVG box and lines by a configurable number of bars. Once the FVG is tapped, the indicator will automatically extend lines/FVG box to the bar that tapped the FVG plus the configured number of bars.
IMGPro - V1.0IMG PRO uses nine sequential stages to analyse price action and alert users to potential Trade Setups using various Price Action Concepts as detailed below:
1. Identify Higher Timeframe Market Structure and Points of Interest (HTF-POIs)
2. Calculate position size based on your risk appetite, fees and account leverage and customisable maximum trade risk
3. Verify price is in a premium or discount
4. Determine Lower Timeframe Market Structure Break Type
5. Apply Early Warning Systems if enabled
6. Alert you to risk managed trade setups at enabled HTF-POIs
7. Alert you to unentered trade invalidations
8. Alert you to trade exits based on your set criteria
9. Provide Additional Alerts such as Higher Timeframe SFPs and Market Structure Breaks that act as potential early warnings that a trade setup may be forming
1. HTF POIs Available with IMG PRO:
a. HTF Market Structure Range Highs and Lows
b. HTF Order Blocks
c. HTF Order Blocks & FVG Overlaps
d. HTF Breakers
e. HTF Breakers & FVG Overlaps
f. HTF FVGs
g. Internal Liquidity Levels
These levels are used for Trade Signals based on user settings applied. Details provided in the trade setup section below
a. Higher Timeframe Market Structure Range High and Low through Multiple Timeframe Analysis:
Market Structure can be defined using several techniques. The IMG indicators employ the Close through High/Low technique, which necessitates a candle to close through a structural level to validate a structural break and designate a new range.
Example: H12 Market Structure visualisation on a H12 Chart with annotations:
By selecting a particular Market Structure timeframe in the settings, the indicator immediately illustrates both current and historical market structures for the chosen timeframe across all subordinate timeframes, subject to the limitations of your Tradingview subscription.
Example: H12 Market Structure visualisation on a H1 Chart with annotations:
b. Higher Timeframe Order Blocks
An Order Block represents the last candle of the opposite direction preceding a Market Structure Break. For instance, a bullish Order Block is identified as the final bearish candle leading to a bullish market structure break, and vice versa for bearish Order Blocks.
Example: H12 OB visualisation on a H12 Chart with annotations:
When activated, the indicator will highlight the Higher Timeframe Order Blocks responsible for a Market Structure Break on all subordinate timeframes relative to the chosen Market Structure Timeframe.
Note: if multiple OBs exist, the indicator will display the OB closest to the new range extreme
Example: H12 OB visualisation on a H1 Chart with annotations:
c. HTF Order Blocks & HTF FVG Overlaps
When enabled, the IMG Pro will only display overlaps of Order Blocks and FVGs. These are strong points of interest to look for trade setups
Example of the indicator displaying a Higher Timeframe’s (HTF) OBs + FVGs on a Lower Timeframe (LTF) chart:
The upper chart labelled H12/H12 is the indicator displaying H12 Structure and OB+FVGs on a H12 chart.
The lower chart labelled H12/H1 is the indicator displaying H12 OB+FVGs on a H1 chart:
d. Higher Timeframe Breakers
A Breaker Block is identified as the most recent Order Block that has been breached by price, leading to an opposite Market Structure Break. For example, a bullish Breaker Block is the last bearish Order Block that price has passed through, confirming a bullish structural break, and the inverse is true for bearish Breakers.
Example: H12 Breaker visualisation on a H12 Chart with annotations:
Once enabled, the system will display Higher Timeframe Breaker Blocks after an opposite Market Structure Break is confirmed on all subordinate timeframes.
Example: H12 Breaker visualisation on a H1 Chart with annotations:
e. HTF Breakers & HTF FVG Overlaps
When enabled, the IMG Pro will only display overlaps of Breakers and FVGs. These are strong points of interest to look for trade setups
Example:
The upper chart labelled H12/H12 is the indicator displaying H12 Structure and Breakers+FVGs on a H12 chart
The lower chart labelled H12/H1 is the indicator displaying H12 Breakers+FVGs on a H1 chart
f. Higher Timeframe Fair Value Gaps (FVGs)
A Fair Value Gap is a concept used by price action traders to identify market inefficiencies, where buying and selling are not balanced. It appears on a chart as a triple-candle pattern, with a large candle flanked by two others whose highs and lows do not overlap with the large candle, creating a gap. This gap often attracts the price towards it before the market resumes its previous direction.
Example of the indicator displaying a Higher Timeframe’s FVGs on a Lower Timeframe (LTF) chart:
-The upper chart labelled H12/H12 is the indicator displaying H12 Structure and FVGs on a H12 chart.
-The lower chart labelled H12/H1 is the indicator displaying H12 FVGs on a H1 chart
g. HTF Internal Liquidity Levels (FVGs)
A HTF Liquidity Level is a Higher Timeframe three bar Pivot that forms inside an active range.
When enabled, the system will display all UNTESTED HTF pivots formed within an active range. Lines will stop extending once they are either tested or HTF Market Structure Breaks
Example: H12 Liquidity Levels on a H1 Chart:
2. Risk Management and Position Sizing:
a. Automated Position Sizing:
The System will automatically calculate position size based on the account size, max leverage and risk appetite (capital risk per trade) details input in settings. Calculated trade details are included in the Tradingview Alerts as well as interactive labels on the charts.
Details include but are not limited to:
Trade Timeframe
Side: Long/Short
Type: Limit/Market
Position Size in $ and Units
Lot sizes if applicable
Trade Risk %
Take Profit Level
Entry Price
Stoploss Price
b. Maximum Trade Risk:
IMG PRO has the ability to invalidate potential trade entries if it exceeds your maximum Trade Risk threshold. Trade Risk is the % price difference between entry and stoploss.
When an invalid signal is generated, the signal will not be shaded and the interactive label will display the reason for invalidation
In the example below, Max Trade Risk is set to 2% , but the trade signal had a trade risk of 5.11% invalidating the signal with a grey triangle
3. Verify Premium / Discount:
The system can be setup to only display signals that are in the top or bottom n% of the Market Structure Range
A value of 0 (default) will disable the premium/discount system and utilize the entire range for all signal types (bullish and bearish)
EXAMPLES:
A value of 50% will only display bullish signals that have, at minimum, tagged the bottom half of the range and vice versa for bearish signals.
A value of 25% will only display bullish signals that have tagged the bottom quarter of the range and vice versa.
A value of 38.2% will display signals that tag the top and bottom 38.2% of the range (equivalent of the 61.8% OTE. retracement) Etc.
4. Determine Lower Timeframe Market Structure Break Type
IMG Pro has two options for Lower Timeframe Structure Breaks:
Market Structure Breaks: When selected, the system will use the first opposite pivot (in the current chart timeframe) to the left of a confirmed SFP to calculate a break in market structure when price closes through it:
Market Structure Shifts: When selected, the system will use the first opposite pivot (in the current chart timeframe) to the left OR right of a confirmed SFP to calculate a break in market structure when price closes through it. MSS’ are more sensitive and may provide more false signals but are useful when there are big spike liquidity runs:
5. Apply Early Warning Systems if enabled:
The IMG Pro indicator has an early warning system that will generate a potential setup alert before a HTF SFP is confirmed
There are two types of early warnings:
LTF Structure Break Early Warning:
If enabled, the system will generate a potential setup alert if price cuts through a HTF level (Range Extreme / Internal Liquidity) and prints an opposite LTF MSB back through that level. This is a more aggressive approach where the system does not wait for the HTF SFP to be confirmed.
Example: In the screenshot below, the system did not wait for a H12 SFP to be confirmed, allowing it to signal an entry that would have otherwise been missed if the LTF Structure Break early warning system was not enabled
LTF FVG Early Warning:
If enabled, the system will generate a potential setup alert if price cuts through a HTF level (Range Extreme / Internal Liquidity) and prints an opposite LTF FVG back through that level. No LTF MSB is required and a limit order at the FVG is signalled. This is a more aggressive approach where the system does not wait for the HTF SFP to be confirmed.
Example: In the screenshot below, the system did not wait for a H12 SFP to be confirmed, signalling an entry as soon as an opposite LTF FVG is confirmed pushing price back through the HTF Liquidity Levels
6. Trade Setup Types Available with IMG PRO:
The system will alert you to potential trade setups at these HTF POIs: .
a. Higher Timeframe (HTF) Swing Failure followed by a Lower Timeframe (LTF) MSB at Range Extremes
b. Higher Timeframe (HTF) Swing Failure followed by a Lower Timeframe (LTF) MSB at enabled HTF POIs
c. Higher Timeframe (HTF) Swing Failure followed by a Lower Timeframe (LTF) MSB at All Internal Liquidity Levels (With Trend and Counter Trend)
d. Higher Timeframe (HTF) Swing Failure followed by a Lower Timeframe (LTF) MSB at All Internal Liquidity Levels (With Trend ONLY)
e. Lower Timeframe (LTF) Swing Failure followed by a Lower Timeframe (LTF) MSB at enabled HTF POIs
f. Multiple LTF Entry Options once a signal is confirmed
a. HTF Swing Failure followed by a LTF MSB at Range Extremes
A Swing Failure Pattern (SFP) is a technical analysis concept used in trading to identify potential reversals in price trends. It occurs when the price attempts to surpass a previous high or low but fails to sustain that level, indicating a possible change in market direction. There are multiple methods to define a SFP but this indicator uses the failure to close through a Key Level. When confirmed, HTF SFPs will be displayed on-screen and an alert will fire if enabled.
Example: EURUSD H12 Trade Setup Alerts at Range Extremes on a H1 Chart:
Alerts to Enter at Lower Timeframe MSBs
When enabled, a potential trade setup label and alert will generate when a HTF SFP is confirmed at a Range Extreme followed by a Chart Timeframe (Lower Timeframe) Market Structure Break (MSB). These signals are agnostic to current Market Structure bias and will generate at both extremes.
b. HTF Swing Failure followed by a LTF MSB at HTF POIs:
When enabled, a trade setup label and alert will generate when a HTF SFP is confirmed at an enabled Higher Timeframe POI (Order Blocks / Breakers / FVGs) followed by a Chart Timeframe (Lower Timeframe) Market Structure Break (MSB). These signals are always in line current Market Structure bias.
Example: H12 SFPs and Trade Setups at HTF POIs with Fluid Exits on a H1 Chart:
c. HTF Swing Failure followed by a LTF MSB at All Internal Liquidity Levels ( With Trend and Counter Trend ):
When enabled, a trade setup label and alert will generate when a HTF SFP is confirmed at an Internal Liquidity Level followed by a LTF Market Structure Break (MSB) or Market Structure Shift(MSS). These signals are agnostic to HTF Market Structure bias and will alert to setups with and counter trend.
Example:
d. HTF Swing Failure followed by a LTF MSB at All Internal Liquidity Levels ( With Trend ONLY )
Same as (c), but will only signal trades that are in line with higher timeframe structure. I.e If HTF Structure is bullish, then only bullish trades will be signalled.
e. LTF Swing Failure followed by a LTF MSB at enabled HTF POIs
The system will alert you to a lower timeframe setup if these conditions are met inside enabled HTF POIs (OBs / Breakers / FVGs):
- LTF SFP
- LTF MSB
Example:
f. LTF Entry Options:
IMG PRO provides the following options for LTF Entries:
i. Limit Entry at MSB Level
ii. Limit Entry at Breaker
iii. Limit Entry at Raid Candle
iv. Limit Entry at OTE 70.5% Retracement
v. Market Entries (where applicable)
Trade entry alerts will detail limit entry prices based on the option selected here.
7. Unentered Trade Invalidations:
IMG Pro can invalidate unentered signals based on these custom criteria:
a. Opposite HTF SFP Before Entry
b. TP Hit Before Entry
c. Confirmed Opposite Signal Before Entry
If enabled and criteria met, the system will alert you to cancel any limit orders for the trade that is being invalidated.
8. Trade Exit Types Available with IMG PRO:
The system provides the following options for trade exit alerts:
a. Exit at Fixed R:R
b. Exit at a confirmed Opposite Signal (Fluid Exits)
c. Exit at enabled and untested HTF POIs
d. Exit on an opposite HTF SFP at a liquidity level
Example: H12 SFPs and Potential Trade Setups at Internal Liquidity Levels with Exit at closest untested HTF POI on a H1 Chart:
9. IMG PRO Alerts Overview
The system provides notifications of:
a. Confirmed HTF Market Structure Breaks
b. Confirmed HTF SFPs at Range Extremes
c. Confirmed HTF SFPs at HTF POIs
d. Confirmed HTF SFPs at Liquidity Levels
e. Potential Trade Setups at Range Extremes
f. Potential Trade Setups at HTF Points of Interest
g. Potential Trade Setups at HTF Liquidity Levels
h. LTF SFPs inside HTF POIs
i. Potential LTF Setups at HTF POIs
j. All Exit Types including Stoplosses
k. All Trade Invalidations
To enable alerts, right-click on the indicator and select “Add Alert on IMG ...”. You may customise the alert name as desired and then click 'Create' to finalise the alert setup.
General Note:
There is no system, indicator, algorithm, or strategy that can provide absolute certainty in predicting market movements. Use trading indicators as a tool to assist with trading decisions; manage your risk wisely.
Stay safe and Happy Trading!
TTP IFVG Signals With EMA /ICT Gold scalpingThis script uses original logic and alerting rules. in Japan
finding ICT IFVG and EMA conditions.
#IFVG, Forex, ICT, EMA, Scalping, Indicator
This indicator automatically finds IFVG (Imbalance / Fair Value Gap) zones and gives you a buy or sell signal when price comes back and breaks out through that gap.
It also draws a colored box over the gap so you can see the zone visually, and it raises alerts when a new signal appears.
High-level logic:
On every bar, the script looks back up to “IFVG_GapBars” bars.
For each offset i it checks a 3-candle pattern:
– If the low of the newer candle is above the high of the older candle: bullish FVG (price jumped up, leaving a gap).
– If the high of the newer candle is below the low of the older candle: bearish FVG (price jumped down, leaving a gap).
When a valid FVG is found:
– For a bullish FVG it looks for a later close that breaks down through that gap (sell signal).
– For a bearish FVG it looks for a later close that breaks up through that gap (buy signal).
– A moving-average trend filter must agree (downtrend for sells, uptrend for buys).
– It checks that price has not already “filled” the gap before the breakout.
If all conditions are satisfied, it:
– Sets signal_dir = 1 for a buy, or -1 for a sell.
– Draws a box from the original FVG bar to the bar just before the breakout (extended a bit to the right), between the gap high and gap low.
– Plots an ▲ label for buys or ▼ label for sells.
– Triggers the corresponding alert conditions.
Now the parameters:
PipSizeMultilier (PipSizeManual)
Multiplies the symbol’s minimum tick size (syminfo.mintick).
It is used when converting “MinFVG_Pips” into an actual price distance.
If you feel the indicator is too sensitive (too many small gaps), you can increase this multiplier to effectively require a larger price difference.
TickSize
Internal value = syminfo.mintick * PipSizeMultiplier.
This is the actual price step the script uses as a “pip” when checking minimum gap size.
FVG Search Lookback (IFVG_GapBars)
How many bars back from the current bar the script will scan for a 3-candle FVG pattern.
Larger value = it can find older FVGs, but loop cost is higher.
Min FVG Size (Pips/Points) (MinFVG_Pips)
Minimum allowed size of the gap, measured in “pips/points” using TickSize.
If the vertical distance between the gap high and gap low is smaller than this, the gap is ignored.
0.0 means “no size filter” (every FVG is allowed).
FVG Epsilon (Price Units) (FVG_EpsPoints)
Tolerance for the FVG detection.
It is subtracted/added in the condition that checks “low > old high” or “high < old low”.
0.0 means strict gap (no overlap at all). A small positive epsilon allows tiny overlaps to still count as a gap.
Show IFVG Zones (ShowZones)
If true, the script draws a box over the IFVG zone when a signal is confirmed.
If false, no boxes are drawn; you only see the ▲ / ▼ markers and alerts.
Buy Zone Color (ZoneColorBuy)
Fill color and border color for boxes created from bearish FVGs that later produce a buy signal.
Sell Zone Color (ZoneColorSell)
Fill color and border color for boxes created from bullish FVGs that later produce a sell signal.
Box Extension (Bars) (BoxExtension)
How many extra bars to extend the right side of the box beyond the breakout bar.
The internal right coordinate is “bar_index - 1 + BoxExtension”.
Increase this if you want the zone to visually extend further into the future.
MA Period (MA_Period)
Lookback length of the moving average used as a trend filter.
MA Type (MA_Kind)
Type of moving average: “SMA” or “EMA”.
If SMA is chosen, the script uses ta.sma; if EMA, it uses ta.ema.
Moving-average filter behavior:
For sell signals (from bullish FVG): MA must be sloping down (MA < MA ) and price must be below MA.
For buy signals (from bearish FVG): MA must be sloping up (MA > MA ) and price must be above MA.
If these conditions are not satisfied, the FVG is ignored even if the gap and breakout conditions are met.
Signals and alerts:
signal_dir = 1 → buy signal, ▲ label below the bar, “IFVG Buy Alert” / “IFVG Buy/Sell Alert” can fire.
signal_dir = -1 → sell signal, ▼ label above the bar, “IFVG Sell Alert” / “IFVG Buy/Sell Alert” can fire.
signal_dir = 0 → no new signal on this bar.
In short:
This indicator finds 3-candle IFVG gaps, filters them by size and trend, waits for a clean breakout through the gap, draws a box on the original gap zone, and gives you a clear buy or sell signal plus alerts.
coinbot_ICT_Unicorn(AUTOTRADE)1. 🎯 핵심 기능: 자동매매 신호 전송 (Webhook)
이 스크립트는 매매 신호가 발생할 때마다, 사용자가 '자동매매 설정(Autotrade Settings)'에 입력한 값들을 조합하여 구체적인 JSON 메시지를 생성하고 alert() 함수를 통해 웹훅으로 전송합니다.
입력 설정: user_id, exchange(거래소), leverage(레버리지), capital_percent(투입 시드 %), sl_percent(손절 %), 그리고 3단계 분할 익절(tp1_price_percent, tp1_qty_percent 등) 설정을 입력받습니다.
신호 종류:
ENTRY (진입): 매수(buy) 또는 매도(sell) 신호가 발생하면, 위 모든 설정값을 포함한 진입 명령을 보냅니다.
CLOSE (손절): 전략의 내부 로직에 의해 손절가에 도달하면(slAlertTick), 포지션을 종료하라는 신호를 보냅니다.
TAKE_PROFIT (익절): 목표가에 도달하면(tpAlertTick), 설정된 물량만큼 익절하라는 신호를 보냅니다.
2. 📈 작동 원리: "ICT 유니콘" 매매 전략
이 스크립트의 진입 로직은 ICT(Inner Circle Trader) 개념 중 하나인 **'유니콘 모델'**을 따릅니다.
구성 요소 식별:
Breaker Block (BB): '브레이커 블록'을 식별합니다. 이는 특정 고점/저점을 만든 후 그 방향으로 가지 못하고 반대 방향으로 돌파(Break)된 오더 블록(Order Block)입니다.
Fair Value Gap (FVG): '공정 가치 갭' (가격 불균형 영역)을 식별합니다.
핵심 진입 신호 (Unicorn): 이 전략의 핵심 진입 조건은 **Breaker Block(BB)과 Fair Value Gap(FVG)이 중첩(Overlap)**되는, 소위 '유니콘'이라 불리는 강력한 지지/저항 영역이 발생하는 것입니다.
Long (매수) 진입:
가격이 하락하며 **'하락형 브레이커 블록(Bearish Breaker Block)'**을 만듭니다.
이후 가격이 상승 돌파하며 이 브레이커 블록 영역과 중첩되는 **'상승형 FVG(Bullish FVG)'**를 생성합니다.
이 중첩 영역(FVG-BB Overlap)이 바로 매수 진입의 근거가 됩니다. (코드가 dbgRequireRetracement 설정에 따라 FVG로의 되돌림을 기다리거나 즉시 진입 신호를 보냅니다.)
Short (매도) 진입:
가격이 상승하며 **'상승형 브레이커 블록(Bullish Breaker Block)'**을 만듭니다.
이후 가격이 하락 돌파하며 이 브레이커 블록 영역과 중첩되는 **'하락형 FVG(Bearish FVG)'**를 생성합니다.
이 중첩 영역이 매도 진입의 근거가 됩니다.
3. 📊 부가 기능
시각화: 차트 상에 FVG 영역과 Breaker Block 영역을 박스로 그려주어(설정에 따라 표시/숨김 가능) 매매 근거를 시각적으로 확인할 수 있게 합니다.
백테스팅 대시보드: 차트 우측 상단(기본값)에 이 전략의 누적 성과(총 진입 횟수, 승/패, 승률, 총수익률)를 보여주는 대시보드를 표시합니다.
요약
이 스크립트는 **"Breaker Block과 FVG의 중첩(유니콘 모델)"**을 유일한 진입 조건으로 사용하는 매우 구체적인 ICT 전략입니다. 이 조건이 충족되면, 사용자가 미리 설정한 상세한 리스크 관리 값들을 담아 자동매매 봇으로 즉시 실행 가능한 주문 신호를 전송하는 '올인원(All-in-One)' 전략 스크립트입니다.
요청하신 대로, 해당 지표 요약본을 영어로 번역하여 제공합니다.
This script is an automated trading (Autotrade) strategy signal generator based on the ICT "Unicorn" trading model.
As the "AUTOTRADE" in its name implies, the core purpose of this indicator is to detect specific conditions on the chart and send JSON-formatted order signals (webhooks) to an external automated trading bot.
Here are the core mechanics and features of this script:
1. 🎯 Core Feature: Automated Signal Transmission (Webhook)
Whenever a trade signal occurs, this script generates a specific JSON message by combining the values entered by the user in the "Autotrade Settings" and sends it via webhook using the alert() function.
Input Settings: It takes inputs for user_id, exchange, leverage, capital_percent (equity %), sl_percent (stop loss %), and settings for 3-stage split take-profits (e.g., tp1_price_percent, tp1_qty_percent).
Signal Types:
ENTRY: When a "buy" or "sell" signal occurs, it sends an entry command including all the settings above.
CLOSE (Stop-Loss): If the price hits the stop loss according to the strategy's internal logic (slAlertTick), it sends a signal to close the position.
TAKE_PROFIT: When a profit target is reached (tpAlertTick), it sends a signal to take profit on the specified quantity.
2. 📈 How It Works: The "ICT Unicorn" Strategy
The script's entry logic follows the "Unicorn Model," one of the concepts from ICT (Inner Circle Trader).
Identifying Components:
Breaker Block (BB): It identifies a "Breaker Block." This is an Order Block that, after creating a specific high/low, fails to continue in that direction and is instead broken through in the opposite direction.
Fair Value Gap (FVG): It identifies a "Fair Value Gap" (a price imbalance area).
Core Entry Signal (The Unicorn): The core entry condition for this strategy is the overlap of a Breaker Block (BB) and a Fair Value Gap (FVG), which creates a powerful support/resistance zone known as the "Unicorn."
Long Entry:
Price moves down, creating a "Bearish Breaker Block."
Subsequently, price breaks upward, creating a "Bullish FVG" that overlaps with this Breaker Block area.
This overlapping area (FVG-BB Overlap) becomes the basis for the long entry. (Depending on the dbgRequireRetracement setting, the code either waits for a retracement to the FVG or sends an immediate entry signal.)
Short Entry:
Price moves up, creating a "Bullish Breaker Block."
Subsequently, price breaks downward, creating a "Bearish FVG" that overlaps with this Breaker Block area.
This overlapping area becomes the basis for the short entry.
3. 📊 Additional Features
Visualization: It draws the FVG and Breaker Block zones as boxes on the chart (can be toggled in settings), allowing for visual confirmation of the trade setup.
Backtesting Dashboard: It displays a dashboard in the top-right corner (by default) showing the strategy's cumulative performance (total entries, wins/losses, win rate, total profit).
Summary
This script is a highly specific ICT strategy that uses the "overlap of a Breaker Block and an FVG (the Unicorn Model)" as its sole entry condition. When this condition is met, it transmits an immediately executable order signal to an automated trading bot, complete with all the detailed risk management values preset by the user. It is an "all-in-one" strategy script.
Volumatic Fair Value Gaps [BigBeluga]🔵 OVERVIEW
The Volumatic Fair Value Gaps indicator detects and plots size-filtered Fair Value Gaps (FVGs) and immediately analyzes the bullish vs. bearish volume composition inside each gap. When an FVG forms, the tool samples volume from a 10× lower timeframe , splits it into Buy and Sell components, and overlays two compact bars whose percentages always sum to 100%. Each gap also shows its total traded volume . A live dashboard (top-right) summarizes how many bullish and bearish FVGs are currently active and their cumulative volumes—offering a quick read on directional participation and trend pressure.
🔵 CONCEPTS
FVGs (Fair Value Gaps) : Imbalance zones between three consecutive candles where price “skips” trading. The script plots bullish and bearish gaps and extends them until mitigated.
Size Filtering : Only significant gaps (by relative size percentile) are drawn, reducing noise and emphasizing meaningful imbalances.
// Gap Filters
float diff = close > open ? (low - high ) / low * 100 : (low - high) / high *100
float sizeFVG = diff / ta.percentile_nearest_rank(diff, 1000, 100) * 100
bool filterFVG = sizeFVG > 15
Volume Decomposition : For each FVG, the indicator inspects a 10× lower timeframe and aggregates volume of bullish vs. bearish candles inside the gap’s span.
100% Split Bars : Two inline bars per FVG display the % Bull and % Bear shares; their total is always 100%.
Total Gap Volume : A numeric label at the right edge of the FVG shows the total traded volume associated with that gap.
Mitigation Logic : Gaps are removed when price closes through (or touches via high/low—user-selectable) the opposite boundary.
Dashboard Summary : Counts and sums the active bullish/bearish FVGs and their total volumes to gauge directional dominance.
🔵 FEATURES
Bullish & Bearish FVG plotting with independent color controls and visibility toggles.
Adaptive size filter (percentile-based) to keep only impactful gaps.
Lower-TF volume sampling at 10× faster resolution for more granular Buy/Sell breakdown.
Per-FVG volume bars : two horizontal bars showing Bull % and Bear % (sum = 100%).
Per-FVG total volume label displayed at the right end of the gap’s body.
Mitigation source option : choose close or high/low for removing/invalidating gaps.
Overlap control : older overlapped gaps are cleaned to avoid clutter.
Auto-extension : active gaps extend right until mitigated.
Dashboard : shows count of bullish/bearish gaps on chart and cumulative volume totals for each side.
Performance safeguards : caps the number of active FVG boxes to maintain responsiveness.
🔵 HOW TO USE
Turn on/off FVG types : Enable Bullish FVG and/or Bearish FVG depending on your focus.
Tune the filter : The script already filters by relative size; if you need fewer (stronger) signals, increase the percentile threshold in code or reduce the number of displayed boxes.
Choose mitigation source :
close — stricter; gap is removed when a closing price crosses the boundary.
high/low — more sensitive; a wick through the boundary mitigates the gap.
Read the per-FVG bars :
A higher Bull % inside a bullish gap suggests constructive demand backing the imbalance.
A higher Bear % inside a bearish gap suggests supply is enforcing the imbalance.
Use total gap volume : Larger totals imply more meaningful interest at that imbalance; confluence with structure/HTF levels increases relevance.
Watch the dashboard : If bullish counts and cumulative volume exceed bearish, market pressure is likely skewed upward (and vice versa). Combine with trend tools or market structure for entries/exits.
Optional: hide volume bars : Disable Volume Bars when you want a cleaner FVG map while keeping total volume labels and the dashboard.
🔵 CONCLUSION
Volumatic Fair Value Gaps blends precise FVG detection with lower-timeframe volume analytics to show not only where imbalances exist but also who powers them. The per-gap Bull/Bear % bars, total volume labels, and the cumulative dashboard together provide a fast, high-signal read on directional participation. Use the tool to prioritize higher-quality gaps, align with trend bias, and time mitigations or continuations with greater confidence.






















