Volumetric Support and Resistance [BackQuant]Volumetric Support and Resistance
What this is
This Overlay locates price levels where both structure and participation have been meaningful. It combines classical swing points with a volume filter, then manages those levels on the chart as price evolves. Each level carries:
• A reference price (support or resistance)
• An estimate of the volume that traded around that price
• A touch counter that updates when price retests it
• A visual box whose thickness is scaled by volatility
The result is a concise map of candidate support and resistance that is informed by both price location and how much trading occurred there.
How levels are built
Find structural pivots uses ta.pivothigh and ta.pivotlow with a user set sensitivity. Larger sensitivity looks for broader swings. Smaller sensitivity captures tighter turns.
Require meaningful volume computes an average volume over a lookback period and forms a volume ratio for the current bar. A pivot only becomes a level when the ratio is at least the volume significance multiplier.
Avoid clustering checks a minimum level distance (as a percent of price). If a candidate is too close to an existing level, it is skipped to keep the map readable.
Attach a volume strength to the level estimates volume strength by averaging the volume of recent bars whose high to low range spans that price. Levels with unusually high strength are flagged as high volume.
Store and draw levels are kept in an array with fields for price, type, volume, touches, creation bar, and a box handle. On the last bar, each level is drawn as a horizontal box centered at the price with a vertical thickness scaled by ATR. Borders are thicker when the level is marked high volume. Boxes can extend into the future.
How levels evolve over time
• Aging and pruning : levels are removed if they are too old relative to the lookback or if you exceed the maximum active levels.
• Break detection : a level can be removed when price closes through it by more than a break threshold set as a fraction of ATR. Toggle with Remove Broken Levels.
• Touches : when price approaches within the break threshold, the level’s touch counter increments.
Visual encoding
• Boxes : support boxes are green, resistance boxes are red. Box height uses an ATR based thickness so tolerance scales with volatility. Transparency is fixed in this version. Borders are thicker on high volume levels.
• Volume annotation : show the estimated volume inside the box or as a label at the right. If a level has more than one touch, a suffix like “(2x)” is appended.
• Extension : boxes can extend a fixed number of bars into the future and can be set to extend right.
• High volume bar tint : bars with volume above average × multiplier are tinted green if up and red if down.
Inputs at a glance
Core Settings
• Level Detection Sensitivity — pivot window for swing detection
• Volume Significance Multiplier — minimum volume ratio to accept a pivot
• Lookback Period — window for average volume and maintenance rules
Level Management
• Maximum Active Levels — cap on concurrently drawn levels
• Minimum Level Distance (%) — required spacing between level prices
Visual Settings
• Remove Broken Levels — drop a level once price closes decisively through it
• Show Volume Information on Levels — annotate volume and touches
• Extend Levels to Right — carry boxes forward
Enhanced Visual Settings
• Show Volume Text Inside Box — text placement option
• Volume Based Transparency and Volume Based Border Thickness — helper logic provided; current draw block fixes transparency and increases border width on high volume levels
Colors
• Separate colors for support, resistance, and their high volume variants
How it can be used
• Trade planning : use the most recent support and resistance as reference zones for entries, profit taking, or stop placement. ATR scaled thickness provides a practical buffer.
• Context for patterns : combine with breakouts, pullbacks, or candle patterns. A breakout through a high volume resistance carries more informational weight than one through a thin level.
• Prioritization : when multiple levels are nearby, prefer high volume or higher touch counts.
• Regime adaptation : widen sensitivity and increase minimum distance in fast regimes to avoid clutter. Tighten them in calm regimes to capture more granularity.
Why volume support and resistance is used in trading
Support and resistance relate to willingness to transact at certain prices. Volume measures participation. When many contracts change hands near a price:
• More market players hold inventory there, often creating responsive behavior on retests
• Order flow can concentrate again to defend or to exit
• Breaks can be cleaner as trapped inventory rebalances
Conditioning level detection on above average activity focuses attention on prices that mattered to more participants.
Alerts
• New Support Level Created
• New Resistance Level Created
• Level Touch Alert
• Level Break Alert
Strengths
• Dual filter of structure and participation, reducing trivial swing points
• Self cleaning map that retires old or invalid levels
• Volatility aware presentation using ATR based thickness
• Touch counting for persistence assessment
• Tunable inputs for instrument and timeframe
Limitations and caveats
• Volume strength is an approximation based on bars spanning the price, not true per price volume
• Pivots confirm after the sensitivity window completes, so new levels appear with a delay
• Narrow ranges can still cluster levels unless minimum distance is increased
• Large gaps may jump past levels and immediately trigger break conditions
Practical tuning guide
• If the chart is crowded: increase sensitivity, increase minimum level distance, or reduce maximum active levels
• If useful levels are missed: reduce volume multiplier or sensitivity
• If you want stricter break removal: increase the ATR based break threshold in code
• For instruments with session patterns: tailor the lookback period to a representative window
Interpreting touches and breaks
• First touch after creation is a validation test
• Multiple shallow touches suggest absorption; a later break may then travel farther
• Breaks on high current volume merit extra attention
Multi timeframe usage
Levels are computed on the active chart timeframe. A common workflow is to keep a higher timeframe instance for structure and a lower timeframe instance for execution. Align trades with higher timeframe levels where possible.
Final Thoughts
This indicator builds a lightweight, self updating map of support and resistance grounded in swings and participation. It is not a full market profile, but it captures much of the practical benefit with modest complexity. Treat levels as context and decision zones, not guarantees. Combine with your entry logic and risk controls.
Ict
20/40/60Displays three consecutive, connected range boxes showing high/low price ranges for customizable periods. Boxes are positioned seamlessly with shared boundaries for continuous price action visualization.
Features
Three Connected Boxes: Red (most recent), Orange (middle), Green (earliest) periods
Customizable Positioning: Set range length and starting offset from current bar
Individual Styling: Custom colors, transparency, and border width for each box
Display Controls: Toggle borders, fills, and line visibility
Use Cases
Range Analysis: Compare volatility across time periods, spot breakouts
Support/Resistance: Use box boundaries as potential S/R levels
Market Structure: Visualize recent price development and trend patterns
Key Settings
Range Length: Bars per box (default: 20)
Starting Offset: Bars back from current to position boxes (default: 0)
Style Options: Colors, borders, and visibility controls for each box
Perfect for traders analyzing consecutive price ranges and comparing current conditions to recent historical periods.
Fair Value Gaps BOOSTED [LuxAlgo & mqsxn] Fair Value Gaps BOOSTED
This enhanced version of LuxAlgo’s Fair Value Gap indicator takes market imbalance detection to the next level. Built on the trusted foundation of the original, this extension introduces powerful new features designed for traders who want deeper insight and more control:
Extended Visualization – Fair Value Gaps now stretch farther into the past with customizable bar extensions, so you can easily track unmitigated gaps over longer distances of time.
Intersection Highlights – Automatically identify and shade overlapping bullish/bearish FVGs, giving instant visual clarity on high-confluence zones.
Center Lines & Mitigation Tracking – Optional center lines improve precision, while mitigation markers help confirm when gaps are filled.
Advanced Filtering – Control visibility with minimum gap sizes, custom start dates for gap formations, and per-direction display limits.
Dashboard Stats – On-chart metrics show the number of detected and mitigated gaps, plus percentages, at a glance.
Alerts Ready – Set up alerts for fresh FVG formation or mitigation events, so you never miss a key signal.
Whether you’re scalping, day trading, or swing trading, Fair Value Gaps BOOSTED helps you pinpoint institutional price imbalances and trade around them with confidence.
------
Inputs & Settings
Threshold % / Auto
Defines the minimum gap size as a percentage of price. Enable Auto to let the script automatically adapt thresholding based on volatility.
Unmitigated Lines (combined)
Draws guide lines for a set number of the most recent unmitigated gaps.
Mitigation Levels
Shows dashed lines where gaps have been fully mitigated (filled).
Timeframe
Lets you calculate Fair Value Gaps on a higher or lower timeframe than the chart you’re viewing.
Style
Dynamic Mode
Keeps the most recent gap area actively updating with price as long as it remains unmitigated.
Extend Right (bars)
Controls how many bars into the future each gap visualization will project.
Bullish / Bearish Colors
Customize the fill colors of bullish and bearish gaps.
Center Line & Width
Adds a dotted line through the midpoint of each gap for visual precision.
Filter
Min Gap Size (ticks)
Only display gaps greater than or equal to this size.
Min Formation Date (days ago)
Show gaps formed within a given lookback window (e.g., only last 4 days).
Display
Show Last Bullish / Bearish (unmitigated)
Limit how many recent bullish or bearish gaps appear at once (set to 0 for unlimited).
Intersections
Show Intersections
Highlight overlapping bullish and bearish gaps as shaded zones.
Show Intersections Only
Hide individual gaps and show only the overlapping regions.
Intersection Color
Customize the fill for overlap areas.
Intersection Center Line / Width
Optionally plot a midpoint line through the overlap zone.
Dashboard
Show Dashboard
Display a compact on-chart table of bullish vs bearish counts and mitigation percentages.
Location
Choose where the dashboard sits (top right, bottom right, bottom left).
Size
Adjust text size (Tiny, Small, Normal).
ICT ZigZag Lines"ZigZag Lines" is a market structure tool that helps traders visualize liquidity zones and key points of interest.
This version provides essential features for understanding institutional order flow concepts and identifying important levels.
Features included:
- Liquidity lines (previous highs/lows, killzones, time zone levels)
- First Fair Value Gap of the day (M1 9:30 –4) - demo
- Macro time (8:50 – 9:10) - demo
- Multi-timeframe SMT (3 correlated assets)
- Engulfing patterns at three levels
- Volume heatmap (high and extra high)
- Three higher timeframes with FVG and imbalance visualization
- Option to add custom chart symbols
Benefits:
Organized market structure in one layout
Consistent and standardized mapping
Fully customizable (style, colors, thickness, labels)
Notice: This is a visualization tool and does not provide trading recommendations. Prior knowledge of ICT concepts is required.
ICT ZigZag Lines PRO"ZigZag Lines Pro" is an advanced indicator for traders who apply institutional order flow and liquidity concepts. It automatically organizes relevant market zones to provide a clear and structured perspective.
Features included:
- All functionalities of ZigZag Lines
- NDOG/NWOG
- GAP RTH
- True Opens (TMSO, TSO, TDO, TWO, TMO, TYO)
- Configurable horizontal and vertical levels
- Five higher timeframes with FVG and imbalance visualization
- Liquidity grab markings on higher timeframes with SMT detection
Benefits:
Consolidated view of levels, gaps, and liquidity
Standardized market mapping for consistent analysis
Complete customization of all visual elements
Notice: This is a visualization tool and does not provide trading recommendations. Prior knowledge of ICT concepts is required.
1st Fair Value Gap Multi Timeframe "1st Fair Value Gap Multi Timeframe" identifies FVGs during key times of the day with voltatility, which are often associated with institutional activity and liquidity shifts. These imbalances frequently act as support or resistance.
Features included:
- Automatic detection of key intraday FVGs
- Visualization of three higher timeframes simultaneously
- Unified view of imbalance zones without switching charts
Main benefit:
Helps traders monitor high-probability reaction zones across multiple timeframes with a single chart view.
Notice: This is a visualization tool and does not provide trading recommendations. Prior knowledge of ICT concepts is required.
ICT Oracle Lines"Oracle Lines" combines several institutional concepts to provide a multi-layered view of volatility, liquidity zones, and macro context.
Features included:
- ADR (Average Daily Range): measures recent daily volatility to estimate the expected range for the day.
- CBDR (Central Bank Dealers Range): calculates discount, equilibrium, and premium zones based on the previous day’s range.
- IPDA (Interbank Price Delivery Algorithm): identifies long-term premium/discount zones and macro liquidity structure.
- Bias table: shows directional bias across multiple timeframes (M1 to weekly).
Main benefit:
Provides an integrated map of liquidity from intraday to macro horizons, helping align analysis with institutional order flow.
Notice: This is a visualization tool and does not provide trading recommendations. Prior knowledge of ICT concepts is required.
ICT Time and Price Z"Time and Price Z" is an intraday tool based on Zeussy’s cycle concept. It highlights liquidity zones within trading sessions and helps structure analysis around cyclical behavior.
Features included:
- Mapping of London, New York AM and New York PM sessions
- 90-minute and 30-minute cycle intervals
- AMD and SMT reading between cycles
- Countdown table of all active cycles
Main benefit:
Provides a structured view of intraday cycles (270/90/30 minutes) to help identify liquidity shifts and SMT patterns.
Notice: This is a visualization tool and does not provide trading recommendations. Prior knowledge of ICT concepts is required.
ICT Time and Price M'Time and Price M' is a tool for mapping Macro Timeframes and organizing key levels used to evaluate liquidity and directional context.
Features included:
- Eight main Macro Timeframes plus 18 additional variations
- Open Macro levels to support PO3 strategies
- Countdown table for all configured Macros
If you want to see how it works on your chart before contacting us, you can add the ZigZag Lines indicator, from this same author.
Main benefit:
Enables accurate identification of key Macro Timeframes and structured timing of entries with countdown support.
Notice: This is a visualization tool and does not provide trading recommendations. Prior knowledge of ICT concepts is required.
ICT Time and Price Q'Time and Price Q' is designed for macro analysis through quarterly cycles. It provides a broader market view while integrating shorter intraday cycles for detailed context.
Features included:
- Quarterly intervals for Asia, London, New York AM and New York PM
- 90-minute cycles within daily sessions
- 22/23-minute microcycles for detailed structure
- AMD/XAMD and SMT interpretation across multiple cycles
- Countdown table for all quarterly cycles
Main benefit:
Helps structure macro views into quarterly cycles while maintaining clarity of SMT behavior across different horizons.
Notice: This is a visualization tool and does not provide trading recommendations. Prior knowledge of ICT concepts is required.
SSMT Divergence (Quarterly Theory) [TakingProphets]SSMT (Quarterly Theory)
Overview
SSMT (Sequential SMT) is an ICT-based tool designed to detect real-time intermarket divergence based on the Sequential SMT model popularized by Trader Daye and FearingICT.
It leverages Quarterly Theory, a core ICT concept, to break the trading day into time-based quarters and scans for divergences across Daily, 90-minute, and Micro-session cycles. The indicator updates continuously in real time, allowing you to spot liquidity grabs, manipulation plays, and directional imbalances the moment they occur.
Rooted in Quarterly Theory 📐
-Built on ICT’s Quarterly Theory, the model segments the trading day into predictable phases of accumulation, manipulation, and distribution.
Daily Quarters (4 per day):
Q1: 18:00 – 00:00 ET
Q2: 00:00 – 06:00 ET
Q3: 06:00 – 12:00 ET
Q4: 12:00 – 18:00 ET
-90-Minute Quarters: Splits Asia, London, NY-AM, and NY-PM into structured liquidity windows.
-Micro Quarters: Offers an even finer breakdown of each session, perfect for precision scalping.
-By aligning SMT detection with ICT’s time-based framework, this indicator delivers accurate timing context around when institutional liquidity shifts are most likely.
Real-Time SMT Detection ⚡
-Unlike static divergence tools, SSMT reacts instantly:
-Monitors your instrument and a correlated symbol tick by tick.
-Tracks current vs. previous highs/lows within the active quarter.
-Compares live price behavior against the correlated asset.
-Draws divergence lines and labels as soon as SMT forms:
-Bullish SMT → Your market forms a higher low while the correlated asset does not.
-Bearish SMT → Your market forms a lower high while the correlated asset does not.
-Divergence lines and labels update in real time, keeping your chart accurate and contextually aligned with ICT principles.
Key Features
Three SMT Cycles in One Tool
-Daily → Perfect for swing traders tracking higher-timeframe liquidity events.
-Ninety (90-Minute) → Ideal for intraday setups and session-specific SMTs.
-Micro → Highly detailed for scalpers timing manipulative sweeps.
Per-Cycle Customization
-Toggle Daily, 90-Minute, and Micro SMT independently.
-Fully customize line colors, widths, styles, and optional session boxes.
-Smart Auto-Labeling
-Labels display the correlated symbol automatically (“SMT w/ES” by default).
-Divergence lines persist historically beyond quarter boundaries for added confluence.
-Instant Style Updates
-All active and historical SMT drawings update immediately when customizing colors, widths, or line styles.
Practical Use Cases
-Scalpers → Spot micro-level SMTs for high-precision entries.
-Day Traders → Track real-time divergences within Asia, London, and New York sessions.
-Swing Traders → Combine Daily SMT signals with ICT-based HTF POIs for optimal confluence.
-ICT Traders → Designed around ICT’s teachings, popularized by Trader Daye and FearingICT, giving you a visual framework to apply their methods seamlessly.
Short Description (TradingView card)
SSMT — Sequential SMT detection based on ICT principles, inspired by Trader Daye and FearingICT. Real-time divergence mapping built on Quarterly Theory, covering Daily, 90m, and Micro-session SMTs.
ICT ULT
This indicator is for lazy people like me who want to automate the process of marking certain ICT key levels using the indicator's features, such as:
Custom Killzone/Session Liquidity Levels in form of Highs and Lows
Killzone Drawings (Boxes)
Previous Day High/Low (PDH/PDL)
Previous Day Equlibrium (PDEQ)
Previous Week High/Low
New Day/Week Opening Gaps (NDOG/NWOG)
Custom Opening Prices (horizontal) (e.g. Midnight Open)
Custom Timestamps (vertical)
*Note: All features are completely customizable
inspired by: @tradeforopp
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.
ICT Session High/Low LevelsThis indicator automatically plots the Highs and Lows of completed sessions and draws lines for the Asian session and London session. Levels are displayed only after each session has closed. A simple tool for liquidity work and intraday context (SMC/ICT).
TDT Candle CounterThis indicator allows you to count candles inside a custom date range and display labels directly on the chart.
It supports three different counting modes:
🔢 Modes
Every Candle → Marks every bar sequentially (1, 2, 3, 4, …).
Alternative Sequence → Marks bars that match the sequence 1, 5, 9, 17, 25, 37, ….
Special Sequence (default) → Marks bars that match the sequence 1, 3, 7, 13, 21, 31, ….
Each mode has its own color so you can quickly distinguish which cycle is active.
⚙️ Features
Custom start and end date for the counting period.
Option to highlight the active period with a background color.
Labels are positioned above or below candles depending on the initial direction.
Alerts when:
Counting starts
Counting ends
🎯 Use Cases
Visualize candle sequences for cycle analysis.
Track market structure with custom numerical references.
Combine with other tools to study periodic behavior.
Inspired by Time Dilation Theory (TDT)
This counting approach is inspired by the Time Dilation Theory (TDT) methodology created by ICT Morpheus. According to TDT, markets unfold in cycles of 1, 3, 7, 13, 21… etc., reflecting natural rhythms of expansion, contraction, and distortion—an idea grounded in fractal time behavior across multi-timeframe analysis
Incorporating TDT principles into this tool helps visualize and align potential turning points and momentum shifts across different timeframes.
Stacked Order Blocks & Breaker Blocks [FREE] [Extended]BASED ON LOGIC FROM "Order Blocks and Breaker Blocks
This indicator builds directly on the LuxAlgo Order Blocks & Breaker Blocks concept and adds a powerful new feature: stacked intersection highlighting.
Order Blocks (OBs) and Breaker Blocks are detected with the original LuxAlgo swing-based logic for reliability.
Blocks automatically extend to the right until invalidated, with breaker transitions marked clearly.
Intersection Zones: when multiple OBs and/or Breakers overlap, the shared price-time region is highlighted. These stacked zones represent areas of especially strong supply/demand confluence.
Customizable highlight styling:
Choose different colors for OB vs Breaker intersections.
Adjust transparency and maximum highlights displayed.
Optionally draw a center line through the overlap mid-price.
Toggle visibility so you can display only intersections, or both intersections and the underlying blocks.
Supports both bullish and bearish block filtering for overlap detection.
This tool is designed to help traders quickly identify high-probability confluence zones where multiple institutional footprints align.
Stacked Order Blocks & Breaker Blocks [Extended] BASED ON LOGIC FROM "Order Blocks and Breaker Blocks
This indicator builds directly on the LuxAlgo Order Blocks & Breaker Blocks concept and adds a powerful new feature: stacked intersection highlighting.
Order Blocks (OBs) and Breaker Blocks are detected with the original LuxAlgo swing-based logic for reliability.
Blocks automatically extend to the right until invalidated, with breaker transitions marked clearly.
Intersection Zones: when multiple OBs and/or Breakers overlap, the shared price-time region is highlighted. These stacked zones represent areas of especially strong supply/demand confluence.
Customizable highlight styling:
Choose different colors for OB vs Breaker intersections.
Adjust transparency and maximum highlights displayed.
Optionally draw a center line through the overlap mid-price.
Toggle visibility so you can display only intersections, or both intersections and the underlying blocks.
Supports both bullish and bearish block filtering for overlap detection.
This tool is designed to help traders quickly identify high-probability confluence zones where multiple institutional footprints align.
High Time Frame FVG [TakingProphets]HTF FVG
The HTF FVG indicator is built for traders who want a clean, multi-timeframe view of Fair Value Gaps (FVGs) without manually flipping charts. It automatically detects unmitigated FVGs across up to five higher timeframes and overlays them directly on your active chart, keeping your execution bias aligned with higher-timeframe liquidity.
✨ What it does
📌 Multi-timeframe mapping – Detects and plots bullish/bearish FVGs across up to 5 custom HTFs + your current chart.
🧩 Auto-labeling – Each gap is tagged with its originating timeframe (e.g., M5, H1, D1).
🔄 Live updates – FVGs extend forward in time and are automatically removed once mitigated based on your plan.
🟢 Inverse FVGs (optional) – Highlight “inverse gaps” for traders who utilize them in reversal models.
🎯 Consequent Encroachment lines – Enable mid-gap CE levels for precision-based trade management.
⚡ Optimized performance – Built with array management, capped lookback periods, and per-timeframe limits for smooth charting.
🛠️ How it works
Fair Value Gaps are detected using a 3-candle structure:
Bullish FVG → the high of two candles ago is below the low of the prior candle.
Bearish FVG → the low of two candles ago is above the high of the prior candle.
For each selected timeframe:
When an FVG forms, a box is drawn from the gap boundaries and extended forward by a configurable number of bars.
If price closes into the gap on its originating timeframe, the box is automatically removed.
If Consequent Encroachment is enabled, a mid-gap line is plotted for refined targeting.
When multiple gaps exist per side, only the closest unmitigated one remains highlighted for clarity.
⚙️ Inputs & customization
Detection Sensitivity → High / Medium / Low
Lookback Period → 1 Day / 1 Week / 1 Month / Max
Extend Gaps → Add extra forward bars beyond the originating candle.
Show Consequent Encroachment → Toggle CE midlines on/off.
Show Inverse FVGs → Mark inverted gaps for advanced models.
Custom HTFs → Choose up to 5 timeframes to map onto your execution chart.
Appearance Settings → Configure colors, transparency, label size, and gap boundary styles.
📈 Practical tips
Use smaller execution timeframes (e.g., 1m–5m) and overlay multiple HTFs (e.g., M15, H1, H4, D1).
Watch for stacked HTF FVGs in the same price zone — these often create higher-probability draw areas.
Pair CE midlines with session timing, PD arrays, and liquidity concepts to refine entries.
Limit your lookback period and max stored FVGs for better performance during volatile sessions.
📌 Notes
This tool does not generate buy/sell signals. It’s a context mapping utility to help align your trading plan with higher-timeframe structure.
Weekend gaps are automatically filtered out to reduce false positives.
🏷️ Credits & disclaimer
Concepts: ICT / Smart Money methodologies around imbalances and liquidity gaps.
Disclaimer: This script is for educational purposes only and should not be considered financial advice. Always test on demo and trade your own plan.
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.
Smart Money Time (SMT)SMT Divergence – 90m / 30m / 10m (Prev-Cycle, Real-Time, Trailing)
Purpose:
This indicator finds SMT (Smart Money Technique) divergences between two related markets (e.g., CME_MINI:NQ1! vs CME_MINI:ES1! ). It does this per 90m/30m/10m cycles and only compares the current cycle to the immediately previous cycle —never older. It supports three cycle granularities:
90-minute cycles (9 blocks from 02:30–16:00 NY time)
30-minute sub-cycles (27 blocks)
10-minute sub-cycles (81 blocks; exactly 3 per 30-minute cycle)
For each cycle, the script tracks each symbol’s extreme (highest high for potential bearish SMT, lowest low for potential bullish SMT). When the leader sets a new extreme vs its own previous cycle while the lagger fails to do so vs its previous cycle, an SMT divergence is formed and plotted on the chart in real time. Lines trail as price makes new extremes within the same cycle.
What you’ll see on the chart:
A line from the previous cycle’s extreme to the current cycle’s extreme on the symbol pane where the indicator is applied (Primary A).
An optional text label at the current extreme (e.g., “90m SMT”, “30m SMT”, “10m SMT”).
Lines update (“trail”) as the current cycle goes on. When a new cycle begins, tracking resets for that cycle.
Default styling (editable):
90m SMT: solid, width 1, black
30m SMT: solid, width 1, black
10m SMT: dotted, width 1, black
You can toggle the text on/off and change width, style, and colors separately for 90m, 30m, and 10m.
Signals (definitions)
Bearish SMT: One market makes a Higher High vs its own previous cycle, while the other fails to make a Higher High vs its previous cycle.
Bullish SMT: One market makes a Lower Low vs its own previous cycle, while the other fails to make a Lower Low vs its previous cycle.
The line is drawn on Primary A by default.
Settings (explained)
Symbols
Primary Symbol A – the chart’s “leader/lagger” pane the script draws on.
Comparison Symbol B – the second market used for SMT checks.
Detection toggles
Detect SMT: 90m / 30m / 10m – turn on/off detection for each timeframe.
Note: The script always compares current cycle ↔ previous cycle only.
Validate candle direction
When enabled, the bar that makes the new extreme must also close in the confirming direction on that same market:
Bearish SMT: the bar that made the new Higher High must be a down close (close < open).
Bullish SMT: the bar that made the new Lower Low must be an up close (close > open).
This filter removes many “wick-only” probes and reduces false positives.
Turn off if you prefer to register SMTs on any intrabar extreme, regardless of bar close.
Delete SMT when invalidated
After an SMT forms, if the lagger later breaks the previous extreme it initially failed to break, the divergence is considered invalid and the script deletes the line and its label. (An “SMT invalidated” alert can fire if alerts are enabled.)
Enable alerts
Fires on SMT formed (separate messages for 90m/30m/10m and bullish/bearish) and on SMT invalidated.
To use, click Create Alert on the indicator and choose “Any alert() function call”. Use “Once per bar” (or per bar close) to taste.
Appearance – per timeframe (90m / 30m / 10m)
Bullish/Bearish colors, Line width, Line style, Show text (toggle subtitle label).
Text Options
Text color, Text size, Text offset (vertical spacing from the extreme).
How to use
Add to chart and select two related markets, e.g., NQ (A) vs ES (B).
Choose which cycles to monitor (90m / 30m / 10m).
Optionally enable Validate candle direction to demand a confirming close on the bar that made the extreme.
Watch for plotted SMTs:
Bearish SMT (HH vs no HH) often signals potential weakness
Bullish SMT (LL vs no LL) often signals potential strength
Use SMTs as context/confluence—e.g., near session highs/lows, liquidity pools, PD arrays, or your own levels. Combine with structure, order flow, and risk rules.
Turn on alerts to be notified when SMTs form or are invalidated in real time.
Notes & behavior
New-York session timing: Cycles are fixed windows in America/New_York and automatically handle DST.
Real-time & trailing: Lines trail to the most recent extreme within the same cycle but there’s no look-ahead across cycles.
No repaint across cycles: Each signal is strictly current cycle vs previous cycle.
Cleanup: On invalidation the script deletes the label first, then the line, preventing orphan labels.
Tips
10m SMTs are more frequent/noisier; 90m are fewer but more meaningful. Many traders look for multi-frame agreement (e.g., a 30m SMT aligning with a fresh 10m SMT).
If you want fewer signals, keep Validate candle direction on; if you want maximum sensitivity, turn it off.
Disclaimer: Educational use only. Markets are risky; do your own research and manage risk responsibly.