Pivot Points [DecodingFlowLab]Pivot Points
A clean and lightweight pivot structure indicator designed to detect significant swing highs and swing lows directly from market structure.
This tool uses a symmetric pivot detection model based on a configurable depth value to identify confirmed turning points in price action.
━━━━━━━━━━━━━━
How It Works
━━━━━━━━━━━━━━
• The indicator scans both sides of the candle using the selected “Depth” value.
• A Pivot High is confirmed only when the candle’s high is greater than the highs of surrounding candles.
• A Pivot Low is confirmed only when the candle’s low is lower than the lows of surrounding candles.
• Signals are plotted only after confirmation to reduce market noise and false swings.
━━━━━━━━━━━━━━
Smart Filtering Logic
━━━━━━━━━━━━━━
The script includes an internal directional filtering mechanism:
• If a new higher pivot high appears, the previous pivot high is automatically replaced.
• If a new lower pivot low appears, the previous pivot low is replaced as well.
This creates a cleaner market structure view and prevents unnecessary duplicate pivots.
━━━━━━━━━━━━━━
Features
━━━━━━━━━━━━━━
✔ Clean visual swing detection
✔ Dynamic replacement of weaker pivots
✔ Adjustable pivot sensitivity using “Depth”
✔ Offset plotting to avoid candle overlap
✔ Lightweight and optimized
✔ Useful for market structure analysis
✔ Can assist with:
• Swing Trading
• Trend Analysis
• Liquidity Mapping
• BOS / CHOCH concepts
• Support & Resistance identification
━━━━━━━━━━━━━━
Inputs
━━━━━━━━━━━━━━
• Depth
Controls pivot sensitivity.
Higher values = stronger but fewer pivots.
• plotShift
Moves pivot markers away from candles for better chart visibility.
• Pivot Colors
Custom colors for highs and lows.
━━━━━━━━━━━━━━
Best Use Cases
━━━━━━━━━━━━━━
This indicator works especially well for:
• Market Structure traders
• Smart Money Concept (SMC) traders
• Swing traders
• Liquidity-based analysis
• Manual chart markup
━━━━━━━━━━━━━━
Important Note
━━━━━━━━━━━━━━
Because pivots require future candle confirmation, signals appear after the structure is confirmed.
This behavior is intentional and helps filter out weak or temporary swings.
Built by DecodingFlowLab.
Disclaimer
This indicator is provided for educational and informational purposes only and should not be considered financial advice, investment advice, or a recommendation to buy or sell any financial instrument.
The indicator does not provide guaranteed entry or exit signals for trading positions. Financial markets involve significant risk, and past performance does not guarantee future results.
Users are solely responsible for their own trading decisions, risk management, and use of this indicator in any market or trading environment.
The publisher, developer, and distributor of this indicator assume no responsibility or liability for any financial losses, damages, or outcomes resulting from the use or misuse of this indicator. Indicator

