Advanced Fibonacci Confluence Matrix [MarkitTick]💡 The Advanced Fibonacci Confluence Matrix is a sophisticated multi-dimensional analytical tool designed for professional traders who demand precision in identifying high-probability institutional entry zones. By integrating Fibonacci retracement logic with multi-timeframe (MTF) confluence and Fair Value Gap (FVG) detection, this script identifies the "Optimal Trade Entry" (OTE) zones where various technical factors align. It serves as a comprehensive institutional-grade execution engine, providing not just visual zones, but also automated risk calculation and webhook-ready alert payloads for algorithmic execution.
● ✨ Originality and Utility
Traditional Fibonacci tools are often static and require manual adjustment, leading to subjective bias and missed opportunities during rapid price action. This indicator revolutionizes the process by:
• Dynamic Anchor Selection : It automatically identifies significant swing highs and lows to anchor Fibonacci levels, ensuring that the zones remain relevant to current market structure.
• Multi-Timeframe Confluence : It fetches Fibonacci data from higher timeframes (HTF), such as the Daily or 4-hour charts, and overlays them onto the local timeframe. This allows traders to see when a local OTE zone aligns with a major institutional level.
• FVG Integration : The script looks for Fair Value Gaps within the OTE zones. The presence of an FVG serves as a "magnet" or "trigger," increasing the probability that price will react within that specific area.
• Automated Alert Logic : Unlike simple price alerts, this script generates a structured JSON payload including Entry, Stop Loss, Take Profit, and calculated Position Size based on user-defined risk parameters.
● 🔬 Methodology and Concepts
The indicator is built upon the premise of Institutional Order Flow and the "Discount vs. Premium" market theory.
• Fibonacci Retracement Engine : The core logic calculates standard ratios (0.236, 0.382, 0.5, 0.618, 0.786). The "Optimal Trade Entry" is specifically defined as the zone between the 0.618 and 0.786 retracement levels.
• The Confluence Matrix : The script maintains an internal matrix of "hits." When price enters a zone where a local Fibonacci level, an HTF level, and a Prime FVG all overlap, the confluence score increases, and the visual intensity of the zone changes to alert the trader.
• Fair Value Gap (FVG) Logic : The script detects imbalances where the High of Bar N is lower than the Low of Bar N+2 (for bearish) or the Low of Bar N is higher than the High of Bar N+2 (for bullish). It specifically filters for "Prime FVGs" that reside within the OTE retracement area.
• Risk-Adjusted Position Sizing : It uses the distance between the Entry (usually the 0.618 level or FVG edge) and the Stop Loss (usually the swing anchor) to calculate how many units should be traded to risk exactly X% of the account balance.
● 🎨 Visual Guide
• The OTE Zone (The Golden Box) : A shaded rectangle appearing between the 0.618 and 0.786 Fibonacci levels. A Green box signifies a bullish discount zone, while a Red box signifies a bearish premium zone.
• HTF Confluence Lines : Horizontal dashed lines across the chart representing the 0.5 (Equilibrium) and 0.618 levels from a higher timeframe. These are typically colored Orange or Purple to distinguish them from local levels.
• Fair Value Gap (FVG) Rectangles : Small, semi-transparent boxes that mark price imbalances. When these appear inside the OTE Zone, they are highlighted with a thicker border to indicate a "High Probability Trigger."
• Swing Anchor Labels : Small "H" (High) and "L" (Low) labels appear at the points where the Fibonacci tool is anchored. These labels help the trader verify the current market structure context.
• Signal Labels : When a confluence event occurs, a "BUY" or "SELL" label appears above or below the candle. The label includes the calculated "Risk:Reward" ratio for that specific setup.
• Dashboard Table : A small UI element in the corner of the chart displaying the current HTF trend status, the distance to the nearest OTE zone, and the calculated position size for the next trade.
● 📖 How to Use
• Identifying a Setup : Wait for the script to define a new swing move. Once the "OTE Zone" box is drawn, monitor the price as it retraces toward that box.
• Confirming Confluence : The highest quality trades occur when the price enters the OTE zone and simultaneously touches an HTF dashed line or fills a Prime FVG.
• Execution : Look for the "Long Entry" or "Short Entry" signal. The script is optimized for "Bar Close" execution to avoid repainting issues.
• Automation : If using webhooks, ensure your execution platform is set to receive the JSON format. The "Action," "Ticker," and "Qty" fields are automatically populated based on the signal.
• Exit Strategy : The default Take Profit is set to the 0.0 Fibonacci level (the swing high/low), while the Stop Loss is placed just beyond the 1.0 anchor point.
● ⚙️ Inputs and Settings
• Fibonacci Sensitivity : Adjust the "Swing Lookback" to determine how significant a high or low must be to act as an anchor. Higher values result in more "Macro" zones.
• HTF Resolution : A dropdown allowing you to select which timeframe (e.g., 60m, 240m, Daily) the confluence lines should be pulled from.
• Zone Selection : Toggle switches to enable or disable specific levels (e.g., show only the 0.618 and 0.786).
• Risk Management : Input your "Account Size" and "Risk Percentage" (e.g., 1% or 0.5%) to calibrate the automated position sizing alerts.
• Alert Configuration : Options to enable specific JSON payloads for "Long Only," "Short Only," or "Both."
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The Advanced Fibonacci Confluence Matrix is grounded in the Golden Ratio Theory and the Efficient Market Hypothesis (EMH), specifically focusing on market inefficiencies.
• Mathematical Proportions : The indicator utilizes the irrational number Phi (approximately 1.618) and its inverse (0.618). These ratios are derived from the Fibonacci sequence, where each number is the sum of the two preceding ones. In financial markets, these ratios describe the recursive nature of price retracements and expansions.
• Statistical Mean Reversion : The use of the 0.5 level (Equilibrium) is based on the statistical principle of mean reversion, suggesting that price has a natural tendency to return to a central point of value before continuing a trend.
• Liquidity & Imbalance Theory : The Fair Value Gap detection is based on the "Information Asymmetry" model in economics. When a large institutional order enters the market, it creates a "gap" or "void" because the liquidity at certain price levels was consumed too quickly. Academically, these gaps represent "Inefficient Pricing" that the market seeks to "fill" to restore equilibrium.
• Confluence Probability : By applying the Law of Large Numbers and Multi-Factor Modeling, the script assumes that the intersection of independent variables (Local Fib + HTF Fib + FVG) reduces the "Noise-to-Signal" ratio, thereby increasing the statistical significance of the resulting trade signal.
⚠️ 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

ML Trend Architect [TechnicalZen]ML Trend Architect
A regime visualization and forecasting engine that combines machine learning confidence scoring with curved 3D glass facades to map market structure and anticipate regime transitions in real-time.
What It Does
This indicator identifies directional regime changes using a dual-engine approach — an impulse momentum engine and a DX/ADX directional movement engine — then wraps them in curved 3D visual envelopes that show regime strength, direction, and conviction at a glance. Beyond detection, it actively forecasts regime quality by scoring each transition against historical analogs and projecting follow-through probability before the move fully develops.
How It Works
Regime Detection
Band-break events (flips, continuations, refreshes) drive regime transitions. Price breaking above the upper band triggers a bullish flip; below the lower band triggers bearish. The system requires confirmation bars and enforces cooldowns to prevent whipsaws.
Forecasting Engine
At each regime transition, the engine evaluates how likely the new regime is to follow through before the move has played out. It scores setup quality across multiple dimensions — anchor cluster positioning, momentum alignment, compression state, duration, excursion depth, and family coherence — to produce a forward-looking conviction percentage. When KNN Memory is active, it deepens this forecast by matching the current setup fingerprint against resolved historical analogs, asking: "of all similar setups in the past, what percentage actually followed through?" The result is a probabilistic forecast — not a reactive signal — displayed as a confidence label at the moment of regime change.
Forward Resolution and Accountability
Every forecast is tracked forward over a configurable evaluation window. The system monitors whether price held on the correct side of the anchor cluster and whether it expanded sufficiently. Forecasts that fail to materialize are marked with a rejection symbol — creating a visible track record of forecast accuracy directly on the chart. This closed-loop accountability distinguishes it from indicators that fire and forget.
Curved Glass Facades
Instead of flat rectangular boxes, regime segments are rendered as curved 3D envelopes using square-root decay from the band edges. The curves start wide at segment birth and taper naturally, creating organic shapes that reflect each regime's character — steep narrow curves for aggressive moves, wide gradual sweeps for grinding trends.
DX Heat Strip
A color-gradient ribbon flows along the curved walls showing directional conviction in real-time. Yellow indicates weak/choppy conditions; cyan indicates strong bullish momentum; magenta indicates strong bearish pressure. Bulls support from below, bears press from above.
4-Color Regime System
The regime uses a continuous gradient driven by ADX position and slope, producing four distinct states that blend smoothly:
- Teal: strong bullish momentum (ADX positive, rising)
- Orange: fading bullish momentum (ADX positive, falling)
- Light Green: fading bearish pressure (ADX negative, rising)
- Red: strong bearish pressure (ADX negative, falling)
Signal Leader Detection
The engine tracks which signal source — Impulse or DX — has been more accurate recently and who fires first. This is itself a forecast: it predicts which signal source you should weight more heavily in the current market regime. The dashboard displays the current leader with win rate and directional bias.
Connection Lines
Dashed lines connect same-direction hull phases across interruptions, drawing on highs (bear color) and lows (bull color). When the price connection slope diverges from the indicator slope, lines become solid and thicken — flagging potential divergence setups that often precede regime reversals.
The Forecasting Pipeline
Step 1: Context Assessment — Where is price relative to the 7-anchor cluster? Are anchors aligned (coherent) or scattered? Is the market compressed or extended?
Step 2: Trigger Quality — How decisive is the breakout bar? Body ratio, close location, force spread, and cluster clearance are scored.
Step 3: Regime Environment — ADX strength, relative volume, and ATR regime provide the macro backdrop.
Step 4: Analog Matching (KNN) — The current feature fingerprint is compared to historical setups. Nearest neighbors are found using normalized Manhattan distance across 5 feature dimensions. Their resolved outcomes (success/failure) are distance-weighted to produce a probability.
Step 5: Blended Forecast — Base score and KNN probability are blended (configurable weight) into a final conviction percentage.
Step 6: Forward Tracking — The forecast is monitored over the evaluation window. Hold ratio and expansion targets determine success or failure.
Step 7: Memory Update — Resolved outcomes feed back into the KNN memory bank, continuously improving forecast accuracy on the current instrument.
Theme Presets
Curved — Full curved glass facades with 3D depth, regime fills, and heat strip
Classic — Clean curved envelopes without 3D effects
Heat Strip — Minimal view showing only the DX heat ribbon, markers, and connection lines
Custom — Full manual control over all visual parameters
Key Settings
My Trade Style — Balanced (standard width), Conservative (wider bands), or Aggressive (tighter bands)
Regime Mode — Swing (4-color ADX gradient) or Scalp (2-state impulse-driven)
Mid Line View — Lead (mid sits opposite price as support/resistance) or Follow (mid tracks toward price)
KNN Memory — Enable adaptive learning from historical pattern outcomes
Confidence Threshold — Minimum confidence % required to display a forecast label
Theme Preset — Quick visual style switching
Dashboard
The dashboard displays: Signal Leader (with win rate and direction), ADX Trend, Regime state, Structure (zone from VWMA positioning), Conviction (dominant confidence with ML/base tag), Impulse direction, Volatility regime, Session status, Win Rates, and Mode.
How to Use
Watch the regime color for the macro direction — teal and orange are bullish states, green and red are bearish
Read the heat strip color for conviction strength — vivid colors mean strong directional movement, yellow means caution
Follow the connection lines for structural trend tracking — solid thick lines with diamonds flag divergence between price and momentum
Trust confidence labels above your threshold — higher % means the forecast matches historically successful patterns
Respect rejection markers (x) — they mark where a forecast failed to materialize
Check the Leader in the dashboard — trade with the signal source that has been more reliable recently
Enable KNN Memory for instruments you trade regularly — it improves forecast accuracy as it accumulates resolved outcomes
Technical Notes
Works on any instrument and timeframe
No repainting — all signals confirm on bar close
KNN memory is session-scoped and builds over time on the current instrument
3D rendering uses polylines (max 100) with configurable segment count
Confidence scoring uses a 7-anchor cluster consensus, not a single indicator
Forecasts are forward-resolved with visible accountability — every prediction is tracked and scored
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice and should not be used as the sole basis for any trading or investment decision. Past performance of any signal, pattern, or scoring system does not guarantee future results. All trading involves risk, including the potential loss of principal. The machine learning components learn from historical data on the current instrument and timeframe — their predictions reflect pattern similarity, not certainty. The term "forecast" refers to probabilistic scoring of setup quality based on historical analogs, not a guarantee of future price direction. Always conduct your own analysis, manage your risk appropriately, and consult a qualified financial advisor before making trading decisions. The developer assumes no liability for any losses incurred through the use of this tool.
Indicator

