FVG CrossfireGENERAL OVERVIEW:
FVG Crossfire identifies and plots the exact price bands where a bullish and a bearish imbalance have overlapped. These overlap bands, called crossfire zones, are the only objects the indicator draws. Ordinary Fair Value Gaps are tracked in the background as inputs, but a standalone gap is never rendered on the chart; a zone is created only when a fresh FVG overlaps an older, still-unfilled FVG of the opposite direction. From that point the zone remains on the chart, reversing direction each time an opposing FVG overlaps it, recording each transition with a star counter, marking every retest with an arrow, and being removed only when price trades fully through it.
What is the theory behind the indicator?
A Fair Value Gap records a price imbalance: price moved quickly enough that a gap was left between the wicks of the surrounding candles. The problem is that FVGs are common. On a fast chart dozens print every session, most of them noise, and drawing them all obscures the few levels that actually matter.
FVG Crossfire is built on a stricter criterion: the event worth displaying is the overlap. When a new imbalance prints in the opposite direction directly on top of an older, still-unfilled one, that price band is no longer one-sided; buyers have left an imbalance there, and now sellers have as well (or the reverse). That overlap marks a contested level, one the market has already reacted to from both directions.
The sequence often continues. Each additional opposing FVG flips the zone again, and because a flip keeps only the portion of the zone where the imbalances actually overlap, the contested band becomes tighter and more precise with each transition. What remains is a narrow, repeatedly tested level with a visible history, which is among the strongest forms of support or resistance an imbalance structure can produce.
The FVG Crossfire indicator includes 5 main features:
FVG CROSSFIRE FEATURES
Crossfire Zone Detection
Zone Flipping & Flip Counter
Retest Detection
Zone Mitigation
Alerts
CROSSFIRE ZONE DETECTION:
🔹What Is a Crossfire Zone?
A crossfire zone is the price band shared by two opposite imbalances: an older, still-unfilled Fair Value Gap and a newly formed FVG in the opposite direction that printed on top of it. The zone covers only the overlap, and it takes the direction and color of the newer FVG, the most recent side to print. An optional "origin funnel" draws converging lines from the older gap into the zone, so the source of the overlap remains visible.
🔹What Is a Fair Value Gap?
For background: an FVG is a three-candle pattern where the middle candle moves so strongly that a gap is left between the first candle and the third: the low of candle three above the high of candle one (bullish), or the high of candle three below the low of candle one (bearish). In this indicator FVGs are inputs, not output: they are detected and tracked entirely in the background, and one that never overlaps an opposite gap is discarded without ever being drawn.
🔹Why Are Crossfire Zones Important?
A single gap indicates one-sided aggression at a price. A crossfire zone indicates that both sides were aggressive at the same prices and disagreed. These contested bands tend to attract price repeatedly, which makes them stronger candidates for support, resistance, and reaction trades than any single gap. And because only overlaps are drawn, every object on the chart is already a filtered, higher-significance level.
🔹How Crossfire Zones Are Detected:
Every candle close, the engine scans the last three candles for a new FVG (gaps smaller than your minimum size are skipped, and candles around daily or weekly session breaks are excluded so overnight gaps don't create false patterns). Each stored gap is also tracked as later candles fill it (by wick or by close, depending on the setting), and a fully filled gap is dropped from the pool. When a fresh FVG confirms, it is compared against every waiting opposite gap: wherever it overlaps the unfilled part of one, a crossfire zone is created on the overlap and the origin funnel appears. Every FVG participates exactly once; after creating (or flipping) a zone it is consumed, so one price move never produces duplicate zones. Live zones extend to the right edge of the chart, and an optional "Combine" mode merges same-direction zones that overlap in price into one bigger zone.
🔹Settings: Base FVG Group (the detection engine)
Base FVG mitigation: whether wicks or only candle closes fill a waiting gap before it can participate in an overlap.
Min FVG gap (% of price): ignore gaps below this size; 0 keeps every gap.
Show origin funnel: draw the converging lines from the source gap into its zone.
Border, Style, Colors: visual control of the funnel; color transparency sets the fill strength.
🔹Settings: Crossfire Zone Group
Lookback (candles): zones are only built inside the most recent N candles (default 3000); every zone created in the window is shown.
Border, Style, Midline: outline and optional equilibrium line for each zone.
Bullish / Bearish colors: transparency sets the zone fill strength.
Combine overlapping zones: merge same-color zones that overlap in price.
ZONE FLIPPING & FLIP COUNTER:
🔹What Is a Zone Flip?
If a live crossfire zone is overlapped by another FVG in the opposite direction, the zone flips: the current box is frozen in place and a new, opposite-colored box continues from that point. Read left to right, a flipped zone forms a timeline of directional control over that price band.
🔹Why Do Flips Matter?
Every flip is another change of direction at the same level, evidence that the market continues to react to that price. And because each flip keeps only the part of the zone that the new FVG actually overlapped, the contested band tightens with every flip. A zone that has flipped three times is a narrow, precise, repeatedly contested level, exactly the kind of area worth planning trades around.
🔹How the Flip Counter Works:
Each live zone shows a star counter on its edge at the latest candle: green stars touching the bottom edge of bullish zones, red stars touching the top edge of bearish zones. One star means the zone has formed once, two stars means one flip, and so on; zones with five or more entries display a compact count instead (for example "6 ★"). There is no limit on flips; the chain only ends when the zone is fully mitigated.
RETEST DETECTION:
🔹What Is a Retest?
A retest is price leaving a live crossfire zone and then coming back to touch it again. The indicator marks every single retest: a small green ▲ below the candle that re-entered a bullish zone, a small red ▼ above the candle that re-entered a bearish zone.
🔹Why Are Retests Important?
The retest is usually the tradeable moment. A contested zone holding on a return visit is the confirmation many traders wait for before entering, and repeated successful retests indicate the level continues to hold.
🔹How Retests Are Detected:
On every candle close, the indicator checks whether the candle touched the zone (any wick contact counts) while the previous candle did not. Each fresh re-entry counts; price must leave the zone before the next retest can register, so a candle sitting inside the zone for several bars only counts once. Every retest can also fire an alert.
🔹Settings:
Retest markers: show or hide the ▲/▼ arrows.
ZONE MITIGATION:
🔹What Is Zone Mitigation?
A crossfire zone is complete (fully mitigated) when price trades all the way through it: through the bottom of a bullish zone, or through the top of a bearish zone. At that point the zone and its whole flip history are removed from the chart, or kept and faded out if you prefer to study them.
🔹Why Does Mitigation Matter?
A zone that price has completely passed through has served its purpose: the imbalance on both sides is resolved. Removing finished zones keeps the chart focused on levels that still matter, while the optional faded view lets you review how past zones resolved.
🔹How Mitigation Is Detected:
You choose what counts as trading through the far side: any wick, or only a candle close. Until that happens, the zone stays live no matter how many times it flips or gets retested.
🔹Settings:
Zone mitigation: Wick or Close.
Show mitigated zones: keep finished chains on the chart, frozen and dimmed.
ALERTS:
FVG Crossfire covers the full life of a zone with four alert events, each with its own on/off switch. Create one alert on the indicator using "Any alert() function call" and every enabled event will come through with the symbol and timeframe in the message:
New crossfire zone: two opposite FVGs overlapped and a new zone was created.
Zone flipped: a live zone changed direction (bullish ↔ bearish).
Zone retested: price re-entered a live zone after being outside it (fires on every re-entry).
Zone mitigated: a zone was fully traded through and completed.
IMPORTANT NOTES:
Plain FVGs are never drawn. Gaps are tracked in the background, and a gap only becomes visible, through its origin funnel, at the moment it produces a crossfire zone. Every object drawn on the chart is already an overlap.
All detections are evaluated on candle close. Zones, flips, retests, and mitigations are confirmed events; they do not repaint.
Background gaps are filled on a three-candle delay. This is deliberate: the same impulsive move that creates the new FVG is often the move that fills the old one, and without the delay the overlap could never be detected.
Each FVG participates exactly once. After creating or flipping a zone it is consumed, so one price move never produces duplicate zones.
A flip requires the new FVG to overlap the currently visible zone, and the flipped zone keeps only the overlapping part; zones tighten as they flip.
A retest requires price to leave the zone first. Consecutive candles inside the zone count as one visit.
Candles around daily and weekly session breaks are excluded from gap detection so overnight gaps don't create false patterns.
Internal drawing limits keep the script within PulseWire's object budget; on extremely gap-dense charts the oldest zones are released first.
UNIQUENESS:
Most FVG tools draw every gap and leave the trader to determine which ones matter; inversion (IFVG) tools go one step further and record a single change of direction. FVG Crossfire does not draw ordinary gaps at all. It uses them purely as inputs and puts only one thing on the chart: the price bands where opposite imbalances have overlapped, and it then tracks the full lifecycle of each contested level. Zones flip an unlimited number of times, each previous state freezes into a left-to-right timeline, the band tightens to the true overlap on every flip, a star counter records the number of transitions, every individual re-entry is flagged with a retest arrow and alert, and the level is only removed when price fully trades through it. The result is not another gap plotter: it is a filtered map of where opposing imbalances keep forming at the same prices, how many transitions each level has recorded, and exactly how tight the contested band has become.
Indicator

Year of Jubilee - Chart SetupA free, visuals-only indicator built for gold (XAUUSD) day trading, though it works on any symbol.
This does not generate entries, alerts, or trade signals. It exists so every trader's chart shows the same reference points: trend direction, fair value gaps, supply and demand, market structure, and the New York opening range.
What it draws:
- Fast/slow EMA trend lines with a trend cloud between them
- Fair Value Gap zones (bullish and bearish)
- Supply and demand zones based on swing structure
- Market structure breaks (BOS) and structure reversals (MSB), with HH/HL/LH/LL swing labels
- 9:30-9:45 AM ET Opening Range box
- Adjustable AM session background highlight
- All times run on ET (New York) regardless of your chart's timezone
Every element has its own on/off toggle and color settings, so you can turn off what you don't need. Built for beginners who want a clean, consistent chart before they start reading price action on their own.
No repainting logic, no hidden signals, no proprietary strategy. What you see is what it does. Indicator

CandelaCharts - MTF FVG Alignment📝 Overview
The CandelaCharts - MTF FVG Alignment indicator detects Fair Value Gaps (FVGs) across up to four customizable timeframes and visualises them directly on the chart. A Fair Value Gap is a three-candle pattern where price moved so rapidly that an unfilled area remains between the high of the first candle and the low of the third candle, representing a price imbalance the market often returns to fill.
The core strength of this indicator is Confluence . An alignment signal is generated only when every enabled timeframe shows FVGs in the same direction (all Bullish or all Bearish), giving traders a powerful multi-timeframe confirmation before taking a position.
📦 Features
Four-Timeframe Analysis : Track up to four independent timeframes simultaneously with per-TF toggle and FVG count.
Confluence Alignment : Automatic detection of Bullish or Bearish alignment across all enabled timeframes.
Bias Filter : Filter displayed FVGs to show only Bullish, only Bearish, or both (Neutral).
FVG Mitigation : FVGs are automatically invalidated and removed from the chart once they are fully filled by price action.
Hide Overlapped : Clean up chart clutter by automatically hiding lower-timeframe or older FVGs that overlap with others.
Fibonacci Levels : Optional Fibonacci retracement levels (0.236, 0.382, 0.5, 0.618, 0.65, 0.705, 0.786) drawn inside each FVG with a highlighted Golden Pocket zone (0.705–0.786).
FVG Visuals : Semi-transparent boxes showing active FVGs for each timeframe, with configurable borders and midlines.
Status Dashboard : A clean table showing the current directional status (Bullish / Bearish / None) for each enabled timeframe.
⚙️ Settings
Timeframes
TF 1–4: Each timeframe row has a toggle (show/hide), a timeframe selector, and an FVG count (1–10) controlling how many recent FVGs are displayed for that timeframe. Defaults are 1D, 4H, 1H, and 15m.
Settings
Bias Filter: Filter displayed FVGs by direction — Neutral (show all), Bullish (show only bullish FVGs), or Bearish (show only bearish FVGs).
Bull / Bear Colors: Customise the colours used for bullish and bearish FVG zones.
Border: Toggle the FVG box border and configure its style (Solid, Dotted, Dashed) and width (1–5).
Midline: Toggle the Consequent Encroachment midline inside each FVG and configure its style and width. When enabled, the timeframe label moves outside the box.
Fibonacci: Toggle the drawing of Fibonacci retracement levels inside each FVG, including the highlighted Golden Pocket (0.705–0.786).
Hide Overlapped: Toggle whether to hide overlapping FVGs across different timeframes to keep the chart clean (prioritising higher timeframes).
Dashboard
Show: Toggle the multi-timeframe status dashboard.
Position: Choose the dashboard corner — Top Right, Top Left, Bottom Right, or Bottom Left.
⚡️ Showcase
Multi-Timeframe FVG Boxes
Fibonacci Levels & Golden Pocket
Status Dashboard
🔎 Usage
Trend Identification : Glance at the dashboard to see the current bias of each higher timeframe at a glance.
Confluence : When all enabled timeframes align in the same direction, it provides strong multi-timeframe confluence for a directional trade.
Fibonacci Entries : Use the Fibonacci levels inside each FVG — particularly the Golden Pocket (0.705–0.786) — for precise entries when price retraces into the gap.
Bias Filtering : Set the Bias Filter to Bullish or Bearish to remove counter-trend FVGs and keep the chart focused on your directional thesis.
Execution : Use the alignment as confirmation for your existing strategy. Bullish alignment suggests upward momentum; Bearish alignment suggests downward momentum.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
Indicator

FxNeel Institutional Swing & FVG MatrixDeveloped under the FxNeel, this open-source Pine Script v6 indicator is designed for professional traders utilizing advanced market structure frameworks and institutional volume tracking. The script focuses on identifying clear structural key points while maintaining chart cleanliness through intelligent filtering.
Key Features:
Four-Way Independent Swing Structure: It dynamically tracks Short-Term Highs (STH), Short-Term Lows (STL), Intermediate-Term Highs (ITH), and Intermediate-Term Lows (ITL).
Automatic Overlap Filter: To ensure chart clarity and prevent clutter, the indicator automatically removes minor STH/STL lines and labels once a major institutional pivot (ITH/ITL) is fully confirmed.
Dynamic Fair Value Gap (FVG) Engine: It tracks dynamic market imbalances (Bullish/Bearish FVGs) with real-time, state-based mitigation logic, modifying or removing zones as price action tests the gaps.
Granular UI Customization: Features a fully structured settings panel where visibility, line styles, text colors, and exact 4-way label alignments (Vertical and Horizontal) can be customized independently for each swing type. Indicator

Smart Money Concepts - Regime-Adaptive SMC [Dots3Red]█ SMART MONEY CONCEPTS — REGIME-ADAPTIVE SMC
This indicator attempts to bridge a gap that most SMC traders encounter in practice: the same pattern — an Order Block, a Fair Value Gap, a structure break — behaves differently depending on whether the market is trending or ranging. A bullish Order Block in a trending market is a continuation entry zone. The same pattern near the top of a range is a reversal signal. This script uses a built-in regime classifier to determine the current market character on every bar, then filters and interprets each SMC concept accordingly.
█ HOW THE REGIME CLASSIFIER WORKS
Three measurements are combined into a single trend score on every bar:
ADX (Average Directional Index) measures how strongly price is committed to a direction. It is normalized from its natural 0–60 range to a 0–1 scale by dividing by 60.
Choppiness Index measures directional efficiency — how much of price movement was "wasted" going sideways versus producing net progress. It is inverted so that high choppiness produces a low score. Near 38 (the Fibonacci trend boundary) the normalized value approaches 1.0. Near 100 (pure chop) it approaches 0.0.
The two values are averaged:
trend_score = (adx_normalized + choppiness_inverted_normalized) / 2
A score above 0.6 identifies a trending market. A score below 0.6 identifies a ranging market.
Volatility override: a separate check compares current ATR against its 50-bar SMA. If the ratio exceeds 1.5× the baseline, the regime switches to VOLATILE regardless of the trend score — because during genuine volatility expansion, both trend and reversal signals become unreliable.
Finally, a mode filter examines the last 6 raw regime values and returns the most frequent one. This prevents the regime from flickering on borderline readings.
█ WHAT EACH REGIME SHOWS
TRENDING (cyan bars): Market is moving directionally. Shows BOS labels confirming continuation, Order Blocks created at displacement-qualified BOS bars as continuation entry zones, and Fair Value Gaps as pullback targets in the trend direction. CHoCH signals are hidden — in a trend, CHoCH is usually a deep pullback, not a reversal.
RANGING (magenta bars): Market is oscillating between levels. Shows CHoCH labels flagging potential reversals at range extremes, Order Blocks at CHoCH bars as reversal entry zones, and Fair Value Gaps near range boundaries. BOS signals are hidden — a structure break in a ranging market is usually a liquidity sweep, not a genuine breakout.
VOLATILE (amber bars): ATR has expanded significantly above its baseline — earnings, macro events, sudden liquidations. Order Blocks and FVGs are suppressed because zones created during volatility spikes are historically unreliable. Structure labels (BOS) remain visible for position tracking only.
UNCERTAIN (slate bars): The classifier cannot confidently assign a regime. All signals are displayed so the trader has maximum information. This state occurs during the warmup period and at genuine transition boundaries.
█ ORDER BLOCK DETECTION
Order Blocks require an additional displacement filter before they are created. The body of the candle immediately before the BOS or CHoCH must exceed 0.8× ATR in absolute size. This ensures only candles with institutional-grade momentum qualify — eliminating the low-quality OBs that make most SMC scripts visually cluttered.
Mitigation uses standard ICT methodology: a bullish OB is consumed when price's low touches the top of the zone. A bearish OB is consumed when price's high touches the bottom of the zone. Consumed zones fade visually and stop extending.
█ FAIR VALUE GAP DETECTION
A bullish FVG exists when the high of candle is below the low of candle — a genuine three-candle imbalance where price moved too fast to fill. A minimum size filter of 0.15× ATR removes noise gaps. FVGs extend forward until price enters the gap, at which point they fade and stop tracking.
█ PREMIUM / DISCOUNT ZONES
Two horizontal lines divide the current 25-bar swing range:
• 75% level (red): price is in the upper quartile of the recent range — statistically expensive. In ranging markets this is a sell consideration zone.
• 25% level (green): price is in the lower quartile — statistically cheap. In ranging markets this is a buy consideration zone.
The HUD displays the current percentage position within the range in real time.
█ SMC BIAS MATRIX
The HUD includes a composite directional score built from three components:
• Structural trend (35 points): which direction is the structural_trend state machine currently pointing
• Premium / Discount position (30 points): which side of the range is price on
• Regime alignment (35 points): does the regime confirm the directional bias
In VOLATILE and UNCERTAIN regimes the bias is forced to 50% and displays "STAND ASIDE" or "WAIT FOR REGIME" — because the script suppresses OB and FVG signals in those states, showing a directional bias would contradict its own logic.
█ WHAT YOU SEE ON THE CHART
• Bar colors: every bar is tinted by the current regime — cyan (trending), magenta (ranging), amber (volatile), slate (uncertain). No labels or background fills — just the candles themselves change color, keeping the chart clean.
• BOS / CHoCH labels: small labels appear above swing highs (bullish breaks) or below swing lows (bearish breaks), offset by 1.5× ATR so they never overlap candle bodies.
• Order Block boxes: semi-transparent boxes that extend bar by bar until mitigated, then fade. Maximum 4 per direction.
• FVG boxes: thin semi-transparent boxes extending until filled, then fading. Minimum size filtered.
• Premium/Discount lines: two step-lines showing the 75% and 25% boundaries of the current swing range.
• HUD: regime state, confidence bar, bias matrix, P/D zone, ADX, Choppiness Index, ATR ratio, and live counts of active OBs and FVGs.
█ ALERTS
Seven alert conditions are available: Bull BOS, Bear BOS, Bull CHoCH, Bear CHoCH, Regime → Trending, Regime → Ranging, Regime → Volatile.
█ NOTES ON SETTINGS
• Regime Smoothing Filter: 5–7 for intraday charts, 8–12 for daily/weekly. Lower values react faster but produce more regime transitions.
• Volatile ATR Mult: 1.8–2.0 for stock indices (earnings create genuine 2× spikes), 1.4–1.6 for crypto and forex.
• OB Displacement Mult: 0.5–0.8 for daily charts where candles are naturally larger, 1.0–1.5 for intraday.
• Swing Pivot Length: 5–7 for intraday, 7–10 for daily/weekly.
█ DISCLAIMER
This indicator is a technical analysis tool. It does not constitute financial advice and does not guarantee future results. Past patterns do not predict future price behavior. Use appropriate risk management on all trades. Indicator

Smart Gap & Support and Resistance Breakout [MarkitTick]💡 This technical analysis script provides a highly sophisticated framework for market structure mapping, gap categorization, and breakout validation. By tracking structural pivot points and combining them with algorithmic gap analysis, the indicator systematically identifies areas of significant price imbalance and evaluates their impact on subsequent price action. The tool dynamically maps historical and developing support and resistance levels across multiple timeframes, integrating volume analysis and time-decay functions to ensure only the most relevant structural levels remain active. Designed for robust technical evaluation, it utilizes a strict non-repainting architecture for its multi-timeframe data retrieval, ensuring historical integrity during retrospective analysis.
✨ Originality and Utility
While many indicators plot basic support and resistance levels or highlight price gaps, this tool introduces a high degree of originality through its algorithmic synthesis and mashup methodology. The combination of structural pivot tracking and gap categorization is a deliberate and logical confluence. Gaps inherently represent sudden shifts in supply and demand, frequently acting as hidden support or resistance zones. By merging gap analysis with traditional pivot-based market structure, the script provides a unified view of market geometry.
Furthermore, the script distinguishes itself by categorizing gaps dynamically into three distinct types: Breakaway, Runaway, and Exhaustion. Rather than treating all price voids equally, it applies contextual logic—such as trend maturity and volume confirmation—to evaluate the probabilistic nature of the gap. The utility is further enhanced by an advanced multi-timeframe engine that overlays macro structural levels onto the active chart without introducing lookahead bias, providing traders with a pristine, top-down analytical perspective within a single pane.
🔬 Methodology and Concepts
● Structural Pivot Detection
The foundation of the script relies on identifying Swing Highs and Swing Lows.
A Pivot High is established when a specific high price is preceded and followed by a defined number of lower highs.
A Pivot Low is established when a specific low price is preceded and followed by a defined number of higher lows.
These points act as the empirical anchors for drawing support and resistance lines.
● Gap Categorization Engine
The script continuously scans for bullish and bearish price gaps (defined as a strict price void between the current low/high and the high/low of two bars prior, combined with directional candle confirmation). Once a gap exceeds the minimum size threshold, it is classified using the following methodology:
Breakaway Gaps (BW): Identified if the gap's occurrence coincides with the breaking of the most recently established structural pivot level. This signifies a forceful escape from a prior consolidation or trend phase.
Exhaustion Gaps (EX): Identified if the gap occurs after a prolonged trend duration (trend maturity) and is accompanied by a significant volume spike. This logic assumes that late-stage acceleration coupled with extreme volume often represents climatic buying or selling.
Runaway Gaps (RW): Any valid gap that does not meet the strict criteria for Breakaway or Exhaustion is classified as Runaway, representing standard trend continuation.
● Non-Repainting Multi-Timeframe Integration
To map higher timeframe (HTF) levels onto the lower timeframe (LTF) chart safely, the script employs a strict index-offset methodology. When fetching HTF pivot data, the script references the previous bar's calculated state while utilizing a lookahead parameter. This architectural design explicitly prevents future data leakage (lookahead bias), ensuring that historical backtesting and real-time execution behave identically.
● Breakout and Time-Decay Logic
Support and resistance lines are evaluated for breakouts based on closing prices. A breakout is only considered valid if the closing price decisively crosses the level and, if volume confirmation is enabled, the breakout bar's volume exceeds the defined moving average threshold. To maintain a clean visual workspace, levels can be subjected to a time-decay function, removing them from the chart after a user-defined number of bars.
🎨 Visual Guide
● Support and Resistance Lines
Green Lines: Represent active support levels derived from current timeframe pivot lows.
Red Lines: Represent active resistance levels derived from current timeframe pivot highs.
Thick Light Blue Lines: Highlight major support levels from the higher timeframe.
Thick Orange Lines: Highlight major resistance levels from the higher timeframe.
● Market Structure Labels
Red "HH" / "LH" Labels: Denote Higher Highs or Lower Highs at resistance pivots.
Blue/Green "LL" / "HL" Labels: Denote Lower Lows or Higher Lows at support pivots.
Purple "EH" / "EL" Labels: Indicate Equal Highs or Equal Lows.
● Gap Visualization Boxes
Blue Boxes: Highlight Breakaway Gaps (BW).
Orange Boxes: Highlight Runaway Gaps (RW).
Red Boxes: Highlight Exhaustion Gaps (EX).
Dotted Mid-Lines: Each gap box contains a dotted line calculating the exact mathematical midpoint of the gap, often acting as a highly reactive micro-level.
● Breakout Markers
Green Upward Triangles (▲): Plotted below the price to indicate a confirmed breakout of a resistance level. The number indicates how many distinct resistance levels were broken on that bar.
Red Downward Triangles (▼): Plotted above the price to indicate a confirmed breakdown of a support level.
Cyan/Orange Triangles: Represent breakouts of higher timeframe (HTF) levels.
📖 How to Use
● Interpreting Gap Signals
Breakaway Gaps: When a blue Breakaway gap forms, it suggests the initiation of a new directional phase. Traders typically monitor the borders of this gap to act as strong support or resistance upon any subsequent retests.
Runaway Gaps: The appearance of an orange Runaway gap confirms underlying trend strength. The midpoint of these gaps (the dotted line) is often used to gauge short-term trend health.
Exhaustion Gaps: A red Exhaustion gap serves as a cautionary signal. Because it indicates mature trend fatigue coupled with high volume, it suggests that the current directional momentum may be nearing a terminal phase or sharp retracement.
● Trading Support and Resistance Breakouts
Structural Mapping: Use the dynamically drawn S/R lines to identify the boundaries of the current market range.
Volume Confirmation: When the indicator plots a breakout triangle, ensure that it aligns with your broader directional bias. If the volume confirmation setting is active, the triangle inherently signifies that the breakout possessed above-average participation, increasing the mathematical probability of continuation.
Multi-Timeframe Confluence: Pay special attention when current timeframe price action interacts with the thicker HTF lines. A breakout that fractures both a LTF and HTF resistance level simultaneously carries significantly more structural weight.
⚙️ Inputs and Settings
● Swing Logic
Left Bars / Right Bars: Determines the number of bars required on either side of a candle to confirm a structural pivot. Higher values yield longer-term, more significant levels.
Max Stored Levels: Controls how many historical S/R lines remain active on the chart to prevent visual clutter.
Max Break Labels: Limits the number of historical breakout triangle markers displayed.
● Usability and Time Decay
Multi-Timeframe: Allows overriding the base timeframe for calculations.
Enable Time Decay: When activated, S/R levels that remain untested or unbroken will automatically expire and be removed from the chart.
Decay Period (Bars): The specific threshold of bars after which an untested level is deleted.
● Higher Timeframe (HTF) Levels
Enable HTF Levels: Toggles the calculation and plotting of macro S/R lines.
HTF Timeframe: The target timeframe for macro structural analysis (e.g., Daily, Weekly).
Hide Current TF When HTF Active: A visual filter to isolate only macro levels when desired.
● Algorithmic Filters and Analysis
Volume Confirmation: When true, breakouts are only validated if the bar's volume exceeds a moving average.
Min Gap Size (Points): Establishes a raw point threshold that a price void must exceed to be classified as a gap, filtering out negligible price skips.
Volume Spike Multiplier: The factor by which current volume must exceed the average to trigger Exhaustion gap logic.
Trend Maturity (Bars): The minimum number of bars a trend must have persisted from the last major pivot to allow for an Exhaustion gap classification.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Auction Market Theory and Liquidity Voids
The gap categorization matrix within this script is deeply rooted in Auction Market Theory (AMT). In AMT, price discovery is a continuous auction searching for liquidity. A gap represents a structural liquidity void—a pricing zone where no double-sided auction occurred due to extreme urgency from either buyers or sellers. The script's identification of Breakaway gaps mathematically isolates moments where this urgency successfully overcomes historical supply or demand nodes (the pivots). The dotted midpoint lines inside the gap boxes serve as theoretical "Fair Value" approximations for the void, representing the mean reversion target if the market attempts to repair the inefficient auction.
● Volume Spread Analysis (VSA) Integration
The Exhaustion gap classification heavily relies on principles derived from Volume Spread Analysis. In VSA, volume represents the effort of market participants, while price spread represents the result. The script mathematically quantifies an anomaly: when an extended trend (measured by the Trend Maturity parameter) produces a sudden gap on extreme volume (measured by the Volume Spike Multiplier), it implies climactic transfer of inventory from strong hands to weak hands. The algorithmic detection of these specific variables provides a quantifiable method for identifying trend exhaustion without relying on lagging, bounded oscillators.
● Fractal Market Geometry
By rendering both LTF and HTF structural pivots within the same visual plane, the script operationalizes the concept of fractal market geometry. Financial time series exhibit self-similarity across different scales. A pivot high on a 15-minute chart is formed by the same behavioral mechanics as a pivot high on a Daily chart, but they carry vastly different liquidity weights. The script's strict index-offset MTF architecture ensures that the geometric relationship between these distinct fractal layers is evaluated with absolute temporal accuracy, providing a mathematically sound representation of macro supply and demand overlaying micro price action.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Fair Value Gap Fill Probability [PickMyTrade]Fair Value Gap Fill Probability applies a Gaussian Naive Bayes classifier — trained entirely within Pine Script® v6 — to every Fair Value Gap it detects, in order to estimate the posterior probability that each gap will be filled before it expires. Instead of treating all FVGs as equal, it asks a different question: given this gap's order-flow signature, geometry, and the time price has already spent nearby, how likely is it to actually fill?
――――――――――――――――――――――――――――――――――――――
🔷 WHAT IT MEASURES
🔸 Fair Value Gaps
A Fair Value Gap is the three-candle imbalance where an impulsive move leaves a price range untraded. A bullish FVG forms when the high of two bars ago sits below the current low; a bearish FVG forms when the low of two bars ago sits above the current high. Each gap is detected only on confirmed bar closes and is filtered by a minimum size relative to ATR, so noise gaps are ignored.
🔸 Three classifier features
When a gap forms, the classifier records three z-score normalised features that describe its context:
F1 — CVD Momentum : the rate of change of Cumulative Volume Delta at the moment the gap is created, normalised by its rolling mean and standard deviation. This encodes whether aggressive order flow was accelerating or fading as the imbalance formed.
F2 — Gap Geometry : the size of the gap expressed as a multiple of ATR. Larger relative gaps behave differently from small ones, and this feature lets the model separate the two.
F3 — Time-at-Price : the fraction of recent bars whose close fell inside the gap's price band. A zone the market has already revisited carries different fill odds than fresh, untested space.
🔸 Fill vs no-fill outcomes
Every gap is followed until one of two things happens: price trades to the gap's midpoint (a fill ), or the gap survives past the expiry window untouched (a no-fill ). Each resolved gap becomes a labelled training example, so the model learns continuously from the chart's own history.
――――――――――――――――――――――――――――――――――――――
🔷 THE CLASSIFIER
🔸 Welford online learning
Rather than storing arrays of past gaps, the classifier keeps running sufficient statistics — count, mean and variance — for each (feature × outcome) pair using Welford's numerically stable online update. Parameters shift gradually as market conditions change, with no fixed lookback buffer.
🔸 Gaussian likelihood + Bayesian posterior
Each feature is modelled as a Gaussian distribution under both the fill and no-fill classes. The three per-feature likelihoods are multiplied under the Naive Bayes independence assumption, combined with an empirically updated class prior, and normalised via Bayes' theorem to produce P(fill | F1, F2, F3) for the live gap. A warmup gate suppresses probabilities until enough fill and no-fill samples have accumulated, at which point the info table switches to LIVE.
――――――――――――――――――――――――――――――――――――――
🔷 SIGNALS AND DISPLAY
🔸 Probability-shaded zones
Each active FVG is drawn as a translucent zone with a crisp coloured border — blue for bullish, orange for bearish. The fill intensity scales with the posterior across three tiers, so a high-conviction gap reads instantly against a faint, low-probability one. Filled gaps turn grey so mitigation is obvious.
🔸 Live probability labels
Every open gap carries a running " X% fill " label that updates each bar as the classifier re-evaluates it. When a gap clears the high-probability threshold, a bold callout (" Bullish FVG · 81% fill prob ") marks it directly on the chart.
🔸 Info table
The corner table reports the live state — fill samples, no-fill samples, active gaps, CVD flow direction, and a LIVE / WARMUP status flag so you always know whether the model has enough data to be trusted.
――――――――――――――――――――――――――――――――――――――
🔷 INPUTS
ATR Period — basis for the minimum gap-size filter.
Min Gap Size (ATR ×) — gaps smaller than this multiple of ATR are ignored.
Max Active FVGs — cap on simultaneously tracked gaps.
Expire after N bars — unfilled gaps retire as no-fill samples after this many bars.
CVD Momentum Period — lookback for feature F1.
Z-Score Window — normalisation window for all three features.
Warmup Samples Per Class — minimum fill and no-fill samples before probabilities display.
High-Prob Threshold — posterior level that marks a gap as high-conviction.
――――――――――――――――――――――――――――――――――――――
🔷 REQUIREMENTS AND LIMITATIONS
The classifier requires a warmup period before probabilities are valid; on instruments with little history the table will read WARMUP until enough gaps have resolved. The CVD estimator is synthetic — derived from intrabar price position, not true bid/ask data — and is noisier on illiquid symbols. Because all three features are CVD- and geometry-derived, the Naive Bayes independence assumption is only approximately satisfied, so the posteriors are best read as relative confidence scores rather than calibrated frequentist probabilities. Fill rates are also regime- and timeframe-dependent and are historically associated with, not predictive of, future behaviour.
――――――――――――――――――――――――――――――――――――――
Built natively in Pine Script® v6. No external libraries, no data feeds, no fixed lookback arrays. The Gaussian Naive Bayes classifier trains continuously from the chart's own gap history using Welford's online algorithm. Open source — Mozilla Public License 2.0. Indicator

SMC Pro BTC - ICT Order Blocks & FVG [DOE]SMC Pro BTC - ICT Order Blocks & FVG
A multi-timeframe Smart Money Concepts engine built exclusively for Bitcoin. This indicator combines order blocks, fair value gaps, liquidity sweeps, break of structure, and premium/discount zone analysis into one backtest-verified, non-repainting strategy.
Every signal you see in history is exactly what you would have seen live. No repainting. No lookahead. No curve-fitting.
Built by a former quantitative analyst from a US-based systematic fund. The structural logic behind this indicator is the same order flow mechanics that institutional algorithms use to identify and exploit liquidity imbalances — adapted for retail traders on PulseWire.
TWO STRATEGY MODES
The indicator offers two execution modes on the same structural foundation. Both include commissions (0.075% per trade) and slippage (3 ticks) in all backtested results.
AGGRESSIVE MODE — More trades, more exposure
Entries fire on any valid BOS or CHoCH confirmed by an order block and fair value gap on the confirmation timeframe. Accepts a lower win rate in exchange for capturing a larger portion of trending moves.
Metric Value
Period Jan 2021 — Feb 2026 (5 years)
Total Trades 90
Win Rate 45.56%
Net P&L +14.36%
Profit Factor 1.95
Max Drawdown 1.36%
90 trades across 5 full years — including the 2022 bear market. A profit factor of 1.95 means that for every dollar lost, the system recovered nearly two. The 45% win rate works because winning trades are structurally larger than losers. This is positive expectancy executed over a statistically meaningful sample.
SELECTIVE MODE — Fewer trades, higher precision
Adds a premium/discount zone filter. Longs only in the discount zone of the HTF dealing range. Shorts only in the premium zone. This single structural filter cuts the trade count significantly while improving signal quality.
Metric Value
Period Jan 2021 — Feb 2026 (5 years)
Total Trades 29
Win Rate 51.72%
Net P&L +1.10%
Profit Factor 1.324
Max Drawdown 1.23%
The Selective mode sacrifices P&L for risk control — the maximum drawdown over 5 years was just 1.23%. The lower trade count (29) reflects the strict filtering: every signal requires structural confluence plus optimal price positioning. This mode is designed for traders who prioritize capital preservation over returns.
Both modes are provided so you can evaluate the tradeoff between frequency and precision. There is no objectively "better" mode — only the one that matches your risk tolerance.
Note on sample size: The Aggressive mode produces 90 trades over the 5-year test period, approaching the 100-trade benchmark for statistical significance. The Selective mode produces 29 trades due to the strict confluence requirements — each trade requires alignment across 6 independent conditions (BOS, OB, FVG, liquidity sweep, premium/discount zone). We recommend supplementing the backtest with forward-testing on live data for additional confidence. The Strategy Tester is fully available for you to verify all results with your own settings.
ENTRY LOGIC — STEP BY STEP
Every signal requires alignment across structure, zone, imbalance, and liquidity. No single condition is sufficient.
LONG ENTRY SEQUENCE
Step 1 — HTF Directional Bias
The Direction Timeframe (default: 4H) detects a bullish break of structure or change of character. This establishes the higher-timeframe directional bias. Without bullish structure on the HTF, no long signal fires.
Step 2 — MTF Confirmation
The Confirmation Timeframe (default: 1H) must confirm with its own bullish BOS or CHoCH, aligning both timeframes in the same direction.
Step 3 — Order Block Identification
The script finds the last bearish candle before the impulsive bullish move — the order block where smart money accumulated positions.
Step 4 — Fair Value Gap Validation
A bullish FVG must overlap the identified order block zone. An OB alone is a level. An OB combined with an FVG is confluence.
Step 5 — Liquidity Sweep Confirmation
A recent liquidity sweep must have occurred — price dipped below a prior swing low, triggering stop-losses, before reversing.
Step 6 — Premium/Discount Zone Filter (Selective Mode Only)
Entry must occur in the discount zone of the HTF dealing range.
Step 7 — Execution
All conditions met. Signal fires. Stop-loss below the order block. Take-profit at the configured R:R distance.
SHORT ENTRY SEQUENCE
Mirrors the long with inverted conditions:
HTF bearish BOS/CHoCH
MTF bearish BOS/CHoCH confirms
Bearish order block identified
Bearish FVG overlaps the OB zone
Liquidity sweep above a prior swing high
Price in premium zone (Selective only)
SL above OB high + buffer; TP at R:R below entry
Every step is objective. No discretionary component.
FEATURES
Non-repainting, non-lookahead signals — barstate.isconfirmed enforced on all calculations
Multi-timeframe structure analysis — HTF for direction, MTF for confirmation, entry TF for execution
Order block detection with configurable lookback and automatic invalidation
Fair value gap multi-zone display — configurable by count and max distance from price
Liquidity sweep recognition with adjustable memory window
BOS and CHoCH detection on multiple timeframes
Premium/discount zone mapping with configurable threshold
Automatic SL/TP with visual trade boxes
Two strategy modes — Aggressive and Selective
Fully configurable parameters with sensible BTC 4H defaults
Built-in strategy engine — backtest directly in Strategy Tester
DEFAULT STRATEGY PROPERTIES
These are the exact settings used for the published backtest. You can verify all results by loading the indicator with default settings and opening the Strategy Tester:
Symbol: BTCUSDT (Binance)
Timeframe: 4H
Period: January 2021 — February 2026 (5+ years)
Initial Capital: $10,000
Order Size: 10% of equity per trade
Commission: 0.075% per trade (Binance taker fee)
Slippage: 3 ticks per order
Pyramiding: 0 (one position at a time)
Non-repainting: barstate.isconfirmed enforced
No lookahead bias: lookahead = barmerge.lookahead_off on all request.security() calls
No future leakage: entries execute on the bar after all conditions are confirmed
The 10% equity sizing means each trade risks a sustainable portion of the account. This is consistent with professional risk management standards where no single trade should expose more than 5-10% of capital.
SETTINGS DOCUMENTATION
Strategy Mode — Aggressive / Selective
Aggressive: BOS/CHoCH + Order Block + FVG + Liquidity Sweep. Selective adds premium/discount zone filter. New to SMC? Start with Selective.
Direction TF (HTF) — Default: 240 (4H)
Higher timeframe for directional bias. Increase to Daily for fewer, higher-conviction signals.
Confirmation TF (MTF) — Default: 60 (1H)
Mid timeframe that confirms HTF bias. Default 240/60 provides a 4:1 ratio.
Swing Length — Default: 10 | Range: 3-50
Bars used to identify swing highs/lows. Lower = more sensitive, higher = major shifts only.
OB Lookback Bars — Default: 15 | Range: 3-30
How far back to search for valid order blocks after a structural break.
Sweep Memory — Default: 20 bars | Range: 5-50
Lookback window for detecting liquidity sweeps before entries.
Risk:Reward Ratio — Default: 2.0 | Range: 1.0-5.0
TP placement relative to SL distance. Re-run backtest after changing.
SL Buffer % — Default: 0.3 | Range: 0.0-2.0
Buffer beyond OB boundary to prevent wick stop-outs.
P/D Zone Threshold — Default: 0.80 | Range: 0.50-0.85 | Selective Only
How deep into premium/discount zone for entry qualification.
Max FVGs per Side — Default: 5 | Range: 1-10
Active FVGs displayed per direction.
FVG Max Distance % — Default: 8.0 | Range: 1.0-25.0
Hides FVGs beyond this % from current price.
Show Trade Boxes — On / Off
Visual boxes showing entry, SL, and TP for each signal.
CONCEPTS EXPLAINED
Order Blocks (OB) — The last opposing candle before a significant impulsive move. Where institutional participants positioned themselves. The foundation of SMC entry models.
Fair Value Gap (FVG) — A three-candle price imbalance where the market moved too fast for orders to fill. Markets tend to return to these inefficiencies. When an FVG overlaps an OB, that is high-probability confluence.
Break of Structure (BOS) — Price moves beyond a prior swing high/low in the trend direction. Signals continuation.
Change of Character (CHoCH) — A structural break against the prevailing trend. The first objective signal of a potential reversal.
Liquidity Sweep — Price pushes beyond a key level to trigger stop-losses, then reverses. Institutional participants hunting clustered orders for liquidity.
Premium and Discount Zones — The HTF range divided by the 50% equilibrium. Premium = expensive (favor shorts). Discount = cheap (favor longs).
HOW TO USE
Add to any BTCUSDT chart (optimized for 4H Binance)
Select Aggressive or Selective mode in Settings
Green arrows = long entries, red arrows = short entries, with SL/TP lines
Enable Show Trade Boxes for visual risk/reward on every signal
Open Strategy Tester to verify all backtest results with your own settings
Adjust one setting at a time and re-run the backtest after each change
Combine with your own analysis — this is a structural tool, not a prediction engine
Manage risk — no indicator guarantees profits
CREDITS
This script builds upon concepts and structural approaches from the following open-source projects:
LuxAlgo — SMC structural detection framework
ICT Master Suite — ICT concepts implementation reference
PineScript-SMC-Strategy — SMC strategy architecture reference
Significant modifications and original work include: dual-mode strategy engine (Aggressive/Selective), multi-timeframe confluence model requiring 5-6 simultaneous conditions, FVG multi-zone display with distance filtering, integrated backtest engine with realistic position sizing, and complete strategy automation with configurable risk management.
DISCLAIMER
This indicator is published for educational and informational purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any asset. Trading Bitcoin involves substantial risk of loss. Never trade capital you cannot afford to lose. Past performance does not guarantee future results. You are solely responsible for your own trading decisions. Use at your own risk. Strategy

[TehThomas] - Aligned Timeframe Fair Value Gaps█ OVERVIEW
This indicator automatically detects and displays Fair Value Gaps (FVGs) from higher timeframes on your current chart, following ICT (Inner Circle Trader) methodology. It intelligently selects the optimal higher timeframe based on your current chart timeframe and tracks both filled and unfilled gaps with full visual customization, including dynamic shrinking gaps and midline references.
█ KEY FEATURES
✓ Automatic Timeframe Alignment
- Intelligently selects higher timeframe based on current chart (1min→15min, 5min→1H, 1H→Daily, etc.)
- Uses confirmed/closed HTF bars only for reliable gap detection
- Displays timeframe label on each FVG box for clarity
✓ Dynamic Gap Management
- Optional dynamic (shrinking) gaps that contract as price fills them partially
- Automatic removal when gaps are fully filled by price
- Tracks up to 200 historical FVGs with intelligent visibility management
✓ Advanced Display Controls
- Show only unfilled gaps (reduces chart clutter)
- Configurable box extension length into future bars
- Optional midline display with customizable style (solid/dashed/dotted)
- Fully customizable colors for bullish/bearish gaps, borders, and labels
█ HOW IT WORKS
The indicator monitors the aligned higher timeframe and detects three-candle patterns where price creates an imbalance, areas where aggressive buying or selling left gaps that were never properly filled. When a bullish FVG forms (gap between HTF bar lows and highs), it indicates rapid upward price movement that skipped price levels, creating a zone where price may return to seek "fair value". Bearish FVGs work inversely, forming during aggressive downward moves.
The indicator places boxes starting from where the gap actually formed (2 HTF bars ago) and extends them forward. As new bars form, it continuously checks if price has entered or filled each gap. In dynamic mode, gaps shrink in real-time as price partially fills them. The visibility system ensures only the most recent unfilled gaps are displayed, keeping your chart clean while maintaining historical data.
█ SETTINGS
Boxes Group:
- Extend boxes: Number of bars to project gaps into the future (default: 20)
- Min Gap Size (%): Minimum percentage size to filter small/noise gaps (default: 0%)
- Dynamic (shrinking) gaps: Enable gaps to shrink as price fills them partially
- Max Unfilled Gaps to Display: Limit visible unfilled gaps on chart (default: 10)
- Max FVGs in History: Total gaps stored in memory for tracking (50-200, affects performance)
Colors Group:
- Bullish Gap Color: Fill color for bullish FVGs
- Bearish Gap Color: Fill color for bearish FVGs
- Gap Border Color: Border color for all gap boxes
Midline Group:
- Show Midline: Display 50% level line through each gap
- Midline Color: Color of the midline
- Midline Style: Visual style (Solid/Dashed/Dotted)
Label Group:
- Show FVG Label: Display timeframe label on each gap box
- Label Text Color: Color of label text
- Label Size: Text size (Tiny/Small/Normal/Large)
█ HOW TO USE
1. Apply to any timeframe - The indicator automatically selects the appropriate higher timeframe for analysis
2. Identify imbalance zones - FVG boxes show areas where price moved too quickly, creating inefficiency that often acts as a magnet for future price action
3. Use for retracement entries - Wait for price to return to an unfilled FVG after a Break of Structure (BOS) or Market Structure Shift (MSS) for high-probability entry zones
4. Watch midlines - The 50% level of each gap often provides the strongest reaction point
5. Monitor gap filling - When gaps are filled, they signal that the imbalance has been resolved; dynamic mode shows partial fills in real-time
█ TRADING STRATEGY EXAMPLES
Trend Continuation Strategy:
After a strong bullish move creates multiple bullish FVGs, wait for price to retrace into the nearest unfilled FVG, then enter long positions expecting continuation. The FVG acts as a support zone where institutional buyers may re-enter.
Confluence Trading:
Combine FVGs with other ICT concepts like Order Blocks, liquidity grabs, or Premium/Discount zones. The strongest setups occur when an FVG aligns with multiple confluence factors, increasing probability of successful retracement entries.
Breakout Confirmation:
After a Break of Structure, look for price to return to the FVG created during the breakout candle. This retest provides a lower-risk entry point with clear invalidation levels (below/above the gap).
█ IDEAL FOR
- ICT (Inner Circle Trader) methodology practitioners
- Smart Money Concepts (SMC) traders seeking institutional footprints
- Multi-timeframe analysis traders who want higher timeframe context on lower timeframe charts
- Price action traders focusing on supply-demand imbalances
- Swing and intraday traders seeking high-probability retracement zones
- Traders who value clean, organized chart visualization with controlled gap display
█ TECHNICAL SPECIFICATIONS
- Pine Script Version: 6
- Chart Type: Overlay indicator
- Maximum Boxes: 500
- Maximum Lines: 500 (for midlines)
- Lookback Period: 2000 bars
- HTF Data: Uses confirmed/closed bars with lookahead to avoid repainting
- Memory Management: Stores up to 200 historical FVGs with intelligent visibility control
- Update Frequency: Real-time gap tracking and dynamic adjustment on every bar
█ NOTES & DISCLAIMERS
- FVGs represent areas of price imbalance, not guaranteed reversal or continuation zones
- Higher timeframe gaps may take significant time to be filled or may never fill in strong trending markets
- Dynamic gaps provide visual feedback but increase computational load; disable for better performance on slower devices
- Max history setting affects performance: higher values enable more unfilled gaps but require more processing power
- This indicator works best when combined with proper market structure analysis, liquidity concepts, and risk management
- Past performance of FVG fills does not guarantee future results
- Always use appropriate position sizing and stop losses when trading FVG retracements
Indicator

SMC Alpha Engine [PhenLabs]📊 SMC Alpha Engine
Version: PineScript™ v6
📌 Description
The SMC Alpha Engine is a comprehensive Smart Money Concepts indicator that automates institutional trading pattern recognition. Built for traders who understand that confluence is king, this indicator stacks multiple SMC elements together and scores them in real-time, allowing you to focus exclusively on high-probability setups.
Rather than manually tracking HTF bias, market structure, liquidity levels, order blocks, and fair value gaps separately, the SMC Alpha Engine consolidates everything into a unified scoring system. When enough factors align, you get a signal. When they don’t, you wait. This systematic approach removes emotion and subjectivity from SMC trading.
The indicator is designed around one core principle: only trade when the probabilities are stacked in your favor. By requiring multiple confluence factors before generating signals, it filters out the noise and keeps you focused on setups that institutional traders actually care about.
🚀 Points of Innovation
Automated confluence scoring system that evaluates 6 distinct SMC factors in real-time
HTF-to-LTF bias alignment ensuring trades flow with institutional direction
Intelligent liquidity sweep detection using wick-ratio analysis for confirmation
ATR-based FVG quality filtering that eliminates noise and shows only significant imbalances
Anti-spam signal logic preventing overtrading during volatile market conditions
Session-aware killzone integration timing entries with institutional activity windows
🔧 Core Components
HTF Bias Engine: Analyzes higher timeframe swing structure to establish directional bias using pivot high/low comparisons
Market Structure Module: Detects BOS (Break of Structure) and CHoCH (Change of Character) with real-time confirmation
Premium/Discount Calculator: Dynamically maps price zones relative to recent swing range equilibrium
Liquidity Tracker: Monitors swing points as liquidity targets and identifies sweep events with rejection confirmation
POI Detector: Identifies valid Order Blocks with displacement requirements and Fair Value Gaps with ATR filtering
Confluence Scorer: Aggregates all factors into bull/bear scores displayed on real-time dashboard
🔥 Key Features
Multi-timeframe analysis combining HTF directional bias with LTF precision entries
Customizable confluence threshold from 1 (low filter) to 5 (sniper mode)
Three killzone sessions: London (02:00-05:00), NY AM (08:30-11:00), NY PM (13:30-16:00)
Flexible mitigation options for OBs and FVGs: Wick, Close, 50%, or None
Visual structure labeling for BOS and CHoCH events on chart
Real-time info dashboard showing all current market conditions and scores
Built-in alert conditions for BOS, liquidity sweeps, and high-confluence signals
🎨 Visualization
Premium Zone: Red-tinted box above equilibrium indicating sell-side interest areas
Discount Zone: Green-tinted box below equilibrium indicating buy-side interest areas
Equilibrium Line: Dotted gray line marking the 50% level of current range
Order Blocks: Color-coded boxes (green for bullish, red for bearish) showing institutional candles
Fair Value Gaps: Teal boxes for bullish FVGs, maroon boxes for bearish FVGs
Killzone Backgrounds: Blue (London), Orange (NY AM), Purple (NY PM) session highlighting
Info Table: Top-right dashboard displaying HTF bias, LTF trend, zone, killzone status, and scores
📖 Usage Guidelines
HTF Settings
HTF Timeframe - Default: 60 - Controls higher timeframe for directional bias
HTF Swing Length - Default: 10, Range: 3+ - Determines pivot sensitivity for HTF trend
Market Structure Settings
LTF Swing Length - Default: 3, Range: 1-10 - Controls swing detection sensitivity
Show BOS/CHoCH - Default: Off - Toggles structure labels on chart
Show Strong/Weak Points - Default: Off - Displays swing point classifications
POI Settings
Show Valid Order Blocks - Default: Off - Displays OBs that caused displacement
Show Unmitigated FVGs - Default: On - Shows active fair value gaps
Filter FVG by ATR - Default: On - Only shows FVGs larger than 0.5x ATR
OB Mitigation Type - Options: Wick, Close, None - Determines when OBs are invalidated
FVG Mitigation Type - Options: Wick, Close, 50%, None - Determines when FVGs are filled
Confluence Settings
Minimum Score for Signal - Default: 4, Range: 1-5 - Required confluence level for entries
Show Entry Signals - Default: On - Toggles LONG/SHORT labels on chart
✅ Best Use Cases
Trend continuation trades during active killzone sessions with HTF alignment
Discount zone entries on bullish HTF bias with recent liquidity sweep below
Premium zone shorts on bearish HTF bias after liquidity grab above recent highs
Reversal identification following CHoCH with POI confluence in optimal zone
Filtering existing strategy signals by requiring minimum confluence score
⚠️ Limitations
HTF bias detection requires sufficient price history for accurate pivot identification
Liquidity sweep detection depends on wick-ratio settings and may miss some events
Order blocks require displacement confirmation which may exclude some valid zones
Confluence scoring is probabilistic and does not guarantee profitable outcomes
Killzone times are based on EST/EDT and require timezone adjustment for other regions
Signal spam prevention may delay valid signals by up to 10 bars after previous signal
💡 What Makes This Unique
Unified SMC Framework: Combines all major SMC concepts into one cohesive indicator rather than requiring multiple tools
Objective Scoring System: Removes subjectivity by quantifying confluence into measurable scores
Institutional Timing Integration: Built-in killzone awareness ensures signals align with high-volume sessions
Quality Filtering: ATR-based FVG filtering and displacement-required OBs eliminate low-quality setups
Anti-Overtrading Logic: Smart signal spacing prevents emotional trading during choppy conditions
🔬 How It Works
Step 1: HTF Bias Determination
Analyzes higher timeframe pivot highs and lows
Compares consecutive pivots to identify HH/HL (bullish) or LH/LL (bearish) sequences
Establishes directional filter that all signals must respect
Step 2: LTF Structure Mapping
Detects swing points on execution timeframe
Identifies BOS when price closes beyond confirmed swing level
Recognizes CHoCH when structure break occurs against current trend
Step 3: Confluence Calculation
Awards +1 for HTF bias alignment
Awards +1 for active killzone timing
Awards +1 for optimal zone positioning (discount for longs, premium for shorts)
Awards +1 for price at unmitigated POI
Awards +1 for recent liquidity sweep in trade direction
Awards +1 for recent supportive structure break
Step 4: Signal Generation
Compares total score against user-defined minimum threshold
Requires candle confirmation (bullish close for longs, bearish close for shorts)
Applies 10-bar spacing filter to prevent signal clustering
💡 Note:
This indicator is designed for traders already familiar with Smart Money Concepts. While it automates detection and scoring, understanding why each factor matters will significantly improve your ability to filter signals and manage trades effectively. Use the minimum confluence setting to match your risk tolerance, higher values mean fewer but higher-quality signals. Indicator

Indicator

Indicator

Smart Gap Concepts [MarkitTick]💡 This indicator automates the identification and classification of price gaps, commonly known as Fair Value Gaps (FVG) or Imbalances, by integrating market structure and volume analysis. Unlike standard gap detectors that simply highlight empty space on a chart, this script applies algorithmic filters to categorize gaps into three distinct phases of market movement: Breakaway, Runaway, and Exhaustion. This helps traders understand the potential context of a move rather than just seeing a support or resistance zone.
● Originality and Utility
The primary innovation of this tool is its dynamic classification system. It moves beyond visual detection by checking the "why" behind the gap. By referencing Swing Highs and Swing Lows (Market Structure) alongside Volume efficiency, it determines if a gap represents a breakout, a trend continuation, or a climatic end to a move. Additionally, the script features an automated mitigation tracking system that removes gaps from the chart once price has re-tested the midpoint, ensuring the visual workspace remains clean and relevant to current price action.
● Methodology
The script operates on a multi-stage logic engine:
• Gap Detection
It first identifies the core imbalance where the Low of the current bar does not overlap with the High of the bar two periods prior (for bullish gaps), ensuring the intervening candle represents a strong displacement.
• Structural Analysis (Breakaway Gaps)
The script monitors Pivot Highs and Lows. If a gap occurs simultaneously with a close beyond a key structural Pivot, it is classified as a "Breakaway Gap." This signals the potential start of a new trend.
• Volume and Time Analysis (Exhaustion Gaps)
To identify potential reversals, the script looks for "Trend Maturity." If a gap forms after a long duration since the last pivot and is accompanied by a volume spike (defined by the Volume Spike Multiplier), it is labeled as an "Exhaustion Gap."
• Continuation (Runaway Gaps)
If a gap is valid but meets neither the Breakaway nor Exhaustion criteria, it is considered a "Runaway Gap," typically found in the middle of an established trend.
• Dynamic Cleanup
The script tracks the midpoint of every active gap. If price creates a lower low (for bullish gaps) or higher high (for bearish gaps) beyond this midpoint, the gap is considered mitigated and is removed from the screen.
📖 How to Use
Traders can utilize the color-coded classifications to gauge market intent:
Breakaway (Default Blue): Watch these zones for potential trend initiations. These are often high-probability areas for a retest entry after a structure break.
Runaway (Default Orange): These indicate strong momentum. They can be used to trail stop-losses or add to winning positions, as price should ideally not close below these gaps in a healthy trend.
Exhaustion (Default Red): Be cautious when these appear. They suggest the current move is overextended and a reversal or complex pullback may be imminent.
• Exhaustion Gap : A Practical Case Study
• Breakaway Gap: A Practical Case Study
• Runaway Gap : A Practical Case Study
⚙️ Inputs and Settings
Min Gap Size (Points): Filters out insignificant gaps smaller than this threshold.
Structure Lookback: Defines the sensitivity of the Pivot detection (Swing High/Low).
Volume Avg Length & Multiplier: Determines what qualifies as a "Volume Spike" for exhaustion logic.
Trend Maturity: The minimum number of bars required to consider a trend "old" enough for an exhaustion signal.
Visual Settings: Custom colors for each gap type and box extension length.
● Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
Indicator

Indicator

SMC Academy [PhenLabs]📊 SMC Academy
Version: PineScript™ v6
📌 Description
The SMC Academy indicator is a comprehensive educational tool designed to demystify Smart Money Concepts (SMC) for traders of all levels. Unlike standard indicators that simply print signals, this script uses a “Learning Phase” system that allows users to toggle between individual concepts—such as Market Structure, Liquidity, Imbalances, and Order Blocks—or view them all simultaneously. It lets you focus on one piece of the puzzle at a time.
🚀 Points of Innovation
Progressive Learning Modes: Toggle between 5 distinct phases to master concepts individually before using the Full Strategy Mode.
Educational Tooltips: Hover over labels to read detailed explanations of why a BOS, MSS, or Liquidity zone was identified.
Smart Filtering: Uses ATR and Volume integration to filter out low-quality Fair Value Gaps and weak Order Blocks.
HTF Dashboard: A built-in panel analyzes Higher Timeframe (4H) data to ensure you are trading in alignment with the broader trend.
🔧 Core Components
Market Structure Engine: Automatically detects Swing Highs and Lows to map out market direction using configurable swing lengths.
Liquidity Manager: Identifies unmitigated swing points that serve as Buy-Side (BSL) and Sell-Side (SSL) liquidity magnets.
Imbalance Detector: Highlights Fair Value Gaps (FVG) where price inefficiencies exist, using ATR thresholds to ignore noise.
Order Block Identifier: Locates the specific candles responsible for structure breaks, validated by volume analysis.
🔥 Key Features
Break of Structure (BOS): Automatically marks trend continuation signals with solid lines and color-coded labels.
Market Structure Shift (MSS): Identifies potential trend reversals when significant swing points are breached.
Dashboard Context: Displays the current trend direction and the 4H context directly on your chart.
Custom Alerts: Built-in alert conditions for structure breaks and new Order Blocks allow for automated tracking.
🎨 Visualization
Structure Lines: Solid lines indicate confirmed breaks (Green for Bullish, Red for Bearish).
Liquidity Zones: Dotted lines extending rightward indicate resting liquidity levels that price may target.
FVG Boxes: Shaded boxes highlight imbalance zones, automatically extending for a user-defined number of bars.
Dashboard: A clean, non-intrusive table in the top-right corner displays trend status and active mode.
📖 Usage Guidelines
Setting Categories
Learning Mode: Select from ‘1. Market Structure’ through ‘5. Full Strategy Mode’ to filter what appears on the chart.
Swing Detection Length: Default (5). Determines the sensitivity of the swing high/low detection.
Structure Break Type: Options (Close/Wick). Choose whether a candle close or just a wick is required to confirm a break.
Min FVG Size: Default (0.5 ATR). Filters out gaps smaller than this multiplier to reduce noise.
Filter Weak OBs by Volume: Default (True). Only highlights Order Blocks where volume exceeds the 20-period average.
✅ Best Use Cases
Educational Study: Isolate “Phase 1: Market Structure” to practice identifying trend changes without distraction.
Trend Following: Use “Phase 3: Imbalances” to find entry points within an established trend.
Reversal Trading: Combine “Phase 2: Liquidity” and “Phase 4: Order Blocks” to catch reversals at key levels.
⚠️ Limitations
Subjectivity: Market structure can be interpreted differently depending on the swing length settings used.
Ranging Markets: Like all trend-following concepts, false BOS/MSS signals may generate during choppy, sideways price action.
Repainting: While the signals are non-repainting once confirmed, the live candle may flash a signal before the close if “Close” mode is selected.
💡 What Makes This Unique
Interactive Learning: The inclusion of tooltip explanations transforms this from a simple tool into an active mentor.
Phase-Based Workflow: The ability to strip the chart back to basics at the click of a button is unique to the PhenLabs ecosystem.
🔬 How It Works
Swing Analysis: The script calculates pivot highs and lows based on your length input to define the structural landscape.
Break Validation: It checks if price crosses these pivot points to trigger BOS (Continuation) or MSS (Reversal) logic.
Volume Confirmation: For Order Blocks, it looks back inside the swing leg to find the specific candle responsible for the move, verifying it has significant volume.
💡 Note:
For the best experience, start in Phase 1 to calibrate your Swing Detection Length to the specific volatility of the asset you are trading before enabling Full Strategy Mode. Indicator

SMC N-Gram Probability Matrix [PhenLabs]📊 SMC N-Gram Probability Matrix
Version: PineScript™ v6
📌 Description
The SMC N-Gram Probability Matrix applies computational linguistics methodology to Smart Money Concepts trading. By treating SMC patterns as a discrete “alphabet” and analyzing their sequential relationships through N-gram modeling, this indicator calculates the statistical probability of which pattern will appear next based on historical transitions.
Traditional SMC analysis is reactive—traders identify patterns after they form and then anticipate the next move. This indicator inverts that approach by building a transition probability matrix from up to 5,000 bars of pattern history, enabling traders to see which SMC formations most frequently follow their current market sequence.
The indicator detects and classifies 11 distinct SMC patterns including Fair Value Gaps, Order Blocks, Liquidity Sweeps, Break of Structure, and Change of Character in both bullish and bearish variants, then tracks how these patterns transition from one to another over time.
🚀 Points of Innovation
First indicator to apply N-gram sequence modeling from computational linguistics to SMC pattern analysis
Dynamic transition matrix rebuilds every 50 bars for adaptive probability calculations
Supports bigram (2), trigram (3), and quadgram (4) sequence lengths for varying analysis depth
Priority-based pattern classification ensures higher-significance patterns (CHoCH, BOS) take precedence
Configurable minimum occurrence threshold filters out statistically insignificant predictions
Real-time probability visualization with graphical confidence bars
🔧 Core Components
Pattern Alphabet System: 11 discrete SMC patterns encoded as integers for efficient matrix indexing and transition tracking
Swing Point Detection: Uses ta.pivothigh/pivotlow with configurable sensitivity for non-repainting structure identification
Transition Count Matrix: Flattened array storing occurrence counts for all possible pattern sequence transitions
Context Encoder: Converts N-gram pattern sequences into unique integer IDs for matrix lookup
Probability Calculator: Transforms raw transition counts into percentage probabilities for each possible next pattern
🔥 Key Features
Multi-Pattern SMC Detection: Simultaneously identifies FVGs, Order Blocks, Liquidity Sweeps, BOS, and CHoCH formations
Adjustable N-Gram Length: Choose between 2-4 pattern sequences to balance specificity against sample size
Flexible Lookback Range: Analyze anywhere from 100 to 5,000 historical bars for matrix construction
Pattern Toggle Controls: Enable or disable individual SMC pattern types to customize analysis focus
Probability Threshold Filtering: Set minimum occurrence requirements to ensure prediction reliability
Alert Integration: Built-in alert conditions trigger when high-probability predictions emerge
🎨 Visualization
Probability Table: Displays current pattern, recent sequence, sample count, and top N predicted patterns with percentage probabilities
Graphical Probability Bars: Visual bar representation (█░) showing relative probability strength at a glance
Chart Pattern Markers: Color-coded labels placed directly on price bars identifying detected SMC formations
Pattern Short Codes: Compact notation (F+, F-, O+, O-, L↑, L↓, B+, B-, C+, C-) for quick pattern identification
Customizable Table Position: Place probability display in any corner of your chart
📖 Usage Guidelines
N-Gram Configuration
N-Gram Length: Default 2, Range 2-4. Lower values provide more samples but less specificity. Higher values capture complex sequences but require more historical data.
Matrix Lookback Bars: Default 500, Range 100-5000. More bars increase statistical significance but may include outdated market behavior.
Min Occurrences for Prediction: Default 2, Range 1-10. Higher values filter noise but may reduce prediction availability.
SMC Detection Settings
Swing Detection Length: Default 5, Range 2-20. Controls pivot sensitivity for structure analysis.
FVG Minimum Size: Default 0.1%, Range 0.01-2.0%. Filters insignificant gaps.
Order Block Lookback: Default 10, Range 3-30. Bars to search for OB formations.
Liquidity Sweep Threshold: Default 0.3%, Range 0.05-1.0%. Minimum wick extension beyond swing points.
Display Settings
Show Probability Table: Toggle the probability matrix display on/off.
Show Top N Probabilities: Default 5, Range 3-10. Number of predicted patterns to display.
Show SMC Markers: Toggle on-chart pattern labels.
✅ Best Use Cases
Anticipating continuation or reversal patterns after liquidity sweeps
Identifying high-probability BOS/CHoCH sequences for trend trading
Filtering FVG and Order Block signals based on historical follow-through rates
Building confluence by comparing predicted patterns with other technical analysis
Studying how SMC patterns typically sequence on specific instruments or timeframes
⚠️ Limitations
Predictions are based solely on historical pattern frequency and do not account for fundamental factors
Low sample counts produce unreliable probabilities—always check the Samples display
Market regime changes can invalidate historical transition patterns
The indicator requires sufficient historical data to build meaningful probability matrices
Pattern detection uses standardized parameters that may not capture all institutional activity
💡 What Makes This Unique
Linguistic Modeling Applied to Markets: Treats SMC patterns like words in a language, analyzing how they “flow” together
Quantified Pattern Relationships: Transforms subjective SMC analysis into objective probability percentages
Adaptive Learning: Matrix rebuilds periodically to incorporate recent pattern behavior
Comprehensive SMC Coverage: Tracks all major Smart Money Concepts in a unified probability framework
🔬 How It Works
1. Pattern Detection Phase
Each bar is analyzed for SMC formations using configurable detection parameters
A priority hierarchy assigns the most significant pattern when multiple detections occur
2. Sequence Encoding Phase
Detected patterns are stored in a rolling history buffer of recent classifications
The current N-gram context is encoded into a unique integer identifier
3. Matrix Construction Phase
Historical pattern sequences are iterated to count transition occurrences
Each context-to-next-pattern transition increments the appropriate matrix cell
4. Probability Calculation Phase
Current context ID retrieves corresponding transition counts from the matrix
Raw counts are converted to percentages based on total context occurrences
5. Visualization Phase
Probabilities are sorted and the top N predictions are displayed in the table
Chart markers identify the current detected pattern for visual reference
💡 Note:
This indicator performs best when used as a confluence tool alongside traditional SMC analysis. The probability predictions highlight statistically common pattern sequences but should not be used as standalone trading signals. Always verify predictions against price action context, higher timeframe structure, and your overall trading plan. Monitor the sample count to ensure predictions are based on adequate historical data. Indicator

Volumatic Fair Value Gaps [BigBeluga]🔵 OVERVIEW
The Volumatic Fair Value Gaps indicator detects and plots size-filtered Fair Value Gaps (FVGs) and immediately analyzes the bullish vs. bearish volume composition inside each gap. When an FVG forms, the tool samples volume from a 10× lower timeframe , splits it into Buy and Sell components, and overlays two compact bars whose percentages always sum to 100%. Each gap also shows its total traded volume . A live dashboard (top-right) summarizes how many bullish and bearish FVGs are currently active and their cumulative volumes—offering a quick read on directional participation and trend pressure.
🔵 CONCEPTS
FVGs (Fair Value Gaps) : Imbalance zones between three consecutive candles where price “skips” trading. The script plots bullish and bearish gaps and extends them until mitigated.
Size Filtering : Only significant gaps (by relative size percentile) are drawn, reducing noise and emphasizing meaningful imbalances.
// Gap Filters
float diff = close > open ? (low - high ) / low * 100 : (low - high) / high *100
float sizeFVG = diff / ta.percentile_nearest_rank(diff, 1000, 100) * 100
bool filterFVG = sizeFVG > 15
Volume Decomposition : For each FVG, the indicator inspects a 10× lower timeframe and aggregates volume of bullish vs. bearish candles inside the gap’s span.
100% Split Bars : Two inline bars per FVG display the % Bull and % Bear shares; their total is always 100%.
Total Gap Volume : A numeric label at the right edge of the FVG shows the total traded volume associated with that gap.
Mitigation Logic : Gaps are removed when price closes through (or touches via high/low—user-selectable) the opposite boundary.
Dashboard Summary : Counts and sums the active bullish/bearish FVGs and their total volumes to gauge directional dominance.
🔵 FEATURES
Bullish & Bearish FVG plotting with independent color controls and visibility toggles.
Adaptive size filter (percentile-based) to keep only impactful gaps.
Lower-TF volume sampling at 10× faster resolution for more granular Buy/Sell breakdown.
Per-FVG volume bars : two horizontal bars showing Bull % and Bear % (sum = 100%).
Per-FVG total volume label displayed at the right end of the gap’s body.
Mitigation source option : choose close or high/low for removing/invalidating gaps.
Overlap control : older overlapped gaps are cleaned to avoid clutter.
Auto-extension : active gaps extend right until mitigated.
Dashboard : shows count of bullish/bearish gaps on chart and cumulative volume totals for each side.
Performance safeguards : caps the number of active FVG boxes to maintain responsiveness.
🔵 HOW TO USE
Turn on/off FVG types : Enable Bullish FVG and/or Bearish FVG depending on your focus.
Tune the filter : The script already filters by relative size; if you need fewer (stronger) signals, increase the percentile threshold in code or reduce the number of displayed boxes.
Choose mitigation source :
close — stricter; gap is removed when a closing price crosses the boundary.
high/low — more sensitive; a wick through the boundary mitigates the gap.
Read the per-FVG bars :
A higher Bull % inside a bullish gap suggests constructive demand backing the imbalance.
A higher Bear % inside a bearish gap suggests supply is enforcing the imbalance.
Use total gap volume : Larger totals imply more meaningful interest at that imbalance; confluence with structure/HTF levels increases relevance.
Watch the dashboard : If bullish counts and cumulative volume exceed bearish, market pressure is likely skewed upward (and vice versa). Combine with trend tools or market structure for entries/exits.
Optional: hide volume bars : Disable Volume Bars when you want a cleaner FVG map while keeping total volume labels and the dashboard.
🔵 CONCLUSION
Volumatic Fair Value Gaps blends precise FVG detection with lower-timeframe volume analytics to show not only where imbalances exist but also who powers them. The per-gap Bull/Bear % bars, total volume labels, and the cumulative dashboard together provide a fast, high-signal read on directional participation. Use the tool to prioritize higher-quality gaps, align with trend bias, and time mitigations or continuations with greater confidence. Indicator

Indicator

Indicator

FVG | iSolani
Unveiling Market Inefficiencies with Precision
In fast-moving markets, spotting hidden opportunities often hinges on identifying imbalances between price and value. The FVG | iSolani indicator revolutionises this process by detecting Fair Value Gaps (FVGs) —zones where price action skips over "fair" valuation levels, creating potential retracement targets. Combining advanced filtering, dynamic visualisation, and automated management, this tool empowers traders to pinpoint high-probability setups with unprecedented clarity.
Core Methodology
The indicator employs a multi-layered approach to identify FVGs:
Three-Bar Gap Analysis: Bullish FVGs form when the current low exceeds the high of two bars prior, while bearish FVGs occur when the current high stays below the low of two bars back.
Volatility-Adjusted Filtering: Gaps are measured against a 100-bar standard deviation to exclude insignificant price jumps.
Volume Confirmation: Only gaps accompanied by above-average volume (relative to a 1-bar SMA) are validated, filtering out low-conviction moves.
Auto-Invalidation System: Continuously monitors price action to remove FVG zones once price closes within their range, maintaining chart cleanliness.
Breaking New Ground
This tool introduces three paradigm-shifting innovations:
Volume-Weighted Significance: Unlike traditional FVG detectors, it ties gap validity to volume spikes, emphasising institutional activity.
Adaptive Zone Management: Boxes automatically extend rightward (when enabled) and self-destruct when invalidated, eliminating manual cleanup.
Smart Color Encoding: Offers both monochrome (for multi-timeframe analysis) and standard bull/bear color schemes, with customisable transparency.
Engine Under the Hood
The script operates through four key processes:
Gap Detection: Scans every new bar for three-candle patterns meeting FVG criteria.
Statistical Filtering: Applies user-defined threshold (default: 1σ) to separate meaningful gaps from market noise.
Box Rendering: Draws semi-transparent zones between gap boundaries using PulseWire's box objects, styled according to user preferences.
Array-Based Memory: Stores all active FVGs in arrays, enabling real-time validation checks against current price action.
Standard Configuration
Optimised default settings balance visibility and functionality:
Filter: 1.0 (1 standard deviation threshold)
Colors: "Mono" mode (gray boxes) with 90% transparency
Text Labels: Enabled in medium gray
Extension: Gaps extend indefinitely rightward
Borders: Dotted lines with visible outlines
Through its fusion of quantitative rigor and visual adaptability, the FVG | iSolani transforms raw price data into actionable intelligence. By focusing on volume-confirmed gaps and automating zone management, it cuts through market chaos to reveal structurally significant levels—a must-have for traders navigating breakouts, reversals, or order-flow analysis. Indicator

Fair Value Gap Oscillator | Flux Charts💎 GENERAL OVERVIEW
Introducing the new Fair Value Gap Oscillator (FVG Oscillator) indicator! This unique indicator identifies and tracks Fair Value Gaps (FVGs) in price action, presenting them in an oscillator format to reveal market momentum based on FVG strength. It highlights bullish and bearish FVGs while enabling traders to adjust detection sensitivity and apply volume and ATR-based filters for more precise setups. For more information about the process, check the "📌 HOW DOES IT WORK" section.
Features of the new FVG Oscillator:
Fully Customizable FVG Detection
An Oscillator Approach To FVGs
Divergence Markers For Potential Reversals
Alerts For Divergence Labels
Customizable Styling
📌 HOW DOES IT WORK?
Fair Value Gaps are price gaps within bars that indicate inefficiencies, often filled as the market retraces. The FVG Oscillator scans historical bars to identify these gaps, then filters them based on ATR or volume. Each FVG is marked as bullish or bearish according to the trend direction that preceded its formation.
An oscillator is calculated using recent FVGs with this formula :
1. The Oscillator starts as 0.
2. When a new FVG Appears, it contributes (FVG Width / ATR) to the oscillator of the corresponding type.
3. Each confirmed bar, the oscillator is recalculated as OSC = OSC * (1 - Decay Coefficient)
The oscillator aggregates and decays past FVGs, allowing recent FVG activity to dominate the signal. This approach emphasizes current market momentum, with oscillations moving bullish or bearish based on FVG intensity. Divergences are marked where FVG oscillations suggest potential reversals. Bullish Divergence conditions are as follows :
1. The current candlestick low must be the lowest of last 25 bars.
2. Net Oscillator (Shown in gray line by default) must be > 0.
3. The current Bullish FVG Oscillator value should be no more than 0.1 below the highest value from the last 25 bars.
Traders can use divergence signals to get an idea of potential reversals, and use the Net FVG Oscillator as a trend following marker.
🚩 UNIQUENESS
The Fair Value Gap Oscillator stands out by converting FVG activity into an oscillator format, providing a momentum-based visualization of FVGs that reveals market sentiment dynamically. Unlike traditional indicators that statically mark FVG zones, the oscillator decays older FVGs over time, showing only the most recent, relevant activity. This approach allows for real-time insight into market conditions and potential reversals based on oscillating FVG strength, making it both intuitive and powerful for momentum trading.
Another unique feature is the combination of customizable ATR and volume filters, letting traders adapt the indicator to match their strategy and market type. You can also set-up alerts for bullish & bearish divergences.
⚙️ SETTINGS
1. General Configuration
Decay Coefficient -> The decay coefficient for oscillators. Increasing this setting will result in oscillators giving the weight to recent FVGs, while decreasing it will distribute the weight equally to the past and recent FVGs.
2. Fair Value Gaps
Zone Invalidation -> Select between Wick & Close price for FVG Zone Invalidation.
Zone Filtering -> With "Average Range" selected, algorithm will find FVG zones in comparison with average range of last bars in the chart. With the "Volume Threshold" option, you may select a Volume Threshold % to spot FVGs with a larger total volume than average.
FVG Detection -> With the "Same Type" option, all 3 bars that formed the FVG should be the same type. (Bullish / Bearish). If the "All" option is selected, bar types may vary between Bullish / Bearish.
Detection Sensitivity -> You may select between Low, Normal or High FVG detection sensitivity. This will essentially determine the size of the spotted FVGs, with lower sensitivies resulting in spotting bigger FVGs, and higher sensitivies resulting in spotting all sizes of FVGs.
3. Style
Divergence Labels On -> You can switch divergence labels to show up on the chart or the oscillator plot. Indicator

FVG Order Blocks [BigBeluga]This indicator is an advanced tool designed to detect and visualize market FVGs with order blocks, where the price action has created gaps due to strong buying or selling pressure. These FVG often act as critical support and resistance levels, giving traders strategic points for potential entries and exits. The indicator not only identifies these imbalances but also displays their relative strength by size %, helping traders prioritize order blocks that are more likely to hold or break.
The indicator works on various pairs and stocks, it also works on charts that do not provide volume data
Forex (JPY/USD):
Stocks (NVDA):
🔵 KEY FEATURES & USAGE
● FVGs Detection and Visualization:
The indicator detects bullish and bearish FVGs. Bullish FVG occur when there is significant buying, and order block is plotted below the FVG zone:
Conversely, bearish FVG are plotted with an order block above the zone, indicating potential resistance.
Traders can use these order blocks to anticipate price reactions when the market revisits these areas, making them ideal for setting up trades.
● FVG Filtering:
The indicator includes a FVG % filter that allows traders to only display strong order blocks. This ensures that only significant FVG order blocks are shown, reducing noise and focusing on the most impactful areas.
● Highlighting Broken Levels:
When an imbalance level is broken—either breached by price action or no longer relevant—the indicator can either delete the level or mark it with a gray color areas. This provides a clear visual cue that the level has been compromised, allowing traders to adjust their strategies accordingly.
● Order Blocks Signals:
When price retest the blocks, indicator display potential sell or buy signals. Which can be an opportunity for trades
🔵 CUSTOMIZATION
● FVG Filter:
Adjust the strength filter to control which FVGs are displayed based on their percentage size. This filter helps in focusing only on significant blocks that are likely to impact price action.
● Order Blocks Amount Displayed:
Set the maximum number of Order Blocks to be displayed on the chart. This customization helps keep the chart clean and ensures that only the most important blocks are in view.
● Broken Order Blocks Display:
Choose whether to display order blocks that have been broken by the price. This feature helps in maintaining a focus on blocks that are still valid while filtering out those that are no longer relevant.
● Color Customization:
You can customize the colors for bullish and bearish Order Blocks to match your chart's overall color scheme. Additionally, strength bars can be color-coded based on their percentage to quickly identify high-priority order blocks.
Traders who are confident in the settings of the indicator can confidently use it on various types of markets Indicator

Double FVG-BPR [QuantVue]The Double FVG BPR Indicator is a versatile tool that helps traders identify potential support and resistance levels through the concept of balanced price ranges.
A Balanced Price Range (BPR) is a zone on a price chart where the market has found equilibrium after a period of price imbalance.
It is identified by detecting a Fair Value Gap (FVG) in one direction, followed by an overlapping Fair Value Gap in the opposite direction.
Components of a Balanced Price Range
Fair Value Gap (FVG): A FVG occurs when there is a rapid price movement, creating a gap in the price chart where minimal trading occurs. This gap represents an imbalance between supply and demand.
Bullish FVG: A bullish FVG is identified when the low of a candle is higher than the high of a candle two periods ago, and the close of the previous candle is higher than the high of that same period.
Bearish FVG: A bearish FVG is identified when the high of a candle is lower than the low of a candle two periods ago, and the close of the previous candle is lower than the low of that same period.
Overlapping Fair Value Gap: For a BPR to be formed, an initial FVG must be followed by an overlapping FVG in the opposite direction. This creates a balanced zone where the price has moved up (or down) quickly and then moved down (or up) with similar intensity, suggesting a temporary equilibrium.
The area between the high and low points of these overlapping FVGs forms the BPR. This zone represents a temporary market equilibrium where supply and demand have balanced out after a period of significant price movement in both directions.
How to Use
Support and Resistance Levels: The upper and lower boundaries of the BPR act as dynamic support and resistance levels. Traders can use these levels to place buy and sell orders, anticipating that the price may find support or face resistance within these zones.
Trend Reversal and Continuation: The BPR can signal potential trend reversals or continuations.
If the price moves back into the BPR after a breakout, it may indicate a reversal. Conversely, if the price breaks out of the BPR with strong momentum, it may signal a trend continuation.
Indicator