Phantom Structure Engine [JOAT]Phantom Structure Engine
Overview
Phantom Structure Engine is a comprehensive Smart Money Concepts (SMC) framework built entirely in Pine Script v6 using typed User-Defined Types and methods. It maps institutional price structure across five dimensions simultaneously: swing Break of Structure (BOS), Change of Character (CHoCH), Order Blocks (OB), Fair Value Gaps (FVG), Equal Highs/Lows (EQH/EQL), Liquidity Sweeps, and dynamic Premium/Discount/Equilibrium zones — all rendered with an institutional-grade dark visual palette and managed via object arrays.
Why a Unified SMC Framework?
SMC concepts are deeply interconnected. A BOS creates the context for a valid Order Block. A CHoCH signals a structural regime shift that invalidates existing OBs. A liquidity sweep above an EQH often precedes a reversal into a Discount zone. Displaying these concepts in isolation (as separate indicators) breaks the logical chain between them. Phantom Structure Engine fuses all layers into a single coherent visual, so each element is always read in its correct structural context.
Core Engine — Swing Structure
Two separate pivot engines run concurrently:
- Swing pivots (configurable left/right bars, default 10/10): define the major structure highs and lows used for BOS and CHoCH detection
- Internal pivots (default 3/3): track minor structure shifts for shorter-term intrabar analysis
BOS Detection with Confirmation Counter
Rather than firing on the first close beyond a swing level, the engine counts consecutive closes above the last swing high (or below the last swing low). A BOS only registers when the close count reaches or exceeds the configurable confirmation threshold (default 1, max 5). This suppresses false breaks caused by wicks and momentary spikes while remaining responsive.
- BOS (Break of Structure): Close beyond swing level, structure direction confirmed. Displayed as a horizontal line from the pivot bar to the break bar, with a BOS label.
- CHoCH (Change of Character): BOS that occurs against the prevailing structural direction (e.g., a bullish break when the prior confirmed direction was bearish). Displayed in gold with a dashed line and CHoCH label.
Order Block Detection
When a BOS or CHoCH fires, the engine scans backward (configurable lookback, default 10 bars) for the last opposing candle — a bearish candle before a bullish BOS, or a bullish candle before a bearish BOS. This candle becomes the Order Block zone.
Each OB is drawn with a two-layer box: a wide semi-transparent outer box and a tighter inner highlight. The OB extends forward on every bar and automatically invalidates (turns grey) when price closes through the opposite boundary — the exact behaviour seen when an OB has been mitigated by institutional flow.
Fair Value Gap Detection
A bullish FVG is identified when bar .low > bar .high (a gap in price between the current bar's low and two bars ago's high), indicating that price moved so fast upward that no trading occurred in that range. Bearish FVG is the mirror. FVGs are drawn as dotted-border boxes that extend forward and auto-fill (turn grey) when price returns to close the gap.
Equal Highs / Equal Lows (EQH / EQL)
At each new swing pivot, the engine compares the current pivot value against the previous pivot of the same type. If the absolute percentage difference is less than 0.15%, they are classified as equal and an EQH or EQL label is stamped at the midpoint. These levels represent liquidity pools resting above or below price — targets for institutional sweeps.
Liquidity Sweeps
A sweep is detected when price wicks beyond the last confirmed swing high or low but closes back on the opposite side. This is the classic liquidity grab: price hunts stops above a high (or below a low), then reverses. Sweep labels fire at the wick extreme in gold — one of the highest-probability reversal signals in institutional analysis.
Premium / Discount / Equilibrium Zones
After each confirmed BOS, the engine identifies the full range between the last confirmed swing high and swing low. This range is divided into three zones:
- Premium (top 38.2%): Statistically expensive — short bias in a bearish structure
- Equilibrium (38.2%–61.8%): Fair value — reduce exposure
- Discount (bottom 38.2%): Statistically cheap — long bias in a bullish structure
Previous zones are deleted and redrawn on each new BOS, keeping the chart clean.
Periodic Levels (PDH / PDL / PWH / PWL)
Previous Day High/Low and Previous Week High/Low are fetched via request.security() with lookahead disabled (barmerge.lookahead_off), preventing any future-bar contamination. These levels render as step-line plots and represent the primary reference levels used by institutional order desks at open.
Institutional Funding Candles
Bars where the true range exceeds 1.5× ATR(14) AND volume exceeds 2× the 20-bar volume SMA are highlighted as funding candles. These represent institutional participation bars and are coloured based on the current structural direction: teal (bullish structure), red (bearish structure), gold (neutral).
Dashboard (Top Right)
A compact 2-column, 8-row table displays: current structural direction, active OB count, open FVG count, last confirmed swing high/low values, and current sweep status for both sides.
Inputs Reference
Structure Settings
- Swing Pivot Left/Right Bars (10/10) — major swing sensitivity
- Internal Pivot Left/Right (3/3) — minor structure sensitivity
- BOS Confirmation Closes (1–5) — consecutive closes needed to confirm BOS
- Show BOS Labels / CHoCH Labels / HH-HL-LH-LL labels
Order Blocks
- Show Order Blocks
- OB Lookback Candles (10) — how far back to scan for the OB candle
- Max Active OBs (6) — older OBs are deleted when limit is reached
Fair Value Gaps
- Show Fair Value Gaps
- Max Active FVGs (5)
Premium / Discount
- Show PD Zones / EQH-EQL / Liquidity Sweeps
Periodic Levels
- Show Prev Day H/L / Prev Week H/L
Visual
- Theme: Dark, Light, Auto
- Show Funding Candles
How to Use
1. Apply on any liquid instrument. Allow the warmup period (driven by pivot lookback) before trusting the signals.
2. Read structure direction from the dashboard. BOS labels in teal confirm a bullish shift; CHoCH in gold signals a potential trend reversal.
3. Look for price to pull back into a valid (not invalidated) OB or into the Discount zone before considering long entries. Reverse for shorts.
4. FVG zones often act as magnets — price tends to revisit them before continuing in the BOS direction.
5. Treat Liquidity Sweep labels as potential reversal alerts, particularly when they align with OBs or Discount/Premium zones.
Non-Repainting Design
All BOS, CHoCH, sweep, and FVG signals are gated by barstate.isconfirmed. Periodic levels use close with lookahead_off. No pivot value is read until the required right-bar confirmation period has elapsed. Historical labels never shift position.
Limitations
- SMC is a discretionary framework. This indicator automates detection but cannot replace contextual judgment on higher-timeframe bias.
- In extremely fast-moving markets, FVGs may form and fill within the same session, reducing their relevance as future targets.
- EQH/EQL detection uses a 0.15% price equality threshold — this may need adjustment for very low-priced or highly volatile instruments.
- OBs are detected from the most recent opposing candle before a BOS. On some instruments, the true institutional OB may be further back.
Disclaimer
This indicator is provided for educational and informational purposes only. SMC concepts describe price behaviour patterns and do not guarantee any future market outcome. Always conduct your own analysis and use proper risk management.
Made with passion by officialjackofalltrades
Indicator