Hash Auto Fibonacci## Overview
Hash Auto Fibonacci eliminates the most time-consuming part of Fibonacci trading — drawing the levels yourself. Drop it on any chart and it automatically detects the most recent significant swing high and swing low, then instantly draws a complete Fibonacci retracement web anchored to those pivots. No manual drawing, no subjectivity, no missed setups.
Built for active traders who use Fibonacci as a core part of their strategy, this tool is engineered to keep up with fast-moving markets through a volatility-adaptive detection engine, a highlighted Golden Pocket zone, a built-in stop-loss reference, and optional multi-timeframe confirmation.
## Key Features
**Automatic Swing Detection**
The indicator uses a pivot-based algorithm to identify swing highs and lows in real time. A pink dot marks the swing high and a green dot marks the swing low on the chart — always showing only the current active pair, never cluttering your screen with historical markers.
**Dynamic Lookback Engine**
Rather than using a fixed lookback period, Hash Auto Fibonacci automatically adjusts its sensitivity based on current market volatility. During high-volatility conditions (fast trending moves, breakouts), the lookback shortens to detect swings quickly. During low-volatility conditions (consolidation, ranging markets), it lengthens to filter out noise and identify only meaningful pivots. This is calculated using the ratio of a 50-period ATR to a 10-period ATR, scaled by a user-adjustable multiplier. You can also switch to a fixed manual lookback at any time.
**Fibonacci Retracement Levels**
The following retracement levels are drawn automatically:
- 0 (swing high anchor)
- 0.236
- 0.382
- 0.5
- 0.618
- 0.65
- 0.786
- 1.0 (swing low anchor)
Optional extension levels (1.272, 1.618, 2.618) can be enabled for targets beyond the swing low.
**The Golden Pocket Zone**
The 0.618–0.65 confluence zone is highlighted as a gradient-filled amber band directly on the chart. This region — known as the Golden Pocket — is widely regarded as the highest-probability reversal zone within any Fibonacci retracement. The zone enforces an ATR-based minimum thickness so it remains visible even on assets with small absolute price ranges.
**ATR Stop-Loss Reference**
A dashed red line is automatically drawn below the swing low (bullish setup) or above the swing high (bearish setup) at a distance of 2× ATR-10. This gives a data-driven starting point for your stop-loss placement without requiring a separate indicator.
**Multi-Timeframe Confirmation**
When the current chart's swing pivot aligns within 0.5% of a confirmed pivot on a higher timeframe (default: 4H), the entire Fibonacci web is visually upgraded — lines become bolder, a confirmation badge appears, and an alert can be triggered. MTF-confirmed webs represent structurally significant levels that multiple timeframes agree on, which historically carry more weight as support and resistance.
**Direction Detection**
The indicator automatically determines whether the current setup is bullish (retracing upward from a low) or bearish (retracing downward from a high) by comparing which pivot — the high or the low — was confirmed most recently. You can override this manually if needed.
**Info Dashboard**
A clean navy dashboard in the corner of your chart displays:
- Current swing high and swing low prices
- 0.5 and 0.618 Fibonacci levels
- Golden Pocket price range
- Suggested ATR-based stop-loss price
- Active lookback period (and whether it's dynamic or manual)
---
## How To Use
**Basic setup**
Add the indicator to any chart. It works on all timeframes and all assets — crypto, stocks, forex, futures. The Fibonacci web draws automatically. The Golden Pocket zone is the primary area to watch for price reactions.
**Reading the chart**
- Price pulling back into the Golden Pocket (0.618–0.65 zone) in a bullish setup is the classic high-probability long entry zone
- Price rejecting from the Golden Pocket in a bearish setup is a potential short entry or profit-taking zone
- The 0.5 level acts as the midpoint — a close above (bullish) or below (bearish) confirms continuation of the retracement
- The 0.786 level is deep — a sweep past this level often signals the retracement is becoming a full reversal
**Using the stop-loss line**
The dashed red SL line is a reference, not a guaranteed stop placement. Use it as a starting point and adjust to your own risk tolerance. On volatile assets, consider placing your stop slightly beyond it to avoid wicks triggering your exit prematurely.
**Multi-timeframe confirmation**
When the ◆ MTF badge appears, the swing that anchors the current web also exists on the higher timeframe. These setups tend to produce cleaner reactions at Fibonacci levels because they represent areas where both short-term and institutional timeframe participants are watching the same price zone.
**Alerts**
Five alert conditions are available:
- New swing high detected
- New swing low detected
- MTF confirmation active
- Price entering the Golden Pocket
- Price at the 0.382 level
- Price at the 0.786 level
Set these in the Alerts panel to get notified without watching the chart constantly.
---
## Settings Reference
**Swing Detection**
| Setting | Default | Description |
|---|---|---|
| Dynamic lookback | On | Automatically adjusts pivot sensitivity based on volatility |
| Manual lookback | 10 | Fixed lookback used when dynamic mode is off |
| Dynamic multiplier | 9 | Controls the average lookback length in dynamic mode |
| Direction mode | Auto | Auto, Bullish, or Bearish override |
| Show swing markers | On | Displays pivot dots on the chart |
**Multi-Timeframe Confirmation**
| Setting | Default | Description |
|---|---|---|
| MTF confirmation | On | Enables higher timeframe pivot alignment check |
| HTF timeframe | 240 (4H) | The timeframe used for confirmation pivots |
**Fibonacci Levels**
| Setting | Default | Description |
|---|---|---|
| Retracement levels | On | Draws the standard 0–1 retracement web |
| Extension levels | Off | Adds 1.272, 1.618, 2.618 extension targets |
| Ratio labels | On | Shows ratio numbers next to each level |
| Golden Pocket zone | On | Highlights the 0.618–0.65 zone |
| ATR stop-loss line | On | Draws the 2× ATR stop reference |
**Info Table**
| Setting | Default | Description |
|---|---|---|
| Show info table | On | Displays the dashboard |
| Position | Top Right | Corner placement of the dashboard |
---
## Notes
- This indicator is an overlay — it draws directly on the price chart
- Works on all timeframes, all markets, and all asset classes available on PulseWire
- The dynamic lookback is calibrated on BTC/USDT 1H data and performs well across most liquid crypto and equity instruments
- Past Fibonacci levels do not guarantee future price reactions — use this tool as part of a broader trading system, not as a standalone signal
- This indicator does not repaint. Swing pivots are confirmed before being drawn and are not subject to change after confirmation
---
## By Hash Capital Research
Indicator

Intuitive Trade Regime [TraderZen]The 3D Geometry of Momentum.
Try this on your favorite chart! Every trader thinks in images. We say the market "took a turn," that price is "going sideways" .. that a breakout "jumped over resistance." We describe a selloff as a "cliff drop" and a rally as a "rapid rise." We watch price "bounce off support" or "breach the borders" of a range. These are not casual metaphors — they are how the mind actually processes price action.
This indicator is built for that visual mind. It translates the structure of price movement into shapes that feel familiar — not because they have been studied, but because they have been seen. The goal is not to add more data to the chart. It is to make what is already there easier to perceive.
The Staircase
Price does not move in lines. It moves in segments — rises and flats, drops and pauses. In structure, this is no different from a staircase. Each trend segment is a step, and the shape of that step tells a story.
The tread — the horizontal span — shows how long a regime held. A wide tread means price spent time consolidating before the next move. A narrow one means momentum carried through without pause.
The riser — the vertical face between steps — shows the magnitude of the shift. A tall riser marks a decisive regime change. A short one marks a continuation, a nudge in the same direction.
The landing — a wider, flatter segment — appears when the market pauses to establish a range before committing. It is the moment between moves where direction has not yet been decided.
And the nosing — the overshoot at each edge — reveals how aggressively price tested the boundary before accepting it.
When these elements are narrow and steep, the staircase is rickety — momentum is high but potentially unstable. When they are wide and gradual, the staircase is solid — a measured, deliberate trend. When they alternate in size, the staircase is winding — a market searching for direction.
This is not a metaphor layered onto the chart. It is what the channel segments actually form. The indicator simply makes the staircase visible.
Perspective as Information
One of the more unusual features of this indicator is its use of 3D depth — not for decoration, but for orientation.
In a downward move, the depth faces project upward and behind, as if you are standing above and looking down at the price descending below you. The top surface of each segment is visible. You see where price came from.
In an upward move, the depth reverses. The faces project downward and forward, as if you are looking up at a structure rising above you. The underside of each segment is exposed. You see the climb from below.
This is not arbitrary. It mirrors how we naturally perceive direction. Looking down implies a fall. Looking up implies a rise. The perspective reinforces the regime — making it something you feel, not just something you read from a label.
The direction of depth is fully configurable, with independent control for bull and bear segments. But the defaults are set to match this natural orientation: upward moves seen from below, downward moves seen from above.
Compression and Expansion
The width of the channel adapts to volatility. When the channel tightens, price is compressing — energy is building. When it widens, expansion is underway — the move is in progress.
In tight bear segments, the depth face breaks into a cascading waterfall pattern — stepped terraces that descend like water over ledges. This is not cosmetic. Narrow bear channels often represent rapid, liquidation-driven moves, and the waterfall texture makes that character immediately visible.
In tight bull segments, the depth face becomes jagged — an ascending cliff with rough, uneven edges. Narrow bull channels often reflect sharp, momentum-driven rallies, and the rocky texture communicates that energy at a glance.
These effects activate automatically when the channel compresses below a configurable threshold relative to ATR. When the channel is wide, the faces remain smooth and clean.
What the Channel Tells You
The mid line is the structural anchor. In Lead mode, it sits on the opposite side of price — acting as support in uptrends and resistance in downtrends, decaying slowly away from price like a trailing reference. In Follow mode, it tracks toward price, blending with the local basis.
The bands define the expected range. Price staying within the bands confirms the current regime. A confirmed break beyond the band triggers a regime change — marked by a triangle on the chart.
Retests occur when price touches the far band without conviction. These are marked with smaller arrows and often represent pullback entries within the trend.
Continuation steps fire when price pushes further in the current direction, extending the trend. Refresh events occur when a segment has aged out or drifted too far from the local basis — the channel quietly re-anchors without changing direction.
Each of these events reshapes the staircase. A regime flip starts a new step. A continuation extends the current one. A refresh adjusts the footing without changing the path.
Themes
The indicator ships with preset visual themes that configure the gradient, transparency, and 3D settings as a group:
Classic — Clean channel with gradient fills. No 3D effects. The original look for those who prefer simplicity.
Price Slabs — Solid 3D segments with depth and perspective. The staircase made tangible. Waterfall and cliff effects enabled.
Neon Glass — Translucent 3D segments with a lighter touch. The structure is visible but does not dominate the chart.
Custom — Full control over every parameter. Build your own visual language.
All themes respect your chosen colors. Switching themes changes the structure and feel — not the palette.
A Note on Design Philosophy
Most indicators ask the trader to interpret numbers. This one asks the trader to observe shapes. The thesis is simple: if the visual representation is honest — if the shapes genuinely correspond to the character of the move — then pattern recognition does what it has always done. The trader sees what is happening, and the chart stops being a puzzle to decode.
The 3D effects, the staircase structure, the perspective shifts — these are not aesthetic choices. They are attempts to give price action a physical presence on the chart, so that reading a trend feels less like analyzing data and more like watching something move.
That is what intuitive means here. Not simplified. Not dumbed down. Just shaped for the way the eye already works.
Disclaimer
This indicator is a visual analysis tool designed to aid in the interpretation of price action. It does not generate buy or sell signals, and nothing presented here constitutes financial advice, a trading recommendation, or a solicitation to trade any financial instrument. Past visual patterns do not guarantee future price behavior. All trading involves risk, including the potential loss of principal. Users are solely responsible for their own trading decisions and should consult a qualified financial advisor before acting on any information derived from this or any other technical tool. The author assumes no liability for any losses incurred through the use of this indicator.
Built by TraderZen
Indicator

Volume Defense Zones [MarkitTick]💡 The Volume Defense Zones is a professional-grade liquidity analysis engine designed to identify institutional interest by isolating ultra-high volume transactions and mapping them as dynamic support and resistance zones. Unlike standard volume indicators that merely plot vertical bars, this script utilizes a sophisticated heatmap engine and a multi-timeframe (MTF) overlay to provide a three-dimensional view of market participation. By calculating the Volume Weighted Average Price (VWAP) specifically for high-intensity bars, the indicator creates "Defense Zones"—price levels where large-scale players have historically committed significant capital.
● ✨ Originality and Utility
This indicator distinguishes itself from the vast library of open-source tools through its unique "Search Depth" logic and automated zone merging capabilities. While many scripts identify volume spikes, they often clutter the chart with overlapping lines that lose relevance over time. This system solves that problem by:
• Dynamic Zone Consolidation
The script includes a proprietary merge threshold algorithm. If two high-volume defense levels are within a user-defined percentage of each other, the script automatically merges them into a single "Defense Box." This reflects the reality of market "zones" rather than surgical price points.
• Multi-Timeframe Institutional Benchmarking
By integrating a built-in MTF overlay, traders can visualize 4-hour or Daily volume defense zones while trading on a 5-minute chart. This ensures that the user is always aware of the "Big Picture" liquidity levels that are likely to hold during intraday volatility.
• Historical Ghosting and Breakout Analysis
The script tracks whether a zone is "active" or "broken." When price breaches a defense level, the zone doesn't simply disappear; it transforms into a "Ghost Zone" (dotted line), allowing traders to analyze S/R flips and historical retests of previously defended levels.
● 🔬 Methodology and Concepts
The core logic of the Volume Defense Zones is rooted in the identification of "Abnormal Volume" relative to a historical lookback period.
• Peak Volume Identification
The script maintains a rolling window of volume data defined by the "Comparison Length" input. A bar is classified as "Ultra High Volume" only if its volume exceeds the maximum volume recorded in that lookback window. This ensures that the signals adapt to changing market regimes (e.g., high-volatility sessions vs. low-volume holidays).
• The Defense Calculation
For every identified volume peak, the script calculates a localized VWAP using the internal formula:
Accumulated (Volume * Bar Body Center) / Total Volume.
This price level represents the "Average Cost Basis" of the participants during that specific high-intensity event. If the price remains above this VWAP, the level is treated as a Bullish Defense (Support). If price stays below it, it is a Bearish Defense (Resistance).
• Multi-Timeframe (MTF) Security
Using the request.security function with barmerge.lookahead_on (and appropriate offsets to prevent repainting), the script fetches high-volume levels from higher timeframes. This provides a top-down liquidity map that identifies where large institutions are "defending" their positions.
● 🎨 Visual Guide
The visual output is divided into three primary categories to ensure maximum clarity and actionable data visualization:
• The Volume Heatmap (Bottom Pane)
Instead of standard green and red bars, this script uses a professional 5-color heatmap gradient:
- Deep Blue (HM_C0): Low interest / baseline volume.
- Teal/Cyan (HM_C1/HM_C2): Rising interest.
- Gold (HM_C3): High participation.
- Bright Red (HM_C4): Ultra-High Volume.
These bars are framed with thicker borders when a new peak is detected, making the "Ultra Vol" events immediately visible.
• Defense Zones and Labels
- Green Boxes (ZONE_BULL_COL): Represent active bullish defense zones where buyers are currently in control of the high-volume level.
- Red Boxes (ZONE_BEAR_COL): Represent active bearish defense zones where sellers are successfully defending the level.
- Blue/Neutral Boxes (ZONE_INSIDE_COL): Represent zones where the price is currently trading inside the defense range, indicating a period of consolidation or "battle."
- Dotted Lines/Boxes: These are "Broken" or "Ghost" zones. They indicate levels that were previously significant but have been breached.
• Trend Climax Indicators
The script plots specific triangles on the volume bars:
- Green Up Triangle (▲): Bullish Climax. Occurs when price is trending down but a high-volume reversal is detected above the VWAP.
- Red Down Triangle (▼): Bearish Climax. Occurs when price is trending up but a high-volume rejection is detected below the VWAP.
• Professional Dashboard
A clean table in the top-right corner displays real-time statistics, including Total Volume, Max Volume, Average Volume, and the total count of analyzed bars.
● 📖 How to Use
Identifying Institutional Support: Look for thick green boxes formed during "Ultra High Vol" events. These are areas where price is likely to bounce upon a retest.
Trading the Breakout: When a red resistance zone is breached and turns into a dotted "Ghost" zone, wait for a retest of that level. If price holds above it, the old resistance has become new support.
Filtering with MTF: Only take long trades when the price is above the Purple MTF lines, which represent the higher-timeframe institutional defense levels.
Exhaustion Signals: Use the Climax Triangles (▲/▼) to identify potential trend reversals. A red triangle at the end of a long uptrend often signals that "smart money" is distributing their positions.
● ⚙️ Inputs and Settings
• Volume Settings
- Time Resolution: Allows you to change the granularity of the volume analysis.
- Comparison Length: Defines the lookback period (default 20) for determining what constitutes a "Peak" volume bar.
• Visual & Analysis
- Search Depth (Levels): Controls how many historical S/R zones are displayed on the chart. Increasing this provides more historical context but may clutter the view.
- Merge Threshold (%): A critical setting that defines how close two price levels must be to be grouped into a single zone.
- Show All Data Labels: Toggles the display of exact volume figures above the bars.
• Multi-Timeframe Overlay
- HTF Timeframe: Set the higher timeframe (e.g., 240 for 4-hour) to see macro defense zones.
- Max HTF Zones: Limits the number of MTF lines drawn to keep the chart clean.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The indicator is constructed upon the principles of **Auction Market Theory (AMT)** and **Volume Spread Analysis (VSA)**.
• Auction Market Theory
The fundamental premise is that the market is an ongoing auction where the purpose of price is to find the area where the most volume can be transacted. The "Defense Zones" calculated by this script represent "High Volume Nodes" (HVN). Scientifically, these are levels of high price acceptance. When price moves away from these zones and returns, the script tests whether the "Value" has shifted or if the previous participants are still willing to transact at that level.
• Statistical Outlier Theory
The "Ultra High Volume" detection utilizes a non-parametric approach to identify outliers. By comparing the current volume to the rolling maximum of the previous $N$ periods, the script effectively identifies events that fall outside the standard distribution of market activity. This is mathematically equivalent to identifying "Z-score" spikes in volume, signifying a significant shift in market sentiment or the injection of institutional liquidity.
• Volume Weighted Cost Basis (VWCB)
The use of VWAP within the defense zones is based on the academic concept of the "Volume Weighted Cost Basis." In institutional finance, the execution quality of a large trade is measured against the VWAP. Therefore, these levels act as psychological and financial "anchors" for large participants who need to protect their average entry price to maintain a profitable position.
⚠️ 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

SMC Core Lite - Signals█ OVERVIEW
SMC Core Lite is a lightweight, performance-optimized Smart Money Concepts (SMC) indicator designed to help traders identify institutional trading patterns and generate high-probability trade signals.
This indicator combines the most essential SMC elements - Fair Value Gaps (FVG), Order Blocks (OB), and Break of Structure (BOS) - into a single, easy-to-use tool with automatic LONG/SHORT signal generation.
█ CONCEPTS
The indicator is built on the foundation of Smart Money Concepts, a trading methodology that focuses on understanding how institutional traders (banks, hedge funds, market makers) move the markets.
🔹 Break of Structure (BOS)
When price breaks above a swing high or below a swing low, it signals a potential continuation of the trend. This confirms the market's directional bias.
🔹 Change of Character (CHoCH)
When BOS occurs against the prevailing trend, it signals a potential trend reversal. This is a powerful early warning sign of shifting market sentiment.
🔹 Fair Value Gaps (FVG)
Also known as imbalances, FVGs are areas on the chart where price moved so quickly that it left a "gap" in the price action. These zones often act as magnets for price to return and fill.
🔹 Order Blocks (OB)
Order blocks represent the last opposing candle before a strong impulsive move. These zones mark areas where institutional orders were placed and often act as strong support/resistance levels.
█ FEATURES
• ✅ Break of Structure (BOS) Detection
• ✅ Change of Character (CHoCH) Detection
• ✅ Fair Value Gap (FVG) Identification
• ✅ Order Block (OB) Detection
• ✅ Automatic LONG/SHORT Signals
• ✅ Auto Stop Loss & Take Profit Levels
• ✅ Market Bias Dashboard
• ✅ Customizable Risk:Reward Ratio
• ✅ Signal Cooldown Filter
• ✅ Alert Conditions for All Events
• ✅ Lightweight & Fast Loading
█ HOW IT WORKS
The signal generation follows a confluence-based approach:
🟢 LONG SIGNAL CONDITIONS:
1. Price pulls back into a bullish zone (Bullish FVG or Bullish OB)
2. Recent Bullish BOS/CHoCH confirmed OR Market Bias is Bullish
3. Current candle closes bullish (confirmation)
4. Signal cooldown period has passed
🔴 SHORT SIGNAL CONDITIONS:
1. Price pulls back into a bearish zone (Bearish FVG or Bearish OB)
2. Recent Bearish BOS/CHoCH confirmed OR Market Bias is Bearish
3. Current candle closes bearish (confirmation)
4. Signal cooldown period has passed
█ HOW TO USE
1. Add the indicator to your chart
2. Wait for market structure to develop (BOS/CHoCH labels)
3. Observe the Market Bias in the dashboard (BULL 🐂 or BEAR 🐻)
4. Look for LONG signals in bullish bias, SHORT signals in bearish bias
5. Use the auto-generated SL/TP levels for trade management
6. Set alerts to get notified of new signals
█ SETTINGS
═══ SIGNALS ═══
• Show LONG/SHORT Signals → Enable/disable signal labels
• Show SL/TP Lines → Display stop loss and take profit levels
• Risk:Reward → Set your desired R:R ratio (1:1 to 1:5)
• Signal Cooldown → Minimum bars between signals (reduces noise)
═══ STRUCTURE ═══
• Show BOS/CHoCH → Display structure break labels
• Swing Length → Lookback period for swing point detection
═══ ZONES ═══
• Show FVG → Display Fair Value Gap boxes
• Show Order Blocks → Display Order Block boxes
• Zone Lookback → Historical bars to analyze
• OB Strength → ATR multiplier for impulse move detection
█ ALERTS
The indicator includes 4 alert conditions:
1. 🟢 LONG Signal → Triggered when a buy signal appears
2. 🔴 SHORT Signal → Triggered when a sell signal appears
3. 🟢 Bullish BOS → Triggered on bullish break of structure
4. 🔴 Bearish BOS → Triggered on bearish break of structure
To set alerts: Right-click on chart → Add Alert → Select this indicator → Choose condition
█ IMPORTANT NOTES
⚠️ This indicator is optimized for speed and performance. It stores only the most recent 10 FVGs and 10 Order Blocks to ensure fast loading times.
⚠️ Works best on higher timeframes (15m, 1H, 4H, Daily) where market structure is cleaner.
⚠️ Always use proper risk management. No indicator is 100% accurate.
█ BEST PRACTICES
✅ Trade in the direction of the higher timeframe bias
✅ Wait for price to pull back to zones before entering
✅ Use the 50% level of zones for optimal entries
✅ Combine with your own analysis for best results
✅ Backtest before using with real capital
█ DISCLAIMER
This indicator is for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss and is not suitable for all investors. Past performance is not indicative of future results. Always do your own research and consider your financial situation before making any trading decisions.
█ CREDITS
Inspired by the Smart Money Concepts trading methodology and ICT (Inner Circle Trader) concepts.
If you find this indicator helpful, please consider giving it a boost 🚀 and following for more trading tools!
█ VERSION HISTORY
v1.0 - Initial Release
• BOS/CHoCH Detection
• FVG & Order Block Identification
• LONG/SHORT Signal Generation
• Auto SL/TP Calculation
• Market Bias Dashboard
• Alert Conditions Indicator

Smart Confluence█ SMART CONFLUENCE (SC)
Multi-Factor SMC Trading System
Smart Confluence combines multiple market structure signals into a single confluence score . When enough signals align, it generates BUY/SELL setups with precise Entry Zones, Stop Loss, and 3 Take Profit levels — all fully automated.
Free and Open Source.
█ THE CONCEPT: WHY CONFLUENCE MATTERS
No single indicator is reliable on its own. A CHOCH can fail. An Order Block can break. A sweep can be a fakeout. But when 4-6 different signals all agree at the same time — that's when the probability is in your favor.
Smart Confluence requires a core trigger (CHOCH, Sweep, or EQ-Grab) PLUS enough confirmations to reach the minimum confluence threshold before any signal fires. This eliminates most false signals.
█ CORE FEATURES
1. Market Structure Detection
Automatic Swing High/Low identification with Change of Character (CHOCH) — the moment a downtrend breaks above the last swing high (bullish) or an uptrend breaks below the last swing low (bearish). CHOCH is worth 2 confluence points.
2. Liquidity Sweeps
Detects stop-hunt patterns where price sweeps below recent lows (or above recent highs) and reverses. These sweeps indicate smart money collecting liquidity before the real move. Worth 2 confluence points.
3. EQH/EQL (Equal Highs/Lows)
Identifies liquidity pools where multiple swing points cluster at the same price level. When price sweeps through these clusters (EQ-Grab), it signals institutional order flow. Worth 3 confluence points (configurable).
4. Order Blocks & Fair Value Gaps
Order Blocks — The last opposing candle before a strong move — institutional supply/demand zones. +1 point when price is inside.
FVGs — Price imbalances (gaps between candles) that act as magnets. +1 point when price is inside.
5. Premium/Discount Zones
Calculates where price is relative to the current range. Buy in discount (<50%), sell in premium (>50%). OTE (Optimal Trade Entry) bonus for the 62-79% retracement zone. Up to +3 confluence points.
6. Confirmation Filters
Volume — High volume confirms institutional activity (+1-2 points)
RSI Divergence — Momentum exhaustion = strong reversal signal (+2 points)
EMA Trend Filter — Price vs EMA21/50/200 alignment (+1-2 points)
ATR Volatility — High volatility confirms market activity (+1 point)
HTF Trend — Higher timeframe trend agreement (+1 point)
Candlestick Patterns — Engulfing, Hammer, Shooting Star (+1 point)
█ AUTO-TIMEFRAME ADAPTATION
All parameters auto-adjust to your chart timeframe: Swing Length, Cooldown, OB Lookback, Min Confluence, HTF selection, SL Buffer, Min R:R, EQ Tolerance, EQ Age, Setup duration, S/R Cluster. Supports 1m to Monthly.
█ S/R ZONE DETECTION
Automatic Support/Resistance zones built from clustering multiple sources: Swing points, Order Blocks, FVGs, EQH/EQL levels, HTF levels. Each zone gets a strength score (1-5). Only shows the strongest zones.
█ ENTRY / SL / TP SYSTEM
Entry Zone — Based on active Order Block or FVG. Falls back to current candle range.
Stop Loss — 4 modes: Entry-Based, Swing, ATR, or SMC (below OB/FVG). R:R filter ensures minimum reward.
Take Profit — 4 modes: Structure (next swing), Fixed R:R, ATR-based, or Hybrid (structure if available, else R:R).
Partial TP — Configurable distribution (50/30/20, 33/33/34, 40/40/20, 60/30/10).
█ DASHBOARD
Compact dark-themed info panel showing: Mode (Auto/Manual + TF), Trend direction, HTF confirmation, Premium/Discount zone, S/R levels with strength, Bull/Bear confluence scores, Active setup details (direction, R:R, SL, Entry, TP1-3), SL/TP mode, Partial distribution.
█ ALERTS (8 CONDITIONS)
BUY Signal — Full confluence with valid R:R
SELL Signal — Full confluence with valid R:R
Bullish CHOCH — Trend reversal detected
Bearish CHOCH — Trend reversal detected
EQH Grab — Liquidity pool swept (bearish)
EQL Grab — Liquidity pool swept (bullish)
Bullish Sweep — Stop hunt detected
Bearish Sweep — Stop hunt detected
█ PRO VERSION
The PRO version (Smart Confluence Pro) adds:
Signal Profile Presets — Scalping, Intraday, Swing, Position, Aggressive, Conservative, SMC Pure
Asset Auto-Detection — Crypto, Forex, Stock, Futures with 8 scaling factors
A/B/C Signal Grading — Quality scoring based on Zone, HTF, Volume, Session, Divergence
Risk Management — Account size, risk %, position sizing, custom partial distributions
Session Filter — London, New York, Asia sessions with overlap detection
Funding Rate — Crypto perpetual funding rate as contrarian confluence
Trailing Stop Loss — Break-Even + Trail TP modes
Trade Management Alerts — TP1/TP2/TP3 hit, SL hit, Trailing updates, Setup expiry
14+ Alert Types — Including A-Grade only alerts
█ NON-REPAINTING
All signals require confirmed bars (barstate.isconfirmed for EQH/EQL). Signal confirmation waits for the next candle. HTF data uses lookahead=barmerge.lookahead_off. No future data leakage. No repainting.
█ WORKS ON
Crypto, Forex, Stocks, Futures, Indices — any timeframe from 1 minute to Monthly.
█ DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice. Always do your own research and manage your risk. Past performance does not guarantee future results. Trading involves substantial risk of loss.
Indicator

[ A L P H A X ] Structure - Smart Money Concepts [SMC]AlphaX Structure — Smart Money Concepts: BOS, CHoCH, Order Blocks, FVG, Liquidity Sweeps, Equal H/L, Displacement & Live Dashboard
AlphaX Structure is a comprehensive Smart Money Concepts (SMC) and ICT-methodology visualization tool that automatically maps market structure, institutional order flow zones, imbalances, and liquidity levels on your chart. It detects Break of Structure, Change of Character, Order Blocks with touch tracking, Fair Value Gaps with real-time fill percentage, liquidity sweeps, equal highs and lows, displacement candles, premium and discount zones — all presented through a clean, professional interface with a live dashboard showing market context at a glance.
Built for traders who analyze markets through the lens of institutional order flow and smart money behavior.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Market Structure — BOS & CHoCH
The foundation of smart money analysis is understanding where structure breaks and when character changes .
Break of Structure (BOS)
A BOS occurs when price breaks a swing high or swing low in the direction of the existing trend — confirming that the current trend is continuing. BOS is plotted as a dashed horizontal line at the broken level with a "BOS" label offset slightly above or below for clear visibility.
Bullish BOS — price closes above a prior swing high while the market is already in a bullish structure. This confirms buyers remain in control and the uptrend is intact.
Bearish BOS — price closes below a prior swing low while the market is already in a bearish structure. This confirms sellers remain dominant and the downtrend continues.
Change of Character (CHoCH)
A CHoCH occurs when price breaks a swing high or swing low against the direction of the existing trend — signaling a potential trend reversal. CHoCH is plotted as a dotted horizontal line (visually distinct from BOS) with a "CHoCH" label.
Bullish CHoCH — price closes above a swing high while the market was previously bearish. This is the first structural sign that sellers may have lost control and a bullish reversal is forming.
Bearish CHoCH — price closes below a swing low while the market was previously bullish. This warns that buyers may be exhausted and a bearish reversal could be underway.
CHoCH is the earliest structural reversal signal. When you see a CHoCH followed by a BOS in the new direction, the trend shift is confirmed.
The indicator tracks the internal market trend state automatically. Once a bullish CHoCH fires, all subsequent structure breaks in the same direction are classified as BOS (continuation) until a bearish CHoCH resets the trend — and vice versa.
Swing Classification
When swing point labels are enabled, each pivot is classified as:
HH — Higher High (bullish continuation)
HL — Higher Low (bullish continuation)
LH — Lower High (bearish continuation)
LL — Lower Low (bearish continuation)
This gives you the complete market structure sequence — HH + HL = uptrend, LH + LL = downtrend — at a glance without manually marking swings.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 Order Blocks (OB) — With Touch Tracking
Order Blocks are the last opposing candle before a strong move — the zone where institutional orders were placed. AlphaX Structure detects Order Blocks automatically using two methods:
Engulfing Pattern Detection — a candle that fully engulfs the prior candle's body, indicating aggressive institutional entry
Strong Displacement Detection — a candle that breaks through two prior bars' highs or lows, showing powerful directional commitment
Each Order Block is drawn as a filled box spanning the body of the origin candle. The box extends forward in time, remaining on the chart as a potential reaction zone.
What makes this unique — Touch Counting:
Most SMC indicators simply show or hide Order Blocks. AlphaX Structure tracks how many times price retests each Order Block and displays the count directly on the label:
OB — fresh, untested Order Block
OB ×1 — price has retested this zone once
OB ×2 — price has retested this zone twice
OB ×3+ — multiple retests — the zone is weakening
This is critical information. A fresh OB with zero touches is the highest probability reaction zone. An OB that has been tested 3 or more times is significantly weaker — institutional orders at that level have likely been filled, and the zone may fail on the next test.
Mitigation:
When price closes through an Order Block (beyond its far edge), the OB is considered mitigated . It grays out and stops extending — visually clearing the chart while preserving the historical record of where the zone existed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Fair Value Gaps (FVG) — With Fill Percentage
A Fair Value Gap is a three-candle imbalance where the wick of the first candle and the wick of the third candle do not overlap — creating a gap in price that represents inefficient price delivery. These gaps act as magnets that price tends to return to and fill.
Bullish FVG — gap between the high of candle 1 and the low of candle 3 (upward imbalance). Price tends to pull back down to fill this gap before continuing higher.
Bearish FVG — gap between the low of candle 1 and the high of candle 3 (downward imbalance). Price tends to push back up to fill this gap before continuing lower.
Each FVG is drawn as a dotted-border box with a midpoint line through the center. The midpoint represents the 50% level of the imbalance — often the precise level where price reacts.
What makes this unique — Real-Time Fill Percentage:
AlphaX Structure calculates and displays how much of each FVG has been filled as price returns to the zone:
FVG — unfilled gap, no price has entered the zone
FVG 35% — price has partially filled 35% of the gap
FVG 72% — price has filled most of the gap
FVG ✓ — gap has been fully mitigated (price closed through the entire zone)
This gives you precision that no standard FVG indicator provides. A gap that is 70% filled but holding at the midpoint is behaving differently than one that was filled in a single candle. The fill percentage helps you judge whether the imbalance has been respected (potential bounce) or is being aggressively closed (continuation through).
A minimum FVG size filter (in ticks) is available to remove insignificant micro-gaps that clutter the chart on lower timeframes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💰 Liquidity Sweeps
Liquidity sweeps occur when price wicks beyond a recent high or low but closes back inside the range — indicating a stop hunt or liquidity grab by institutional players. This is one of the most important concepts in ICT methodology.
Buy-side Sweep — price wicks above the recent highest high (grabbing buy-stop liquidity) but closes back below with a bearish candle. This often precedes a reversal lower. Labeled as "$ sweep" above the bar.
Sell-side Sweep — price wicks below the recent lowest low (grabbing sell-stop liquidity) but closes back above with a bullish candle. This often precedes a reversal higher. Labeled as "$ sweep" below the bar.
The lookback period for defining "recent" highs and lows is configurable, allowing you to tune sensitivity from tight scalping sweeps to broader swing-level liquidity grabs.
Liquidity sweeps are most powerful when they occur at key levels — equal highs/lows, Order Block zones, or previous day/week extremes. When a sweep aligns with an OB or FVG, the probability of a reaction increases significantly.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚖ Equal Highs & Equal Lows (EQH / EQL)
When two consecutive swing highs or swing lows form at approximately the same price, they create a liquidity pool . Retail traders place stops just beyond these levels, and institutional players know exactly where those stops are clustered.
EQH (Equal Highs) — two swing highs at nearly identical prices. A dashed line extends forward marking this level as a target for buy-side liquidity sweeps. Market makers frequently drive price above equal highs to trigger stops before reversing.
EQL (Equal Lows) — two swing lows at nearly identical prices. A dashed line marks this as a sell-side liquidity target. Expect price to sweep below before potentially reversing.
The tolerance for what counts as "equal" is configurable as a percentage (default 0.02%). This prevents false matches while catching genuinely significant double-top and double-bottom liquidity formations.
Equal Highs and Equal Lows are prime targets — when you see price approaching an EQH from below or an EQL from above, be prepared for either a sweep-and-reverse or a clean breakout. The market structure context (BOS vs CHoCH) and the presence of nearby Order Blocks will help you determine which scenario is more likely.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔥 Displacement Candles
Displacement represents aggressive institutional commitment — a candle whose body is significantly larger than normal, showing that smart money entered with force. AlphaX Structure identifies displacement candles using two criteria:
The candle body must exceed the Average True Range (ATR) multiplied by a configurable factor (default 2.0×)
The body must occupy more than 60% of the total candle range (strong body-to-wick ratio — institutional candles close near their extreme, not in the middle)
Bullish displacement candles are marked with a diamond below the bar. Bearish displacement candles are marked with a diamond above the bar.
Displacement candles are the engine behind structure breaks . When a BOS or CHoCH is accompanied by a displacement candle, the move has genuine institutional backing. When structure breaks occur on weak, indecisive candles, the break is more likely to fail.
Additionally, displacement candles often create Fair Value Gaps . When you see a displacement diamond next to an FVG box, you know the imbalance was created by a powerful move — making that FVG a higher-probability reaction zone.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💪 Candle Strength Dots
An optional feature that marks individual candles based on their relative strength compared to the ATR:
Strong Bullish Candle — body exceeds 1.2× ATR with body ratio above 55%, bullish close. Dot appears below the bar.
Strong Bearish Candle — same criteria, bearish close. Dot appears above the bar.
This is a quick visual filter for identifying which candles represent genuine conviction versus noise. Disabled by default to keep the chart clean — enable it when you want granular candle-level analysis.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Premium & Discount Zones
The indicator calculates the current trading range using a configurable lookback period and divides it into:
Premium Zone — the upper 25% of the range, shaded with the bear color. In ICT methodology, the premium zone is where smart money sells. Buying in premium is inherently risky.
Discount Zone — the lower 25% of the range, shaded with the bull color. This is where smart money buys. Selling in discount is inherently risky.
Equilibrium (EQ) — the exact 50% midpoint of the range, marked with a dotted cross line. This is the fair value level. Price above EQ is in premium territory; price below EQ is in discount territory.
The Premium and Discount zones are drawn using boxes and lines that do not affect the chart's price scale — your candles will always display at their natural size regardless of the range lookback setting.
The dashboard displays your exact position within the range as a percentage: "DISCOUNT 18%" means price is in the lower 18% of the range — deep discount. "PREMIUM 85%" means price is in the upper portion — extended and vulnerable to pullback.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 Live Dashboard
A comprehensive real-time reference panel that updates on every bar, providing complete market context without needing to scan the chart:
STRUCTURE — current market structure direction: ▲ BULLISH, ▼ BEARISH, or — NEUTRAL, based on the most recent BOS or CHoCH
EMA BIAS — longer-term directional bias based on price position relative to 50 and 200 EMA alignment
ZONE — whether price is currently in PREMIUM, UPPER EQ, LOWER EQ, or DISCOUNT territory, with exact percentage
EQ LEVEL — the exact price of the current range equilibrium, formatted to the instrument's tick size
RSI (14) — current RSI value, color-coded: green in oversold territory, red in overbought, neutral in the middle
VOLATILITY — current volatility regime (HIGH / NORMAL / LOW) based on ATR as a percentage of price, with the exact ATR value
VOLUME — current volume relative to the 20-period average: SPIKE (>2×), ABOVE AVG (>1.3×), NORMAL, or DRY (<0.7×)
ORDER BLOCKS — number of currently active (unmitigated) Order Blocks, broken down by bullish and bearish count
FAIR VALUE GAPS — number of currently active (unfilled) FVGs, broken down by bullish and bearish count
SWING HIGH — the most recent confirmed swing high price
SWING LOW — the most recent confirmed swing low price
The dashboard title "A L P H A X S T R U C T U R E" is displayed in the signature yellow-green theme color. All values are color-coded to match their significance — bullish values in yellow-green, bearish values in red, neutral in gray.
Dashboard position (Top Left, Top Right, Bottom Left, Bottom Right) and text size (Tiny, Small, Normal) are fully configurable.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 Visual Design Philosophy
AlphaX Structure follows a strict dual-tone color theme for maximum clarity:
Yellow-Green (#c8e624) — all bullish elements: bullish BOS, bullish OBs, bullish FVGs, equal lows, discount zones, bullish displacement, sweep recoveries
Red (#ff1744) — all bearish elements: bearish BOS, bearish OBs, bearish FVGs, equal highs, premium zones, bearish displacement, sweep rejections
Gray (#555555) — neutral and mitigated elements: mitigated OBs and FVGs, equilibrium line, inactive zones
Structure labels (BOS, CHoCH, OB, FVG, EQH, EQL) are offset from their reference lines by a dynamic ATR-based spacing value. This ensures labels never sit directly on top of the lines they reference — maintaining readability at any zoom level and on any instrument.
All label sizes are configurable from a single setting (Tiny, Small, Normal, Large), and structure line widths for BOS and CHoCH are independently adjustable.
Mitigated zones are visually dimmed — OB and FVG boxes turn gray with increased transparency, clearly distinguishing active zones from historical ones without removing them from the chart entirely.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Read AlphaX Structure — Step by Step
Step 1 — Identify the Trend
Check the dashboard: what does STRUCTURE say? What does EMA BIAS say?
If both agree (both bullish or both bearish), you have a confirmed directional environment
If they disagree, the market may be in transition — wait for alignment
Step 2 — Locate Key Levels
Identify active Order Blocks — these are your primary reaction zones
Note any unfilled FVGs — price is likely to return to these imbalances
Check for Equal Highs or Equal Lows — these are liquidity targets
Step 3 — Determine Premium or Discount
Check the ZONE reading in the dashboard
In a bullish trend, look for entries in DISCOUNT or LOWER EQ
In a bearish trend, look for entries in PREMIUM or UPPER EQ
Avoid entering long in deep premium or short in deep discount — you are fighting the range
Step 4 — Wait for Confluence
The highest probability setups occur when multiple elements align at the same price level
Example: A bullish OB with zero touches sitting inside the discount zone, with an unfilled bullish FVG overlapping the same area, and a recent sell-side liquidity sweep just below — this is a textbook smart money long entry
Example: A bearish CHoCH forms at a premium zone equal high, followed by a displacement candle creating a bearish FVG — this is a high-probability short setup
Step 5 — Monitor Displacement
When structure breaks occur, check for displacement diamonds
BOS or CHoCH with displacement = high conviction move
BOS or CHoCH without displacement = weaker break, may fail or consolidate
Step 6 — Track FVG Fill Progress
As price returns to an FVG, watch the fill percentage update in real time
If price fills to 50% (the midpoint line) and rejects — the FVG is acting as support or resistance
If price fills beyond 70% — the imbalance is mostly resolved, the level is losing significance
If the label shows "FVG ✓" — the gap is fully mitigated, it is no longer a valid zone
Step 7 — Count OB Touches
Fresh OBs (zero touches) are the strongest — institutional orders are still there
OBs with 1–2 touches are still valid but weakening
OBs with 3+ touches — expect the zone to break on the next test. Consider trading the break rather than the bounce
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features Summary
📐 Automatic Break of Structure (BOS) and Change of Character (CHoCH) detection with proper trend state tracking
📦 Order Blocks with real-time touch counting — know exactly how many times each zone has been tested
⚡ Fair Value Gaps with live fill percentage — see partial fills update as price enters the zone
✓ FVG mitigation checkmark — clear visual confirmation when an imbalance is fully resolved
💰 Liquidity sweep detection — buy-side and sell-side stop hunts automatically identified
⚖ Equal Highs and Equal Lows — institutional liquidity pool targets marked with extension lines
🔥 Displacement candle detection — identify the high-conviction institutional candles behind structure breaks
💪 Optional candle strength dots — quick visual filter for strong vs weak bars
🎯 Premium and Discount zones with equilibrium line — know whether you are buying cheap or expensive
📋 12-row live dashboard — structure, EMA bias, zone, RSI, volatility, volume, active OB/FVG counts, swing levels
🏷 HH / HL / LH / LL swing classification labels — complete market structure sequence at a glance
🎨 Clean dual-tone color theme — yellow-green bullish, red bearish, gray neutral — no visual clutter
📏 ATR-based label spacing — labels never overlap their reference lines regardless of instrument or timeframe
⚙ Fully configurable — label size, line widths, max drawings, transparency, lookback periods, all from the settings panel
🔔 18 alert conditions covering every event type including combined alerts for multi-condition monitoring
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Structure
Swing Detection Length — number of bars on each side to confirm a pivot (default: 5)
Show Break of Structure — toggle BOS lines and labels
Show Change of Character — toggle CHoCH lines and labels
Show Swing Points — toggle HH/HL/LH/LL labels at pivots
Max Structure Lines — limit on total BOS/CHoCH drawings (default: 15)
Order Blocks
Show Order Blocks — toggle OB detection and drawing
Remove Mitigated OBs — gray out and stop extending OBs that price has closed through
Max Order Blocks — maximum active OB drawings (default: 8)
Bullish / Bearish OB Color — independent color pickers
OB Fill Transparency — control how transparent the OB fill appears (default: 88)
Fair Value Gaps
Show Fair Value Gaps — toggle FVG detection and drawing
Remove Mitigated FVGs — gray out and checkmark FVGs that price has fully closed through
Max FVG Boxes — maximum active FVG drawings (default: 10)
Bullish / Bearish FVG Color — independent color pickers
FVG Fill Transparency — control fill transparency (default: 90)
Min FVG Size (ticks) — filter out micro-gaps below this threshold
Liquidity
Show Liquidity Sweeps — toggle sweep detection labels
Liquidity Lookback — how many bars to look back for the recent high/low that defines the sweep level (default: 20)
Buy-side / Sell-side Sweep Color — independent color pickers
Equal H/L
Show Equal Highs / Lows — toggle EQH/EQL detection
Equal Level Tolerance % — how close two swing pivots must be to qualify as "equal" (default: 0.02%)
Equal Highs / Lows Color — independent color pickers
Premium & Discount
Show Premium/Discount — toggle zone boxes and equilibrium line
Range Lookback — how many bars to calculate the current range (default: 50)
Discount / Premium Zone Color — independent color pickers
Displacement
Show Displacement Candles — toggle displacement diamond markers
ATR Multiplier — how many times larger than ATR the candle body must be (default: 2.0)
ATR Period — the ATR calculation period (default: 14)
Bull / Bear Displacement Color — independent color pickers
Candle Strength
Show Candle Strength Dots — toggle strong candle markers (default: off)
Strength ATR Period — ATR period for strength comparison (default: 14)
Appearance
Label Size — Tiny, Small, Normal, or Large for all chart labels
Structure Line Width — thickness of BOS lines (default: 1)
CHoCH Line Width — thickness of CHoCH lines (default: 2)
Dashboard
Show Dashboard — toggle the information panel
Dashboard Position — Top Left, Top Right, Bottom Left, or Bottom Right
Dashboard Text Size — Tiny, Small, or Normal
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (18 Total)
Individual Alerts:
Bullish BOS — fires when a bullish Break of Structure is confirmed
Bearish BOS — fires when a bearish Break of Structure is confirmed
Bullish CHoCH — fires when a bullish Change of Character is detected
Bearish CHoCH — fires when a bearish Change of Character is detected
Buy-side Liquidity Sweep — fires when price sweeps above recent highs and closes back below
Sell-side Liquidity Sweep — fires when price sweeps below recent lows and closes back above
Bullish FVG Formed — fires when a new bullish Fair Value Gap is created
Bearish FVG Formed — fires when a new bearish Fair Value Gap is created
Bullish OB Formed — fires when a new bullish Order Block is detected
Bearish OB Formed — fires when a new bearish Order Block is detected
Bullish Displacement — fires when a bullish displacement candle is confirmed
Bearish Displacement — fires when a bearish displacement candle is confirmed
Combined Alerts:
Any Bullish Structure Break — fires on either bullish BOS or bullish CHoCH
Any Bearish Structure Break — fires on either bearish BOS or bearish CHoCH
Any Liquidity Sweep — fires on either buy-side or sell-side sweep
Any FVG Formed — fires on either bullish or bearish FVG
Any OB Formed — fires on either bullish or bearish Order Block
Any Displacement Candle — fires on either bullish or bearish displacement
All alert messages are prefixed with and include ticker, interval, and price for clean webhook and notification integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
🧠 ICT and SMC traders — every core concept is mapped automatically: BOS, CHoCH, OB, FVG, liquidity sweeps, EQH/EQL, premium/discount, displacement
🥇 Gold (XAUUSD) traders — gold's price action is heavily driven by institutional order flow and liquidity sweeps; this tool maps exactly where those events occur
📉 Forex traders — applicable to all major and minor pairs; session-based liquidity sweeps are particularly effective on EURUSD, GBPUSD, and USDJPY
📊 Index traders — works on US30, NAS100, SPX500, DAX — Order Blocks and FVGs are core institutional concepts on indices
📈 Traders who want clean charts — every element uses the same dual-tone theme with proper spacing, mitigation graying, and configurable drawing limits. No clutter, no overlapping elements
⚠ Traders learning SMC methodology — the indicator maps every concept in real time, making it an excellent study tool for understanding how structure, order flow, and liquidity interact
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
Designed for intraday to swing timeframes — M1 through H4. Works on daily and weekly charts but intraday timeframes provide the best resolution for OB and FVG detection.
Premium and Discount zones are drawn using boxes and lines on the last bar only — they do not affect the chart's vertical price scale. Your candles will always display at their natural size.
Structure detection uses bar close confirmation — a swing high or low must be confirmed by the configured number of bars on each side before it is recognized as a pivot.
The maximum number of drawings for OBs, FVGs, structure lines, and EQ lines are all independently configurable. Older drawings beyond the limit are automatically removed.
Touch counting on Order Blocks uses a de-duplication method — price must leave the OB zone and re-enter to count as a new touch. Consecutive bars inside the same OB count as one touch.
FVG fill percentage is calculated based on the deepest penetration into the gap — even if price subsequently leaves the zone, the fill percentage reflects the maximum penetration achieved.
All calculations are non-repainting — signals are confirmed on bar close.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All structure levels, Order Blocks, Fair Value Gaps, and liquidity levels shown are derived from historical price data and their significance as support, resistance, or reaction zones is not guaranteed. Smart Money Concepts and ICT methodology are interpretive frameworks — they describe market behavior patterns but do not predict future price action with certainty. Past reactions at these levels do not guarantee future reactions. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who read the market the way institutions move it. Indicator

Institutional Order Flow Shield [MarkitTick]💡 The Institutional Order Flow Shield is an advanced, overlay-based technical indicator designed to peer inside the standard price chart and extract granular order flow dynamics. By utilizing lower timeframe (LTF) intrabar data, this tool reconstructs buying and selling pressure, helping traders identify hidden accumulation, distribution, and manipulative market practices such as order spoofing and iceberg execution. It acts as a comprehensive shield, filtering market noise through volatility and trend alignment to deliver high-probability signals.
✨ Originality and Utility
Standard volume indicators often fail to distinguish between aggressive buying and aggressive selling within a single candle. This script solves that problem by drilling down into intrabar price action to approximate order flow delta.
● Key Differentiators
Intrabar Reconstruction: Rebuilds volume delta without requiring expensive tick data or footprint charts.
Manipulation Detection: Specifically engineered to detect "Spoofing" (pulling large limit orders to fake price direction) and "Icebergs" (large hidden orders executing in smaller clips).
Adaptive Decision Matrix: Does not just fire raw signals; it weights them using a confidence scoring system based on VWAP, EMA trends, and Relative Volume (RVOL).
🔬 Methodology and Concepts
The core engine of this indicator relies on several interconnected mathematical and logical frameworks to process market data.
● Order Flow Approximation
The script requests lower timeframe data (defaulting to 1-minute candles) and calculates where the close occurs relative to the high-low range of that LTF candle. It allocates volume to the "Buy" side or "Sell" side proportionally. Wick rejections are also factored in to adjust the final volume delta, reducing the impact of passive limit orders getting filled at extreme highs or lows.
● Spoof and Iceberg Logic
Spoof Detection: Triggered when a massive volume spike is followed immediately by a sharp volume drop and a price reversal, indicating that the liquidity was pulled (faked) rather than executed.
Iceberg Detection: Identified when volume surges past a smart threshold (based on a multiplier of the volume SMA) while price stalls, indicating a massive hidden limit order absorbing market aggression.
🎨 Visual Guide
The indicator provides a rich, non-intrusive visual experience on the main chart, utilizing color-coded bars, labels, and a comprehensive dashboard.
● Chart Elements
Bar Colors: Candles are painted bright green for confirmed bullish signals (confidence > 50%) and bright red for confirmed bearish signals.
ACM / DST Labels: Green "ACM" labels indicate accumulation (bullish order flow), while Red "DST" labels indicate distribution. Hovering over these labels reveals a tooltip with confidence score, VWAP alignment, and volume impact.
BPL / APL Labels: Orange labels denoting Bid Pulls and Ask Pulls (Spoofing events).
BWL / AWL Labels: Cyan labels highlighting Bid Walls and Ask Walls (Iceberg events).
WBD / WAK Labels: Faded cyan labels indicating massive Whale Bid or Ask entries based purely on relative volume spikes.
● The Sniper Dashboard
Located by default in the top right corner, this table provides a real-time summary.
Net Whale Flow: The cumulative delta of massive order events.
Decision Matrix: Displays the current overall bias (e.g., "STRONG BUY" or "WAIT/NEUTRAL").
Signal Confidence: A percentage score grading the strength of the current setup.
Filters: Real-time status of RVOL, VWAP Position, EMA Trend, and ATR Gates.
Event Counters: Tracks the total number of spoofing and iceberg anomalies detected during the session.
📖 How to Use
This indicator is best used as a confluence tool for day trading and scalping.
● Trade Execution Guidelines
Identify the Trend: Check the dashboard to ensure the EMA 50/200 trend aligns with your directional bias.
Wait for Manipulation: Look for Spoof (BPL/APL) or Iceberg (BWL/AWL) labels. A Bid Pull (Spoof) often precedes a move lower, while a Bid Wall (Iceberg) can act as solid support.
Confirm with Accumulation/Distribution: Enter a long trade when a green "ACM" label appears, confirming that aggressive buyers have stepped in. Ensure the dashboard's "Signal Conf." is high (above 60-70%).
Risk Management: Place stop losses behind identified Iceberg walls. If an Ask Wall (AWL) is broken by price, it often triggers a short squeeze, offering breakout opportunities.
⚙️ Inputs and Settings
The script offers deep customization through its settings menu, divided into functional groups.
● Order Flow Engine
Intrabar Timeframe (LTF): Determines the granularity of the internal volume calculation.
Flow Batch Length (bars): The rolling window used to sum up recent volume delta.
Flow Sensitivity Ratio: Adjusts how much larger the average buy size must be compared to the sell size to trigger an accumulation signal.
● Spoof & Iceberg Detection
Min Spoof Volume Diff: The minimum volume drop required to flag a pulled order.
Spoof Pull Threshold (%): The percentage drop required compared to the previous bar.
Iceberg Avg Multiplier: How many times larger than the average volume a bar must be to trigger an iceberg alert.
● Smart Filters
RVOL Filter: Requires the current bar's volume to be above a specific relative threshold, keeping you out of low-liquidity chop.
ATR Volatility Gate: Suppresses signals on extremely tight, flat candles based on a minimum ATR percentage.
VWAP / Trend Filters: Toggles the alignment checks that feed into the confidence scoring.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The foundation of this indicator rests heavily on Market Microstructure Theory and Order Book Dynamics.
● Volume Delta Estimation Models
Because trading platforms often do not natively supply bid/ask tick data for all assets, the script utilizes an intrabar price-proportion heuristic. This aligns with academic models like the Lee-Ready algorithm, which infers trade direction based on price movement relative to previous prints. By applying this to LTF data and rolling it up, the script effectively calculates a weighted approximation of order flow toxicity (the imbalance of aggressive market orders).
● Liquidity Illusion and Spoofing
Spoofing is a recognized manipulative practice where liquidity is posted to the limit order book to create a false impression of supply or demand, only to be cancelled before execution. The script attempts to quantify this mathematically by monitoring sudden, severe variance in Relative Volume (RVOL) coupled with strict directional price reversals. When volume drops below the pullback threshold immediately following an injection phase, the algorithm flags the structural anomaly.
● Bayesian-Inspired Confidence Matrix
The Decision Matrix behaves similarly to a naive Bayesian classifier. It starts with a base event (e.g., an accumulation phase) and updates the probability (Confidence Score) of a successful follow-through by checking independent market state variables: Mean Reversion metrics (VWAP), Volatility (ATR), and Momentum (EMA crossover). This multidimensional filtering ensures that order flow anomalies are only traded when the broader statistical environment is favorable.
⚠️ 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

Smart Money Engine [WillyAlgoTrader]Smart Money Engine (SME) is a comprehensive overlay indicator that automates the core elements of Smart Money Concepts (SMC) analysis: multi-layer market structure detection (BOS / CHoCH), order block identification with strength grading, fair value gap tracking with fill monitoring, inverse FVG generation, and auto-anchored Fibonacci retracement — all in a single, unified tool.
Rather than stacking five separate indicators on your chart — one for structure, one for OBs, one for FVGs, one for IFVGs, and one for Fibonacci — SME integrates these components so they share a common structural context. Order blocks are created at actual structure break points, FVGs are filtered against volatility, IFVGs are born from filled FVGs, and the Fibonacci grid automatically anchors to the current strong high and strong low. Every component is aware of the others, producing a cleaner and more logically consistent chart than layering independent tools.
🔍 WHAT MAKES IT ORIGINAL
1. Dual-layer structure detection (Swing + Internal). The indicator runs two independent pivot-based structure engines simultaneously. The Swing layer (configurable length, default 10) captures major market structure — the higher-timeframe trend. The Internal layer (shorter length, default 5) captures minor structure shifts within the swing trend. Both label BOS (Break of Structure — continuation) and CHoCH (Change of Character — reversal) independently. This dual-layer approach lets you see whether an internal CHoCH is happening against or with the swing trend — a key distinction in SMC methodology that single-layer tools miss.
2. Order Blocks with contextual grading (A / B / C). OBs are not placed at arbitrary candles. They are created only when a swing-level BOS or CHoCH occurs — the script walks back from the break to find the last opposite-colored candle (the institutional candle that initiated the move). Each OB is then graded:
— Grade A : OB overlaps with an FVG and has a volume spike (highest confluence)
— Grade B : OB has one confluence factor (volume spike OR FVG overlap)
— Grade C : basic OB without additional confluence
Grading helps you prioritize which zones to trade from. OBs extend until mitigated (user choice: close-based or wick-based mitigation), and each OB displays a Consequent Encroachment (CE) midline — the 50% level that often acts as the reaction point within the block.
3. Fair Value Gaps with ATR auto-filter and fill tracking. FVGs are detected using the classic three-candle gap method (current low > high two bars ago for bullish, inverse for bearish). A built-in ATR filter (enabled by default) suppresses FVGs smaller than 0.5× ATR, removing the micro-gaps that clutter charts on lower timeframes. Each FVG extends until fully filled, displays a CE midline, and is automatically removed once price closes through the gap.
4. Inverse FVG (IFVG) generation. When an FVG is fully filled by price, it doesn't just disappear — it transforms into an Inverse FVG with flipped bias. A filled bullish FVG becomes a bearish IFVG (potential resistance); a filled bearish FVG becomes a bullish IFVG (potential support). This captures the SMC concept that once institutional imbalance is filled, the zone can flip polarity. IFVGs are displayed with distinct dashed borders and tracked until mitigated by a close through their zone.
5. Auto-anchored Fibonacci retracement. The Fibonacci grid automatically spans from the current Strong High to Strong Low — the trailing extremes of the active swing structure. When a new BOS/CHoCH shifts the structure, the anchor points update and the grid repositions. The OTE (Optimal Trade Entry) zone between 0.5 and 0.618 is highlighted, giving you an immediate visual reference for the premium/discount equilibrium.
6. Strong / Weak High and Low levels. After each structural break, the indicator identifies the trailing high and low as either "Strong" or "Weak" based on their position relative to the current trend direction. In a bullish swing, the low that initiated the trend is the Strong Low (protected) and the high is the Weak High (target). These levels are extended forward as dashed lines, providing clear reference for where the trend is protected and where it is vulnerable.
⚙️ HOW IT WORKS
Structure detection:
Swing pivots are identified using ta.pivothigh() and ta.pivotlow() with the configured lookback length. The script maintains the most recent swing high and swing low. When price closes above the previous swing high (confirmed bar close, no mid-bar signals), it registers a bullish break. If the prior trend was bearish, this is labeled CHoCH (reversal); if bullish, it is labeled BOS (continuation). The same logic applies in reverse for bearish breaks. Internal structure uses an identical algorithm with a shorter lookback, and its labels are drawn with dashed lines and lighter opacity to visually distinguish them from swing-level events.
Order Block detection:
When a swing-level break is confirmed, the script scans backward (up to 30 bars) from the pivot that was broken to find the last candle with opposite polarity — the candle whose body direction opposes the break direction. The full range (high to low) of that candle becomes the OB zone. A volume spike check (volume > 1.5× 20-period SMA) adds confluence for grading. OBs extend right until the mitigation condition is met.
FVG detection:
On every confirmed bar, the script checks whether the current bar's low exceeds the high of two bars ago (bullish FVG) or the current high is below the low of two bars ago (bearish FVG). If the gap size passes the ATR filter, an FVG box is created. The box extends right each bar. If price fills the gap completely (low touches the bottom of a bullish FVG, or high touches the top of a bearish FVG), the FVG is removed and — if IFVG mode is enabled — queued for conversion to an Inverse FVG.
HTF trend filter:
An optional higher-timeframe EMA(50) filter provides directional bias. The HTF data is fetched using request.security() with confirmed-bar referencing ( + lookahead_on pattern) to prevent repainting. When enabled, the dashboard displays the HTF bias, and the confluence can factor into OB grading.
Anti-repaint compliance:
All structure breaks, OB creation, and FVG detection require barstate.isconfirmed — signals fire only after the bar closes. The HTF filter uses the standard non-repainting security call pattern. No future data is accessed.
📖 HOW TO USE
Reading the chart:
— HH / HL / LH / LL labels at swing points classify the market structure
— Solid horizontal lines with BOS or CHoCH labels = swing-level structure breaks
— Dashed lines with BOS/CHoCH = internal (minor) structure breaks
— Colored boxes = Order Blocks (green-tinted = bullish, red-tinted = bearish)
— Letter labels (A/B/C) on OBs = strength grade
— Dotted midline inside OBs = Consequent Encroachment (CE)
— Blue-tinted boxes = bullish FVGs; orange-tinted = bearish FVGs
— Dashed-border boxes labeled IFVG = Inverse Fair Value Gaps
— Dotted horizontal Fibonacci lines with OTE zone highlight = auto retracement grid
— Dashed trailing lines labeled "Strong High/Low" or "Weak High/Low" = structural extremes
Suggested workflow:
— Identify the swing trend direction from BOS/CHoCH labels and Strong/Weak levels
— Check if internal structure aligns with or diverges from swing structure
— Look for entry opportunities at Order Blocks (prioritize Grade A/B) within the Fibonacci OTE zone
— Use FVGs as additional confluence — a bullish OB that overlaps a bullish FVG is a higher-probability zone
— Monitor IFVGs for polarity-flipped zones that may act as new support/resistance
— Use the dashboard to track active OB/FVG/IFVG counts and HTF bias alignment
Timeframe guidance:
— Scalping (1–5min): Swing Length 5–7, Internal 3, increase Max OBs/FVGs for more zones
— Intraday (15min–1H): Swing Length 8–12, Internal 5, default settings work well
— Swing (4H–Daily): Swing Length 15–25, Internal 7–10, reduce Max OBs to keep chart clean
— Use the HTF filter with 1 step up (e.g. 1H chart → 4H HTF, 4H chart → D HTF)
⚙️ KEY SETTINGS REFERENCE
— Swing Detection Length (default 10): lookback for major structure pivots
— Internal Structure Length (default 5): lookback for minor structure pivots (should be < Swing Length)
— OB Mitigation (default Wick): "Close" = OB removed on close through zone; "Wick" = removed on any touch
— Show OB Grade (default On): display A/B/C strength classification on OBs
— Show OB Midline (default On): display CE (50%) line inside order blocks
— Auto-Filter Small FVGs (default On): suppress FVGs smaller than 0.5× ATR
— Max Visible OBs / FVGs / IFVGs (default 5 each): cap on displayed zones to manage chart clutter
— Show Inverse FVGs (default Off): enable IFVG generation from filled FVGs
— Show Fibonacci Retracement (default On): auto-anchored grid with OTE zone highlight
— HTF Trend Filter (default Off): set a higher timeframe for directional bias via EMA(50)
— Volume Confirmation (default On): add confluence when volume > 1.5× average (auto-disabled on forex)
📊 Dashboard
The info panel (adjustable to any chart corner) displays in real time:
— Swing trend direction (Bullish / Bearish)
— Internal trend direction
— Fibonacci range (Strong High — Strong Low)
— Count of active OBs, FVGs, and IFVGs
— HTF bias (if enabled)
— Current timeframe and indicator version
⚠️ IMPORTANT NOTES
— This indicator does not repaint. All signals and zone creations require bar-close confirmation. The HTF filter uses the standard + lookahead_on non-repainting pattern.
— SME is a structural analysis and zone-mapping tool — it identifies where institutional activity likely occurred, but it does not generate explicit buy/sell signals. Trade decisions should incorporate your own entry triggers, risk management, and additional confluence.
— Past structure patterns and zone reactions do not guarantee future price behavior.
— Performance may vary across instruments and timeframes. Lower timeframes produce more zones and structure shifts; use the ATR filter and Max Visible caps to manage noise.
— The indicator works across all asset classes. Volume-based features (OB grading) are automatically adjusted on instruments without volume data. Indicator

Adaptive Pivot Structure [WillyAlgoTrader]Adaptive Pivot Structure (APS) is an overlay indicator that maps market structure in real time by detecting swing pivots, classifying structural breaks (BOS / CHoCH), tracking missed reversal levels, and projecting a dynamic Fibonacci grid between the last confirmed pivot and the live forming extreme.
Most pivot-based tools plot swing points with a fixed delay and leave the trader to interpret structure manually. APS automates the full workflow: it detects pivots, grades their strength against ATR, identifies whether the structure is continuing (BOS) or reversing (CHoCH), keeps track of levels that price skipped over, and stretches a Fibonacci retracement grid that updates bar-by-bar as the current swing extends — giving you an always-current picture of where price sits within the swing.
🔍 WHAT MAKES IT ORIGINAL
APS combines five analytical layers into a single coherent overlay that would otherwise require multiple separate indicators:
1. ATR-graded pivot detection. Every swing high and low is measured against the current ATR to classify it as Strong (swing > 1.5× ATR) or Weak. You can filter the display to show only strong pivots, only weak ones, or all — allowing you to strip noise on lower timeframes while keeping full detail on higher ones.
2. Automated BOS / CHoCH classification. The indicator continuously compares each new pivot high to the previous pivot high, and each new pivot low to the previous pivot low. When a higher high forms in an existing uptrend, the script labels it as a Break of Structure (BOS ↑) — trend continuation. When a higher high forms after a downtrend, it labels a Change of Character (CHoCH ↑) — potential reversal. The same logic applies in reverse for bearish breaks. This removes the subjectivity of manually drawing and labeling structure shifts.
3. Missed reversal tracking. When two consecutive pivots form on the same side (e.g. two pivot highs without an intervening pivot low), the "missed" pivot low between them is flagged with a ◇ marker and extended as a dotted horizontal level until price breaks it. These missed levels often act as hidden support/resistance that conventional pivot tools ignore entirely.
4. Live (potential) pivot tracking. Instead of waiting for full confirmation (which inherently lags by N bars), APS tracks the running extreme since the last confirmed pivot and plots it in real time as a "potential next pivot" with a dashed zigzag extension. This gives you immediate visual feedback on how far the current swing has traveled and where the Fibonacci grid is anchored — without pretending the pivot is confirmed.
5. Dynamic Fibonacci grid. A full Fibonacci retracement (0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0 — with optional 1.272 and 1.618 extensions) is drawn between the last confirmed pivot and the live pivot. The grid redraws every bar as the live extreme moves, so the retracement levels always reflect the current swing range. The OTE (Optimal Trade Entry) zones at 0.236–0.382 and 0.618–0.786 are highlighted with a fill to make them easy to spot at a glance.
⚙️ HOW IT WORKS
Pivot detection:
Pivots are identified using ta.pivothigh() and ta.pivotlow() with a user-defined lookback (Pivot Length). A pivot high is confirmed when the bar has N lower highs on both sides; a pivot low when the bar has N higher lows on both sides. This means confirmed pivots appear with a delay of N bars — this is inherent to the standard pivot detection algorithm.
Strength grading:
Once a pivot is detected, the script measures the absolute price distance from the previous pivot to the current one. If this distance exceeds 1.5× the current ATR value, the pivot is classified as "Strong"; otherwise "Weak." A minimum swing size filter (Min Swing Size, expressed as an ATR multiple) lets you suppress insignificant swings entirely.
Structure logic:
The indicator maintains a running structure direction variable. When a new pivot high exceeds the previous pivot high and the current structure is already bullish, it triggers a BOS ↑. If the structure was bearish, it triggers a CHoCH ↑ (reversal). Mirror logic applies for lows. This follows standard Smart Money Concepts methodology.
Missed pivot logic:
Between any two consecutive same-side pivots, the indicator records the highest high or lowest low that occurred in the gap. This "missed" extreme is marked and extended as a horizontal level. The level is automatically removed from the chart when price closes through it — keeping only active levels visible.
Live pivot:
After each confirmed pivot, the script starts tracking the running high (if expecting a pivot high next) or running low (if expecting a pivot low). This value updates every bar and serves as one anchor of the Fibonacci grid. A "▲?" or "▼?" label and a dashed line show where this potential pivot currently sits.
Fibonacci grid:
The retracement is calculated between the lower and upper anchor of the current swing (using the confirmed pivot on one side and the live extreme on the other). All seven standard ratios are drawn as horizontal lines from the earlier pivot's bar index to 5 bars into the future. The 0.5 and 0.618 levels are drawn thicker and in a highlight color for emphasis.
⚠️ REPAINTING BEHAVIOR — IMPORTANT
This indicator is designed as a live analysis tool , not a backtesting signal generator. The following elements will change on the current bar:
— The Live Pivot marker moves as the running extreme updates
— The Fibonacci grid redraws as the live anchor moves
— BOS/CHoCH labels based on pivots inherit the standard pivot detection delay
Confirmed pivots themselves do not repaint — once a bar is no longer within the pivot lookback window, its pivot status is final. The alert system includes a "Confirmed Only" toggle (on by default) that restricts alerts to bar-close events, ensuring no repainting alerts reach your trading bot.
📖 HOW TO USE
Reading the chart:
— ▲ / ▽ labels at swing lows = confirmed pivot lows (filled = Strong, outline = Weak)
— ▼ / △ labels at swing highs = confirmed pivot highs (filled = Strong, outline = Weak)
— ◇ markers = missed reversals (cyan for missed lows, orange for missed highs)
— Dotted horizontal lines from ◇ markers = active missed levels (auto-removed when broken)
— "BOS ↑/↓" yellow labels = Break of Structure (trend continuation)
— "CHoCH ↑/↓" green/red labels = Change of Character (potential reversal)
— Purple dashed line with "▲?" or "▼?" = live potential pivot (updates every bar)
— Fibonacci lines with OTE zone fills = dynamic retracement grid
Suggested workflow:
— Use CHoCH labels as early warning of trend reversals — then look for entries in the Fibonacci discount/premium zones
— Use BOS labels to confirm trend continuation — look for pullback entries at 0.618–0.786 retracement
— Watch the dashboard's "Fib Zone" readout: Discount (below 38.2%) favors buys, Premium (above 61.8%) favors sells, Equilibrium suggests waiting
— Missed reversal levels act as hidden S/R — watch for reactions when price revisits them
Timeframe guidance:
— Scalping (1–5min): Pivot Length 3–5, Min Swing 0.5 ATR, Strong Only filter
— Intraday (15min–1H): Pivot Length 5–10, default settings
— Swing (4H–Daily): Pivot Length 10–20, show all strengths for full context
⚙️ KEY SETTINGS REFERENCE
— Pivot Length (default 5): bars left/right for pivot detection — lower = faster but noisier
— ATR Length (default 14): period for strength grading and minimum swing filter
— Min Swing Size (default 0.0): minimum swing as ATR multiple — increase to filter small moves
— Pivot Strength Filter (default All): show All / Strong Only / Weak Only
— Max Active Levels (default 10): maximum missed-reversal horizontal lines displayed
— Show Live Pivot (default On): toggle the real-time potential pivot tracker
— Show Fibonacci Grid (default On): toggle the dynamic retracement overlay
— Show Extensions (default Off): add 1.272 and 1.618 extension levels
— Show Fib Zone Fill (default On): highlight OTE zones (0.236–0.382 and 0.618–0.786)
— Alerts: Confirmed Only (default On): restrict alerts to bar-close confirmation — recommended for bots
📊 Dashboard
The info panel (adjustable to any chart corner) displays:
— Current market structure (Bullish / Bearish / Ranging)
— Last confirmed pivot type and price
— Live pivot direction and price
— Number of active missed-reversal levels
— Last PH and PL values
— Fib Zone classification (Premium / Discount / Equilibrium) with percentage
— Current timeframe and indicator version
⚠️ DISCLAIMER
— This tool is intended for live chart analysis and structure mapping — it is not a standalone entry/exit signal system.
— The live pivot and Fibonacci grid are designed to repaint by nature — they track the forming swing in real time. Do not use them for backtesting.
— Past pivot patterns and structure shifts do not guarantee future price behavior.
— Always combine structural analysis with proper risk management and additional confluence. Indicator

Indicator

Indicator

ICT Bias ProICT Bias Pro: Dashboard + First Hour Range & Session FVGs
This indicator is a comprehensive "Bias Builder" designed for traders who follow Inner Circle Trader (ICT) concepts. It combines a multi-timeframe trend dashboard with a specific intraday strategy derived from ICT's recent teaching: "How Do I Engage Markets When I Don't Have An Initial Bias?"
The tool is designed to help traders find confluence between the Macro trend (Daily/4H) and the Micro execution (15M/5M) during the New York AM Session.
Features & Methodology
1. Multi-Timeframe Bias Dashboard Located in the corner of your chart, this dashboard provides a quick "Traffic Light" view of the market structure across 4 key timeframes:
Daily & 4-Hour: Establishes the macro direction.
15-Min & 5-Min: Monitors intraday order flow.
Logic: Bias is determined by comparing price relative to the 20 EMA and checking for Market Structure alignment. Green = Bullish, Red = Bearish.
2. The "First Hour" Trading Range (No-Bias Strategy) Following ICT’s specific logic for days when bias is unclear, this tool automatically highlights the 9:30 AM – 10:30 AM (New York Time) trading range.
Range High & Low: Defining the volatility of the opening hour.
Equilibrium (50%): The "Line in the Sand." Price holding above the 50% signals bullish strength (Premium); price below signals bearish weakness (Discount).
Quadrants (25% & 75%): Deep discount/premium zones for precision entries.
3. Session-Specific Fair Value Gaps (FVG) The indicator automatically detects and draws Fair Value Gaps that form only within that critical first hour of trading.
Auto-Extension: Boxes extend to the right until price "mitigates" (fills) them.
Consequent Encroachment (C.E.): Automatically plots the 50% dashed line inside every FVG, a key institutional support/resistance level.
Smart Mitigation: Once a gap is filled, the box changes color (user-selectable) to indicate it is no longer an active magnet.
How to Use This Indicator
This tool is designed to identify Confluence:
Check the Dashboard: Look for alignment on the Daily and 4H timeframes (e.g., Both Green).
Wait for 10:30 AM EST: Allow the script to draw the First Hour Range.
Trade the Confluence:
Bullish Setup: If the Dashboard is Green, look for price to hold above the 50% Equilibrium of the First Hour Range. Look for entries inside Bullish FVGs that form near the 50% or 75% levels.
Bearish Setup: If the Dashboard is Red, look for price to reject the 50% Equilibrium and stay in the lower half. Target Bearish FVGs near the 50% or 25% levels.
Settings & Customization
Dashboard Toggle: Show or hide the table to keep charts clean.
Colors: Fully customizable colors for Range High/Low, FVGs (Bullish/Bearish), and Mitigated gaps.
Text Positioning: Adjust FVG labels (Left/Center/Right) to prevent visual clutter on candles.
Credits & Attribution
Concept: Inner Circle Trader (Michael Huddleston).
Core Strategy: Based on the video "How Do I Engage Markets When I Don't Have An Initial Bias?"
Disclaimer: This tool is for educational purposes only. Past performance is not indicative of future results. Indicator

Daily Bias Trade Manager [MarkitTick]💡 The Daily Bias Trade Manager is a sophisticated technical analysis suite designed to automate the identification of high-probability intraday setups based on liquidity concepts and structural shifts. By synthesizing Previous Day High/Low (PDH/PDL) interactions with momentum confirmation and strict risk management protocols, this tool assists traders in navigating the "Daily Bias." It moves beyond simple signal generation by offering a complete trade management visualization system, projecting entries, stop losses, and take-profit levels directly onto the chart in real-time.
✨ Originality and Utility
This script distinguishes itself by integrating institutional price action theory—specifically Liquidity Sweeps and Change in State of Delivery (CISD)—with mechanical filtering. While many indicators simply highlight highs and lows, the Daily Bias Trade Manager validates these levels by analyzing what happens *after* price tests them.
It solves a common problem for intraday traders: "Analysis Paralysis." By automating the detection of structure breaks (MSS) and Fair Value Gaps (FVG) following a sweep of daily liquidity, it provides an objective framework for entry. Furthermore, the built-in "Position Box" feature removes the guesswork from trade execution by instantly calculating risk-to-reward ratios and visualizing them, allowing traders to see the feasibility of a trade before execution.
🔬 Methodology and Concepts
The core logic operates on a sequential detection model:
Liquidity Identification: The script first plots the Previous Day High (PDH) and Previous Day Low (PDL). These are critical institutional reference points where stop-loss orders (liquidity) often reside.
The Sweep: A "Sweep" is confirmed when price breaches a PDH/PDL but fails to sustain the breakout, closing back inside the previous day's range. This suggests a "Fake-out" or liquidity grab, often a precursor to a reversal.
Change in State of Delivery (CISD): Following a sweep, the script monitors local market structure. It looks for a decisive close past a recent swing point (Swing High for shorts, Swing Low for longs) within a user-defined bar window. This confirms that the counter-trend move has momentum.
Confluence Filtering: To reduce false positives, the engine applies optional filters:
RVOL (Relative Volume): Ensures the sweep occurred on significant volume (Climax behavior).
RSI Momentum: Verifies that momentum supports the reversal direction.
Trend Filter: Uses a long-term EMA to ensure trades align with the broader market direction.
Entry Model: Upon validation, the script calculates an entry at the close (or optionally at a Fair Value Gap), places a Stop Loss at the sweep extreme, and projects three Take Profit targets based on configurable R:R ratios.
🎨 Visual Guide
The indicator uses a distinct color-coded system to keep the chart clean yet informative:
● Liquidity Levels & Sweeps
Orange/Blue Lines: Represent the PDH (Previous Day High) and PDL (Previous Day Low).
Teal Shaded Zones: Indicate a "Buy-Side Sweep" (Price took highs and rejected).
Red Shaded Zones: Indicate a "Sell-Side Sweep" (Price took lows and rejected).
● Position Management Boxes
When a signal triggers, a structured box appears:
Solid Gray Line: The theoretical Entry Price.
Solid Red Line: The Stop Loss (SL), typically placed at the swing high/low of the sweep.
Dashed Blue Lines: Represent TP1, TP2, and TP3 targets based on Reward-to-Risk settings.
Labels: Data tags on the right side of the box show exact price coordinates for Entry, SL, and Targets.
● Signals & Clouds
Green "BUY" Labels: Appear below the bar when a bullish sweep and structural shift are confirmed.
Red "SELL" Labels: Appear above the bar when a bearish sweep is validated.
Yellow Clouds: Highlight Fair Value Gaps (FVG) used for entry confluence or retests.
● Multi-Timeframe (MTF) Dashboard
A panel (default: Top Right) displays the status of up to three higher timeframes.
Trend: Shows "BULL" or "BEAR" based on EMA alignment.
Liquidity: Indicates if the timeframe is "Taking Buy Liq", "Taking Sell Liq", or "Inside Range".
📖 How to Use
● Bullish Reversal Setup
Wait for price to drop below the Blue PDL Line.
Look for a Red Sell-Side Sweep Zone to form, indicating price has rejected lower prices.
Wait for the Green BUY Signal . This confirms a shift in structure (CISD) back to the upside.
Observe the Position Box. If the Risk/Reward is favorable (targets are within reasonable reach), consider the trade.
Optional: Use the "Dynamic Targets" setting to target the previous swing high instead of a fixed ratio.
● Bearish Reversal Setup
Wait for price to rally above the Orange PDH Line.
Look for a Teal Buy-Side Sweep Zone .
Wait for the Red SELL Signal confirming the rejection.
Ensure the dashboard shows alignment (e.g., Higher Timeframe Trend is Bearish) for higher probability.
● Trade Management
Enable the "ATR Trailing Stop" in settings to have the Stop Loss line dynamically adjust as price moves in your favor, locking in potential gains.
⚙️ Inputs and Settings
● General & Display
Show Daily Liquidity: Toggles the PDH/PDL lines.
Max Signals/Zones: Limits the visual clutter by restricting historical shapes.
● Detection Logic
Swing Detection Length: Controls the sensitivity of pivot points. Higher numbers = fewer, more significant swings.
CISD Window: How many bars after a sweep are allowed for the structure shift to occur.
Use FVG Entry: If true, the signal waits for a retest of a gap rather than entering immediately at the close.
● Filters
Volume (RVOL): Requires the sweep candle volume to be X times larger than average.
Trend Filter: Only allows Buy signals above the EMA and Sell signals below it.
Session Filter: Restricts signals to specific hours (e.g., New York Killzone).
● Targets & Management
Target R:R: Sets the multiplier for TP1, TP2, TP3 relative to the stop loss distance.
Use Dynamic Targets: Targets structural liquidity (Previous Highs/Lows) instead of fixed math ratios.
ATR Trailing Stop: Activates the trailing stop mechanism.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator is grounded in the principles of Market Microstructure and Mean Reversion theory .
1. Liquidity Pools & Stop Runs:
Academic literature on market microstructure suggests that order flow clusters around obvious visual references (PDH/PDL). Large market participants often utilize this "resting liquidity" to fill large block orders with minimal slippage. The "Sweep" logic detects this absorption phase.
2. Volatility Breakout vs. Fake-out:
The script differentiates between a genuine breakout and a mean-reverting "fake-out" by analyzing the Close relative to the Range . A close back within the prior day's range after a breach signifies a failure of auction in the new territory, statistically increasing the probability of a reversion to the mean (equilibrium).
3. Momentum Validation (RSI & RVOL):
By integrating Relative Volume (RVOL) and RSI, the script applies statistical significance testing to the price action. High volume at a range extreme without price progress (the sweep) indicates "Stopping Volume" or absorption, a key concept in Volume Spread Analysis (VSA).
🙏 Gratitude
I would like to express my gratitude to harry040708 for sharing the insightful idea that made this script possible.
⚠️ 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

EduVest - IFA-VP Context v3.0 [NEON Edition]📊 IFA-VP Context v3.0
A powerful market context indicator combining Volume Profile analysis with SMA trend detection. Designed with a cyberpunk-inspired NEON color palette for maximum visibility on dark charts.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IT DOES
This indicator helps you understand "where you are" in the market by analyzing:
• Volume Profile (POC, VAH, VAL)
• SMA Alignment (20/50/200)
• Context Score (0-100)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ KEY FEATURES
🔹 NEON Color Palette - Cyan/Pink/Gold colors optimized for dark mode
🔹 Context Score - Visual score bar (████████░░) shows market strength
🔹 Cross Signals - GOLDEN CROSS / DEATH CROSS with HUGE labels
🔹 POC Reaction - Track price interaction with Point of Control
🔹 Status Panel - All-in-one dashboard with trend, zone, and hints
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📺 THREE DISPLAY MODES
• Impact Mode - Full visual experience with badges, ribbons, and glow effects
• Minimal Mode - Clean SMA lines and VP levels only
• Pro Mode - Complete VP histogram display
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 SIGNALS EXPLAINED
▲ GOLDEN CROSS (20×50) - Short-term bullish momentum
▼ DEATH CROSS (20×50) - Short-term bearish momentum
⭐ MAJOR GOLDEN (50×200) - Long-term bull market signal
💥 MAJOR DEATH (50×200) - Long-term bear market signal
Context Badges:
⚡ SUPER BUY/SELL (Score 80+)
🔥 POWER BUY/SELL (Score 70-79)
💪 STRONG BUY/SELL (Score 60-69)
⏸ WAIT (Score <50)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⏰ RECOMMENDED TIMEFRAMES
✅ 15min - 4H (Best for day trading & swing)
⚠️ 1min-5min (Noisy, use with caution)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
This is NOT a buy/sell signal indicator.
It shows market CONTEXT to help your own trading decisions.
Always use proper risk management and combine with your own analysis.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷️ Tags: volume profile, sma, context, trend, neon, dark mode, poc, value area
Indicator

FX OSINT - Institutional Midnight Intelligence For ForexFX OSINT — Institutional Midnight Intelligence For Forex
See Your FX Charts Like an Intelligence Briefing, Not a Guess
If you’ve ever stared at EURUSD or GBPJPY and thought:
Where is the real liquidity?
Is this move sponsored by smart money or just noise?
Am I buying into premium or discount?
…then FX OSINT is designed for you.
FX OSINT (Forex Open Source Intelligence) treats the FX market the way an analyst treats an investigation:
Collect open‑source signals from price, time, and volatility.
Map out liquidity, structure, and sessions in a repeatable way.
Present them in a clean, non‑cluttered dashboard so you can read context quickly.
No rainbow spaghetti. No 12 indicators stacked on top of each other. Just structured information, midnight visuals, and a clear read on what the market is doing right now.
Why FX OSINT Exists
Many FX traders run into the same problems:
Overloaded charts – multiple indicators fighting for space, none talking to each other.
Signals with no context – arrows that ignore structure, sessions, and liquidity.
Tools not tuned for FX – generic indicators that don’t care what pair you are on.
FX OSINT brings this together into one FX‑focused framework that:
Understands structure : BOS/CHOCH, swings, and trend across multiple timeframes.
Respects liquidity : sweeps, order blocks, and FVGs with controlled visibility.
Reads volatility & ADR : how far today’s range has developed.
Knows the clock : London, New York, and key killzones.
Scores confluence : a 0–100 engine that summarizes how much is lining up.
FX OSINT is built for traders who want structured, institutional‑style logic with a disciplined, midnight‑themed UI —not flashing buy/sell buttons.
1. Midnight Dashboard — Top‑Right Intelligence Panel
This panel acts as your compact “situation room”:
CONFLUENCE — 0–100 score blending trend alignment, volatility regime, sessions, liquidity events, order blocks, FVGs, and ADR context.
REGIME — Low / Building / Normal / Expansion / Extreme, driven by ATR relationships, so you know if you’re in chop, trend, or expansion.
HTF / MTF / LTF TREND — Higher‑, medium‑, and current‑timeframe bias in one place, so you see if you are trading with or against the larger flow.
ADR USED — How much of today’s typical range has already been consumed in percentage terms.
PIP VALUE — Approximate pip size per pair, including JPY‑style pairs.
Everything is bold, legible, and color‑coded, but the layout stays minimal so you can:
Look once → understand the context.
2. Structure, BOS, CHOCH — Smart‑Money‑Style Skeleton
FX OSINT tracks swing highs and lows, then shows how structure evolves:
Trend logic based on evolving swings, not just a moving average cross.
BOS (Break of Structure) when price expands in the direction of trend.
CHOCH (Change of Character) when behavior flips and the market structure changes.
Labels are selective, not spammy . You don’t get a tag on every minor wiggle—only when structure meaningfully shifts, so it’s easier to answer:
"Are we continuing the current leg, or did something actually change here?"
3. Liquidity Sweeps, Order Blocks & FVGs — The OSINT Layer
FX OSINT treats liquidity as a key information layer:
Liquidity sweeps — Detects when price spikes through recent highs/lows and then snaps back, flagging potential stop runs.
Order blocks — The last opposite candle before a displacement move, drawn as controlled boxes with limited lifespan to avoid clutter.
Fair Value Gaps (FVGs) — Three‑candle imbalances rendered as precise zones with a cap on how many can exist at once.
Under the hood, boxes are managed so your chart does not become a wall of old zones:
// Draw Order Blocks with overlap prevention
if isBullishOB and showOrderBlocks
if array.size(obBoxes) >= maxBoxes
oldBox = array.shift(obBoxes)
box.delete(oldBox)
newBox = box.new(bar_index , low , bar_index + obvLength, high ,
border_color = bullColor, bgcolor = bullColorTransp,
border_width = 2, extend = extend.none)
array.push(obBoxes, newBox)
Box limits keep the number of zones under control.
Borders and transparency are tuned so you still see price clearly.
You end up with a curated liquidity map , rather than a chart buried under every level price has ever touched.
4. Volatility, ADR & Sessions — Time and Range Intelligence
FX OSINT runs a Volatility Regime Analyzer and an ADR engine in the background:
Volatility regime — Five states (Low → Extreme) derived from fast vs. slow ATR.
ADR bands — Daily high/mid/low projected from the current daily open.
ADR used % — How far today’s move has traveled relative to its typical range.
On the time side:
Asia, London, New York sessions are softly highlighted with a single active background to avoid overlapping colors.
Killzones (e.g., London and New York opens) can be emphasized when you want to focus on where significant moves often begin.
Together, this helps you answer:
"What time is it in the trading day?"
"How stretched are we?"
"Is expansion just starting, or are we late to the move?"
5. ICT‑Style Add‑Ons — BOS/CHOCH, Premium/Discount, and Confluence
For modern FX / ICT‑inspired workflows, FX OSINT includes:
BOS / CHOCH labels — Clear structural shifts based on swings.
Premium / Discount zones — 25%, 50%, 75% levels of the daily range, so you know if you are buying discount in an uptrend or selling premium in a downtrend.
Confluence score — A single number summarizing how many conditions line up in the current context.
Instead of replacing your plan, FX OSINT compresses your checklist into the chart:
Structure
Liquidity
Session / Time
Volatility / ADR
Higher‑timeframe alignment
When these agree, the dashboard reflects it. When they don’t, it stays neutral and lets you see the conflict.
How To Use FX OSINT
FX OSINT is not a signal bot. It is an information engine that organizes context so you can apply your own plan.
A typical workflow might look like:
Start on higher timeframes (e.g., H4/D1) to form directional bias from structure, volatility regime, and ADR context.
Move to intraday timeframes (e.g., M15/H1) around your chosen sessions (London and/or New York).
Look for confluence :
HTF / MTF / LTF trends aligned.
Price in discount for longs or premium for shorts.
Recent liquidity sweep into a meaningful OB or FVG.
Confluence score at or above a level you consider significant.
Then refine entries using BOS/CHOCH on lower timeframes according to your own risk and execution rules.
FX OSINT aims to make sure you do not enter a trade without seeing:
Where you are in the day (ADR and sessions).
Where you are in the volatility cycle (regime).
Who currently appears in control (structure and trend).
Which liquidity was just targeted (sweeps and zones).
Design Choices and Scope
FX OSINT was designed around a few clear constraints:
FX‑focused — Logic and filters tuned for FX majors, minors, exotics, and metals. It is intended for FX markets, not for every possible asset class.
Open‑source — The full Pine Script code is available so you can read it, learn from it, and adapt it to your own workflow if needed.
Clear themes — Two main visual styles (e.g., dark institutional “midnight” and a lighter accent variant) with a focus on readability, not visual noise.
Chart‑friendly — Panels use fixed areas, session highlights avoid overlapping, and boxes are capped/pruned so the chart remains usable.
FX OSINT is for only Forex pairs, not anything else!
Hope you enjoyed and remember your Open Source Intelligence Matters 😉!
-officialjackofalltrades Indicator

SMC Pre-Trade Checklist (Mozzys)Here is a **clean, professional description** you can use when publishing your PulseWire script.
It clearly explains what the indicator does and why traders use it—perfect for the public library.
---
# **📌 Script Description (for Publishing)**
**SMC Pre-Trade Checklist (Compact Edition)**
This indicator provides a **smart, compact on-chart checklist** designed for traders who use **Smart Money Concepts (SMC)**.
Instead of guessing or rushing entries, the checklist helps you confirm the essential SMC conditions *before* taking a trade.
The checklist displays as a **small 3-column panel** in the corner of your chart, making it easy to scan without covering price action.
All items are controlled through indicator settings, where you can tick each condition as you validate it in your analysis.
---
## **🔥 What This Tool Helps You Do**
This script helps you stay disciplined by verifying the core components of an SMC setup:
### **1. Higher-Timeframe (HTF) Bias**
* Market direction clarity
* Premium vs. discount zones
* HTF POIs and liquidity targets
### **2. Liquidity Conditions**
* Liquidity sweeps
* Liquidity-based take-profit targets
### **3. Market Structure**
* BOS/CHOCH confirmation
* Displacement
* Clean pullback into POI
### **4. Entry Validation**
* Quality POI
* LTF confirmation
* Logical SL/TP and RR
### **5. Risk Management**
* Correct position sizing
* Avoiding high-impact news
* Spread/volatility conditions
### **6. Trader Discipline**
* Trade matches your model
* No revenge or emotional trading
---
## **🎯 Why Traders Love This**
Most losses come from **breaking rules**, not market randomness.
This checklist forces consistency, clarity, and patience—especially in fast environments like FX, indices, and crypto.
* Prevents emotional entries
* Reduces impulsive trades
* Keeps you aligned with your SMC plan
* Works with any strategy or SMC style
* Clean, minimal, non-intrusive layout
---
## **📌 Features**
* Compact 3-column layout
* Customizable from the indicator settings
* Works on all timeframes and assets
* Zero chart clutter
* Perfect for rule-based traders
---
## **🚀 Who This Indicator Is For**
* SMC traders
* ICT-style traders
* Liquidity-based traders
* Anyone who wants more discipline & consistency
* Backtesters who want structured trade evaluation
--
Indicator

Volume essential parameters overlayVolume EPO – Essential Volume Parameters Overlay
1. Motivation and design philosophy
Volume EPO is designed as a conceptual overlay rather than a self contained trading system. The main idea behind this script is to take complex, foundational market concepts out of heavy, menu driven strategies and express them as lightweight, independent layers that sit on top of any chart or indicator.
In many PulseWire scripts, a single strategy tries to handle everything at once: signal logic, risk settings, visual cues, multi timeframe controls, and conceptual explanations. This usually leads to long input menus, performance issues, and difficult maintenance. The architectural approach behind Volume EPO is the opposite: keep the core strategy lean, and move the explanation and measurement of key concepts into dedicated overlays.
In this framework, Volume EPO is the base layer for the concept of volume. It does not decide anything about entries or exits. Instead, it exposes and clarifies how different definitions of volume behave candle by candle. Other layers or strategies can then build on top of this understanding.
2. What Volume EPO does
Volume EPO focuses on four essential volume parameters for each bar:
- Buy volume - Sell volume - Total volume - Delta volume (the difference between buy and sell volume)
The script presents these parameters in a compact heads up display (HUD) table that can be positioned anywhere on the chart. It is designed to be visually minimal, language aware, and usable on top of any other indicator or price action without cluttering the view.
The indicator does not output signals, alerts, arrows, or strategy entries. It is a descriptive and educational tool that shows how volume is distributed, not a prescriptive tool that tells the trader what to do.
3. Two definitions of volume
A central theme of this script is that there is more than one way to define and interpret “volume” inside a single candle. Volume EPO implements and clearly separates two different approaches:
- A geometric, candle based approximation that uses only OHLC and volume of the current bar. - An intrabar, data driven definition that uses lower timeframe up and down volume when it is available.
The user can switch between these modes via the calculation method input. The mode is prominently shown inside the on chart table so that the context is always explicit.
3.1 Geometry mode (Source File, approximate)
In Geometry mode, Volume EPO works only with the current bar’s OHLC values and total volume. No lower timeframe data is required.
The candle’s range is defined as high minus low. If the range is positive, the position of the close inside that range is used as a simple model for how volume might have been distributed between buyers and sellers:
- The closer the close is to the high, the more of the total volume is attributed to the buying side. - The closer the close is to the low, the more of the total volume is attributed to the selling side. - In a rare case where the bar has no price range (for example a flat or doji bar), total volume is split evenly between buy and sell volume.
From this model, the script derives:
- Buy volume (approximated) - Sell volume (approximated) - Total volume (as reported by the bar) - Delta volume as the difference between buy and sell volume
This approach is intentionally labeled as “Geometry (Approx)” in the HUD. It is a theoretical reconstruction based solely on the candle’s geometry and total volume, and it is always available on any market or timeframe that provides OHLCV data.
3.2 Intrabar mode (Precise)
In Intrabar mode, Volume EPO uses the PulseWire built in library for up and down volume on a user selected lower timeframe. Instead of inferring volume from the shape of the candle, it reads the underlying lower timeframe data when that data is accessible.
The script requests up and down volume from a lower timeframe such as 15 seconds, using the official TA library functions. The results are then interpreted as follows:
- Buy volume is taken as the absolute value of the up volume. - Sell volume is taken as the absolute value of the down volume. - Total volume is the sum of buy and sell volume. - Delta volume is provided directly by the library as the difference between up and down volume.
If valid lower timeframe data exists for a bar, the bar is counted as covered by Intrabar data. If not, that bar is marked as invalid for this precise calculation and is excluded from the covered count.
This mode is labeled “Precise” in the HUD, together with the selected lower timeframe, because it is anchored in actual intrabar data rather than in a geometric model. It provides a closer view of how buying and selling pressure unfolded inside the bar, at the cost of requiring more data and being dependent on the availability of that data.
4. Coverage, lookback, and what the numbers mean
The top part of the HUD reports not only which volume definition is active, but also an additional line that describes the effective coverage of the data.
In Intrabar (Precise) mode, the script displays:
- “Scanned: N Bars”
Here, N counts how many bars since the indicator was loaded have successfully received valid lower timeframe delta data. It is a measure of how much of the visible history has been truly covered by intrabar information, not a lookback window in the sense of a rolling calculation.
In Geometry mode, the script displays:
- “Lookback: L Bars”
In this extracted layer, the lookback value L is purely descriptive. It does not change how the current bar’s volume is computed, and it is not used in any iterative or statistical calculation inside this script. It is meant as a conceptual label, for example to keep the volume layer consistent with a broader framework where lookback length is a structural parameter.
Summarizing these two fields:
- Scanned tells you how many bars have been processed using real intrabar data. - Lookback is a descriptive parameter in Geometry mode in this specific overlay, not a direct driver of the computations.
5. The HUD layout on the chart
The on chart table is intentionally compact and structured to be read quickly:
- Header: a title identifying the overlay as Volume EPO. - Mode line: explicitly states whether the script is in Precise or Geometry mode, and for Precise mode also shows the lower timeframe used. - Coverage line: - In Precise mode, it shows “Scanned: N Bars”. - In Geometry mode, it shows “Lookback: L Bars”. - Volume block: - A line for buy and sell volume, marked with clear directional symbols. - A line for total volume and the absolute delta, accompanied by the sign of the delta. - Numeric formatting uses human friendly suffixes (for example K, M, B) to keep the display readable. - Footer: the current symbol and a time stamp, adjusted by a user selectable timezone offset so that the HUD can be aligned with the trader’s local time reference.
The table can be positioned anywhere on the chart and resized via inputs, and it supports multiple color themes and languages in order to integrate cleanly into different chart layouts.
6. How to use Volume EPO in practice
Volume EPO is meant to be read together with price action and other tools, not in isolation. Typical uses include:
- Studying how often a strong directional candle is actually supported by dominant buy or sell volume. - Comparing the behavior of delta volume between Geometry and Intrabar definitions. - Building a personal intuition for how intrabar data refines or contradicts the simple candle based approximation. - Feeding these insights into separate, lean strategy scripts that do not need to carry the full explanatory logic of volume inside them.
Because it is an overlay layer, Volume EPO can be stacked with other custom indicators without adding new signals or complexity to their logic. It simply adds a clear and consistent view of volume behavior on top of whatever the trader is already watching.
7. Educational and non signalling nature
Finally, it is important to stress that Volume EPO is not a trading system, not a signal generator, and not financial advice. The script does not tell the user when to enter or exit. It only reports how different definitions of volume describe the current bar.
Deciding whether to trade, how to trade, and which risk parameters to use remains entirely with the user and with their own strategy. Volume EPO provides context and clarity around the concept of volume so that those decisions can be informed by a better understanding of how buying and selling pressure is structured inside each candle.
Note: Even on lower timeframes, every reconstruction of volume remains an approximation, except at the true single tick level. However, the closer the chosen lower timeframe is to a one tick stream, the more accurately it can reflect the underlying order flow and balance between buying and selling pressure.
Indicator

Smart Money Concepts [Modern Neon V2]This is a visually overhauled version of the popular Smart Money Concepts (SMC) indicator, designed specifically for traders who prefer Dark Mode, High Contrast, and Maximum Visibility.
While the underlying logic preserves the robust structure detection of the original LuxAlgo script, the visual presentation has been completely modernized. The default "dull" colors have been replaced with a vibrant Cyberpunk Neon palette, and text labels have been significantly upscaled to ensure market structure is readable at a glance, even on high-resolution monitors.
🎨 Visual & Style Enhancements:
Neon Palette:
Bullish: Electric Cyan (#00F5FF)
Bearish: Neon Hot Pink (#FF007F)
Neutral/Levels: Bright Gold (#FFD700)
High Visibility Text: Market Structure labels (BOS, CHoCH, HH/LL) have been upgraded from "Tiny" to Normal size. Key Swing Points (Strong High/Low) are set to Large.
Modern "Solid" Blocks: Order Blocks and FVGs feature reduced transparency (60%) for a bolder, solid look that doesn't get washed out on dark backgrounds.
Decluttered: Removed unnecessary "Small" elements and dotted lines to focus on price action.
🛠 Key Features:
Real-Time Structure: Automatic detection of Internal and Swing structure (BOS & CHoCH) with trend coloring.
Order Blocks: Highlights Bullish and Bearish Order Blocks with new mitigation logic.
Fair Value Gaps (FVG): Auto-threshold detection for high-probability gaps.
Premium & Discount Zones: Automatically plots equilibrium zones for better entry targeting.
Multi-Timeframe Levels: Display Daily, Weekly, and Monthly highs/lows.
Trend Dashboard: (If you added the dashboard code) A clean panel displaying the current Internal and Swing trend bias.
CREDITS & LICENSE: This script is a modification of the "Smart Money Concepts " indicator.
Original Author: © LuxAlgo
License: Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
creativecommons.org Indicator

Indicator

Indicator

Smart Structure Breaks & Order BlocksOverview (What it does)
The indicator “Smart Structure Breaks & Order Blocks” detects market structure using swing highs and lows, identifies Break of Structure (BOS) events, and automatically draws order blocks (OBs) from the origin candle. These zones extend to the right and change color/outline when mitigated or invalidated. By formalizing and automating part of discretionary analysis, it provides consistent zone recognition.
Main Components
Swing Detection: ta.pivothigh/ta.pivotlow identify confirmed swing points.
BOS Detection: Determines if the recent swing high/low is broken by close (strict mode) or crossover.
OB Creation: After a BOS, the opposite candle (bearish for bullish BOS, bullish for bearish BOS) is used to generate an order block zone.
Zone Management: Limits the number of zones, extends them to the right, and tracks tagged (mitigated) or invalidated states.
Input Parameters
Left/Right Pivot (default 6/6): Number of bars required on each side to confirm a swing. Higher values = smoother swings.
Max Zones (default 4): Maximum zones stored per direction (bull/bear). Oldest zones are overwritten.
Zone Confirmation Lookback (default 3): Ensures OB origin candle validity by checking recent highs/lows.
Show Swing Points (default ON): Displays triangles on swing highs/lows.
Require close for BOS? (default ON): Strict BOS (close required) vs loose BOS (line crossover).
Use candle body for zones (default OFF): Zones drawn from candle body (ON) or wick (OFF).
Signal Definition & Logic
Swing Updates: Latest confirmed pivots update lastHighLevel / lastLowLevel.
BOS (Break of Structure):
Bullish – close breaks last swing high.
Bearish – close breaks last swing low.
Only one valid BOS per swing (avoids duplicates).
OB Detection:
Bullish BOS → previous bearish candle with lowest low forms the OB.
Bearish BOS → previous bullish candle with highest high forms the OB.
Zones: Bull = green, Bear = red, semi-transparent, extended to the right.
Zone States:
Mitigated: Price touches the zone → border highlighted.
Invalidated:
Bull zone → close below → turns red.
Bear zone → close above → turns green.
Chart Appearance
Swing High: red triangle above bar
Swing Low: green triangle below bar
Bull OB: green zone (border highlighted on touch)
Bear OB: red zone (border highlighted on touch)
Invalid Zones: Bull zones turn reddish, Bear zones turn greenish
Practical Use (Trading Assistance)
Trend Following Entries: Buy pullbacks into green OBs in uptrends, sell rallies into red OBs in downtrends.
Focus on First Touch: First mitigation after BOS often has higher reaction probability.
Confluence: Combine with higher timeframe trend, volume, session levels, key price levels (previous highs/lows, VWAP, etc.).
Stops/Targets:
Bull – stop below zone, partial take profit at swing high or resistance.
Bear – stop above zone, partial take profit at swing low or support.
Parameter Tuning (per market/timeframe)
Pivot (6/6 → 4/4/8/8): Lower for scalping (3–5), medium for day trading (5–8), higher for swing trading (8–14). Increase to reduce noise.
Strict Break: ON to reduce false breaks in ranging markets; OFF for earlier signals.
Body Zones: ON for assets with long wicks, OFF for cleaner OBs in liquid instruments.
Zone Confirmation (default 3): Increase for stricter OB origin, fewer zones.
Max Zones (default 4 → 6–10): Increase for higher volatility, decrease to avoid clutter.
Strengths
Standardizes BOS and OB detection that is usually subjective.
Tracks mitigation and invalidation automatically.
Adaptable: allows body/wick zone switching for different instruments.
Limitations
Pivot-based: Signals appear only after pivots confirm (slight lag).
Zones reflect past balance: Can fail after new events (news, earnings, macro data).
Range-heavy markets: More false BOS; consider stricter settings.
Backtesting: This script is for drawing/visual aid; trading rules must be defined separately.
Workflow Example
Identify higher timeframe trend (4H/Daily).
On lower TF (15–60m), wait for BOS and new OB.
Enter on first mitigation with confirmation candle.
Stop beyond zone; targets based on R multiples and swing points.
FAQ
Q: Why are zones invalidated quickly?
A: Flow reversal after BOS. Adjust pivots higher, enable Strict mode, or switch to Body zones to reduce noise.
Q: What does “tagged” mean?
A: Price touched the zone once = mitigated. Implies some orders in that zone may have been filled.
Q: Body or Wick zones?
A: Wick zones are fine in clean markets. For volatile pairs with long wicks, body zones provide more realistic areas.
Customization Tips (Code perspective)
Zone storage: Currently ring buffer ((idx+1) % zoneLimit). Could prioritize keeping unmitigated zones.
Automated testing: Add strategy.entry/exit for rule-based backtests.
Multi-timeframe: Use request.security() for higher timeframe swings/BOS.
Visualization: Add labels for BOS bars, tag zones with IDs, count touches.
Summary
This indicator formalizes the cycle Swing → BOS → OB creation → Mitigation/Invalidation, providing consistent structure analysis and zone tracking. By tuning sensitivity and strictness, and combining with higher timeframe context, it enhances pullback/continuation trading setups. Always combine with proper risk management. Indicator
