NY Open Range Gap Reversal (M1D)M1D NY Open Range Gap Reversal
OVERVIEW
A reference and marking tool for the New York Regular Trading Hours (RTH) opening gap. It maps the price and time levels of the classic open-gap "manipulation then reversal" sequence so a discretionary trader can read the session at a glance. It draws levels and flags conditions on closed bars — it does not place orders, produce buy/sell calls, or predict outcomes.
THE IDEA
At the 09:30 ET cash open a gap frequently forms between the prior session's 16:15 ET RTH close and today's open. That gap often produces an early "judas swing": a first push off the open that raids liquidity, fails, and reverses back through the gap toward a gap-fill draw. This indicator frames that sequence with objective, repeatable levels and time windows so the read is consistent from day to day.
WHAT IT DRAWS
- RTH Open (True Day Open) line, annotated with the day's gap size and direction.
- Opening-gap retracement levels at 25%, 50% (the primary draw, emphasised), 75%, and 100% (full fill = the prior RTH close).
- Shading of the 09:30-10:00 gap-fill window and a 10:00 checkpoint line.
- Opening Range high and low (first N minutes of RTH; default 30).
- Liquidity Sweep flag when the opening-range extreme is taken and price closes back inside (the manipulation leg).
- SMT divergence flag against two correlated index futures (default YM and ES), pivot-based. Each flag names which comparison index diverged (e.g. "SMT - YM"), so a one-sided divergence is distinguishable from both indices disagreeing.
- An info panel showing gap size, live gap-fill percentage, a countdown to the RTH close, the day's directional bias, and which SMT comparison symbols are in play.
- Right-margin labels that sit within a configurable ATR distance of each other are merged into one line of text instead of overlapping illegibly.
HOW IT WORKS
Session handling uses the exchange clock in the America/New_York timezone, so it is daylight-saving safe with no fixed offset. The gap is measured from the prior RTH session's 16:15 ET futures close to the current 09:30 ET open; the electronic/Globex 17:00 ET close is intentionally not used. Directional bias is derived from gap direction: a gap up frames a bearish fade toward the fill, a gap down frames a bullish fade. The Sweep and SMT modules only evaluate on days whose gap is at or above a configurable minimum. The minimum can be expressed as a multiple of the previous day's ATR (the default, 0.15, so the threshold scales with each instrument's own volatility), as a percentage of price, or in raw points. Both modules arm only after the opening range locks (SMT pivot history is still tracked through the range, so the first pivot after the lock has a same-session reference; an input allows SMT inside the range). By default an SMT flag requires BOTH comparison symbols to fail to confirm the chart's pivot; an input relaxes this to either one. A comparison symbol that tracks the same index as the chart cannot diverge from it, so that leg is automatically excluded and the info panel reports which symbols remain active. Line and label activity (extension and new Sweep/SMT detection) stops at a configurable cutoff (default 11:30 ET) and resumes automatically at the next session's open; the info panel is unaffected and keeps updating through the close. All detection is evaluated on bar close (barstate.isconfirmed) to avoid repainting, and prior-day drawings are removed at the 16:15 ET boundary so nothing carries into the next session.
HOW TO USE IT
Apply to CME equity-index futures (for example MNQ/NQ, MES/ES, MYM/YM) on an intraday execution timeframe such as 1-5 minute. Read the levels as context: the gap-fill levels are potential draws, the opening range and its sweep mark the manipulation leg, and the SMT flag marks a confirming (or diverging) move in the correlated indices. The trader decides where and how to act — the script does not mark an entry. Every module, colour, time window, label size, and the SMT symbol pair are adjustable in the settings.
INPUTS
Grouped controls for session times, the gap minimum (ATR-relative, percent, or points) and which fib levels to show, opening-range length, timing references, and the Sweep / SMT modules (symbol pair, pivot length, both-or-either divergence, bias filter). Every drawn line and label has its own colour, line style, and label text, on top of global controls for the brand colours, line width, label size, right-margin offset, and info-table position.
NOTES
- This is an indicator, not a strategy: it does not generate orders, alerts to enter, or performance results.
- It evaluates conditions on closed bars and does not repaint.
- Descriptions of how gaps have tended to behave are informational, not predictive.
DISCLAIMER
This script is provided for educational and informational purposes only. It is not financial advice and is not a recommendation to buy or sell any instrument. Trading futures carries a substantial risk of loss. Past behaviour is not indicative of future results. You are solely responsible for your own trading decisions. Test thoroughly before relying on it in any live environment. Wskaźnik

ICT GapsICT Gaps
Multi-timeframe ICT gap toolkit: Fair Value Gaps from up to nine higher timeframes, plus New Week Opening Gaps (NWOG), New Day Opening Gaps (NDOG), and the Opening Range Gap (ORG) — all on one chart.
What it does
HTF Fair Value Gaps Displays FVGs (3-candle imbalances) from up to 9 configurable timeframes (defaults: 1m, 2m, 3m, 5m, 15m, 1H, 4H, 1D, 1W) on your current chart. Each timeframe has its own show/hide toggle, bullish/bearish colors, and display cap.
Zones extend a configurable distance ahead of the current candle, with each timeframe's labels stacked in its own column so you can read the chart at a glance.
Mitigation tracking with five modes: None, Wick filled, Body filled, Wick filled half, Body filled half. Mitigated zones freeze at the candle that filled them and recolor (or hide entirely — your choice).
C.E. (Consequent Encroachment) midpoint line on every FVG, with selectable line style.
Proximity filter: only FVGs within an ATR-based distance of current price are drawn, keeping the chart clean. The multiplier is adjustable.
Optional merging of back-to-back FVGs (two 3-candle gaps sharing 2 candles) into a single zone.
"Hide Lower Timeframes" automatically hides any configured timeframe below your chart timeframe.
Opening Gaps (NWOG / NDOG) The gap between Friday's close and the new week's open (NWOG), and between each day's close and the next day's open (NDOG). Keeps a configurable number of recent gaps (ICT convention: last 5). Opening gaps do not mitigate — they stay on the chart while relevant.
Opening Range Gap (ORG) The gap between the previous regular session close (default 16:15 ET) and today's regular session open (09:30 ET). The box spans exactly the overnight region — from the prior close to the opening bell — and freezes there. Session window and time-zone are configurable. Requires a 15-minute or lower chart timeframe so session boundaries align with bars.
Internal levels for gaps Each gap type can display either the C.E. midpoint or SD quadrant lines at 0/25/50/75/100% of the gap — one dropdown per feature, so the two never conflict. SD lines can carry small 25/50/75 value labels in a color of your choice.
Usage tips
Keep fill colors mostly transparent (75–90%). Opaque fills will visibly jump in front of the candles when hovered — that's TradingView's hover behavior, not the script.
If you prefer candles always on top: right-click the indicator → Visual order → Send to back.
ORG requires a 15m or lower chart. NWOG/NDOG require an intraday chart.
On a 1H chart with defaults, expect the nearest timeframe's zones to sit a few candles right of price, with higher timeframes stacked further out. Adjust "Distance from current candle" and "Spacing between timeframes" to taste.
Credits
Built on the open-source "ICT HTF FVGs" by fadizeidan, extended with additional timeframes, gap types (NWOG/NDOG/ORG), SD levels, mitigation-freeze behavior, and gap-session logic. Published under the Mozilla Public License 2.0.
This indicator is a charting tool for ICT-style analysis. It is not financial advice and produces no buy/sell signals. Wskaźnik

Inversion Fair Value Gaps [iFVG] (Zeiierman)█ Overview
Inversion Fair Value Gaps (Zeiierman) identifies when traditional Fair Value Gaps (FVGs) fail and transition into powerful inversion zones.
A regular Fair Value Gap represents an imbalance where price moved aggressively in one direction, leaving behind inefficient trading. While many traders expect these gaps to act as support or resistance, not every imbalance survives. Some are broken, absorbed, and eventually become areas where the opposite side of the market gains control.
This indicator continuously tracks every valid bullish and bearish FVG. When price successfully closes through an existing FVG and later forms an opposing FVG within the user-defined pairing window, the overlapping imbalance is converted into an Inversion Fair Value Gap (iFVG).
Rather than treating every FVG equally, the indicator focuses on failed imbalances that demonstrate a genuine shift in market order flow.
⚪ FVG Detection
The indicator continuously scans price using the classic three-candle Fair Value Gap model.
A Bullish FVG forms when:
• Price leaves an upside imbalance.
• The third candle creates a gap above the first candle.
A Bearish FVG forms when:
• Price leaves a downside imbalance.
• The third candle creates a gap below the first candle.
Unlike many FVG indicators, every detected gap remains internally tracked so it can later evolve into an inversion.
⚪ Inversion Fair Value Gap Detection
Once an FVG is created, it enters an internal memory system.
If price later closes completely through that imbalance, the FVG is considered broken. Rather than immediately discarding it, the indicator temporarily remembers the remaining imbalance.
If an opposing FVG forms before the memory expires, both structures are combined into a new Inversion Fair Value Gap.
Bullish iFVG
• Bearish FVG is broken.
• Bullish FVG forms shortly afterwards.
• The overlapping imbalance becomes bullish support.
Bearish iFVG
• Bullish FVG is broken.
• Bearish FVG forms shortly afterwards.
• The overlapping imbalance becomes bearish resistance.
This process filters out many ordinary FVGs and highlights only those that demonstrate a meaningful transition in buying or selling pressure.
█ How It Works
⚪ Fair Value Gap Detection
The script continuously searches for valid bullish and bearish three-candle imbalances.
Each detected FVG is validated using:
• Minimum gap size.
• Optional fractal confirmation.
• ATR-based filtering.
Only valid gaps enter the internal tracking system.
bullGap = bullW or bullB
bearGap = bearW or bearB
bullValid = bullGap and bullSz >= gapAtr * minGap
bearValid = bearGap and bearSz >= gapAtr * minGap
⚪ Memory & Inversion Detection
Every valid FVG is stored until one of two events occurs:
• Price never breaks the gap, and it eventually expires.
• Price breaks the gap and an opposing FVG forms before the pairing window ends.
When both conditions are satisfied, the overlapping imbalance becomes a confirmed iFVG. This allows the indicator to detect genuine reversals rather than simply highlighting every imbalance.
⚪ Zone Management
Each zone continuously updates its internal state.
A zone may transition through several stages:
• Active
• Tested
• Mitigated
• Frozen
• Removed
Depending on user settings, mitigated zones can either disappear or remain on the chart as historical context.
⚪ Dynamic Zone Merging
Nearby live zones of the same direction can optionally be merged into a single visual area. This reduces chart clutter while preserving the original internal detection logic. The merged display affects visualization only.
⚪ Distance Filtering
Charts containing hundreds of historical zones can quickly become difficult to read.
The indicator can automatically hide zones that are farther than a user-defined ATR distance from the current price. Hidden zones continue to exist internally and become visible again if price returns. This improves chart clarity without affecting detection, memory, or alerts.
█ How to Use
⚪ Bullish iFVG Retest
After a bullish iFVG forms, price retraces back into the inversion zone before finding support and continuing higher.
Rather than chasing the initial breakout, traders can wait for the retest and look for long confirmation as price reacts from the bullish iFVG.
⚪ Bearish iFVG Retest
After a bearish iFVG forms, price retraces back into the inversion zone before finding resistance and continuing lower.
Instead of entering during the initial breakdown, traders can wait for the retest and look for short confirmation as price reacts from the bearish iFVG.
█ Settings
Minimum FVG Size: Minimum ATR-adjusted size required before a Fair Value Gap is accepted.
Enable Fractal Filter: Requires FVGs to form near confirmed swing highs or lows.
Fractal Length: Controls how large a swing must be before it is confirmed.
Maximum Distance From FVG: Maximum allowed distance between the confirmed swing and the FVG.
Pairing Window: Number of bars a broken FVG remains eligible to form an iFVG.
Delete Mitigated Zones: Removes mitigated zones or freezes them as historical references.
Mitigation Level: Select whether mitigation occurs at the 50% level or after a full fill.
Mitigation Source: Uses wick touches or candle closes to confirm mitigation.
Filter Distant Zones: Hides zones that are far away from the current price.
Maximum Distance From Price: Maximum ATR distance before zones become hidden.
Merge Nearby Zones: Visually combines nearby live zones of the same type.
Maximum Merge Distance: Controls how close zones must be before they merge visually.
Fade With Age: Gradually fades older zones while keeping newer zones more prominent.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Wskaźnik

XRS FVG Auto MitigateXRS FVG Auto Mitigate is a Fair Value Gap tool designed to detect bullish and bearish FVGs and visually track how much of each gap has been mitigated.
The indicator marks new fair value gaps directly on the chart and displays a percentage label showing the current mitigation level. This makes it easier to see whether an FVG is untouched, partially filled, or mostly mitigated.
Features include:
• Bullish and bearish Fair Value Gap detection
• Fixed-width FVG boxes
• Halfway / 50% line inside each FVG
• Live mitigation percentage label
• Optional auto-removal when mitigation reaches a selected percentage
• Custom number of active FVGs to keep on chart
• Custom bullish and bearish fill/border colors
• Hardened delete and array-sync logic for more stable long-running use
This tool is useful for traders who use Fair Value Gaps, imbalances, mitigation, displacement, liquidity sweeps, and auction-market context. It can help identify potential reaction zones, partial fills, full mitigation areas, and areas where price may return to rebalance.
This indicator does not provide automatic buy or sell signals. It is intended as a discretionary charting and confluence tool.
Disclaimer: This script is for educational and informational purposes only and does not constitute financial advice. Trading involves risk. Use at your own discretion.
Wskaźnik

Wskaźnik

Wskaźnik

Gap AnalysisDescription:
This indicator automates the tracking of session gaps, providing real-time data on gap fills, historical context, and exhaustion risk. It is built specifically for day traders and swing traders who use gap-fill strategies during Regular Trading Hours (RTH).
Core Functionality:
The script captures the closing price (settle) of the previous RTH session and measures it against the open of the current RTH session. If a gap exceeds your minimum point threshold, it maps the gap zone on your chart and tracks price action against the settle line until the gap is filled.
Key Features:
Dynamic Fill Tracking: Monitors unfilled gaps bar-by-bar. It calculates the exact percentage of the gap filled and displays how many bars it took to reach completion.
Exhaustion Risk Detection: Tracks consecutive gaps in the same direction. If the market gaps in the same direction three or more times consecutively, the script flags an "Elevated Exhaustion" risk on the display panel.
Clean Chart Management: Automatically shades the gap zone and draws the target settle line. You can toggle a setting to instantly hide gaps once they are 100% filled, preventing chart clutter.
Heads-Up Display Table: An on-chart dashboard provides immediate access to the current session's gap direction, fill status, specific target price, and elapsed time.
Historical Gap Review: Displays up to 20 historical session gaps, allowing you to backtest how often and how quickly an asset fills its gaps.
Integrated Alerts: Supports automated alerts for two conditions: when a new qualifying gap is formed at the session open, and the moment a gap is entirely filled.
Configuration & Setup:
RTH Session: Define your specific trading hours (default is 0830-1500 America/Chicago). The indicator requires this to accurately lock in the previous day's settle.
Minimum Gap Size: Filter out market noise by setting a minimum point threshold. Gaps smaller than this value will be ignored.
Visual Customization: Full control over bull/bear zone colors, line styles, text sizes, and table positioning.
Usage Notes:
This script relies on timeframe data to establish session boundaries. It is optimal for intraday timeframes (e.g., 1m, 5m, 15m, 1H). Wskaźnik

Sessions Suite [claysul]Sessions Suite plots market sessions, previous day/week/month levels, daily/weekly/monthly open prices, customizable open prices, day of the week separator, and 90m cycles. Every feature can be toggled independently, with full customization over session times, labels, lines, and colors. All session times use the America/New_York timezone and automatically adjust for daylight savings time.
Sessions:
- Shaded session boxes are drawn for up to 5 fully customizable sessions. Defaults include Asia (6:00–12:00 AM EST), London (12:00–6:00 AM), NY AM (6:00 AM–12:00 PM), NY PM (12:00–6:00 PM), and NY Lunch (off by default). Each session's name, time range, and color are editable.
- Toggle session boxes on/off independently from lines and labels, allowing you to show only the high/low lines without the shaded boxes.
- Toggle session borders on/off.
- Optional max days limit to control how many days of session boxes are displayed.
Session boxes toggled off, with high and low set to max 1 day:
Mitigation:
Session high/low lines extend forward until price mitigates/touches the level, or until end of day.
- Option to extend unmitigated lines to the current bar, instead of stopping at EOD.
- Option to remove mitigated lines entirely. When enabled, lines and their labels are deleted from the chart once price reaches the level.
Session lines default to EOD:
Unmitigated session lines extended to current bar:
Mitigated lines removed (Extend Unmitigated Lines to Current Bar must be enabled):
Session Lines:
Horizontal lines drawn at each session's high and low. Customizable width, style (solid/dashed/dotted), and optional unified line color override if the user wants all lines to be one color. Optional max days limit to control how many days of lines and labels are displayed.
Session Labels:
Session labels mark the high and low of each session by default. There are 2 mode alignments: "Right of Line," where labels are placed on the right of high/low lines, or "Centered (Box)," where they are centered to the session box. Label placement can be set to "Above Line" (both labels above) or "Above / Below Line" (high labels above, low labels below). The user can choose to display high and low labels, high only, or low only. Label size is adjustable, and an optional unified color override if the user wants all labels to be one color.
Labels to right of line:
Labels centered to session box:
Labels centered, high only placement:
Session lines, no labels, no borders:
Label placement set to above/below line:
Previous Day, Week, and Month Levels:
- PDH / PDL- Previous Day High and Low, drawn from the bar where the high/low occurred.
- PD EQ- Previous Day Equilibrium (midpoint of PDH and PDL).
- PWH / PWL- Previous Week High and Low.
- PMH / PML- Previous Month High and Low.
Each level can be turned on/off, and the option to change color and line style. All levels extend to the right with labels.
Opening Prices:
Horizontal lines are drawn at key opening prices:
- Daily Open- resets each new trading day.
- Weekly Open- resets each new week.
- Monthly Open- resets each new month.
- 3 Custom Opens- fully configurable by hour and minute (EST). Defaults: 09:30 (market open), 00:00 (midnight), and 16:00 (RTH market close). Each have options to customize color, style, and turn on/off.
Day of Week Separator:
Optional vertical separator lines at the start of each trading day with day-of-week labels (MON, TUE, WED, THU, FRI). Configurable label color, separator color, position (top/bottom), and number of days to display.
90 Minute Cycles:
Shaded blocks that divides each of the four main sessions into 90 minute quarters based on Quarterly Theory:
- Asia Q1–Q4 (Q1: 6:00 - 7:30 PM EST, Q2: 7:30 - 9:00 PM, Q3: 9:00 - 10:30 PM, Q4: 10:30 PM - 12:00 AM
- London Q1–Q4 (Q1: 12:00 - 1:30 AM EST, Q2: 1:30 - 3:00 AM, Q3: 3:00 - 4:30 AM, Q4: 4:30 - 6:00 AM)
- NY AM Q1–Q4 (Q1: 6:00 - 7:30 AM EST, Q2: 7:30 - 9:00 AM, Q3: 9:00 - 10:30 AM, Q4: 10:30 AM - 12:00 PM)
- NY PM Q1–Q4 (Q1: 12:00 - 1:30 PM EST, Q2: 1:30 - 3:00 PM, Q3: 3:00 - 4:30 PM, Q4: 4:30 - 6:00 PM)
Toggle all quarters on/off with a single checkbox. Each quarter's name, time range, and box color are individually customizable. Options to change label size and toggle on/off cycle borders, labels, and unified label color override. Optional max days limit to control how many days of cycles are displayed.
Timeframe Awareness:
The indicator automatically adapts to higher timeframes:
- Intraday- shows everything: sessions, session lines, session labels, 90 minute cycles, PDH/PDL/PD EQ, PWH/PWL, PMH/PML, all opening prices, day of week separators, and custom opens.
- Daily- shows PDH/PDL/PD EQ, PWH/PWL, PMH/PML, and Daily/Weekly/Monthly opens.
- Weekly- shows Weekly and Monthly opens only.
- Monthly- shows Monthly open only. Wskaźnik

Wskaźnik

Fair Value Gap Rejection AlertsOverview
The Fair Value Gap (FVG) Finder is a versatile Pine Script™ v6 indicator designed to identify price inefficiencies in the market, commonly known as Fair Value Gaps. These gaps represent areas where price has moved rapidly, leaving behind unbalanced regions that often act as support or resistance levels. This script highlights bullish (upward) and bearish (downward) FVGs as colored boxes on your chart, making it easy to spot potential reversal or continuation zones.
Building on standard FVG concepts, this indicator includes advanced features like automatic rejection detection. A rejection occurs when price wicks into the FVG but closes outside it, signaling a potential bounce without filling the gap. Bullish rejections (support bounces) are marked with green upward triangles below the bar, while bearish rejections (resistance bounces) use red downward triangles above the bar. Only the first rejection per FVG is tagged to avoid clutter.
The script also supports alerts for these rejections, allowing you to set up notifications in TradingView for timely trading decisions. Gaps are drawn for a user-defined length but can detect rejections and fills beyond the visible box if needed.
Key Features
FVG Detection: Automatically identifies bullish FVGs (green boxes) when there's an upward price gap exceeding the minimum size, and bearish FVGs (red boxes) for downward gaps.
Rejection Logic: Detects wick-based rejections without gap filling. Bullish: Low enters the FVG but close is above. Bearish: High enters but close is below.
Alerts: Separate alerts for bullish and bearish rejections, configurable via TradingView's alert system (use "alert() function calls only").
Visual Tags: Triangles mark rejection candles for quick visual confirmation.
Customization: Inputs include gap length, minimum gap size (manual or ATR-based), option to show only the latest gap, and delete filled gaps. Style options for colors, label sizes, and more.
Filling Mechanism: Optionally deletes boxes once price fully closes into the gap, indicating it's been mitigated.
How to Use
Add the indicator to your chart via TradingView's Pine Editor.
Adjust inputs in the settings panel:
Gap Length: Controls how far the box extends (default: 60 bars).
Minimum Gap Size: Set manually or auto-adjust with ATR(14) for adaptive filtering.
Only Show Latest Gap: Limits display to the most recent FVG.
Delete Filled Gaps: Removes boxes after price fills them.
Styles: Customize colors and label sizes for better visibility.
Monitor the chart for FVG boxes. Watch for triangle shapes indicating rejections—these often signal entry points (e.g., buy on bullish rejection).
Set up alerts: In TradingView, create alerts based on the indicator's "Bullish FVG Rejection" or "Bearish FVG Rejection" conditions.
Best used on timeframes like 5M-1H for intraday trading, or higher for swing setups. Combine with other tools like volume or trend lines for confirmation.
This indicator is inspired by Inner Circle Trader (ICT) and Smart Money Concepts (SMC) but includes original enhancements like per-gap rejection tracking to prevent multiple signals on the same zone. It does not guarantee profits and should be used as part of a broader strategy with proper risk management.
No external dependencies or subscriptions required—fully self-contained in Pine Script™ v6. Wskaźnik

Gap DetectorGap Detector — Multi-Timeframe Price Gap Scanner
Automatically detects and visualizes all price gaps across any timeframe — Daily, Weekly, Monthly, or Intraday.
📊 What It Does
This indicator identifies true price gaps where the current candle opens completely above (gap up) or below (gap down) the previous candle's range, with no price overlap between them.
Gap Up (Bullish): Current candle's low > Previous candle's high
Gap Down (Bearish): Current candle's high < Previous candle's low
✨ Key Features
✅ Auto-Detects Chart Timeframe — Works on any timeframe without manual selection (1min, 5min, 1H, 4H, Daily, Weekly, Monthly)
✅ Visual Gap Boxes — Green boxes for gap ups, red boxes for gap downs, drawn exactly across the gap zone
✅ Gap Size Labels — Shows gap percentage on each box for quick assessment
✅ Customizable Filters — Set minimum and maximum gap size % to filter noise
✅ Summary Statistics Table — Live count of bull gaps, bear gaps, and total gaps detected
✅ Pine Screener Compatible — Built-in signals for bulk scanning stocks with gaps
✅ Clean & Lightweight — No repainting, no lag, works on all markets (stocks, forex, crypto, indices)
🎯 Use Cases
Day/Swing Trading: Identify gap fill opportunities on intraday and daily charts
Earnings Plays: Track post-earnings gaps on daily/weekly timeframes
Breakout Confirmation: Gaps often signal strong momentum or trend continuation
Support/Resistance Zones: Unfilled gaps act as magnets for price action
Multi-Timeframe Analysis: Scan 4H gaps, daily gaps, or weekly gaps depending on your strategy
🛠️ Settings
Visibility Controls:
Toggle bull gaps, bear gaps, labels, and summary table on/off independently
Filter Settings:
Min Gap Size (%) — Ignore gaps smaller than this threshold (default 0.1%)
Max Gap Size (%) — Ignore abnormally large gaps like circuit breaker moves (default 5%)
Style Customization:
Gap box colors, border colors, and table position (Top Right, Top Left, Bottom Right, Bottom Left)
📈 How to Use with Pine Screener (TradingView Pro+)
Add indicator to any chart and set your desired timeframe (e.g., 4H for intraday gaps)
Open Pine Screener (bottom toolbar)
Select Gap Detector indicator
Choose Bull Gap Signal or Bear Gap Signal
Set condition: Above → 0
Click Scan to find all stocks with gaps on current candle
Screener Outputs:
Bull Gap Signal = 1 → Gap up formed on current candle
Bear Gap Signal = 1 → Gap down formed on current candle
Signal = 0 → No gap on current candle
📌 Notes
Gaps are detected based on previous candle close to current candle open — not wicks
Works on all markets and instruments where gaps occur (stocks, forex, crypto, futures, indices)
Signal plots appear in a separate pane below the chart for clean visualization
Gap count resets when you reload the chart or change timeframes
💡 Pro Tips
4H Timeframe: Great for intraday gap trading on volatile stocks
Daily Timeframe: Classic overnight gaps — ideal for gap fill strategies
Weekly/Monthly Timeframe: Macro trend analysis and major support/resistance zones
Combine with volume or momentum indicators for higher-probability setups
Created for traders who need fast, reliable gap detection without manual scanning. Wskaźnik

PowerGaps - Multi-Timeframe Fair Value GapsPowerGaps — Multi‑Timeframe Fair Value Gap Engine
PowerGaps is a precision‑built, multi‑timeframe Fair Value Gap (FVG) engine designed for traders who rely on clean, reliable market structure signals without noise, repainting, or clutter.
It automatically detects and plots institutional FVGs from higher timeframes directly onto your current chart, giving you a clear view of premium/discount imbalances and liquidity inefficiencies that matter most.
What PowerGaps Does
• Scans four customizable timeframes (e.g., M5, M15, H1, H4) for valid bullish and bearish FVGs
• Projects those HTF gaps onto any lower timeframe chart
• Colors and labels each gap by timeframe for instant visual recognition
• Tracks each gap until it is mitigated by wick touch, then automatically closes and removes it
• Ensures no repainting, no duplicates, and no phantom gaps
• Maintains perfect alignment across timeframes using a robust, cross‑TF‑safe architecture
Why It’s Different
PowerGaps is engineered with a strict validation and mitigation system that prevents the common issues seen in many FVG indicators:
• No repeated stacking of the same gap
• No gaps disappearing when switching timeframes
• No false mitigation signals
• No stale or corrupted objects left behind
Every plotted gap is intentional, accurate, and actionable.
Ideal For
• ICT‑style traders
• Liquidity and imbalance‑based strategies
• HTF bias mapping
• Scalpers who rely on HTF inefficiencies
• Swing traders looking for clean continuation or reversal zones
Inputs & Customization
• Enable/disable each timeframe independently
• Choose custom colors for bullish and bearish gaps
• Full control over which timeframes you want projected onto your chart Wskaźnik

Wskaźnik

Wskaźnik

CME Gap Tracker [captainua]CME Gap Tracker - Advanced Gap Detection & Tracking System
Overview
This indicator provides comprehensive gap detection and tracking capabilities for both consecutive bar gaps and weekly CME trading session gaps. It automatically detects gaps, tracks their fill progress in real-time, provides detailed statistics, and includes backtesting features to validate gap trading strategies. The script is optimized for CME futures trading but works with any instrument, automatically handling ticker conversion between CME futures and spot markets.
Gap Detection Types
Consecutive Bar Gaps:
Detects gaps between any two consecutive bars on the current timeframe. Two detection modes are available:
- High/Low Mode: Detects gaps when current bar's low > previous bar's high (gap up) or current bar's high < previous bar's low (gap down). This is more sensitive and detects more gaps.
- Close/Open Mode: Detects gaps when current bar's open > previous bar's close (gap up) or current bar's open < previous bar's close (gap down). This is more conservative.
Weekly CME Gaps:
Detects gaps between weekly trading sessions, specifically designed for CME futures markets. The script automatically detects the first bar of each new week and compares the current week's open with the previous week's close/high/low. This is particularly useful for tracking weekend gaps in CME futures markets where price can gap significantly between Friday close and Monday open.
Smart Ticker Detection
The script automatically converts between CME futures tickers (e.g., BTC1!, ETH1!) and spot tickers (e.g., BTCUSDT, ETHUSDT). When viewing a CME futures chart, it can automatically detect and use the corresponding spot ticker for gap analysis, and vice versa. This allows traders to:
- View CME futures but track spot market gaps
- View spot markets but track CME futures gaps
- Manually override with custom ticker specification
The ticker validation system uses caching to prevent race conditions during initial script load, ensuring reliable ticker resolution.
Gap Filtering & Tolerance
Static Tolerance:
Set minimum and maximum gap sizes as percentages (default: show only gaps > 0.333% and < 100%). This filters out noise and focuses on significant gaps.
Dynamic Tolerance:
When enabled, tolerance is calculated dynamically based on ATR (Average True Range). The formula: Dynamic Tolerance = (ATR × ATR Multiplier / Close Price) × 100%. This adapts to market volatility - in volatile markets, only larger gaps are shown; in calm markets, smaller gaps are displayed. This is particularly useful for instruments with varying volatility.
Absolute Size Filtering:
In addition to percentage filtering, gaps can be filtered by absolute price size (e.g., show only gaps > $100). This is useful for instruments where percentage alone doesn't capture significance (e.g., high-priced stocks).
Fill Confirmation System
To reduce false gap closure signals, the script requires multiple consecutive bars to confirm gap closure. The default is 2 bars, but can be adjusted from 1-10 bars. Lower values (1) confirm faster but may produce false signals from temporary wicks. Higher values (3-5) reduce false fill signals but delay confirmation. This prevents temporary price spikes from triggering false gap closure alerts.
Gap Fill Tracking
The script tracks gap fill progress in real-time:
- Fill Percentage: How much of the gap has been filled (0-100%)
- Fill Speed: Whether fill is accelerating, decelerating, or constant
- Time to Fill: For closed gaps, how many bars it took to fill
- Fill Status: Unfilled, partially filled, or fully filled
Visual Features
Heatmap Colors:
Gap colors can be adjusted based on gap size, with larger gaps appearing more intense and smaller gaps more faded.
Adaptive Line Width:
Line thickness automatically adjusts based on gap size, making larger gaps more prominent.
Age-Based Coloring:
Gaps can be color-coded by age, with newer gaps appearing brighter and older gaps more faded.
Confluence Zones:
Areas where multiple gaps overlap are highlighted with enhanced visuals, indicating stronger support/resistance zones.
Gap Statistics
A comprehensive statistics table provides:
- Total gaps created, open, and closed
- Fill rates by direction (up vs down) and size category (small, medium, large)
- Average fill time, fastest fill, slowest fill
- Oldest gap and oldest unfilled gap
- Backtesting results: success rate, reversal rate, average move after fill
- CME gap expiration statistics: Gaps expired unfilled (for Weekly CME gaps only)
Statistics can be filtered by period (All Time, Last 100/500/1000/5000 bars) and can be reset via toggle button.
Backtesting
When enabled, the script tracks price movement after gap fills:
- Price after fill: Captures price when gap closes
- Move after fill: Percentage price movement after closure
- Success/Reversal tracking: Determines if price continued in fill direction or reversed
- Success rate: Percentage of gaps where price continued in fill direction
This data helps validate gap trading strategies and understand gap fill behavior.
Gap Re-opening Detection
When enabled, the script detects when a previously filled gap reopens (price gaps back through the filled gap zone). This is useful for identifying when support/resistance levels break and can signal trend reversals.
CME-Specific Features
Monday Opening Volume Analysis:
For Weekly CME gaps detected on Monday openings, the script tracks Monday opening volume relative to average volume. Higher Monday volume ratios indicate stronger gap significance. This ratio is integrated into gap strength calculations and can be displayed in gap labels. Gaps with Monday volume > 1.5x average receive priority score boosts.
CME Gap Expiration Tracking:
Weekly CME gaps that remain unfilled beyond a configurable threshold (default 1000 bars) are automatically marked as "expired" and tracked separately in statistics. This helps identify gaps that act as strong support/resistance levels and never fill. Expired gaps are displayed with special labeling and counted in the "Gaps Expired (CME)" statistic.
CME Gap Priority Scoring Enhancement:
The priority scoring system includes special boosts for CME gaps:
- Monday gaps: +10 points (gaps detected on Monday openings)
- High Monday volume gaps: +15 points (Monday volume ratio > 1.5x average)
- Gaps at key weekly levels: +10 points (gaps aligning with previous week's high, low, or close within 0.5% tolerance)
These enhancements help prioritize the most significant CME gaps for trading decisions.
Custom Gap Zones
Traders can manually mark custom gap zones by specifying top and bottom levels. These zones are tracked like automatically detected gaps, allowing traders to:
- Mark historical gaps that weren't detected
- Create support/resistance zones based on other analysis
- Track specific price levels of interest
Multi-Timeframe Support
The script can detect gaps on higher timeframes simultaneously. For example, when viewing a 1-hour chart, it can also detect and display gaps from the weekly timeframe. This provides multi-timeframe context for gap analysis.
Alert System
Comprehensive alert system with multiple trigger types:
- Gap Creation: Alert when new gaps are detected
- Gap Closure: Alert when gaps are fully filled
- Partial Fill: Alert when gaps reach specific fill percentages (e.g., 25%, 50%, 75%, 90%)
- Approaching Closure: Alert when gaps reach high fill levels (e.g., 90%, 95%) before closing
- Gap Re-opening: Alert when previously filled gaps reopen
Alerts can be filtered to trigger only on Mondays (useful for CME weekly gaps) or any day.
Filtering Options
Gaps can be filtered by:
- Fill Status: Show all, unfilled only, partially filled only, or fully filled only
- Fill Percentage Range: Show gaps within specific fill percentage ranges
- Gap Age: Show only gaps within specific age ranges (bars)
- Gap Expiration: Automatically remove gaps older than specified number of bars (for Weekly CME gaps, uses separate CME expiration threshold)
Performance & Safety
The script includes several safety features:
- Safe array operations to prevent index out-of-bounds errors
- Memory leak prevention through proper visual object cleanup
- Ticker validation caching to prevent race conditions
- Week boundary detection for accurate CME gap identification
- Fill confirmation system to reduce false signals
- Monday opening volume analysis for CME gap strength assessment
- CME gap expiration tracking with configurable thresholds
- Priority scoring enhancement for Monday gaps, high Monday volume, and key weekly levels
Usage Recommendations
For CME Weekly Gaps:
1. Set "Gap Detection Type" to "Weekly CME"
2. View a CME futures chart (e.g., BTC1!) or enable auto-detect spot ticker
3. Set tolerance to filter gap size (default 0.333%)
4. Enable statistics to track fill rates
5. Configure alerts for gap creation/closure
For Consecutive Bar Gaps:
1. Set "Gap Detection Type" to "Consecutive Bars"
2. Choose "High/Low" for more gaps or "Close/Open" for fewer gaps
3. Adjust tolerance based on instrument volatility
4. Enable fill confirmation (2-3 bars) for more reliable signals
5. Use filtering to focus on specific gap types
For Gap Trading Strategies:
1. Enable backtesting to validate strategy performance
2. Review statistics to understand gap fill patterns
3. Use confluence zones to identify strong support/resistance
4. Configure alerts for gap events matching your strategy
5. Use custom zones to mark important levels
Technical Details:
• Pine Script v6 | Overlay indicator
• Safe array operations with index validation
• Memory leak prevention through proper object cleanup
• Ticker validation caching for reliable ticker resolution
• Works on all timeframes and instruments
• Comprehensive edge case handling
• Week boundary detection using ta.change(weekofyear)
• Fill confirmation system with configurable bars
For detailed documentation and usage instructions, see the script comments.
Wskaźnik

Wskaźnik

Session Gap Fill [LuxAlgo]The Session Gap Fill tool detects and highlights filled and unfilled price gaps between regular sessions. It features a dashboard with key statistics about the detected gaps.
The tool is highly customizable, allowing users to filter by different types of gaps and customize how they are displayed on the chart.
🔶 USAGE
By default, the tool detects all price gaps between sessions. A price gap is defined as a difference between the opening price of one session and the closing price of the previous session. In this case, the tool uses the opening price of the first bar of the session against the closing price of the previous bar.
A bullish gap is detected when the session open price is higher than the last close, and a bearish gap is detected when the session open price is lower than the last close.
Gaps represent a change in market sentiment, a difference in what market participants think between the close of one trading session and the open of the next.
What is useful to traders is not the gap itself, but how the market reacts to it.
Unfilled gaps occur when prices do not return to the previous session's closing price.
Filled gaps occur when prices come back to the previous session's close price.
By analyzing how markets react to gaps, traders can understand market sentiment, whether different prices are accepted or rejected, and take advantage of this information to position themselves in favor of bullish or bearish market sentiment.
Next, we will cover the Gap Type Filter and Statistics Dashboard.
🔹 Gap Type Filter
Traders can choose from three options: display all gaps, display only overlapping gaps, or display only non-overlapping gaps. All gaps are displayed by default.
An overlapping gap is defined when the first bar of the session has any price in common with the previous bar. No overlapping gap is defined when the two bars do not share any price levels.
As we will see in the next section, there are clear differences in market behavior around these types of gaps.
🔹 Statistics Dashboard
The Statistics Dashboard displays key metrics that help traders understand market behavior around each type of gap.
Gaps: The percentage of bullish and bearish gaps.
Filled: The percentage of filled bullish and bearish gaps.
Reversed: The percentage of filled gaps that move in favor of the gap
Bars Avg.: The average number of bars for a gap to be filled.
Now, let's analyze the chart on the left of the image to understand those stats. These are the stats for all gaps, both overlapping and non-overlapping.
Of the total, bullish gaps represent 55%, and bearish ones represent 44%. The gap bias is pretty balanced in this market.
The second statistic, Filled, shows that 63% of gaps are filled, both bullish and bearish. Therefore, there is a higher probability that a gap will be filled than not.
The third statistic is reversed. This is the percentage of filled gaps where prices move in favor of the gap. This applies to filled bullish gaps when the close of the session is above the open, and to filled bearish gaps when the close of the session is below the open. In other words, first there is a gap, then it fills, and finally it reverses. As we can see in the chart, this only happens 35% of the time for bullish gaps and 29% of the time for bearish gaps.
The last statistic is Bars Avg., which is the average number of bars for a gap to be filled. On average, it takes between one and two bars for both bullish and bearish gaps. On average, gaps fill quickly.
As we can see on the chart, selecting different types of gaps yields different statistics and market behavior. For example, overlapping gaps have a greater than 90% chance of being filled, whereas non-overlapping gaps have a less than 40% chance.
🔶 SETTINGS
Gap Type: Select the type of gap to display.
🔹 Dashboard
Dashboard: Enable or disable the dashboard.
Position: Select the location of the dashboard.
Size: Select the dashboard size.
🔹 Style
Filled Bullish Gap: Enable or disable this gap and choose the color.
Filled Bearish Gap: Enable or disable this gap and choose the color.
Unfilled Gap: Enable or disable this gap and choose the color.
Max Deviation Level: Enable or disable this level and choose the color.
Open Price Level: Enable or disable this level and choose the color.
Wskaźnik

Greer Gap# Greer Gap Indicator (No mitigation: i.e. removing false signals)
## Summary
The **Greer Gap Indicator** identifies **Fair Value Gaps (FVGs)** and introduces specialized **Greer Bull Gaps (Blue)** and **Greer Bear Gaps (Orange)** to highlight high-probability trading opportunities. Unlike traditional FVG indicators, it avoids hindsight bias by not removing historical gaps based on future price action, ensuring transparency in signal accuracy. Built upon LuxAlgo’s FVG logic, it adds unique filtering: only the first Greer Gap after an opposite gap is plotted if its level (min for Bull, max for Bear) is not higher/lower than the previous Greer Gap of the same type, while all valid gaps are recorded for comparison. Traders can use these gaps as support/resistance or entry signals, customizable via timeframe, look back, and display options.
## Description
This indicator detects and displays **Fair Value Gaps (FVGs)** on the chart, with a focus on specialized **Greer Gaps**:
- **Bullish Gaps (Green)**: Areas where the low of the current candle is above the high of a previous candle (look back period), indicating potential upward momentum.
- **Bearish Gaps (Red)**: Areas where the high of the current candle is below the low of a previous candle, indicating potential downward momentum.
- **Greer Bull Gaps (Blue)**: A bullish gap that is above the latest bearish gap's max. Only the first such gap after a bearish gap is plotted if it meets criteria (not higher than the previous Greer Bull Gap's min), but all valid ones are recorded for comparison.
- **Greer Bear Gaps (Orange)**: A bearish gap that is below the latest bullish gap's min. Only the first such gap after a bullish gap is plotted if it meets criteria (not lower than the previous Greer Bear Gap's max), but all valid ones are recorded.
## How It Works
The script uses a dynamic look back period to detect FVGs. It maintains a record of all detected gaps and applies additional logic for Greer Gaps:
- **Greer Bull Gaps**: Checks if the new bullish gap's min is above the latest bearish gap's max. Plots only if it's the first since the last bearish gap and its min is <= previous Greer Bull min (or first one).
- **Greer Bear Gaps**: Checks if the new bearish gap's max is below the latest bullish gap's min. Plots only if it's the first since the last bullish gap and its max is >= previous Greer Bear max (or first one).
- **Resets**: A new bearish gap resets the Greer Bull Gap flag, and a new bullish gap resets the Greer Bear Gap flag.
## How to Use
- **Timeframe**: Set a higher timeframe (e.g., 'D' for daily) to detect gaps from that timeframe on the current chart.
- **Look back Period**: Adjust to change gap detection sensitivity (default: 34). Use 2 if you want to compare to LuxAlgo
- **Extend**: Controls how far right the gap boxes extend.
- **Show Options**: Toggle visibility of all bullish/bearish gaps or Greer Gaps.
- **Colors**: Customize colors for each gap type.
- **Application**: Use Greer Gaps as potential support/resistance levels or entry signals, but combine with other analysis for confirmation.
## Originality and Credits
This script is inspired by and builds upon the **"Fair Value Gap "** indicator by LuxAlgo (available on TradingView: ()).
**Credits**: Thanks to LuxAlgo for the core FVG detection logic.
**Significant Changes**:
- Added **Greer Bull and Bear Gap** logic for filtered, directional gaps with reset mechanisms.
- Introduced recording of all valid Greer Gaps without plotting all, to compare levels without hindsight bias.
- **No mitigation/removal of gaps**: Unlike LuxAlgo's approach, which mitigates (removes or alters) gaps based on future price action (e.g., when filled), this can create a hindsight bias where incorrect signals disappear over time. If a signal is used for a trade and later removed due to new data, it doesn't reflect real-time performance accurately. The Greer Gap avoids this by using gap comparisons to validate signals without altering historical boxes, ensuring transparency in when signals were right or wrong. Wskaźnik

Wskaźnik

Range Bar Gaps DetectorRange Bar Gaps Detector
Overview
The Range Bar Gaps Detector identifies price gaps across multiple range bar sizes (12, 24, 60, and 120) on any trading instrument, helping traders spot potential support/resistance zones or breakout opportunities. Designed for Pine Script v6, this indicator detects gaps on range bars and exports data for use in companion scripts like Range Bar Gaps Overlap, making it ideal for multi-timeframe gap analysis.
Key Features
Multi-Range Gap Detection: Identifies gaps on 12, 24, 60, and 120-range bars, capturing both bullish (gap up) and bearish (gap down) price movements.
Customizable Sensitivity: Includes a user-defined minimum deviation (default: 10% of 14-period SMA) for 12-range gaps to filter out noise.
7-Day Lookback: Automatically prunes gaps older than 7 days to focus on recent, relevant price levels.
Data Export: Serializes up to 10 gaps per range (tops, bottoms, start bars, highest/lowest prices, and age) for seamless integration with overlap analysis scripts.
Debugging Support: Plots gap counts and aggregation data in the Data Window for easy verification of detected gaps.
How It Works
The indicator aggregates price movements to simulate higher range bars (24, 60, 120) from a base range bar chart. It detects gaps when the price jumps significantly between bars, ensuring gaps meet the minimum deviation threshold for 12-range bars. Gaps are stored in arrays, serialized for external use, and pruned after 7 days to maintain efficiency.
Usage
Add to your range bar chart (e.g., 12-range) to detect gaps across multiple ranges.
Use alongside the Range Bar Gaps Overlap indicator to visualize gaps and their overlaps as boxes on the chart.
Check the Data Window to confirm gap counts and sizes for each range (12, 24, 60, 120).
Adjust the "Minimal Deviation (%) for 12-Range" input to control gap detection sensitivity.
Settings
Minimal Deviation (%) for 12-Range: Set the minimum gap size for 12-range bars (default: 10% of 14-period SMA).
Range Sizes: Fixed at 24, 60, and 120 for higher range bar aggregation.
Notes
Ensure the script is published under your TradingView username (e.g., GreenArrow2005) for use with companion scripts.
Best used on range bar charts to maintain consistent gap detection.
For advanced overlap analysis, pair with the Range Bar Gaps Overlap indicator to highlight zones where gaps from different ranges align.
Ideal For
Traders seeking to identify key price levels for support/resistance or breakout strategies.
Multi-timeframe analysts combining gap data across various range bar sizes.
Developers building custom indicators that leverage gap data for advanced charting. Wskaźnik

Time-Based Fair Value Gaps (FVG) with Inversions (iFVG)Overview
The Time-Based Fair Value Gaps (FVG) with Inversions (iFVG) (ICT/SMT) indicator is a specialized tool designed for traders using Inner Circle Trader (ICT) methodologies. Inspired by LuxAlgo's Fair Value Gap indicator, this script introduces significant enhancements by integrating ICT principles, focusing on precise time-based FVG detection, inversion tracking, and retest signals tailored for institutional trading strategies. Unlike LuxAlgo’s general FVG approach, this indicator filters FVGs within customizable 10-minute windows aligned with ICT’s macro timeframes and incorporates ICT-specific concepts like mitigation, liquidity grabs, and session-based gap prioritization.
This tool is optimized for 1–5 minute charts, though probably best for 1 minute charts, identifying bullish and bearish FVGs, tracking their mitigation into inverted FVGs (iFVGs) as key support/resistance zones, and generating retest signals with customizable “Close” or “Wick” confirmation. Features like ATR-based filtering, optional FVG labels, mitigation removal, and session-specific FVG detection (e.g., first FVG in AM/PM sessions) make it a powerful tool for ICT traders.
Originality and Improvements
While inspired by LuxAlgo’s FVG indicator (credit to LuxAlgo for their foundational work), this script significantly extends the original concept by:
1. Time-Based FVG Detection: Unlike LuxAlgo’s continuous FVG identification, this script filters FVGs within user-defined 10-minute windows each hour (:00–:10, :10–:20, etc.), aligning with ICT’s emphasis on specific periods of institutional activity, such as hourly opens/closes or kill zones (e.g., New York 7:00–11:00 AM EST). This ensures FVGs are relevant to high-probability ICT setups.
2. Session-Specific First FVG Option: A unique feature allows traders to display only the first FVG in ICT-defined AM (9:30–10:00 AM EST) or PM (1:30–2:00 PM EST) sessions, reflecting ICT’s focus on initial market imbalances during key liquidity events.
3. ICT-Driven Mitigation and Inversion Logic: The script tracks FVG mitigation (when price closes through a gap) and converts mitigated FVGs into iFVGs, which serve as ICT-style support/resistance zones. This aligns with ICT’s view that mitigated gaps become critical reversal points, unlike LuxAlgo’s simpler gap display.
4. Customizable Retest Signals: Retest signals for iFVGs are configurable for “Close” (conservative, requiring candle body confirmation) or “Wick” (faster, using highs/lows), catering to ICT traders’ need for precise entry timing during liquidity grabs or Judas swings.
5. ATR Filtering and Mitigation Removal: An optional ATR filter ensures only significant FVGs are displayed, reducing noise, while mitigation removal declutters the chart by removing filled gaps, aligning with ICT’s principle that mitigated gaps lose relevance unless inverted.
6. Timezone and Timeframe Safeguards: A timezone offset setting aligns FVG detection with EST for ICT’s New York-centric strategies, and a timeframe warning alerts users to avoid ≥1-hour charts, ensuring accuracy in time-based filtering.
These enhancements make the script a distinct tool that builds on LuxAlgo’s foundation while offering ICT traders a tailored, high-precision solution.
How It Works
FVG Detection
FVGs are identified when a candle’s low is higher than the high of two candles prior (bullish FVG) or a candle’s high is lower than the low of two candles prior (bearish FVG). Detection is restricted to:
• User-selected 10-minute windows (e.g., :00–:10, :50–:60) to capture ICT-relevant periods like hourly transitions.
• AM/PM session first FVGs (if enabled), focusing on 9:30–10:00 AM or 1:30–2:00 PM EST for key market opens.
An optional ATR filter (default: 0.25× ATR) ensures only gaps larger than the threshold are displayed, prioritizing significant imbalances.
Mitigation and Inversion
When price closes through an FVG (e.g., below a bullish FVG’s bottom), the FVG is mitigated and becomes an iFVG, plotted as a support/resistance zone. iFVGs are critical in ICT for identifying reversal points where institutional orders accumulate.
Retest Signals
The script generates signals when price retests an iFVG:
• Close: Triggers when the candle body confirms the retest (conservative, lower noise).
• Wick: Triggers when the candle’s high/low touches the iFVG (faster, higher sensitivity). Signals are visualized with triangular markers (▲ for bullish, ▼ for bearish) and can trigger alerts.
Visualization
• FVGs: Displayed as colored boxes (green for bullish, red for bearish) with optional “Bull FVG”/“Bear FVG” labels.
• iFVGs: Shown as extended boxes with dashed midlines, limited to the user-defined number of recent zones (default: 5).
• Mitigation Removal: Mitigated FVGs/iFVGs are removed (if enabled) to keep the chart clean.
How to Use
Recommended Settings
• Timeframe: Use 1–5 minute charts for precision, avoiding ≥1-hour timeframes (a warning label appears if misconfigured).
• Time Windows: Enable :00–:10 and :50–:60 for hourly open/close FVGs, or use the “Show only 1st presented FVG” option for AM/PM session focus.
• ATR Filter: Keep enabled (multiplier 0.25–0.5) for significant gaps; disable on 1-minute charts for more FVGs during volatility.
• Signal Preference: Use “Close” for conservative entries, “Wick” for aggressive setups.
• Timezone Offset: Set to -5 for EST (or -4 for EDT) to align with ICT’s New York session.
Trading Strategy
1. Macro Timeframes: Focus on New York (7:00–11:00 AM EST) or London (2:00–5:00 AM EST) kill zones for high institutional activity.
2. FVG Entries: Trade bullish FVGs as support in uptrends or bearish FVGs as resistance in downtrends, especially in :00–:10 or :50–:60 windows.
3. iFVG Retests: Enter on retest signals (▲/▼) during liquidity grabs or Judas swings, using “Close” for confirmation or “Wick” for speed.
4. Session FVGs: Use the “Show only 1st presented FVG” option to target the first gap in AM/PM sessions, often tied to ICT’s market maker algorithms.
5. Risk Management: Combine with ICT concepts like order blocks or breaker blocks for confluence, and set stops beyond FVG/iFVG boundaries.
Alerts
Set alerts for:
• “Bullish FVG Detected”/“Bearish FVG Detected”: New FVGs in selected windows.
• “Bullish Signal”/“Bearish Signal”: iFVG retest confirmations.
Settings Description
• Show Last (1–100, default: 5): Number of recent iFVGs to display. Lower values reduce clutter.
• Show only 1st presented FVG : Limits FVGs to the first in 9:30–10:00 AM or 1:30–2:00 PM EST sessions (overrides time window checkboxes).
• Time Window Checkboxes: Enable/disable FVG detection in 10-minute windows (:00–:10, :10–:20, etc.). All enabled by default.
• Signal Preference: “Close” (default) or “Wick” for iFVG retest signals.
• Use ATR Filter: Enables ATR-based size filtering (default: true).
• ATR Multiplier (0–∞, default: 0.25): Sets FVG size threshold (higher values = larger gaps).
• Remove Mitigated FVGs: Removes filled FVGs/iFVGs (default: true).
• Show FVG Labels: Displays “Bull FVG”/“Bear FVG” labels (default: true).
• Timezone Offset (-12 to 12, default: -5): Aligns time windows with EST.
• Colors: Customize bullish (green), bearish (red), and midline (gray) colors.
Why Use This Indicator?
This indicator empowers ICT traders with a tool that goes beyond generic FVG detection, offering precise, time-filtered gaps and inversion tracking aligned with institutional trading principles. By focusing on ICT’s macro timeframes, session-specific imbalances, and customizable signal logic, it provides a clear edge for scalping, swing trading, or reversal setups in high-liquidity markets.
Wskaźnik

Wskaźnik

Strategia