Dynamic FibTrend Signals [MarkitTick]💡 This indicator represents an advanced multi-layered analytical framework designed to synchronize trend identification with structural market geometry. By integrating adaptive trend-following logic with automated price action mapping, the tool serves as a comprehensive dashboard for traders seeking to identify high-probability entry zones. It solves the common problem of "indicator clutter" by condensing volatility-adjusted trend direction, swing structure recognition, and Fibonacci retracement depth into a single, cohesive visual interface that provides real-time trade execution levels based on current market volatility.
● ✨ Originality and Utility
The primary utility of this script lies in its ability to bridge the gap between momentum-based trend following and static price levels. While many scripts focus on a single aspect of technical analysis, this indicator utilizes a synergistic approach:
It combines the volatility-sensitive nature of SuperTrend with the objective structural points of Pivot Highs and Lows.
It automates the projection of Fibonacci retracement levels based on a dynamic lookback period, ensuring that support and defense zones are always relevant to recent price action.
Unlike standard tools that leave the user to determine their own risk, this system automatically calculates a suggested entry, stop loss, and multiple target levels using Average True Range (ATR) to adjust for current market volatility.
● 🔬 Methodology and Concepts
The core engine operates on a tripartite logic system:
Trend Quantification: The system employs an Average True Range (ATR) calculation multiplied by a specific factor to create a dynamic band around the price. This determines the prevailing bias (Bullish or Bearish) and filters out market noise.
Structural Mapping: Through a pivot-point algorithm, the script identifies "Swing" levels. These are points where the market has shown significant rejection, helping to define the current trading range.
Risk Geometry: Upon a trend shift (signal), the script calculates trade levels. The Entry is based on the previous bar's close, while the Stop Loss and Profit Targets are mathematically derived from the ATR. This ensures that the risk-to-reward ratio remains consistent regardless of whether the market is in a high or low-volatility state.
● 🎨 Visual Guide
The chart interface is designed for high legibility, using distinct color coding and shapes to signify different market states:
SuperTrend Line: A continuous line that turns Green during bullish momentum and Red during bearish momentum. The area between this line and the price is filled with a subtle transparency to highlight the "trend cloud."
Signal Arrows: Bright green "BUY" arrows appear below the bars for bullish transitions, and red "SELL" arrows appear above the bars for bearish transitions.
Swing Markers: Small orange downward triangles mark Swing Highs, while blue upward triangles mark Swing Lows. These are accompanied by dashed horizontal lines projecting the price level forward.
Fibonacci Grid: A series of purple dotted horizontal lines representing key retracement levels (0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%). These levels provide context for potential pullbacks within the main trend.
Trade Execution Box: When a signal is generated, a yellow entry box appears along with three distinct lines:
Yellow Line: The specific Entry price.
Green Dashed Line: The Target (Take Profit) level.
Red Dashed Line: The Stop Loss level.
Info Table: A professional-grade data table in the top-right corner summarizes the current trend status, the most recent swing levels, and the active trade coordinates for quick reference.
● 📖 How to Use
Trend Identification: Observe the color of the SuperTrend line. If the line is green and the price is above it, focus on long opportunities. If red, focus on shorts.
Confirmation: Look for signals where the SuperTrend flip aligns with a bounce off a Fibonacci level (specifically the 50% or 61.8% "Golden Pocket").
Execution: When a "BUY" or "SELL" arrow appears, refer to the yellow entry zone. The script projects these levels 40 bars into the future to allow for trade planning.
Exit Strategy: Use the target line for profit-taking and the red stop-loss line for capital protection. The 2:1 risk-to-reward ratio is the default, but this can be adjusted in the settings.
● ⚙️ Inputs and Settings
⚡ SuperTrend: Adjust the ATR Length and Factor. A higher factor makes the trend slower and more resilient to whipsaws, while a lower factor makes it more sensitive.
🔄 Swing High / Low: Define the lookback period for pivot detection. Increasing this value will only identify major market turns.
📐 Fibonacci Retracement: Change the lookback bars for the Fibonacci grid. This determines the "height" of the range being measured.
🎯 Trade Levels: Set your desired Risk-to-Reward ratio (default is 2.0). You can also toggle the visibility of the entry, target, and stop lines.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The indicator is built upon the "Volatility Clustering" theory, which suggests that market volatility is not constant but occurs in bursts. By using ATR-based thresholds, the indicator applies a statistical filter that expands and contracts based on realized variance. The swing detection logic utilizes a "Windowed Extrema" approach, which is a fundamental concept in time-series analysis for identifying local maxima and minima within a defined temporal window. Furthermore, the integration of Fibonacci ratios (specifically the 0.618 Golden Mean) incorporates elements of fractal geometry and Elliott Wave theory, positing that market corrections often move in proportions derived from the Fibonacci sequence. The final trade execution component utilizes a fixed-fractional risk management model, ensuring that trade parameters are mathematically optimized for the current market environment rather than being based on arbitrary price distances.
⚠️ 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

