Smart Money Footprint & Cost Basis Engine [AlgoPoint]Smart Money Footprint & Cost Basis Engine
This indicator is a comprehensive market analysis tool designed to identify the "footprints" of Smart Money (institutions, whales) and pinpoint high-probability reaction zones. Instead of relying on lagging averages, this engine analyzes the very structure of the market to find where large players have shown their hand.
How It Works: The Core Logic
The indicator operates on a multi-stage confirmation process to identify and validate Smart Money zones:
Smart Money Detection (The Trigger): The engine first scans the chart for signs of intense, urgent buying or selling. It does this by identifying Fair Value Gaps (FVGs) created by large, high-volume Displacement Candles. This is our initial Point of Interest (POI).
Cost Basis Calculation (The Average Price): Once a potential Smart Money move is detected, the indicator calculates the Volume-Weighted Average Price (VWAP) for that specific move. This gives us a highly accurate estimate of the average price at which the large players entered their positions.
Historical Confirmation (The "Memory"): This is the indicator's most unique feature. It checks its historical database to see if a similar Smart Money move (in the same direction) has occurred in the same price area in the past. If a match is found, the zone's significance is confirmed.
Verified Cost Basis Zone (The Final Output): A zone that passes all the above checks is drawn on the chart as a high-probability Verified Cost Basis Zone. These are the "memory zones" where the market is likely to react upon a re-visit.
How to Use This Indicator
Cost Basis Zones (The Boxes):
Green Boxes: Bullish zones where Smart Money likely accumulated positions. When the price returns here, a BUY reaction is expected.
Red Boxes: Bearish zones where Smart Money likely distributed positions. When the price returns here, a SELL reaction is expected.
Zone Strength (★★★): Each zone is created with a star rating. More stars indicate a higher-confidence zone (based on factors like volume intensity and historical confirmation).
BUY/SELL Signals: A signal is only generated when the price enters a zone AND the confirmation filters (if enabled in the settings) are passed.
Zone Statuses:
Green/Red: Active and waiting to be tested.
Gray: The zone has been tested, and a signal was produced.
Dark Gray (Invalidated): The zone was broken decisively and is no longer considered valid support/resistance.
Key Settings
Signal Accuracy Filters: You can enable/disable three powerful filters to balance signal quantity and quality:
Momentum Confirmation (Stoch): Waits for momentum to align with the zone's direction.
Candlestick Confirmation (Engulfing): Waits for a strong reversal candle inside the zone.
Lower Timeframe MSS Confirmation: The most advanced filter; waits for a trend shift on a lower timeframe before giving a signal.
Historical Confirmation:
Require Historical Confirmation: Toggle the "Memory" feature on/off. Turn it off to see all potential SM zones.
Tolerance Calculation Method: Choose between a dynamic ATR Multiplier (recommended for all-around use) or a fixed Percentage to define the zone size.
Fvg
Balanced Price Range (BPR) DetectorBALANCED PRICE RANGE (BPR) DETECTOR
This indicator detects Balanced Price Ranges (BPR) by analyzing the overlap between bullish and bearish Fair Value Gaps (FVG). BPR zones represent areas where opposing market forces create equilibrium, often acting as strong support/resistance levels.
KEY FEATURES:
- Automatic detection of overlapping FVGs to form BPR zones
- Confidence scoring system (0-100%) based on overlap ratio, size, volume, and symmetry
- Customizable filters (ATR, Volume)
- Real-time mitigation tracking
- Alert system for new BPRs, mitigations, and rejections
- Visual customization options
HOW IT WORKS:
The indicator continuously scans for Fair Value Gaps in both directions. When a bullish FVG overlaps with a bearish FVG within the specified lookback period, a BPR zone is created. The confidence score helps traders identify the strongest zones.
USAGE:
- High confidence BPRs (>75%) often act as strong reversal zones
- Use for entry/exit points when price approaches BPR zones
- Combine with other indicators for confirmation
- Monitor touch counts for zone strength validation
SETTINGS:
- Lookback Bars: Number of bars to search for overlapping FVGs
- Min Overlap Ratio: Minimum overlap percentage required
- ATR/Volume Filters: Filter out weak or low-volume BPRs
- Display Options: Customize visual appearance
- Mitigation Type: Choose between wick or close-based mitigation
Perfect for traders using price action, supply/demand zones, or institutional order flow concepts.
SMC Suite – OB • Breaker • Liquidity Sweep • FVGSMC Suite — Order Blocks • Breaker • Liquidity Sweep • FVG
What it does:
Maps institutional SMC structure (OB → Breaker flips, Liquidity Sweeps, and 3-bar FVGs) and alerts when price retests those zones with optional r ejection-wick confirmation .
Why this isn’t “just a mashup”?
This tool implements a specific interaction between four classic SMC concepts instead of only plotting them side-by-side:
1. OB → Breaker Flip (automated): When price invalidates an Order Block (OB), the script converts that zone into a Breaker of opposite bias (bullish ⇄ bearish), extends it, and uses it for retest signals.
2. Liquidity-Gated FVGs : Fair Value Gaps (3-bar imbalances) are optionally gated—they’re only drawn/used if a recent liquidity sweep occurred within a user-defined lookback.
3. Retest Engine with Rejection Filter : Entries are not whenever a zone prints. Signals fire only if price retests the zone, and (optionally) the candle shows a rejection wick ≥ X% of its range.
4. Signal Cooldown : Prevents spam by enforcing a minimum bar gap between consecutive signals.
These behaviors work together to catch the sequence many traders look for: sweep → impulse → OB/FVG → retest + rejection.
Concepts & exact rules
1) Impulsive move and swing structure
• A bar is “ impulsive ” when its range ≥ ATR × Impulsive Mult and it closes in the direction of the move.
• Swings use Pivot Length (lenSwing) on both sides (HH/LL detection). These HH/LLs are also used for sweep checks.
2) Order Blocks (OB)
• Bullish OB : last bearish candle body before an i mpulsive up-move that breaks the prior swing high . Zone = min(open, close) to low of that candle.
• Bearish OB : last bullish candle body before an impulsive down-move that breaks the prior swing low . Zone = high to max(open, close).
• Zones extend right for OB Forward Extend bars.
3) Breaker Blocks (automatic flip)
If price invalidates an OB (closes below a bullish OB’s low or above a bearish OB’s high), that OB flips into a Breaker of opposite bias:
• Invalidated bullish OB → Bearish Breaker (resistance).
• Invalidated bearish OB → Bullish Breaker (support).
Breakers get their own style/opacity and are used for separate Breaker Retest signals.
4) Liquidity Sweeps (decluttered)
• Bullish sweep : price takes prior high but closes back below it.
• Bearish sweep : price takes prior low but closes back above it.
Display can be tiny arrows (default), short non-extending lines, or hidden. Old marks auto-expire to keep the chart clean.
5) Fair Value Gaps (FVG, 3-bar)
• Bearish FVG : high < low and current high < low .
• Bullish FVG : low > high and current low > high .
• Optional gating: only create/use FVGs if a sweep occurred within ‘Recent sweep’ lookback.
6) Retest signals (what actually alerts)
A signal is true when price re-enters a zone and (optionally) the candle shows a rejection wick:
• OB Retest LONG/SHORT — same-direction retest of OB.
• Breaker LONG/SHORT — opposite-direction retest of flipped breaker.
• FVG LONG/SHORT — touch/fill of FVG with rejection.
You can require a wick ratio (e.g., bottom wick ≥ 60% of range for longs; top wick for shorts). A cooldown prevents back-to-back alerts.
How to use
1. Pick timeframe/market : Works on any symbol/TF. Many use 15m–4h intraday and 1D swing.
2. *Tune Pivot Length & Impulsive Mult:
• Smaller = more zones and quicker flips; larger = fewer but stronger.
3. Decide whether to gate FVGs with sweeps : Turn on “Require prior Liquidity Sweep” to focus on post-liquidity setups.
4. Set wick filter : Start with 0.6 (60%) for cleaner signals; lower it if too strict.
5. Style : Use the Style / Zones & Style / Breakers groups to set colors & opacity for OB, Breakers, FVGs.
6. Alerts : Add alerts on any of:
• OB Retest LONG/SHORT
• Breaker LONG/SHORT
• FVG LONG/SHORT
Choose “Once per bar close” to avoid intrabar noise.
Inputs (key)
• Swing Pivot Length — swing sensitivity for HH/LL and sweeps.
• Impulsive Move (ATR ×) — defines the impulse that validates OBs.
• OB/FVG Forward Extend — how long zones project.
• Require prior Liquidity Sweep — gate FVG creation/usage.
• Rejection Wick ≥ % — confirmation filter for retests.
• Signal Cooldown (bars) — throttles repeated alerts.
• Display options for sweep marks — arrows vs short lines vs hidden.
• Full color/opacity controls — independent palettes for OB, Breakers, and FVGs (fills & borders).
What’s original here
• Automatic OB → Breaker conversion with separate retest logic.
• Liquidity-conditioned FVGs (FVGs can be required to follow a recent sweep).
• Unified retest engine with wick-ratio confirmation + cooldown.
• Decluttered liquidity visualization (caps, expiry, and non-extending lines).
• Complete styling controls for zone types (fills & borders), plus matching signal label colors.
🔹 Notes
• This script is invite-only.
• It is designed for educational and discretionary trading use, not as an autotrader.
• No performance guarantees are implied — always test on multiple markets and timeframes.
BISI / SIBI & Impulsive Candle Detector (Invite-Only)Smart scanner for BISI / SIBI imbalances and impulsive candles, with plotted zones, alerts, and customizable context filters.
What this indicator does
BISI / SIBI detection – Automatically spots bullish (BISI) and bearish (SIBI) imbalances (Fair Value Gaps) and highlights potential breaker zones for liquidity grabs and rebalancing.
Impulsive candles – Identifies abnormal expansion bars (by range, volatility, or volume*) that often trigger directional moves.
Zones & levels – Draws FVG/Breaker boxes (high/low), midline, and optional extension until mitigation.
Context filters – Trend filters (MA/HTF), trading sessions (Killzones), and adjustable sensitivity.
Alerts – Ready-to-use signals on zone creation, retest, mitigation, and valid impulsive setups.
Use case
Designed for traders using ICT / SMC methodologies who want:
A clean visual map of imbalances and breaker zones
Extra confirmation from impulsive moves
Alerts to catch setups without staring at the chart
Disclaimer
This script is for educational purposes only. It does not constitute financial advice. Always test thoroughly and use proper risk management.
Bullish 1st Breakaway FVG Stop Loss
This indicator provides a defined 3-tier stop loss placement when you want to trade the 1st Bullish Breakaway FVG strategy. The Bullish Breakaway Dual Session FVG indicator is an independent indicator that track all bullish breakaway candles, however this one only tracks the very 1st breakaway candle with a stop loss visual cue.
Introduction of Bullish Breakaway Consolidated FVG:
Inspired by the FVG Concept:
This indicator is built on the Fair Value Gap (FVG) concept, with a focus on Consolidated FVG. Unlike traditional FVGs, this version only works within a defined session (e.g., ETH 18:00–17:00 or RTH 09:30–16:00).
Bullish consolidated FVG & Bullish breakaway candle
Begins when a new intraday low is printed. After that, the indicator searches for the 1st bullish breakaway candle, which must have its low above the high of the intraday low candle. Any candles in between are part of the consolidated FVG zone. Once the 1st breakaway forms, the indicator will shades the candle’s range (high to low).
Session Reset: Occurs at session close.
Choose your own session: use 930 to 1615 for RTH, 1800 to 1615 for ETH. (New York Time Zone)
Repaint Behavior:
If a new intraday (or intra-session) low forms, earlier breakaway patterns are wiped, and the system restarts from the new low.
Product Optimization:
This indicator is designed for CME future product with New York time zone. If you want to trade other products, please adjust your own time session.
Entry:
Long after the 1st Bullish Breakaway Candle in your active session.
However, best position of long is executed by your own trading skill and edge.
Stop Loss: ξ
ξ: This is the 1st stop loss, it is 1 equal size of the breakaway candle below the low.
ξξ: This is the 2nd stop loss, it is 2 equal sizes of the breakaway candle below the low.
L: This is the 3rd stop loss, it is the intraday session low.
Stop loss calculation:
Assuming you enter at the high of the breakaway candle, the SL number is shown as the high minus the stop loss placement.
Last Mention:
If you don't see anything in the indicator, adjust your session to an active session only, and use Tradingview replay function. This indicator is a live indicator with repainting mechanism.
True Order Block (OB) True Order Block (OB)
This script automatically detects and plots Order Blocks (OBs) based on the presence of Fair Value Gaps (FVGs).
Only Order Blocks are displayed on the chart.
🔎 How it works
The script looks for Fair Value Gaps (FVGs) according to a relaxed 3-candle definition.
Once an FVG is detected:
For a Bullish FVG → the last bearish candle before the gap is marked as the Bullish Order Block.
For a Bearish FVG → the last bullish candle before the gap is marked as the Bearish Order Block.
OBs are extended into the future until price either:
mitigates the zone (optional auto-removal), or
the number of live OBs exceeds the user’s maximum (FIFO cleanup).
⚙️ User settings
Draw Order Blocks (enable/disable plotting)
Minimum OB length (how far each zone extends initially)
Remove OB after violation (auto delete invalidated zones)
Max active OBs (limit on displayed zones for clarity)
Bullish/Bearish OB colors
✅ Key features
Fully automated OB detection
No clutter – only OBs are plotted (FVG logic hidden in the background)
Smart cleanup: mitigated zones are removed automatically
Customizable colors & limits
⚠️ Notes
This tool is designed for educational and analytical purposes only.
It does not generate trade signals.
Always combine with your own strategy, market context, and risk management.
Bearish Breakaway Dual Session-FVGInspired by the FVG Concept:
This indicator is built on the Fair Value Gap (FVG) concept, with a focus on Consolidated FVG. Unlike traditional FVGs, this version only works within a defined session (e.g., ETH 18:00–17:00 or RTH 09:30–16:00).
See the Figure below as an example:
Bearish consolidated FVG & Bearish breakaway candle
Begins when a new intraday high is printed. After that, the indicator searches for the 1st bearish breakaway candle, which must have its high below the low of the intraday high candle. Any candles in between are part of the consolidated FVG zone. Once the 1st breakaway forms, the indicator will shades the candle’s range (high to low). Then it will use this candle as an anchor to search for the 2nd, 3rd, etc. breakaways until the session ends.
Session Reset: Occurs at session close.
Repaint Behavior:
If a new intraday (or intra-session) high forms, earlier breakaway patterns are wiped, and the system restarts from the new low.
Counter:
A session-based counter at the top of the chart displays how many bullish consolidated FVGs have formed.
Settings
• Session Setup:
Choose ETH, RTH, or custom session. The indicator is designed for CME futures in New York timezone, but can be adjusted for other markets.
If nothing appears on your chart, check if you loaded it during an inactive session (e.g., weekend/Friday night).
• Max Zones to Show:
Default = 3 (recommended). You can increase, but 3 zones are usually most useful.
• Timeframe:
Best on 1m, 5m, or 15m. (If session range is big, try higher time frame)
Usage:
See this figure as an example
1. Avoid Trading in Wrong Direction
• No Bearish breakaway = No Short trade.
• Prevents the temptation to countertrade in strong uptrends.
2. Catch the Trend Reversal
• When a bearish breakaway appears after an intraday high, it signals a potential reversal.
• You will need adjust position sizing, watch out liquidity hunt, and place stop loss.
• Best entries of your preferred choices: (this is your own trading edge)
Retest
Breakout
Engulf
MA cross over
Whatever your favorite approach
• Reversal signal is the strongest when price stays within/below the breakaway candle’s
range. Weak if it breaks above.
3. Higher Timeframe Confirmation
• 1m can give false reversals if new lows keep forming.
• 5m often provides cleaner signals and avoids premature reversals.
Summary
This indicator offers 3 main advantages:
1. Prevents wrong-direction trades.
2. Confirms trend entry after reversal signals.
3. Filters false positives using higher timeframes.
Failed example:
Usually happen if you are countering a strong trend too early and using 1m time frame
Last Mention:
The indicator is only used for bearish side trading.
CHart_This FVGThis script will work on any time frame, and auto plots the classic ICT "fair value gaps", or imbalances, that result from a three candle formation wherein the middle candle body extends beyond the highs and lows of the end candles, leaving no overlap of the first and last candle wicks. Bullish imbalances are green, and bearish are red. Plotted zones will automatically close once a candle closure fully violates the imbalance zone with a close beyond its borders.
IFVG by Toño# IFVG by Toño - Pine Script Indicator
## Overview
This Pine Script indicator identifies and visualizes **Fair Value Gaps (FVG)** and **Inverted Fair Value Gaps (IFVG)** on trading charts. It provides advanced analysis of price inefficiencies and their subsequent inversions when mitigated.
## Key Features
### 1. Fair Value Gap (FVG) Detection
- **Bullish FVG**: Detected when `low > high ` (gap between current low and high of 2 bars ago)
- **Bearish FVG**: Detected when `high < low ` (gap between current high and low of 2 bars ago)
- Visual representation using colored rectangles (green for bullish, red for bearish)
### 2. Inverted Fair Value Gap (IFVG) Creation
- **IFVG Formation**: When a FVG gets mitigated (price fills the gap with candle body), an IFVG is created
- **Color Inversion**: The IFVG takes the opposite color of the original FVG
- Mitigated bullish FVG → Creates red (bearish) IFVG
- Mitigated bearish FVG → Creates green (bullish) IFVG
- **Mitigation Logic**: Uses only candle body (not wicks) to determine when a FVG is filled
### 3. Customizable Display Options
- **Show Normal FVG**: Toggle visibility of regular Fair Value Gaps
- **Show IFVG**: Toggle visibility of Inverted Fair Value Gaps
- **Smart FVG Display**: Even when "Show Normal FVG" is disabled, FVGs that are part of IFVGs remain visible
- **Extension Control**: Option to extend FVGs until they are mitigated
### 4. IFVG Extension Methods
- **Full Cross Method**: IFVG remains active until price completely crosses through it (including wicks)
- **Number of Bars Method**: IFVG remains active for a specified number of bars (1-100)
### 5. Visual Mitigation Signals
- **Cross Markers**: Shows X-shaped markers when IFVGs are mitigated
- Green cross above bar: Bearish IFVG mitigated
- Red cross below bar: Bullish IFVG mitigated
### 6. Comprehensive Alert System
- **IFVG Formation Alerts**: Notifications when new IFVGs are created
- **IFVG Mitigation Alerts**: Notifications when IFVGs are filled/mitigated
- **Separate Controls**: Individual toggles for bullish and bearish IFVG alerts
## How It Works
### Step-by-Step Process:
1. **FVG Detection**: Script continuously scans for 3-bar patterns that create price gaps
2. **FVG Tracking**: Each FVG is stored with its coordinates, type, and status
3. **Mitigation Monitoring**: Script watches for candle bodies that fill the FVG
4. **IFVG Creation**: Upon mitigation, creates an IFVG with opposite polarity at the same location
5. **IFVG Management**: Tracks and extends IFVGs according to chosen method
6. **Visual Updates**: Dynamically updates colors and visibility based on user settings
## Use Cases
- **Support/Resistance Analysis**: IFVGs often act as strong support/resistance levels
- **Market Structure Understanding**: Helps identify how market inefficiencies get filled and reversed
- **Entry/Exit Timing**: Can be used to time entries around IFVG formations or mitigations
- **Confluence Analysis**: Combine with other technical analysis tools for stronger signals
## Configuration Parameters
- **Colors**: Customizable colors for bullish/bearish FVGs and IFVGs
- **Extension**: Choose how long to display gaps on the chart
- **Alerts**: Full control over notification preferences
- **Visual Clarity**: Options to show/hide different gap types for cleaner charts
## Technical Specifications
- **Pine Script Version**: 5
- **Overlay**: True (displays directly on price chart)
- **Max Boxes**: 500 (supports up to 500 simultaneous gaps)
- **Performance**: Optimized array management for smooth operation
This indicator is particularly valuable for traders who use **Smart Money Concepts (SMC)** and **Inner Circle Trader (ICT)** methodologies, as it provides clear visualization of how institutional order flow creates and fills market inefficiencies.
ICT HTF Candles + CISD + FVG, by AlephxxiiICT HTF Candles + CISD + FVG
A practical, friendly overlay for ICT-style trading
This indicator gives you three things at once—right on your chart:
HTF Candles Panel (context):
Compact candles from higher timeframes (e.g., 5m, 15m, 1H, 4H, 1D, 1W) appear to the right of price so you always see the higher-timeframe story without switching charts. It includes labels, remaining time for the current HTF candle, and optional open/high/low/close reference lines.
CISD Levels (bias flips):
Automatically plots +CISD and -CISD lines. When price closes above +CISD, the indicator considers bullish delivery. When price closes below -CISD, it considers bearish delivery. An on-chart table (optional) shows the current bias at a glance.
FVG (Fair Value Gaps):
Highlights inefficiency zones (gaps) on your current timeframe and/or a selected higher timeframe. You can choose to mark a gap “filled” when price hits the midpoint (optional).
Quick start (2 minutes)
Add to chart and keep your normal trading timeframe (e.g., 1–5m).
In settings → HTF 1..6, pick the higher timeframes you want to see (e.g., 5m, 15m, 1H, 4H, 1D, 1W).
Turn on FVG (current, HTF or both).
Watch +CISD / -CISD lines and the Current State table.
Close above +CISD → Bullish bias
Close below -CISD → Bearish bias
Trade with the bias and use FVGs as areas to refine entries or targets.
How to read it (the simple way)
Bias (CISD):
Bullish once price closes above the active +CISD level.
Bearish once price closes below the active -CISD level.
The small table (if enabled) says Bullish or Bearish right now.
HTF panel:
Shows higher-timeframe candles next to your current chart.
Labels show the timeframe (e.g., 1H) and a countdown for the current candle.
Optional traces draw HTF Open/High/Low/Close levels—great “magnets” for price.
FVGs:
Shaded boxes = potential inefficiency areas.
If Midpoint Fill is on, a touch of the midline counts as filled.
You can display current TF, HTF, or both.
Suggested workflow (popular ICT-style intraday)
Define bias with CISD
Only look for longs if Bullish, shorts if Bearish.
Check HTF context
Are you trading into a large HTF FVG or key HTF O/H/L/C level? That can be a target or a headwind.
Refine entries with FVGs
On your entry TF (1–5m), use fresh FVGs in the direction of the bias. Avoid fading straight into big HTF imbalances.
Key settings you’ll actually use
HTF 1..6: toggle each strip, select timeframe, and how many candles to show.
Style & layout: adjust offset, spacing, and width of the right-side panels.
Labels & timers: show/hide HTF name and remaining time; place labels at Top/Bottom/Both.
Custom daily open (NY): set the 1D candle to start at Midnight, 08:30, or 09:30 (America/New_York).
Trace lines: optional HTF O/H/L/C lines (style, width, anchor TF).
FVG module (extra): choose Current TF / HTF / Both, enable Midpoint Fill, auto-delete on fill, and show timeframe labels.
CISD lines: customize color, style (solid/dotted/dashed), thickness, and forward extension.
Table: enable/disable and choose its position.
Alerts
When a CISD completes, the script fires an alert (e.g., “Bullish CISD Formed” or “Bearish CISD Formed”).
Tip: Set your TradingView alert once on the indicator, then choose the alert message you want to receive.
Notes & limitations (read me)
“VI” label: The “Volume Imbalance” option marks price imbalances (body non-overlap). It does not read volume data.
Timezone: Daily logic and timers use America/New_York, which aligns with US indices/equities and common ICT practice.
Performance: This tool draws many boxes/lines/labels. If your chart feels heavy, reduce the number of HTFs or candles shown, or narrow panel width.
Repainting: HTF panels are designed to avoid future leakage; FVG logic follows standard 3-bar checks. As usual, wait for candle closes for confirmations.
Level cleanup: If Keep old CISD levels is OFF (default), the script keeps only the current active CISD to reduce clutter.
Bullish Breakaway Dual Session-Publish-Consolidated FVG
Inspired by the FVG Concept:
This indicator is built on the Fair Value Gap (FVG) concept, with a focus on Consolidated FVG. Unlike traditional FVGs, this version only works within a defined session (e.g., ETH 18:00–17:00 or RTH 09:30–16:00).
Bullish consolidated FVG & Bullish breakaway candle
Begins when a new intraday low is printed. After that, the indicator searches for the 1st bullish breakaway candle, which must have its low above the high of the intraday low candle. Any candles in between are part of the consolidated FVG zone. Once the 1st breakaway forms, the indicator will shades the candle’s range (high to low). Then it will use this candle as an anchor to search for the 2nd, 3rd, etc. breakaways until the session ends.
Session Reset: Occurs at session close.
Repaint Behavior:
If a new intraday (or intra-session) low forms, earlier breakaway patterns are wiped, and the system restarts from the new low.
Counter:
A session-based counter at the top of the chart displays how many bullish consolidated FVGs have formed.
Settings
• Session Setup:
Choose ETH, RTH, or custom session. The indicator is designed for CME futures in New York timezone, but can be adjusted for other markets.
If nothing appears on your chart, check if you loaded it during an inactive session (e.g., weekend/Friday night).
• Max Zones to Show:
Default = 3 (recommended). You can increase, but 3 zones are usually most useful.
• Timeframe:
Best on 1m, 5m, or 15m. (If session range is big, try higher time frame)
Usage
1. Avoid Trading in Wrong Direction
• No bullish breakaway = No long trade.
• Prevents the temptation to countertrade in strong downtrends.
2. Catch the Trend Reversal
• When a bullish breakaway appears after an intraday low, it signals a potential reversal.
• You will need adjust position sizing, watch out liquidity hunt, and place stop loss.
• Best entries of your preferred choices: (this is your own trading edge)
Retest
Breakout
Engulf
MA cross over
Whatever your favorite approach
• Reversal signal is the strongest when price stays within/above the breakaway candle’s
range. Weak if it breaks below.
3. Higher Timeframe Confirmation
• 1m can give false reversals if new lows keep forming.
• 5m often provides cleaner signals and avoids premature reversals.
Failed Trade Example:
This indicator will repaint if a new intraday session low is updated. So it is possible to have a failed trade. Here is an example from the same session in 1m chart. However, if you enter the trade later at another bullish breakaway candle signal. The loss can be mitigated by the profit.
Therefore you should use smaller position size for your 1st trade. You should also considering using 5m chart to avoid 1m bull trap. In this example, if you use 5m chart, you can totally avoid this failed trade.
If you enter the trade, you will see the intraday low is stop loss hunted. You can also see the 1st bullish breakaway candle is super weak. There are a lot of candles below the breakaway candle low, so it is very possible to fail.
In the next chart, you can see the failed traded get stop loss hunted. However you can enter another trade with huge profit to win back the loss from the 1st trade if you follow the rule.
Summary
This indicator offers 3 main advantages:
1. Prevents wrong-direction trades.
2. Confirms trend entry after reversal signals.
3. Filters false positives using higher timeframes.
How to sharp your edge:
1. ⏳Extreme patience⏳: Do not guess the bottom during a downtrend before a confirmed bullish breakaway candle. If you get caught, have the courage to cut loss. This is literally the most important usage of this indicator. Again, this is the most important rule of this indicator and actually the hardest rule to follow.
2. 🛎Better Entry🛎: After a confirmed bullish breakaway, you will always have a good opportunity to enter the trade using established trading technique. Your edge will come from the position size, draw down, stop loss placement, risk/reward ratio.
3. ✂Cut loss fast✂: If you enter a trade according to the rule, but you are still not making profit for a period of time, and the price is below the low of the breakaway candle. It is very likely you may hit stop loss soon (intraday session low). It won't be a bad idea to cut loss before stop loss hit.
4. 🔂Reentry with confidence after stop loss🔂: a stop loss will not invalidate the indicator. If you see a second chance to reenter, you should still follow the trade guide and rule.
5. 🕔Time frame matter🕔: try 1m, 3m, 5m, 10m, 15m time frame. Over time, you should know what time frame work best for you and the market. Higher time frame will reduce the noise of false positive trade, but it comes with a higher stop loss placement and less max profit, however it may come with a lower draw down. Time frame will matter depending on the range of the session. If the session range is small (<0.5%), lower time frame is good. If session range is big (>1%), 5m time frame is better. Remember to wait for candle to close, if you use higher time frame.
Last Mention:
The indicator is only used for bullish side trading.
Fair Value Gap Suite Adrian V1.0.0Brief description
The “FVG Suite” identifies fair value gaps across multiple time units, evaluates them with a displacement score, optionally filters them according to market structure events (BOS/CHOCH), and provides context-based alerts for first touch, partial and full fills, and invalidation. The aim is to show only high-quality imbalances and trade them based on rules.
What makes the script unique (originality/added value)
Displacement score: Strength of the impulse movement as a combination of (body/ATR, range/ATR, volume Z-score).
MTF aggregator: FVGs from higher timeframes are collected, ranked, and displayed as zones on the active chart (including overlap clustering).
Structure context: Optionally, only FVGs after confirmed BOS/CHOCH in the trend direction, including premium/discount evaluation relative to the HTF range.
Adaptive invalidation: FVG expires after candles, opposing BOS or defined time (e.g., end of session).
Session/instrument filter: Time window (e.g., NY/LDN), minimum tick size, ATR-based minimum gap.
Smart fill logic: Distinguishes between first touch, partial fill (≥ %), full fill (100%); alarms per event.
Statistics overlay (optional): Hit rate/expectancy per TF & session for fine-tuning the filters.
How it works (conceptually)
FVG definition (3-candle pattern): Bullish if High < Low (bearish analog). Size = gap span in points.
Quality score:Score = w1*(|Body|/ATR) + w2*(Range/ATR) + w3*(Volume-Z), normalized to 0–100.
MTF scan: List of higher TFs: (customizable). Findings are merged, ranked, and displayed as zones with priority (color/opacity).
Context filter: Only FVGs that emerge after BOS/CHOCH in the direction of the current trend; optional exclusion in premium/discount areas.
Invalidation & alerts: A zone is considered active until the invalidation rule takes effect. Alerts are triggered upon: initial contact, partial/full filling, invalidation.
Important inputs
Min. FVG size: × ATRor ticks/points
Min. displacement score: (0–100)
MTF list:
BOS/CHOCH filter: On/Off (Lookback candles)
Session filter: NY/LDN/Asia (local time, weekend toggle)
Invalidation: maxBars = , Opposite BOS = On/Off, Session End = On/Off
Fill definitions: Partial fill ≥ % of the gap; Full fill = 100%
Overlay options: Zone color/transparency, HTF label, statistics overlay On/Off
Alerts (names & triggers)
FVG Suite – First Touch: Price touches an active FVG zone for the first time.
FVG Suite – Partial Fill: Partial fill ≥ configured threshold.
FVG Suite – Full Fill: Gap completely filled.
FVG Suite – Invalidated: Zone invalidated by rules. (Alert message contains: symbol, TF of the zone, direction, score, size, trigger rule.)
Use (best practices)
Trade in the trend direction with BOS/CHOCH filter; target counter-imbalances/liquidity pools.
Use session filters to avoid news spikes/illiquid periods.
Calibrate parameters for each market/TF (ATR/volume profiles differ).
Limitations
Structure labels can be reevaluated for new highs/lows (repainting of labels, not of FVG finds).
Spreads/news can generate “pseudo fills.”
Backtests/statistics are sample-dependent; no guarantee of results.
Changelog
v1.0 – First release (score model, MTF aggregator, BOS/CHOCH filter, fill alerts).
Credits
FVG concept: public ICT/SMC literature (general idea). Implementation/scoring, MTF ranking, smart fill logic: own development.
Note/disclaimer
No financial advice. For educational purposes only. Trading involves high risk; use stop losses and a fixed risk budget.
Fair Value Gap Suite Adrian V1.0.0Brief description
The “FVG Suite” identifies fair value gaps across multiple time units, evaluates them with a displacement score, optionally filters them according to market structure events (BOS/CHOCH), and provides context-based alerts for first touch, partial and full fills, and invalidation. The aim is to show only high-quality imbalances and trade them based on rules.
What makes the script unique (originality/added value)
Displacement score: Strength of the impulse movement as a combination of (body/ATR, range/ATR, volume Z-score).
MTF aggregator: FVGs from higher timeframes are collected, ranked, and displayed as zones on the active chart (including overlap clustering).
Structure context: Optionally, only FVGs after confirmed BOS/CHOCH in the trend direction, including premium/discount evaluation relative to the HTF range.
Adaptive invalidation: FVG expires after candles, opposing BOS or defined time (e.g., end of session).
Session/instrument filter: Time window (e.g., NY/LDN), minimum tick size, ATR-based minimum gap.
Smart fill logic: Distinguishes between first touch, partial fill (≥ %), full fill (100%); alarms per event.
Statistics overlay (optional): Hit rate/expectancy per TF & session for fine-tuning the filters.
How it works (conceptually)
FVG definition (3-candle pattern): Bullish if High < Low (bearish analog). Size = gap span in points.
Quality score:Score = w1*(|Body|/ATR) + w2*(Range/ATR) + w3*(Volume-Z), normalized to 0–100.
MTF scan: List of higher TFs: (customizable). Findings are merged, ranked, and displayed as zones with priority (color/opacity).
Context filter: Only FVGs that emerge after BOS/CHOCH in the direction of the current trend; optional exclusion in premium/discount areas.
Invalidation & alerts: A zone is considered active until the invalidation rule takes effect. Alerts are triggered upon: initial contact, partial/full filling, invalidation.
Important inputs
Min. FVG size: × ATRor ticks/points
Min. displacement score: (0–100)
MTF list:
BOS/CHOCH filter: On/Off (Lookback candles)
Session filter: NY/LDN/Asia (local time, weekend toggle)
Invalidation: maxBars = , Opposite BOS = On/Off, Session End = On/Off
Fill definitions: Partial fill ≥ % of the gap; Full fill = 100%
Overlay options: Zone color/transparency, HTF label, statistics overlay On/Off
Alerts (names & triggers)
FVG Suite – First Touch: Price touches an active FVG zone for the first time.
FVG Suite – Partial Fill: Partial fill ≥ configured threshold.
FVG Suite – Full Fill: Gap completely filled.
FVG Suite – Invalidated: Zone invalidated by rules. (Alert message contains: symbol, TF of the zone, direction, score, size, trigger rule.)
Use (best practices)
Trade in the trend direction with BOS/CHOCH filter; target counter-imbalances/liquidity pools.
Use session filters to avoid news spikes/illiquid periods.
Calibrate parameters for each market/TF (ATR/volume profiles differ).
Limitations
Structure labels can be reevaluated for new highs/lows (repainting of labels, not of FVG finds).
Spreads/news can generate “pseudo fills.”
Backtests/statistics are sample-dependent; no guarantee of results.
Changelog
v1.0 – First release (score model, MTF aggregator, BOS/CHOCH filter, fill alerts).
Credits
FVG concept: public ICT/SMC literature (general idea). Implementation/scoring, MTF ranking, smart fill logic: own development.
Note/disclaimer
No financial advice. For educational purposes only. Trading involves high risk; use stop losses and a fixed risk budget.
Unmitigated Imbalances [TakingProphets] (High Timeframe)Unmitigated Imbalances
Unmitigated Imbalance is designed to automatically detect and display active Fair Value Gaps (FVGs) across multiple higher timeframes and your current chart. It only keeps the ones that remain unmitigated, helping you clearly see where price has “unfinished business” and potential liquidity draw areas. The tool extends these levels forward until they are tagged according to your chosen mitigation criteria, then removes them automatically.
The indicator uses the classic 3-bar FVG structure:
– Bearish FVG forms when the low of the third candle back is above the high of the first candle.
– Bullish FVG forms when the high of the third candle back is below the low of the first candle.
– Each detected gap must meet a minimum size threshold, which is determined automatically from the Sensitivity setting and adjusted for the symbol type.
Higher timeframes (up to 4) can be plotted simultaneously with your current chart’s gaps. The script merges overlapping levels from different timeframes into one clean label, showing all the contributing timeframes together (for example: M15 + H1 + H4). This makes it easy to spot high-confluence levels without cluttering your chart.
Key features
– Multi-timeframe detection: up to 4 custom HTFs plus your current chart.
– Automatic gap size filtering based on chosen Sensitivity (High, Medium, Low).
– Choice of Wick or Close-based mitigation logic.
– Lookback control: 1 Day, 1 Week, 1 Month, or Max.
– Combined labels for overlapping gaps with clear timeframe tags.
– Separate color and style settings for each timeframe’s bullish and bearish gaps.
– Labels can be positioned Left, Right, or Center Above for maximum clarity.
– Automatic line extension until mitigation or until they exceed the lookback period.
How to use
Select your desired higher timeframes in the HTF1–HTF4 settings.
Choose the Sensitivity level to control the minimum gap size detected.
Decide on Wick or Close mitigation according to your trading rules.
Use the Lookback setting to limit how far back the script checks for gaps.
Watch for levels where multiple timeframe labels are stacked — these can carry greater significance.
Incorporate the levels into your existing strategy, using them as context rather than entry signals.
Practical notes
– Current timeframe gaps reset each trading day to keep the chart relevant to intraday bias.
– Higher timeframe gaps remain until mitigated or until the lookback period expires.
– Large lookback periods with multiple HTFs can increase chart load — adjust settings as needed.
– This indicator is a mapping and context tool, not a signal generator. Always apply it alongside your own analysis.
Multi Timeframe Fair Value Gap Indicator ProMulti Timeframe Fair Value Gap Indicator Pro | MTF FVG Imbalance Zones | Institutional Supply Demand Levels
🎯 The Most Comprehensive Multi-Timeframe Fair Value Gap (FVG) Indicator on TradingView
Transform Your Trading with Institutional-Grade Multi-Timeframe FVG Analysis
Keywords: Multi Timeframe Indicator, MTF FVG, Fair Value Gap, Imbalance Zones, Supply and Demand, Institutional Trading, Order Flow Imbalance, Price Inefficiency, Smart Money Concepts, ICT Concepts, Volume Imbalance, Liquidity Voids, Multi Timeframe Analysis
📊 WHAT IS THIS INDICATOR?
The Multi Timeframe Fair Value Gap Indicator Pro is the most advanced FVG detection system on TradingView, designed to identify high-probability institutional supply and demand zones across multiple timeframes simultaneously. This professional-grade tool automatically detects Fair Value Gaps (FVGs), also known as imbalance zones, liquidity voids, or inefficiency gaps - the exact areas where institutional traders enter and exit positions.
🔍 What Are Fair Value Gaps (FVGs)?
Fair Value Gaps are three-candle price formations that create imbalances in the market structure. These gaps represent areas where buying or selling was so aggressive that price moved too quickly, leaving behind an inefficient zone that price often returns to "fill" or "mitigate." Professional traders use these zones as high-probability entry points.
Bullish FVG: When the low of candle 3 is higher than the high of candle 1
Bearish FVG: When the high of candle 3 is lower than the low of candle 1
⚡ KEY FEATURES
📈 Multi-Timeframe Analysis (MTF)
- 12 Timeframes Simultaneously: 1m, 3m, 5m, 15m, 30m, 45m, 1H, 2H, 3H, 4H, Daily, Weekly
- Real-Time Detection: Instantly identifies FVGs as they form across all selected timeframes
- Customizable Timeframe Selection: Choose which timeframes to display based on your trading style
- Higher Timeframe Confluence: See when multiple timeframes align for stronger signals
🎨 Three Professional Visual Themes
1. Dark Intergalactic: Futuristic neon colors with high contrast for dark mode traders
2. Light Minimal: Clean, professional appearance for traditional charting
3. Pro Modern: Low-saturation colors for extended screen time comfort
📊 Advanced FVG Dashboard
- Live FVG Counter: Real-time count of active bullish and bearish gaps
- Total Zone Tracking: Monitor all active imbalance zones at a glance
- Theme-Adaptive Display: Dashboard automatically adjusts to your selected visual theme
- Strategic Positioning: Optimally placed to not interfere with price action
🔧 Smart Zone Management
- Dynamic Zone Updates: FVG boxes automatically adjust when price touches them
- Mitigation Detection: Visual feedback when zones are tested or filled
- Color-Coded Status: Instantly see untested vs tested zones
- Extended Projection: Option to extend boxes to the right for future reference
- Timeframe Labels: Optional labels showing which timeframe each FVG originated from
💡 Intelligent Features
- Automatic Zone Cleanup: Removes fully mitigated FVGs to keep charts clean
- Touch-Based Level Adjustment: Zones adapt to partial fills
- Maximum Box Management: Optimized to handle 500 simultaneous FVG zones
- Performance Optimized: Efficient code ensures smooth operation even with multiple timeframes
🎯 TRADING APPLICATIONS
Day Trading & Scalping
- Use 1m, 3m, 5m FVGs for quick scalp entries
- Combine with higher timeframe FVGs for directional bias
- Perfect for futures (ES, NQ, MNQ), forex, and crypto scalping
Swing Trading
- Focus on 1H, 4H, and Daily FVGs for swing positions
- Identify major support/resistance zones
- Plan entries at untested higher timeframe gaps
Position Trading
- Utilize Daily and Weekly FVGs for long-term positions
- Identify institutional accumulation/distribution zones
- Major reversal points at significant imbalance areas
Multi-Timeframe Confluence Trading
- Stack multiple timeframe FVGs for high-probability zones
- Confirm entries when lower and higher timeframe FVGs align
- Professional edge through timeframe confluence
📚 HOW TO USE THIS INDICATOR
Step 1: Add to Your Chart
Click "Add to Favorites" and apply to any trading instrument - works on all markets including stocks, forex, crypto, futures, and indices.
Step 2: Configure Your Timeframes
In settings, select which timeframes you want to monitor. Day traders might focus on 1m-15m, while swing traders might use 1H-Weekly.
Step 3: Choose Your Visual Theme
Select from three professional themes based on your preference and trading environment.
Step 4: Identify Trading Opportunities
For Long Entries:
- Look for Bullish FVGs (green/cyan zones)
- Wait for price to return to untested zones
- Enter when price shows rejection from the FVG zone
- Higher timeframe FVGs provide stronger support
For Short Entries:
- Look for Bearish FVGs (red/pink zones)
- Wait for price to return to untested zones
- Enter when price shows rejection from the FVG zone
- Higher timeframe FVGs provide stronger resistance
Step 5: Manage Risk
- Place stops beyond the FVG zone
- Use partially filled FVGs as trailing stop levels
- Exit when opposite FVGs form (reversal signal)
🏆 WHY THIS IS THE BEST MTF FVG INDICATOR
✅ Most Comprehensive
- More timeframes than any other FVG indicator
- Advanced features not found elsewhere
- Professional-grade visual presentation
✅ Institutional-Grade
- Based on smart money concepts (SMC)
- ICT (Inner Circle Trader) methodology compatible
- Used by professional prop traders
✅ User-Friendly
- Clean, intuitive interface
- Detailed tooltips and descriptions
- Works out-of-the-box with optimal defaults
✅ Continuously Updated
- Regular improvements and optimizations
- Community feedback incorporated
- Professional development by PineProfits
🔥 PERFECT FOR
- Scalpers seeking quick FVG fills
- Day Traders using multi-timeframe analysis
- Swing Traders identifying major zones
- ICT/SMC Traders following smart money
- Prop Firm Traders needing reliable setups
- Algorithmic Traders building systematic strategies
- Technical Analysts studying market structure
- All Experience Levels from beginners to professionals
💎 ADVANCED TIPS
1. Confluence is Key: The strongest signals occur when multiple timeframe FVGs align at the same price level
2. Fresh vs Tested: Untested FVGs (original color) are stronger than tested ones (gray/muted color)
3. Time of Day: FVGs formed during high-volume sessions (London/NY) are more reliable
4. Trend Alignment: Trade FVGs in the direction of the higher timeframe trend for best results
5. Volume Confirmation: Combine with volume indicators for enhanced reliability
📈 INDICATOR SETTINGS
Visual Settings
- Visual Theme: Choose between Dark Intergalactic, Light Minimal, or Pro Modern
- Show Branding: Toggle PineProfits branding on/off
General Settings
- Move box levels with price touch: Dynamically adjust FVG zones
- Change box color with price touch: Visual feedback for tested zones
- Extend boxes to the right: Project zones into the future
- Plot Timeframe Label: Show origin timeframe on each FVG
- Show FVG Dashboard: Toggle the summary dashboard
Timeframe Selection
Select any combination of 12 available timeframes (1m to Weekly)
🚀 GET STARTED NOW
1. Click "Add to Favorites" to save this indicator
2. Apply to your chart - works on any instrument
3. Join thousands of traders already using this professional tool
4. Follow PineProfits for more institutional-grade indicators
⚖️ DISCLAIMER
This indicator is for educational and informational purposes only. It should not be considered financial advice. Always do your own research and practice proper risk management. Past performance does not guarantee future results. Trade responsibly.
© PineProfits - Professional Trading Tools for Modern Markets
If you find this indicator valuable, please leave a like and comment. Your support helps me create more professional-grade tools for the TradingView community!
FVG Pro - Advanced Multi-Timeframe iDea TradeFVG Pro – Advanced Multi-Timeframe
This indicator automatically detects and visualizes Fair Value Gaps (FVGs) across two different timeframes. Features include:
Dual-timeframe FVG detection (bullish & bearish)
Customizable display: boxes, lines, or both
Optional Fibonacci levels inside gaps (25%, 50%, 75%)
Touch tracking & “respected” status
Adjustable quality scoring and filtering
Automatic removal of filled gaps (configurable)
You can easily tailor colors, label size, and visibility for your needs.
How to use:
Enable the timeframes you want, set your visual preferences, and use the quality filter if you wish to highlight only the strongest imbalances. FVGs can be used as potential support/resistance or reaction zones—combine with your own trading strategy.
Note:
This script does not provide buy/sell signals. It is for technical analysis only and should not be considered financial advice. Please use proper risk management.
Protected script. Source code is hidden but free for all TradingView users.
ICT Confirmed FVG Indicator ICT FVG Indicator (Confirmed by Swings)
Summary
This indicator is designed to identify high-probability Fair Value Gaps (FVGs) by confirming them with market structure. It filters out random imbalances and only highlights the FVGs that are created at the same time as a confirmed ICT Swing High or Swing Low.
The core principle is to connect price imbalances directly to significant shifts in market structure, providing a cleaner and more powerful signal.
What It Does
Identifies Swing Points: Automatically detects and draws confirmed swing highs (resistance) and swing lows (support) on your chart based on the settings you choose.
Finds Fair Value Gaps: It scans the chart for the classic 3-candle FVG pattern (also known as a BISI or SIBI).
Confirms FVGs with Swings: This is the most important feature. The indicator will only draw an FVG box if one of the three candles that created the FVG is also a confirmed swing point. This ensures you are only seeing imbalances that are directly related to a break in market structure.
Invalidates Old FVGs: To keep the chart clean, the indicator will automatically remove an FVG box after the price has fully passed through it a certain number of times (customizable in the settings).
Settings Explained
ICT Swings Settings
Left/Right Strength: Controls the sensitivity of the swing detection. Higher numbers require a more significant, obvious swing point to be confirmed. Lower numbers will identify more minor swings.
Max Swing Lines: Sets the maximum number of swing high and swing low lines to display on the chart at one time.
Swing High/Low Color: Customize the color of the swing point lines.
FVG Settings
Show Bullish/Bearish FVG: Use these checkboxes to turn the bullish (green) or bearish (red) FVG boxes on or off.
Bullish/Bearish FVG Color: Customize the color of the FVG boxes.
FVG Invalidation Threshold: This sets how many times the price can fully close on the other side of an FVG before the box is automatically removed.
Max Active FVGs to Show: Sets the maximum number of FVG boxes to keep on the chart to prevent clutter.
Key Features
High-Probability Signals: Filters out noise by focusing only on FVGs that are confirmed by a shift in market structure.
Clean Visuals: Automatically draws and removes swing lines and FVG boxes to keep your chart uncluttered.
Fully Customizable: Adjust the sensitivity of the swing detection and the appearance of the FVGs to fit your trading style.
Pure ICT Concepts: Built strictly on the principles of Inner Circle Trader for a method-consistent analysis.
London Breakout + FVG Strategy [GBPJPY] - with SL/TPMarks the London open high and low on 15 min time frame, ads fvg on 5 min for orders
Trading Path
Below indicator are combined in them.
POI
VOLUME FVG
ORDER BLOCKS
VWAP
200 EMA HIGH
PIVOT
NativeLenSA CISD w/1st 5m FVG5m CISD + FVG Indicator which works best on 5m TimeFrame, with the concept of 5m Liquidity sweeps of the previous highs/lows and the next candle closing below/above the opening price of candle that swept the highs/lows.
A line marking +CISD or -CISD will show as soon as the CISD is created, and a first 5m Fair Value Gap will also be displayed. This is advantageous for an extra confluence and re-entry.
The indicator also provides the trader with:
i. The flexibility of allowing to only show Bearish, Bullish or both Bearish and Bullish CISD + FVG,
ii. Showing only London Session, New York Session, or both London and New York Sessions' CISD & FVG,
iii. Option of hiding/showing 5m CISD+FVG on time frames greater than 5m,
iv. Adjustable:
(a) Look back bars (max=300),
(b) CISD line length,
(c) FVG line length,
v. Customizable Bearish and Bullish CISD line colors.
I hope you find value in this indicator, and convenient for time when trading, no CISD markups needed
Mirror US10YThis TradingView script is designed to automatically detect the asset you are viewing (stock, commodity, or crypto) and, if it matches a long list of supported tickers, overlays a "mirror" subchart. This subchart plots the price action of a related pair—typically the asset divided by the US 10-Year Treasury yield (US10Y), or another relevant macro or sector index. The script also detects and visualizes "Imbalance Fair Value Gaps" (IFVGs) on the subchart, and can trigger alerts when these gaps are filled.
1. Automatic Subchart Detection
The script first checks which symbol you are viewing.
If it matches a list of supported stocks or commodities (e.g., NVDA, TSLA, GOLD), it sets a corresponding subchart pair (e.g., NVDA/US20Y, GOLD/US10Y).
If it’s a crypto asset, it checks both the exchange and the symbol, and sets a subchart like BINANCE:ADAUSDT/US10Y.
If a match is found, it enables plotting for the subchart.
2. Subchart Data Fetching
Once a subchart is selected, the script fetches its OHLCV data (open, high, low, close) and a 200-period ATR (Average True Range) using request.security.
It then plots the subchart’s candlesticks in white (bullish) or red (bearish).
3. IFVG (Imbalance Fair Value Gap) Detection
The script defines custom types and arrays to track bullish and bearish IFVGs and their "invalidation" (when the gap is filled).
It detects IFVGs by looking for price gaps between the current and previous candles, filtered by ATR to avoid noise.
When a gap is detected, it is stored in an array with its coordinates and direction.
4. IFVG Management and Visualization
The script manages the lifecycle of each IFVG: it tracks when a gap is filled (invalidated) and moves it to a separate array.
It draws colored boxes and dashed lines on the chart to visualize the last few IFVGs, using green for bullish and red for bearish.
When a gap is filled, it places a label (▲ or ▼) at the fill point.
5. Alerts
The script sets up two alert conditions: one for a bullish IFVG fill, and one for a bearish IFVG fill.
These can be used to trigger TradingView alerts for trading signals.
6. Debugging and Info Labels
The script displays labels on the chart showing the detected ticker and the subpair being plotted, for clarity.
This indicator is even more reliable when combined with the Mirror 2 indicator, which shows the same system but mostly with the BTC pair in crypto.
Both the Mirror US10Y and Mirror 2 also allow you to see the main inverse pairs in stocks.
Sesiones + FVG + PDH / PDLMarket Sessions: Define and visualize four market sessions (New York, London, Tokyo, Sydney) with options to display ranges, trend lines, averages, VWAP, and highs/lows.
Dashboard: A panel that displays the status of the sessions (active/inactive) and, in advanced mode, the coefficient of determination (R2) of the trend line and the volume for each session.
Fair Value Gaps (FVG) / Imbalances: Detect and draw Fair Value Gaps (also known as imbalances or inefficiencies) on multiple time frames, with options to extend them, change their color when tested, and adjust their levels if the price touches them.
Previous Day/Week/Month Levels: Displays the highs and lows of the previous day and week (PDH/PDL, PWH/PWL), as well as the opening prices of the current day, week, and month (DO, WO, MO).