Pinnacle Structure Cipher [JOAT]Pinnacle Structure Cipher
Introduction
The Pinnacle Structure Cipher is an open-source market structure analysis indicator built in Pine Script v6. It detects and visualizes the core building blocks of institutional price action: swing highs and lows, Break of Structure (BOS), Change of Character (CHoCH), Fair Value Gaps (FVG), Order Blocks (OB), displacement candles, Equal Highs/Lows (EQH/EQL), and Premium/Discount zones. Rather than stacking separate indicators for each concept, this tool unifies them into a single coherent overlay with a shared structure engine, consistent visual language, and a real-time HUD dashboard.
The indicator is designed for traders who study how price builds and breaks structure, where institutional footprints appear in the form of imbalances and reaction zones, and how to identify high-probability areas where price is likely to react. Every signal is gated behind confirmed bar close logic to prevent repainting.
Why This Indicator Exists
Most retail traders use separate tools for structure detection, FVG mapping, and order block identification. The problem is that these concepts are deeply interconnected. A Break of Structure only matters in the context of the swing it broke. A Fair Value Gap is most relevant when it forms during a displacement candle that also created an Order Block. Equal Highs become significant when they sit at the boundary of a Premium zone.
This indicator solves that fragmentation by running all concepts through a single structure engine:
Swing Tracking: Pivot-based swing high/low detection with configurable lookback, tracking the last two swings on each side for pattern recognition (higher highs, lower lows, etc.)
BOS/CHoCH Detection: Structural breaks are classified as continuation (BOS) when price breaks a swing in the current trend direction, or reversal (CHoCH) when price breaks against the trend. This distinction is critical for understanding whether the market is continuing or shifting character.
Fair Value Gaps: Three-candle imbalances where a gap exists between candle 1's high and candle 3's low (bullish) or candle 1's low and candle 3's high (bearish). Gaps are filtered by a minimum ATR-based size threshold to eliminate noise. The indicator tracks whether each FVG has been filled by subsequent price action.
Order Blocks: The last opposing candle before a strong directional move, confirmed by volume exceeding the 20-bar average. OB zones are drawn as boxes and tracked for mitigation when price returns to the zone.
Displacement Candles: Large-body candles (body >= 70% of range, body >= 1.8x the 20-bar average body) that indicate aggressive institutional order flow. These often coincide with the creation of FVGs and OBs.
EQH/EQL Detection: When two consecutive swing highs or lows are within an ATR-based tolerance of each other, the indicator identifies them as Equal Highs or Equal Lows — key liquidity targets where stop orders tend to cluster. These are drawn as dashed lines and automatically removed when swept.
Premium/Discount Zones: The range between the last swing high and swing low is divided at the equilibrium (50%) level. The upper half is labeled Premium (where sellers have an edge), the lower half is Discount (where buyers have an edge). An equilibrium line marks the midpoint.
How the Structure Engine Works
The core of this indicator is a swing-based structure tracking system. Here is how swing detection feeds into BOS/CHoCH classification:
// Pivot-based swing detection
float swH = ta.pivothigh(high, i_swingLen, i_swingLen)
float swL = ta.pivotlow(low, i_swingLen, i_swingLen)
// Track last two swings for pattern recognition
if not na(swH)
prevSH := lastSH
lastSH := swH
if not na(swL)
prevSL := lastSL
lastSL := swL
The indicator maintains a structural trend variable. When price closes above the last swing high in a bullish or neutral structure, that is a BOS Long (trend continuation). When price closes below the last swing low while the structure was bullish, that is a CHoCH Short (character change — potential reversal). This classification helps traders distinguish between moves that confirm the existing trend and moves that signal a shift.
Fair Value Gap Mechanics
FVGs represent price inefficiencies — areas where the market moved so aggressively that it left a gap in the price ladder. The indicator detects these using the classic three-candle pattern:
Bullish FVG: Current candle's low is above the high of two candles ago, creating a gap. The directional candle in the middle must be bullish.
Bearish FVG: Current candle's high is below the low of two candles ago. The middle candle must be bearish.
Size Filter: The gap must be at least a configurable multiple of ATR (default 0.3x) to filter out insignificant micro-gaps.
Fill Tracking: When price returns to close the gap (low touches the bottom of a bullish FVG, or high touches the top of a bearish FVG), the box is visually faded to indicate mitigation.
Cleanup: Oldest FVGs are automatically removed when the maximum count is exceeded, keeping the chart clean.
Order Block Detection
Order Blocks are identified as the last opposing candle before a strong move. The detection logic requires:
A bearish candle followed by a bullish candle that closes above the bearish candle's high (bullish OB), or vice versa
The engulfing move must be proportional — the bullish candle's body must exceed the bearish candle's body multiplied by a configurable factor
Volume on the signal candle must exceed the 20-bar average volume, confirming institutional participation
Mitigation is tracked: when price returns to the OB zone after at least 3 bars, the box is faded and its border becomes dashed
Institutional Signal Detection
Beyond structure and zones, the indicator detects several institutional candle patterns and order flow signals:
Volume-Confirmed Engulfing: Classic engulfing patterns where the engulfing candle's body exceeds the prior candle's body and volume is above average
Wyckoff Spring/Upthrust: Price sweeps below a swing low (Spring) or above a swing high (Upthrust) and closes back inside, with high volume — classic accumulation/distribution signals
Absorption: High volume with small range (Effort vs Result from Wyckoff theory) — indicates institutional absorption where large orders are being filled without moving price
CVD Divergence: When Cumulative Volume Delta diverges from price (price makes new high but CVD does not), suggesting hidden distribution or accumulation
Delta Surge: When the buy/sell volume ratio exceeds 40% in either direction, indicating strong directional conviction
All signals use a priority-based cooldown system to prevent label stacking. Higher-priority signals (liquidity grabs, springs) suppress lower-priority ones (engulfing, delta) within a configurable cooldown window.
Visual Design
The indicator uses an "Emerald Matrix" color theme — a cohesive palette built around matrix greens, jade, mint, amber warnings, and cyan highlights on a dark background:
FVG Boxes: Dotted-border boxes in jade (bullish) or red (bearish) with high transparency. Filled FVGs fade to grey.
OB Boxes: Solid-border boxes in cyan (bullish) or red (bearish) with "OB" text labels. Mitigated OBs become dashed grey.
BOS/CHoCH Labels: Small labels at the break level with dashed reference lines extending forward
EQH/EQL Lines: Dashed lines at equal high/low levels that auto-extend and auto-delete when swept
Premium/Discount Zones: Very subtle background shading (94% transparency) with text labels and a dotted equilibrium line
Displacement Markers: Small circles below (bullish) or above (bearish) displacement candles
Candle Coloring: Multi-factor coloring based on displacement > structure trend > neutral
HUD Dashboard
A real-time table displays 16 metrics including:
Current regime state and structural trend direction
SMA alignment (20/50/200) and RSI value
Structure score (0-100) computed from trend state, swing patterns, active FVG/OB count, volume, alignment, and delta
Volume ratio and delta flow direction
Imbalance pressure classification
Wyckoff Effort/Result ratio
VWAP band position and volatility state
Active FVG and OB counts
Current swing high and low levels
Weighted institutional bias (BULL/BEAR/NEUTRAL) computed from all active signals
Input Parameters
Structure:
Swing Lookback: Pivot detection length (default: 5)
Confirmed Bars Only: Toggle to gate all signals behind bar close confirmation
Sensitivity: 1 (loose) to 3 (tight) — adjusts detection thresholds across all modules
Fair Value Gaps:
Show FVGs: Toggle visibility
Max FVG Zones: Maximum tracked (default: 10)
Track FVG Fill: Enable/disable fill detection
Min FVG Size: Minimum gap as ATR multiple (default: 0.3x)
Order Blocks:
Show OBs: Toggle visibility
Max OB Zones: Maximum tracked (default: 8)
OB Body Multiplier: Minimum engulfing ratio (default: 1.5x)
Advanced:
Show EQH/EQL: Equal highs/lows detection
EQ Tolerance: ATR-based tolerance for "equal" classification (default: 0.3x)
Show Premium/Discount Zones
Show Swing Level Lines
Show Displacement Markers
Show Institutional Signals with configurable cooldown
Bar Coloring toggle
HUD Panel toggle
How to Use This Indicator
Step 1: Identify the Structural Trend
Check the HUD for the current structure direction (Bullish/Bearish/Neutral). Look at the swing pattern — are you seeing higher highs and higher lows, or lower highs and lower lows?
Step 2: Watch for BOS or CHoCH
A BOS confirms the trend is continuing. A CHoCH warns that the trend may be reversing. CHoCH signals are particularly valuable when they occur at Premium/Discount zone boundaries.
Step 3: Identify Reaction Zones
Look for unfilled FVGs and unmitigated OBs in the direction of the structural trend. These are areas where price is likely to react. A bullish FVG in a bullish structure is a potential long entry zone.
Step 4: Confirm with Institutional Signals
Wait for confirmation signals like displacement candles, volume-confirmed engulfing patterns, or Wyckoff springs/upthrusts at your identified zones.
Step 5: Use EQH/EQL as Targets
Equal Highs and Equal Lows represent liquidity pools. In a bullish structure, EQH levels above price are likely targets. In a bearish structure, EQL levels below are targets.
Best Practices
Use on liquid instruments where volume data is meaningful (major forex pairs, large-cap stocks, crypto majors)
Higher timeframes (15m+) produce more reliable structure signals than very low timeframes
FVGs and OBs are most significant when they form during displacement candles
Not all BOS signals are equal — BOS with high volume and displacement carries more weight than a quiet break
CHoCH at Premium/Discount boundaries is a higher-probability reversal signal
The structure score in the HUD provides a quick read on overall market conviction — scores above 70 suggest strong directional conditions
Use the sensitivity input to adjust for different instruments — volatile instruments may need lower sensitivity
Limitations
Swing detection has an inherent delay equal to the lookback period — pivots are confirmed only after the right-side bars have formed
Volume-based filters (OB confirmation, delta, absorption) require reliable volume data. Instruments with poor volume reporting will produce less reliable signals
FVG and OB zones are probabilistic reaction areas, not guaranteed reversal points. Price can and does blow through zones
The buy/sell volume split is estimated from candle structure (close vs open), which is an approximation of true order flow
During low-liquidity periods (overnight, holidays), structure signals may be less reliable
The indicator works best when used as part of a broader analysis framework, not as a standalone entry system
Technical Implementation
Built with Pine Script v6 using:
All ta.* function calls at global scope for Pine v6 compliance
Array-based zone tracking with parallel arrays for FVG and OB properties
Automatic cleanup: oldest zones are deleted when max count is exceeded
barstate.isconfirmed gating on all signal generation to prevent repainting
request.security() with lookahead=barmerge.lookahead_off for prior day/week levels
Priority-based signal cooldown system to prevent visual clutter
Pre-computed boolean conditions with deferred drawing for performance
14 alert conditions covering BOS, CHoCH, liquidity grabs, springs, absorption, delta surges, displacement, and regime changes
Originality Statement
This indicator is original in its unified architecture approach. While individual concepts like BOS/CHoCH, FVG, and OB detection exist in other scripts, this indicator is justified because:
It runs all structure concepts through a single swing engine, ensuring consistency between BOS/CHoCH classification and zone creation
The priority-based signal system with cooldowns prevents the visual clutter that plagues most multi-concept indicators
FVG and OB mitigation tracking provides dynamic zone lifecycle management — zones are not static; they evolve as price interacts with them
The structure score synthesizes swing patterns, zone activity, volume, alignment, and delta into a single 0-100 metric
EQH/EQL detection with automatic sweep deletion creates self-cleaning liquidity maps
Institutional signal detection (Wyckoff spring/upthrust, absorption, CVD divergence) is integrated with the structure engine rather than bolted on separately
The Emerald Matrix theme provides a cohesive visual identity where every color choice carries meaning (green = bullish structure, red = bearish, amber = warning, cyan = highlight)
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Market structure analysis is a framework for understanding price behavior, not a prediction system. BOS, CHoCH, FVG, and OB signals do not guarantee future price movement. Past structural patterns do not guarantee they will repeat. Always use proper risk management and never risk more than you can afford to lose. The author is not responsible for any losses incurred from using this indicator.
-Made by officialjackofalltrades
Indicator
