Order Flow Imbalance Recovery Planner [AGPro Series]Order Flow Imbalance Recovery Planner
🧠 Core Idea
Can a high-volume displacement pocket recover with enough absorption and follow-through to become actionable chart context?
📌 Overview / What it does
Order Flow Imbalance Recovery Planner maps high-volume displacement candles, converts them into practical imbalance recovery pockets, and evaluates whether price can recover that pocket with measurable response.
The script produces imbalance pockets, recovery rails, continuation corridors, invalidation shelves, target reference rails, event labels, and a compact AG Pro dashboard with a 0-100 recovery score.
This script does not read live order book data, footprint data, bid/ask tape, or true exchange-level order flow. It uses chart-available volume, relative volume, candle displacement, wick response, and recovery behavior as a practical visual proxy.
🎯 Purpose & Design Philosophy
The script was built for traders who want a structured way to study volume imbalance recovery instead of reacting to every large candle.
Many displacement candles look important at first, but the useful question is whether price can return to the pocket, absorb pressure, and recover the key rail.
The design supports a context-first workflow: identify the imbalance, observe the test, evaluate the recovery quality, and then read the current state.
⚡ Why This Script Is Different
Most tools mark volume spikes or wide candles as isolated events.
This script does NOT treat every high-volume candle as a signal.
Instead, it builds a recovery pocket, scores the reaction around that pocket, separates test conditions from READY conditions, and keeps invalidation visible.
⚙️ Methodology
1. Context Detection
The script searches for directional displacement candles with elevated relative volume, meaningful candle range, and sufficient body commitment.
2. Reference Mapping
When a valid imbalance is found, the script maps a recovery pocket and a recovery rail around the displacement body.
3. Reaction Evaluation
Price interaction with the pocket is evaluated through retest behavior, close location, wick response, relative volume, freshness, and failure distance.
4. Visual Output
The script displays the active pocket, recovery rail, target rails, invalidation shelf, event labels, bar state color, and dashboard state.
🗺️ How to Read the Chart
Zones represent the active imbalance recovery pocket.
The recovery rail marks the key level price needs to reclaim or lose before the context improves.
Labels highlight new imbalance pockets, pocket tests, ready recovery events, invalidations, and expirations.
Colors:
• Teal = bullish recovery context
• Pink = bearish recovery context or failed context
• Gold = neutral or wait state
• Indigo = monitor or reference state
The panel summarizes imbalance state, recovery score, flow response, risk, and action.
🚦 Signals & States
• Bull Imbalance → a bullish high-volume displacement pocket has been mapped
• Bear Imbalance → a bearish high-volume displacement pocket has been mapped
• Pocket Test → price is interacting with the active imbalance pocket
• Ready Recovery → the recovery score has reached the required threshold
• Invalidated → price has moved beyond the active failure edge
• Expired → the imbalance pocket is too old to remain active
🔔 Alerts Logic
Alerts can trigger when a new imbalance pocket is locked, when price tests the active pocket, when recovery reaches READY status, or when the context is invalidated.
Alerts are attention markers only. They are not trade instructions and do not guarantee future price behavior.
🧩 Confluence Logic
The context becomes stronger when high relative volume, large displacement, clean pocket retest, wick absorption, and recovery close align around the same pocket.
📊 When to Use
• After high-volume displacement candles
• During pullback and recovery phases
• Around breakout continuation attempts
• When studying absorption after aggressive movement
• On liquid symbols with reliable volume data
⚠️ When NOT to Use
• Very low-liquidity markets
• Symbols with unreliable volume data
• Extremely noisy sideways sessions
• News-driven spikes with unstable spreads
• Markets where chart volume does not represent meaningful participation
🎛️ Key Inputs
• Minimum Displacement Range → controls how large a candle must be relative to ATR
• Minimum Body Ratio → filters weak candles with too much wick noise
• Minimum Relative Volume → controls how much volume confirmation is required
• Minimum Ready Score → controls how strict the READY state is
• Projection Bars → controls how far active pockets and rails extend
• Visual Settings → control labels, zones, right-side tags, panel, font size, and bar colors
🖥️ Interface & Visual Design
The dashboard is designed as a quick decision-support panel, not a separate oscillator.
The chart uses a clear hierarchy: pocket first, recovery rail second, labels third, and targets only after recovery context becomes relevant.
The goal is to keep the chart premium, readable, and useful at first glance.
🧪 Practical Usage Workflow
1. Read the panel state
2. Locate the active imbalance pocket
3. Check whether price is testing or recovering the pocket
4. Review the recovery score and risk
5. Compare the output with broader market structure
🔍 Interpretation Guidelines
A READY state means the script has detected enough recovery behavior around the imbalance pocket to mark the context as worth attention.
It does not mean price must continue.
Use the output as structured context together with trend, liquidity, volatility, and higher-timeframe conditions.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not a true order book, footprint, or bid/ask delta tool.
It is not an automated trading system.
It does not provide guaranteed signals.
It is not financial advice.
⚠️ Limitations & Transparency
The script uses chart-available data only.
Volume quality differs between markets, brokers, exchanges, and asset classes.
Timeframe changes may alter the appearance and timing of imbalance pockets.
Extreme volatility may produce rapid invalidation or repeated displacement events.
🧠 Market Context Notes
Order-flow style interpretation should always consider liquidity, volatility, structure, and session context.
A strong recovery pocket in a clean trend may carry more practical meaning than the same pocket inside a noisy range.
🧾 Use Case Examples
When price creates a high-volume bullish displacement candle and later retests the pocket, the script evaluates whether the retest shows enough absorption and recovery strength to become a READY context.
When price loses the recovery edge, the script marks invalidation rather than keeping the setup visually alive.
🧱 System Philosophy
AGPro Series tools are designed as decision-support engines.
The goal is not to simplify markets into blind signals, but to organize complex price behavior into readable structure, state, and risk context.
🔐 Non-Promise Statement
No script can provide certainty.
No signal guarantees continuation, reversal, or profit.
Outputs should be interpreted as analytical context only.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own decisions, risk management, and trade execution.
This script is for educational and analytical purposes only and does not provide financial advice.
📚 Educational Note
Use this tool to study how volume displacement, imbalance pockets, absorption, and recovery behavior interact across different markets and timeframes.
Indicator

AMD Absorption | AnonycryptousAmd Absorption | Anonycryptous
Description & user manual
Why this indicator is different
Most AMD indicators do the same thing. They draw a box for Asia, a box for London, a box for New York, and call it a cycle. They show you where the sessions are. They do not show you what is happening inside them.
Amd Absorption works differently.
It detects the full accumulation-manipulation-distribution cycle mechanically, bar by bar, within whatever session windows you define. It does not assume the cycle follows a fixed schedule. It finds it where it actually forms. And it only confirms a signal when the manipulation sweep shows evidence of institutional absorption — high volume on a bar that barely moves. That is the difference between a sweep that fails and a sweep that leads somewhere.
Most traders can look at a chart in hindsight and identify an AMD cycle. The challenge is identifying it in the moment, on any asset, at any time. That is what this indicator is built to do.
It works on every instrument. Crypto, futures, forex, stocks, commodities. The session windows, detection parameters, and absorption thresholds adapt to the asset class through a preset system. The same logic that detects a liquidity sweep on a bitcoin five-minute chart detects it on a gold two-minute chart, a nasdaq futures one-minute chart, or a forex fifteen-minute chart.
Important notice
Amd Absorption generates trading signals based on pattern detection and volume analysis.
These signals are not financial advice.
They do not predict the future.
They do not guarantee profitability.
All trading decisions are made entirely by the user.
Always manage your own risk. Always apply your own judgment.
1. Overview
Amd Absorption is a cycle detection and entry timing indicator built around three phases of price behavior: accumulation, manipulation, and distribution.
What it includes:
- Mechanical AMD cycle detection within configurable session windows
- Absorption filter on the manipulation bar using volume and body/range analysis
- Five asset class presets with individually tuned detection parameters
- Three-phase candle coloring showing accumulation, manipulation, and distribution in real time
- Absorption dot markers on qualifying manipulation bars
- Distribution target box with configurable stop loss mode and risk/reward ratio
- Volume-weighted price levels as structural reference and target zones
- Vertical session boundary lines at open and close
- Configurable session background colors
- Live dashboard showing session status, preset, last signal, and absorption statistics
- Alerts for bull and bear setups
2. The AMD cycle
2.1 Accumulation
A defined period of price compression. The market moves within a narrow range while smart money builds a position. Amd Absorption detects this as a rolling high-low range falling below a configurable percentage threshold over a set lookback period. During this phase, candles are colored gray.
2.2 Manipulation
After accumulation, price sweeps beyond the range boundary — above the high for a bearish setup, below the low for a bullish setup. This is the liquidity grab. Market orders resting beyond the range are collected. Stops are hit. Retail traders enter in the wrong direction. During this phase, candles are colored in the direction of the sweep — red for a bear sweep, green for a bull sweep.
2.3 Distribution
The real move begins. Price reverses from the sweep extreme and creates a fair value gap — a three-candle imbalance confirming displacement. The signal fires. A distribution target box is drawn from the entry close to the calculated take profit level. Candle coloring continues in the signal direction for the duration of the distribution box, then stops automatically.
The cycle can repeat multiple times within a single session. There is no hard limit on setups per session.
- A note on signal quality versus cycle validity
An AMD cycle that does not produce a signal triangle can still play out fully. The triangle means the manipulation bar showed mechanical absorption — volume confirmed, body was small. That is additional evidence of institutional presence at the sweep level. It raises conviction. It does not make setups without it invalid. Many clean AMD cycles complete without a qualifying absorption bar. The candle coloring will show the full cycle regardless. The triangle is a quality filter, not the only valid setup.
3. The absorption filter
The absorption filter is what separates Amd Absorption from a standard cycle detector.
A manipulation sweep can occur for many reasons. Not every sweep leads to a reversal. The ones that do tend to share a specific characteristic on the sweep bar itself: high volume combined with a small candle body relative to the bar's range.
This pattern means price moved far on heavy participation — a big wick — but the bar closed near where it opened. Something was absorbing the selling or buying pressure. The move did not follow through. That is absorption. It is the mechanical fingerprint of institutional defense of a level.
When the absorption filter is enabled, the signal only fires if the manipulation bar meets both conditions: volume above a configurable multiple of the rolling average, and a body-to-range ratio below a configurable threshold. Bars that qualify are colored in the absorption color and marked with a dot above or below the candle.
The filter can be disabled. With the filter off, every valid AMD + FVG pattern fires a signal. With it on, only the setups with volume confirmation fire. The trade-off is signal frequency versus quality.
4. Presets
Presets automatically configure the four core detection parameters — accumulation lookback, maximum range width, absorption volume multiplier, and absorption body ratio — for each asset class.
Crypto
Lookback: 15 bars. Range: 1.20%. Volume multiplier: 1.2×. Body ratio: 0.55.
Wider range tolerance for volatile 24/7 markets. Looser volume threshold because crypto volume behavior differs from traditional markets.
Futures
Lookback: 20 bars. Range: 0.40%. Volume multiplier: 1.4×. Body ratio: 0.45.
Tight range detection for institutionally driven instruments. Higher volume requirement to match the tick-level precision of futures order flow.
Forex
Lookback: 25 bars. Range: 0.25%. Volume multiplier: 1.3×. Body ratio: 0.50.
Longest lookback and tightest range for the slow, deliberate consolidations common in major pairs. Moderate volume threshold.
Stocks
Lookback: 22 bars. Range: 0.50%. Volume multiplier: 1.4×. Body ratio: 0.50.
Balanced settings between futures and forex. Works across individual equities and equity indices.
Commodities
Lookback: 22 bars. Range: 0.35%. Volume multiplier: 1.4×. Body ratio: 0.50.
Designed for gold, silver, oil, and similar instruments. Tighter than forex but more tolerant than futures. Handles institutional spikes well.
Custom
All four parameters are set manually in the Amd Logic and Absorption Filter groups. Use this when the presets do not match the behavior of a specific instrument or timeframe combination.
Note: the manipulation search window, FVG size filter, and ATR length are always set manually regardless of preset. These three parameters are active for all presets and can be adjusted freely.
5. Sessions
Amd Absorption detects AMD cycles only within active session windows. Outside of sessions, no accumulation is tracked, no sweeps are detected, and candle coloring is inactive. This prevents false setups forming during off-hours thin markets.
Three sessions are configurable: Asia, London, and New York. Each session has an independent toggle, a clock-picker for start and end time, and a background color. All session times are entered in your selected timezone, which can be set to any UTC offset from UTC-12 to UTC+12.
A thin vertical line marks both the opening and closing of each active session. This gives you a clear visual boundary for each session's cycle. The opening line and closing line use the same configurable color.
6. Distribution box
When a signal fires, a distribution target box is drawn from the entry bar forward. The box represents the expected move from entry to take profit.
Two stop loss modes are available:
Atr mode
Stop loss distance is calculated as ATR × the configured multiplier. This gives a consistent distance across all setups regardless of the exact FVG size. Useful for instruments where ATR matches your natural stop placement.
Fvg structure mode
Stop loss is placed at the outer edge of the FVG candle — above the FVG high for a bear setup, below the FVG low for a bull setup. This uses the actual market structure as the invalidation point, which is how many practitioners manage stops on this type of setup.
The take profit is calculated as: entry ± stop distance × RR ratio. The default ratio is 2.0, giving a 1:2 reward-to-risk setup. The ratio is adjustable.
The box width is fixed in bars. It does not track price. When the configured number of bars elapses, candle coloring for the distribution phase stops automatically. For position sizing and stop management, Risk Management Engine by Anonycryptous can be used alongside this indicator.
7. Price levels
Volume-weighted pivot highs and lows are drawn as horizontal reference lines. Pivot highs above current price act as resistance. Pivot lows below current price act as support. Each level shows its exact price value.
Line appearance reflects volume strength. A stronger volume reading at the pivot produces a more visible glow layer. Weaker pivots are more subdued.
Levels disappear automatically when price touches them. The maximum number of visible levels is configurable. These levels serve as structural context and potential distribution targets for confirmed signals.
8. Candle coloring
Amd Absorption colors candles to show the current phase of the cycle. The coloring is active only within session windows.
Gray — accumulation phase. Price is consolidating within the detected range.
Red (bear) or green (bull), dim — manipulation phase. A sweep has been detected and the indicator is searching for a confirming FVG. Colors the sweep candles and any subsequent candles until the FVG fires or the search window expires.
Absorption color (default purple) — absorption bar. A candle within the manipulation phase that meets both volume and body conditions. Also marked with a dot above or below the bar.
Red (bear) or green (bull), dim — distribution phase. Fires from the signal bar and continues until the distribution box width elapses.
Priority: absorption color overrides distribution, which overrides manipulation, which overrides accumulation.
9. Dashboard
The dashboard shows:
- Session — current active session or off
- Preset — active asset preset
- Last signal — direction of the most recent confirmed signal
- Last session — which session the last signal occurred in
- Abs / setups — absorption-confirmed signals vs total AMD setups detected
- Abs filter — whether the absorption filter is on or off
- Accumulation — current accumulation state: active, searching, or none
Position is configurable: top left, top right, bottom left, or bottom right. Size is configurable: tiny, small, or normal.
10. Settings reference
10.1 Sessions
- Timezone — utc offset for session time entry
- Asia / London / New York — toggle, time picker, background color per session
- Show session open lines — vertical lines at session open and close
- Session line color
10.2 Preset
- Asset preset — crypto / futures / forex / stocks / commodities / custom
10.3 Amd logic
- Accumulation lookback — bars used to measure consolidation range (custom only)
- Max accumulation range (%) — maximum range width to qualify (custom only)
- Manipulation search window — bars to search for a sweep after accumulation
- Min fvg size (atr multiplier) — minimum gap size for distribution confirmation
- Atr length — period for atr calculation
- Sl mode — atr or fvg structure
- Sl atr multiplier — stop distance multiplier in atr mode
- Rr ratio — reward-to-risk ratio for the distribution box
- Distribution box width (bars) — fixed bar width of the distribution target box
10.4 Absorption filter
- Enable absorption filter — toggle on/off
- Min volume multiplier — minimum volume relative to average (custom only)
- Max body/range ratio — maximum body-to-range ratio (custom only)
- Volume average length — lookback for rolling volume average
10.5 Price levels
- Show price levels — toggle on/off
- Pivot lookback — bars left and right to confirm a pivot
- Min volume multiplier — minimum volume at the pivot bar
- Volume average length — lookback for volume average
- Support level color — color for pivot lows
- Resistance level color — color for pivot highs
- Max levels shown — maximum number of visible levels
10.6 Visuals
- Show accumulation box
- Show manipulation box
- Show fvg box
- Show entry signal
- Bull color — color for bullish setups and signals
- Bear color — color for bearish setups and signals
- Absorption color — color for absorption bar highlight and dot
- Distribution color — candle color during the distribution phase
10.7 Dashboard
- Show dashboard
- Position
- Size
11. How to use
11.1 Initial setup
1. Select the preset that matches your instrument.
2. Set your timezone to match your location or preferred session reference.
3. Enable the sessions you trade. Set the times to match the actual session opens for your timezone.
4. Choose a stop loss mode. Fvg structure is the more precise option. Atr is more consistent if FVGs on your timeframe vary significantly in size.
5. Set your RR ratio. Default 2.0 is a starting point — adjust to your own risk management rules.
6. If using the custom preset, start with the preset values as a reference and tune from there.
11.2 Reading the chart
Look at the session background. Once a session opens, accumulation detection begins.
When candles turn gray, accumulation is active. The indicator has found a range that qualifies as consolidation. This is the waiting phase.
When candles turn red or green, a sweep has been detected. The indicator is now looking for a confirming FVG. This is the alert phase — something is happening.
When a purple (or absorption-colored) candle appears with a dot, the sweep bar showed absorption. This is the highest-quality moment within the manipulation phase. A signal is likely imminent if a FVG forms on the next bars.
When a signal triangle fires, the full AMD cycle has confirmed with FVG and absorption. The distribution box appears showing the entry level and target.
11.3 Illustrative bull scenario
Educational example only. Not a trading recommendation.
Session opens. Candles turn gray — accumulation detected between two levels. After several bars, price dips below the accumulation low on a high-volume candle that closes near its open. The candle colors purple. A dot appears below it. Two bars later, a gap forms above — price has displaced back through the range. A green triangle fires below the entry bar. The distribution box extends to the right showing the 1:2 target. A support level line sits just below the sweep low confirming the structural context.
11.4 Illustrative bear scenario
Educational example only. Not a trading recommendation.
Session opens in London. Candles turn gray — a tight consolidation forms. Price spikes above the range high on elevated volume. The spike candle has a large wick and closes back below the high — body is less than 40% of the bar range. The candle turns purple. A dot appears above it. A FVG opens below. A red triangle fires above the entry bar. The distribution box drops from entry toward the calculated take profit. A resistance level hovers just above the sweep high.
11.5 Using the absorption filter
With the filter on, the signal only fires when the manipulation sweep bar shows mechanical absorption. This reduces total signals but increases the average quality of what does fire. The dashboard shows abs / setups — how many confirmed absorptions versus total AMD patterns detected. A ratio of 1/5 is normal. The filter is stricter by design.
With the filter off, every valid AMD + FVG pattern produces a signal regardless of volume. Use this to explore how many setups form on your instrument before deciding whether the absorption requirement is helping or filtering too aggressively.
Regardless of filter setting, the candle coloring always shows the full AMD cycle. A setup without a triangle is still visible through the gray accumulation, the colored manipulation phase, and the FVG box. Traders who want to act on every AMD cycle can use the visual coloring as their cue and treat the triangle as an additional confirmation rather than a requirement.
11.6 Timeframe guide
- 1m–3m: scalp setups. Absorption filter on. Tight preset (futures or commodities).
- 5m–15m: intraday setups. All presets apply. Standard settings.
- 30m–1h: swing context. Manipulation window and accumulation lookback can be increased.
- 4h and above: macro context only. Signals will be infrequent. Use to identify major cycle pivots.
12. Tips
The manipulation search window is your primary tuning lever. If the indicator misses setups you can see visually, increase the manipulation window. If it produces setups that do not look like genuine sweeps, tighten the range width or increase the volume multiplier.
The absorption filter is directional. A bear sweep that qualifies will have a large upper wick and a small body. A bull sweep that qualifies will have a large lower wick and a small body. If you see a purple dot on a bar with a small wick, the volume threshold is too low — raise the min volume multiplier.
Price levels are structural context, not signals. Use them to assess whether a distribution target has a logical resting point — a prior support or resistance level aligned with the take profit zone strengthens the setup.
Multiple AMD cycles can form within a single session. The state resets after each completed cycle. If an accumulation forms but no sweep follows within the search window, the state clears automatically and the indicator waits for the next consolidation.
Candle coloring stops at the session close. If candles outside the session boundaries show unexpected colors, check that your session times are correctly set for your timezone.
13. Disclaimer
This indicator is provided for educational and informational purposes only. Nothing in this document constitutes financial advice or any form of recommendation. Trading financial instruments involves substantial risk of loss. Past performance is not indicative of future results. You may lose all of your invested capital.
Anonycryptous accepts no responsibility or liability for any losses incurred as a result of using this indicator.
Indicator

Liquidity Grab Detector [AGPro Series]🧲 LIQUIDITY GRAB DETECTOR
Detects single-bar multi-level liquidity raids — the precise moment price sweeps a cluster of 2 or more distinct liquidity pools within a single candle and immediately reverses. Built for ICT, Smart Money, and institutional order-flow analysis, this engine identifies the liquidity raids that matter most: simultaneous multi-level stop hunts that typically precede the sharpest reversals.
═══════════════════════════════════════
🔹 OVERVIEW
Most liquidity tools either track single sweeps or lifecycle-based breach-and-reclaim patterns. This detector focuses on a different, rarer, and higher-conviction event: the single-bar multi-level raid. When one candle sweeps a cluster of two or more untouched liquidity levels (swing highs/lows, session H/L, previous day H/L, previous week H/L) in a single motion, the odds of a meaningful reversal increase significantly. The engine validates each grab with four independent filters, deduplicates overlapping levels, merges adjacent reversal zones for a clean chart, tiers signals by quality, and projects forward target zones.
One-click preset modes (Aggressive / Balanced / Conservative / Custom) make the detector instantly suitable for any style — from high-frequency scalping to premium-only confluence trading — without manual tuning.
This is not a strategy and makes no directional prediction. It is a detection and visualization engine for a specific institutional order-flow footprint.
═══════════════════════════════════════
🔹 UNIQUE EDGE — HOW THIS DIFFERS
The single-bar multi-level criterion is the defining separator from conventional liquidity tools:
▪ Traditional liquidity sweep detectors flag any single-level sweep. High signal rate, low conviction per signal.
▪ Breach-and-reclaim engines (equal-highs / equal-lows style) require a full lifecycle across multiple bars. Different mechanic, different timing.
▪ This detector requires a cluster of 2+ distinct liquidity levels to be swept in a single candle, within a user-defined ATR proximity. ATR-normalized thresholds adapt across all timeframes and symbols.
▪ ATR-based level deduplication merges coincident sources (e.g. Swing + PDH stacked at the same price) into a single logical level, preventing inflated sweep counts.
▪ Zone overlap-awareness: adjacent same-direction reversal zones are merged into a single extended zone rather than piling multiple boxes on top of each other. Premium, chart-clean visualization.
▪ Strikethrough length clamp keeps historical consumed-level lines from crossing the entire chart, even on long-running indicators.
▪ Preset modes encapsulate calibrated filter stacks, making the detector genuinely plug-and-play.
The combined filter stack (cluster + volume + wick + reversal + cooldown + dedup + zone-merging) produces fewer but significantly higher-quality signals with a clean visual footprint.
═══════════════════════════════════════
🔹 METHODOLOGY
Preset modes calibrate the detection engine with one selection:
▪ Aggressive — minimum 2 levels, 0.7 ATR cluster, 1.1× volume, 0.15 ATR wick, 2 bar cooldown.
▪ Balanced — minimum 2 levels, 0.45 ATR cluster, 1.5× volume, 0.3 ATR wick, 5 bar cooldown. Default.
▪ Conservative — minimum 3 levels, 0.35 ATR cluster, 2.0× volume, 0.45 ATR wick, 10 bar cooldown. Premium-only.
▪ Custom — honors manually configured input values.
Level registry with deduplication. The script maintains a live registry of untouched liquidity levels built from four configurable sources. Incoming levels within a configurable ATR tolerance of an existing level are merged. Each level is time-stamped, capped at a configurable maximum count, and pruned once it ages beyond the lookback window or is consumed by a grab.
Cluster detection. On every bar, the engine scans active levels on both sides and classifies a bar as a multi-level sweep candidate when it penetrates the minimum level count whose vertical span fits within the ATR proximity band.
Confirmation layers:
1. Volume spike — grab bar volume must exceed the rolling SMA by the preset multiplier.
2. Wick ratio — rejection wick on the grab side must exceed the preset ATR fraction.
3. Immediate reversal — within a configurable window, price must close back beyond the swept cluster.
4. Cooldown — after a confirmed grab, new detections are suppressed.
Zone overlap-awareness. When a new grab's reversal zone falls within a configurable ATR distance of a recent same-direction zone, the existing zone is extended rather than drawing a new overlapping box. Aggregate targets stay clean.
Quality tier classification. Confirmed grabs are automatically tiered by level count, with 4-level grabs and 5+ level grabs receiving progressively stronger visual emphasis.
═══════════════════════════════════════
🔹 SIGNALS & VISUALS
Confirmed bullish grab — triangle marker below the bar, "LIQ GRAB · N levels swept" label with tier stars for high-quality grabs, and a forward-projected reversal zone above the cluster with a target micro-label.
Confirmed bearish grab — mirror image with bear coloring.
Stagger-aware label placement. When multiple confirmed grabs occur close together on the chart, their labels are automatically offset vertically to prevent visual overlap.
Clean default visual profile. Swept-level strikethrough lines are disabled by default for a premium chart-clean look; enable them for detailed post-grab review. When enabled, a max-age clamp prevents extremely long lines.
Statistics panel (8 rows) — active level count, total grabs, bars since last grab, last grab source composition (dynamic, e.g. "PDL+Swing"), bullish vs bearish breakdown, reversal success rate, and average levels swept per grab.
Alerts — separate alert conditions for bullish and bearish grab confirmations, triggered on bar close.
═══════════════════════════════════════
🔹 KEY INPUTS
Detection Engine
▪ Preset Mode — Aggressive / Balanced / Conservative / Custom.
▪ Minimum Levels Swept, Cluster Proximity, Cooldown — honored in Custom mode.
▪ Level Deduplication (ATR) — merge tolerance for coincident levels.
▪ Level Lookback, Max Active Levels — registry housekeeping.
Liquidity Level Sources — swing highs/lows, session H/L, PDH/PDL, PWH/PWL.
Confirmation Filters — volume multiplier and averaging length, reversal window, minimum wick ratio, ATR length.
Visuals
▪ Toggle labels, strikethroughs, zones, statistics panel.
▪ Label and panel font size (default Normal).
▪ Panel position (8 options) and theme (Dark / Light).
▪ Zone projection length, zone height, zone transparency.
▪ Zone merge distance (ATR-based overlap suppression).
▪ Max strikethrough length (bars).
═══════════════════════════════════════
🔹 HOW TO USE
1. Start with Balanced preset on any timeframe. The ATR-based cluster logic adapts automatically, but 15m–4H timeframes on liquid instruments produce the cleanest signal set.
2. Switch to Conservative for premium-only signals at key institutional levels, or Aggressive when scalping intraday liquidity dynamics.
3. Watch for grab labels near well-defined liquidity clusters — session opens, PDH/PDL interactions, and at range edges. Tiered grabs (4+ levels raided in one bar) deserve special attention.
4. Use the reversal projection zone as a reference target area, not a mechanical take-profit. Combine with your existing structure, order blocks, or mean-reversion levels.
5. Check the "Last Sources" panel row to see which specific liquidity pools were raided most recently.
6. For detailed post-grab analysis, enable "Show Swept Level Strikethroughs" in the Visuals group. For a clean chart, leave disabled.
7. For fine-grained control, select Custom mode and adjust each filter manually.
═══════════════════════════════════════
🔹 LIMITATIONS & TRANSPARENCY
▪ No repaint on confirmed signals — grabs are finalized only after the reversal window closes with all filters passing. Swing pivots used as level sources are inherently delayed by the pivot length (standard pivot behavior).
▪ The reversal success metric uses a fixed 1 ATR / 10 bar definition and is provided as context only. It is not a performance claim or win rate.
▪ In strongly trending markets, multi-level sweeps can occur without reversal, producing failed grabs. The filter stack reduces but does not eliminate this.
▪ On very low-liquidity symbols or extremely short timeframes, volume data can be noisy. Consider disabling the volume filter in those conditions.
▪ Session, PDH/PDL, and PWH/PWL levels are derived from the chart symbol's native session definition.
═══════════════════════════════════════
🔹 RISK DISCLOSURE
This indicator is an analytical and visualization tool. It does not generate buy or sell recommendations, does not guarantee any outcome, and is not a trading strategy. All trading decisions are the sole responsibility of the user. Past pattern behavior does not guarantee future results. Always combine indicator output with your own analysis, risk management, and position sizing framework. Indicator

Buy/Sell Pressure Meter [AGPro Series]Buy/Sell Pressure Meter
🔹 Overview
Buy/Sell Pressure Meter is a volume-flow analytics tool that quantifies the tug-of-war between buyers and sellers on every bar and on a rolling basis. Unlike traditional volume delta indicators that only plot raw bar-level buy minus sell, this tool layers four complementary lenses into a single oscillator: rolling pressure trend, imbalance streak tracking, intraday pressure shift count, and session-accumulated dominance. A subtle price-pane background tint gives a Bookmap-light read on intraday participation that works across crypto, futures, and liquid equities — without requiring tick-level order flow data.
🔹 Unique Edge
Most volume-delta scripts answer the question "which side was bigger on this bar?" This one answers a different, more useful question for intraday traders: "who has been in control, and how stable is that control?"
• Rolling Pressure Trend — a moving average of buy and sell pressure separately (dual histogram), so you see structural bias, not just bar-to-bar noise.
• Imbalance Streak Tracking — counts consecutive same-side dominant bars and labels only the final length of each significant streak at the moment the streak breaks. No per-bar label spam, one clean marker per event.
• Intraday Pressure Shift Count — how many times the rolling dominant side has flipped since session open. High shift count = rotational day. Low shift count = trending day.
• Session-Accumulated Net Delta — cumulative bull vs bear contribution since the day began, independent of the rolling window.
• Price-Pane Bookmap-Light Tint — a very high-transparency background tint paints the main chart pane when one side is rolling-dominant, so you see control visually without leaving the price chart.
These five lenses together are deliberately designed not to overlap with raw volume-delta or cumulative-volume-delta indicators. They describe the character of participation, not just its magnitude.
🔹 Methodology
Because standard chart data does not include true tick-level order flow, this script uses a widely-accepted proxy: up-bar volume is attributed to buy pressure, down-bar volume to sell pressure, and doji volume is split evenly. This is explicitly a simulated bias — not real bid/ask flow — and the script labels it as such in the panel.
From that proxy:
1. Current-bar bull pressure percentage = buyPressure / (buyPressure + sellPressure) × 100.
2. Rolling pressure = SMA of buy and sell pressure over the user-defined window (default 20 bars).
3. A bar is classified bull-dominant when its bull pressure percent exceeds the dominance threshold (default 55%), and bear-dominant at the mirror level.
4. Streaks count consecutive bars of the same classification and reset when a neutral or opposite bar prints. Peak length is captured at the moment of reset and optionally labelled on chart.
5. Pressure shifts compare the current rolling dominant side against the last confirmed non-neutral dominant side; a change increments the intraday shift counter (only on intraday timeframes).
6. Session delta is the cumulative net delta since the last daily rollover.
🔹 Signals & States
• Dual histogram — buy pressure (teal, upward) and sell pressure (pink, downward) plotted as rolling averages.
• Net delta center line — accent-colored line showing rolling buy minus sell.
• Price-pane background tint — subtle teal or pink when one side is rolling-dominant, gives a Bookmap-light feel without obscuring candles.
• Oscillator-pane echo tint — even more subtle tint mirroring the dominant side in the indicator pane.
• Shift markers — triangles on the pane when the dominant side flips.
• Streak peak labels — plotted only at streak termination, showing final length (e.g. "Bull 7").
• Alerts — pressure shift to bull, pressure shift to bear, bull imbalance streak, bear imbalance streak.
🔹 Key Inputs
Calculation:
• Rolling Pressure Length — default 20. Higher = smoother, slower reaction.
• Minimum Streak To Highlight — default 3. Used for alerts.
• Dominance Threshold — default 55%. Share of total pressure needed to classify a bar as dominant.
Visuals:
• Tint Price Pane On Dominance — toggles the Bookmap-light effect on the main chart.
• Show Streak Peak Labels + Minimum Streak Length To Label (default 5) — controls chart cleanliness.
• Show Pressure Shift Events — triangle markers on shifts.
• Background Tint Transparency — default 94, adjustable 80-99.
Panel:
• Panel Location, Theme (Dark / Light), Font Size, Label Font Size — all default to Normal and fully configurable.
🔹 How To Use
This is an analytical tool, not a standalone trading system. Typical use cases:
• Confirmation — when price breaks a structure level while the rolling net delta is strongly in the break direction and a streak is in progress, the break has participation behind it.
• Exhaustion — a long bull streak peak followed by a rolling shift to bear, or vice versa, often marks the end of the current impulse.
• Regime read — a day with many intraday pressure shifts is rotational; a day with 0-1 shifts is directional. Adjust your playbook accordingly.
• Companion to S/R, supply/demand, and volume profile tools — use the streak peak and shift events as a participation filter when price interacts with a zone.
Best results on liquid instruments with meaningful bar-to-bar volume variation. Low-volume illiquid tickers produce noisier readings.
🔹 Limitations & Transparency
• The buy vs sell attribution is a proxy derived from bar direction and bar volume. It is not real order flow, Level 2, or tick data. Bookmap, CVD from exchange feeds, and footprint tools access information that bar-level scripts structurally cannot replicate.
• On instruments or timeframes where many bars close near their open (doji-heavy regimes), proxy-based attribution becomes less informative.
• The intraday shift counter is only meaningful on intraday timeframes; on daily-and-above timeframes the panel explicitly shows this as n/a.
• The script is non-repainting on closed bars. Intrabar values update in real time and may change until the bar confirms.
• Pressure shifts and streaks describe past and current state. They are not predictions of future price.
🔹 Risk Disclosure
This script is provided as an analytical tool for educational and research purposes. It does not constitute financial advice, a trading signal, or a recommendation to buy or sell any asset. Past performance of any pattern, streak, or shift event does not guarantee future results. Users are solely responsible for their own trading decisions and risk management. Always combine any indicator with broader market context, position sizing discipline, and your own due diligence. Indicator

Institutional Candle Detector [AGPro Series]🕯️ Institutional Candle Detector
Every trader has stared at a massive candle and asked the same question: "Was that the start of a move, the end of one, or just noise?" Most indicators stop at detection — they paint the candle, drop a label, and walk away. This one keeps watching.
Institutional Candle Detector uses a dual-track engine. The body-driven track flags high-conviction candles where ATR-normalized body size and relative volume both expand together, then classifies each event by body/wick geometry. The independent absorption track captures a different signature entirely — low-body candles on extreme volume, the classic aggression-absorbed footprint that body-only detectors miss. Every detected event is then re-evaluated over the following bars to produce a measurable outcome scorecard.
🔹 OVERVIEW
The script scans each bar for two separate, mutually-exclusive institutional signatures:
• Body-driven events. Body must exceed a multiple of ATR AND volume must exceed a multiple of its rolling average. Classified by geometry into Continuation, Reversal or Exhaustion.
• Absorption events. Volume extremely elevated BUT body contained — the market paid for a big move and did not get one. Price was absorbed.
Every detected candle is then given a reaction zone projected forward, and its outcome is automatically tagged after the configured look-forward window — Follow-Through (FT), Reverse (RV) or Consolidation (CN). The panel accumulates aggregate statistics across the loaded chart so the trader can see which candle type actually works on their instrument and timeframe.
🔸 UNIQUE EDGE
What separates this tool from generic "big candle" or "volume spike" indicators:
• Dual-track detection. A single filter cannot capture both explosive moves and absorption. This script runs two engines in parallel with independent thresholds.
• Four-class geometric taxonomy, each backed by a distinct detection path. Continuation and Reversal fire from the body-driven track with different geometry. Exhaustion catches the mid-profile edge cases. Absorption runs entirely off its own volume-first track.
• Automatic after-behavior tracking. Each event is re-examined after N bars and tagged with an outcome code. This is the part most scripts omit — and it's where edge lives.
• Aggregate statistics panel. Follow-through rate, reverse rate, consolidation rate, and per-class counts are computed continuously. The panel tells you whether institutional candles on this asset actually extend, reverse, or fade.
• Forward-projected zones, colored by class. Body-driven bull/bear events use state colors. Absorption uses an indigo accent so the rarer signature is instantly recognizable. Reversal zones use the contrarian color to emphasize the expected directional flip.
🔹 METHODOLOGY
Body-Driven Track (produces CONT, REV, EXH)
– Body is measured as absolute (close − open) and required to exceed Body × ATR multiple.
– Volume is required to exceed a configurable multiple of its SMA average.
– An optional wick filter rejects candles where total wick exceeds the body beyond a given ratio, removing wide-range noise that looks institutional but is not.
– Continuation: body% ≥ configured threshold (clean directional close).
– Reversal: opposing wick% ≥ configured threshold (sharp rejection after initial push).
– Exhaustion: passes the dual-gate but falls into neither clean category — mid profile, often late in a move.
Absorption Track (produces ABS)
– Volume must exceed an independently configurable multiple (higher than body-driven default).
– Body must be small — below a max Body × ATR and below a max Body / Range.
– When absorption fires, it takes precedence over body-driven classification.
After-Behavior Layer
– After lookFwd bars, the script compares the extreme price move in each direction against the original body size.
– If same-direction extension ≥ ftPct × body → Follow-Through (FT).
– If opposite-direction retrace ≥ revPct × body → Reverse (RV).
– Otherwise → Consolidation (CN).
Aggregate counters accumulate across the loaded chart, producing a running scorecard visible in the panel.
🔸 SIGNALS, STATES & MARKERS
On-chart signals
• Institutional body recolored by class — bull/bear direction for CONT and EXH; contrarian color for REV; accent color for ABS.
• Directional triangle marker above/below the bar.
• Classification label: INST-Bull 3.2x CONT or INST-Bear 5.4xV ABS format, ASCII only. Labels offset from the candle to stay readable on dense charts.
• Reaction zone box projected forward from the candle's high-low range, color-coded by class.
• Outcome marker (FT / RV / CN) plotted lookFwd bars after the event.
Alerts available
• Institutional Continuation
• Institutional Reversal
• Institutional Absorption
• Institutional Exhaustion
All four alerts fire on confirmed bars only.
🔹 KEY INPUTS
Detection Core (body-driven track)
– ATR Length (default 14)
– Volume Average Length (default 20)
– Min Body × ATR (default 2.0)
– Min Volume Multiple (default 2.5)
– Wick filter toggle and max Wick/Body ratio (default 2.5)
Absorption Track
– Enable Absorption Detection
– Absorption Min Volume Multiple (default 4.0)
– Absorption Max Body × ATR (default 1.5)
– Absorption Max Body / Range (default 0.40)
Classification
– Continuation body% threshold (default 0.60)
– Reversal opposing-wick% threshold (default 0.40)
After-Behavior
– Look-forward bars (default 5)
– Follow-through threshold as fraction of body (default 0.50)
– Reverse threshold as fraction of body (default 0.60)
Visuals
– Show/hide zones, zone projection length, opacity, max active zones
– Label size (default Small; increase if labels feel too compact)
– Institutional border width
– Outcome marker toggle
Panel
– 8-position panel placement
– Dark / Light theme
– Font size (default Normal)
– Recent events mini-list toggle
🔸 HOW TO USE
1. Start with defaults on a liquid asset. 4H is a strong baseline; 1H for active traders; Daily for swing context. On Daily, consider lowering Min Body × ATR to 1.5 if events are too rare.
2. Watch the panel accumulate events over two to four weeks on your instrument. The follow-through rate tells you whether institutional candles on this chart tend to extend or fade.
3. Trade-context usage:
– Continuation with a high historical follow-through rate on this asset → trend trades in candle direction after pullback into the zone.
– Reversal with a high historical reverse rate → fade setups at key levels.
– Absorption → aggressive flow was met by an equal or greater defender; often precedes a reversal or compression phase.
– Exhaustion → proceed with caution; frequently a late-move signature where the trend is losing clean structure.
4. Reaction zones act as provisional supply/demand. A retest of a zone with another institutional event near it is a confluence worth noting.
5. Tune thresholds per asset. High-liquidity instruments may need Body × ATR of 2.5+ to keep events selective; low-liquidity pairs can go down to 1.5. Absorption volume multiple can also be adjusted upward on already-volatile instruments.
🔹 LIMITATIONS & TRANSPARENCY
• This is an analytical indicator, not a strategy. No entry, exit, or stop logic is defined and no performance claims are made.
• Aggregate statistics are computed over the loaded chart window and will shift as more bars load or as timeframes change.
• Volume quality depends on the data feed; exchange-reported volume differs across sources for the same asset.
• Follow-through evaluation uses a fixed look-forward window; real trade management will differ.
• All results are historical and descriptive. Past behavior of any candle class does not guarantee future behavior.
🔸 RISK DISCLOSURE
Trading carries substantial risk. This tool is provided for analytical and educational purposes. Do your own research. Use position sizing and risk management appropriate to your account. Nothing in this script constitutes financial advice. Indicator

Market Pressure Route [AGPro Series]Market Pressure Route
🌊 Overview
─────────────────────────────────────────────────
Market Pressure Route visualizes the directional buying/selling pressure of a market as a flowing route that tracks price from above or below, and classifies the texture of that flow in real time as Clean, Stalling, Exhausted, or Broken. It is a visualization and classification tool built around two original analytics: the Directional Pressure Score (DPS) and the Route Continuity Index (RCI). The route does not predict price — it describes how clean, consistent, and energetic the current pressure is, so you can read the order-flow texture at a glance.
🔹 Unique Edge
─────────────────────────────────────────────────
Most pressure, flow, or delta-style indicators collapse to a single oscillator or histogram and leave the trader to interpret the number. Market Pressure Route takes a different route.
• Dual-layer engine — DPS measures how directional pressure is; RCI measures how consistent that pressure has been over a lookback window. Pressure without continuity is noise; continuity without pressure is drift. Only the combination qualifies as a Clean route.
• Route, not oscillator — the analytic flows as a colored band above or below price. You read the texture of the market in the same place you read price, not in a separate pane.
• Four-state classification — Clean, Stalling, Exhausted, Broken. Every bar lands in exactly one state, driven by a deterministic decision tree. No grey zones, no ambiguous signals.
• Magnitude-gated break detection — a sign flip in pressure only counts as a Broken route when the flip happens with enough energy. This suppresses the low-amplitude zero-line noise that plagues most flow tools.
• Institutional-grade presentation — compact AGPro panel with live state, direction, DPS bar widget, RCI, and a continuity Flow bar. Badges only mark the transitions that change the market story; Stall and Exhaust transitions are conveyed by route color alone.
🔹 Methodology
─────────────────────────────────────────────────
Directional Pressure Score (DPS) — a composite bounded in blending four bar-level microstructure components:
• Body (45%): closing conviction within the bar range
• Close Location (25%): close position relative to the bar midpoint
• Volume (20%): clamped z-score of volume vs a 50-bar baseline
• Gap (10%): open-to-prior-close gap, ATR-scaled
The raw score is clamped to and then EMA-smoothed with the Pressure Length.
Route Continuity Index (RCI) — a score combining:
• Persistence (65%): fraction of bars in the lookback whose DPS sign matches the current sign
• Stability (35%): one minus the normalized dispersion of DPS across the window
Stability is calibrated for the bounded range of DPS so that RCI remains resolute and does not saturate near 1.0 on quiet markets.
State Classification — a deterministic ternary decision tree:
• Broken — the pressure sign has just flipped with magnitude above the Broken Minimum DPS. Held for up to five bars as a cooldown so the transition is visible.
• Clean — qualifies via either a magnitude path (|DPS| above Clean DPS threshold and RCI above Clean RCI threshold) or a continuity path (RCI above 0.75 with minimum pressure above the Stalling DPS threshold). The dual path handles rally/selloff asymmetry.
• Stalling — pressure still present (|DPS| above Stalling threshold) but continuity has weakened (RCI below Clean levels).
• Exhausted — pressure has faded below the Stalling threshold or is losing magnitude.
🔹 Signals & Alerts
─────────────────────────────────────────────────
State transitions are exposed in two places:
On-chart badges:
• CLEAN UP — bullish Clean route has just formed
• CLEAN DOWN — bearish Clean route has just formed
• BROKEN — pressure direction has just flipped with magnitude
Intermediate Stall and Exhaust transitions are conveyed by route color change only, keeping the chart uncluttered. A price-clustering filter suppresses repeated same-type badges in the same zone so sideways markets stay institutional.
Alerts (both alert() calls and alertcondition() entries):
• Clean Bullish Route
• Clean Bearish Route
• Route Stalling
• Route Exhausted
• Route Broken
🔹 Key Inputs
─────────────────────────────────────────────────
Core Analytics:
• Pressure Length — EMA length applied to DPS (default 14)
• Route Smoothing — visual smoothing for the route band only (default 3)
• Route Continuity Lookback — bars used to compute RCI (default 10)
• Strict Route Filter — raises Clean thresholds by 0.10 for higher timeframes
Classification Thresholds:
• Clean DPS / Clean RCI — magnitude-path qualification levels
• Stalling DPS — minimum pressure to stay out of Exhausted
• Broken Minimum DPS — magnitude gate for break detection
Visual:
• Show Route Band, Minimal Mode, Price Tint
• Route Band Offset in ATR units
• Show State Badges toggle
Panel:
• Show Panel, Location (five positions), Font Size (Tiny to Large)
• Label Font Size
🔹 How to Use
─────────────────────────────────────────────────
• Context reading — the route color tells you what kind of flow you are in before you take any decision. A bright green or pink route with a strong Flow bar is a clean regime; a grey route is an exhausted regime.
• Transition awareness — BROKEN badges mark moments where the pressure narrative has changed with energy. Use them as context signals, not as entries.
• Higher-timeframe bias — many users enable Strict Route Filter on the daily and weekly to isolate only the strongest Clean routes, then drop to intraday for execution.
• Works on any liquid market with reliable volume: crypto, majors in FX, indices, and large-cap equities. Low-volume pairs dilute the volume component of DPS.
🔹 Limitations & Transparency
─────────────────────────────────────────────────
• This is a classification and visualization tool. It does not forecast price, it does not generate buy or sell orders, and it is not a strategy.
• DPS relies on a reliable volume series. Instruments with synthetic or missing volume will weight the volume component poorly.
• Route color and state describe the current bar's classification and update in real time. Final state for any bar is determined at bar close.
• No indicator identifies every turn in the market. Clean routes can exhaust without breaking; Broken routes do not guarantee a reversal of price.
🔹 Risk Disclosure
─────────────────────────────────────────────────
This script is provided for educational and analytical purposes only. It is not financial advice, not a trading recommendation, and not a solicitation to buy or sell any asset. Trading involves significant risk, including the possible loss of principal. Past performance and historical signal behavior do not guarantee future results. Always perform your own research and risk management, and size your positions according to your own risk tolerance. Indicator

Volume Shelf Reaction Map [AGPro Series]Volume Shelf Reaction Map
🔷 OVERVIEW
Volume Shelf Reaction Map is a structural price-action tool that identifies horizontal zones where volume has historically stacked — "volume shelves" — and classifies, in real time, how price reacts each time it returns to them. Instead of showing a static S/R line, it answers a sharper question: when price revisits this level, does it hold, get reclaimed, get rejected, or lose the level entirely? Fresh shelves (never revisited) are visually separated from reused ones, so the chart communicates not just where the levels are, but which ones still carry unused participation behind them.
🧭 UNIQUE EDGE
Most support/resistance and volume tools stop at drawing a zone. This script adds a reaction-state layer on top of shelf detection:
• Five reaction states per shelf: TOUCH, HELD, RECL (reclaimed), REJ (rejected), LOST
• Fresh vs Reused classification — shelves that have already been tested at least once are faded, so untouched structural levels stand out immediately
• Sticky state logic — a shelf keeps its reaction color until a new transition actually occurs, preventing flicker between bars
• Passive-window coloring — shelves whose last reaction is older than the user-defined active window fade to the neutral accent color, keeping old/stale levels visible without dominating the chart
• Strongest-shelf-only reaction tags with cooldown — reaction labels are printed only for the highest-strength shelf and only on actual state transitions, producing a clean chart even on long histories
The result is a volume-aware reaction map rather than a crowded S/R overlay.
🧪 METHODOLOGY
1. Pivot detection — standard pivot highs and lows over a configurable pivot length act as shelf candidates.
2. Volume qualification — each pivot bar is checked against a rolling 20-bar volume average; bars above the Volume Filter multiplier contribute extra weight to shelf strength.
3. ATR-based clustering — candidates within a configurable ATR multiple of an existing shelf are merged using a touches-weighted mean price, stabilizing the shelf location as evidence accumulates.
4. Confirmation — a shelf must reach the Minimum Touches threshold before it is rendered; weak candidates are pruned after one-third of the lookback window.
5. State machine — on every confirmed bar, a shelf's reaction is updated against the prior close's side (support vs resistance context), using an ATR-scaled buffer to distinguish genuine holds and losses from noise.
6. Ranking and rendering — on the last bar, shelves are sorted by strength; only the top N are drawn, with fresh shelves rendered solid and reused shelves rendered thinner and faded.
🔔 SIGNALS & ALERTS
Three alert types, each debounced per shelf so the same state cannot spam consecutive bars:
• Shelf Touched — price range intersects a confirmed shelf for the first time since its last transition
• Shelf Respected — price HELDs, RECLs, or REJs at a shelf (reaction in favor of the shelf)
• Shelf Lost — price closes through a shelf with the required ATR buffer
Reaction tags on the chart (HELD / RECL / REJ / LOST) are printed only for the strongest shelf and only on a true state transition, with a user-adjustable cooldown for historical cleanliness.
⚙️ KEY INPUTS
Shelf Detection
• Lookback Window (bars) — how far back the pivot scan reaches
• Pivot Strength — bars required on each side of a pivot
• Cluster Distance (x ATR) — how tightly nearby pivots merge
• Minimum Touches — confirmation threshold
Filters & Cleanup
• Volume Filter (x average) — participation threshold for strength weighting
• Show Fresh Shelves Only — hide already-revisited shelves
• Max Shelves to Display — cap visible shelves for chart cleanliness
• Fade Reused Shelves — dim reused shelves so fresh ones stand out
• Reaction Sensitivity (x ATR) — ATR buffer used by the state machine
• Active Window (bars) — how recently a reaction must have occurred to show in full color
Visuals
• Label & Panel Size — Tiny / Small / Normal / Large (default: Normal)
• Show Reaction Tags — toggle on-chart state labels
• Tag Cooldown (bars) — minimum bars between tags on the same shelf
Panel
• Show Info Panel, Panel Location (6 anchors), Panel Theme (Dark / Light)
Alerts
• Shelf Touched, Shelf Respected, Shelf Lost
🧰 HOW TO USE
1. Add the indicator to any liquid symbol and timeframe. Volume-aware markets (crypto, index futures, major FX) and timeframes from 15m upward tend to produce the most structured shelves.
2. Start with defaults. The Active Window of 30 bars is a reasonable middle-ground; reduce it on intraday charts (around 20) or raise it on daily/weekly (30–60).
3. Read the panel:
• Active Shelves — how many of the eligible shelves are currently drawn
• Strongest Shelf — the top-ranked shelf by strength
• Current State — live reaction state of the top shelf
• Fresh / Reused — how the displayed shelves split between untested and already-tested levels
4. Use fresh shelves as higher-quality reaction candidates; treat reused shelves as context, not primary triggers.
5. Combine the HELD / RECL / REJ / LOST reactions with your own trigger logic (e.g. break-retest, liquidity sweeps, momentum shifts). This script is a location and reaction tool — not a standalone trade system.
🧱 LIMITATIONS & TRANSPARENCY
• This indicator describes historical structure and live reactions; it does not forecast price direction.
• Pivot-based detection requires the Pivot Strength window to complete on both sides, so fresh pivots appear with a natural lag equal to the pivot length.
• On very low-volume symbols or illiquid timeframes, shelves may be sparse or unstable.
• The state machine is bar-close based; intrabar wicks can temporarily intersect a shelf without changing its state until the bar confirms.
• Max drawing limits (max_lines_count, max_labels_count, max_boxes_count) are set to 120; extremely long histories combined with large lookbacks may drop the oldest drawings.
⚠️ RISK DISCLOSURE
This script is provided for educational and analytical purposes only. It is not a strategy, not a buy/sell signal generator, and not financial advice. Trading involves substantial risk of loss. Past behavior of levels, volume, or reactions does not guarantee future outcomes. Always apply your own risk management, position sizing, and independent judgment. The author and AGProLabs accept no responsibility for decisions made based on this indicator. Indicator

Rejection Block Quality [AGPro Series]Rejection Block Quality
🔹 OVERVIEW
Rejection Block Quality is an ICT-inspired detector that identifies long-wick rejection candles at swept swing pivots and grades each block by objective quality criteria. Unlike Order Block logic — which anchors to the last opposite-direction body before displacement — a Rejection Block (RB) is born from a wick that pierces a prior swing liquidity pool and closes back inside it, with the body confirming displacement on the follow-through bar. The rectangle is drawn from the wick base to the candle body, capturing the exact zone where smart money absorbed the sweep.
🎯 UNIQUE EDGE
Three design choices separate this tool from generic wick or order block indicators:
• Swing-pivot sweep requirement — a rejection is only counted when price sweeps a confirmed swing high or low before the reversal close. Stand-alone wick patterns without liquidity context are filtered out.
• Displacement confirmation window — the candle following the rejection must travel at least 0.6× ATR in the reversal direction, within a 1–5 bar lookahead. No displacement, no block.
• Quality tiering (A / B / C) from three orthogonal factors — wick-to-body ratio, displacement magnitude, and untested freshness. An exceptional wick ratio (≥5× body) promotes a block to A tier regardless of other scores, preserving rare high-conviction rejections.
🛠️ METHODOLOGY
Detection pipeline on every bar:
1. Confirm a pivot sweep using a user-configurable lookback (default 5 bars each side).
2. Check the wick-to-body ratio against a minimum threshold (default 1.8×), with the dominant wick on the sweep side.
3. Queue the candle as a pending block and wait for displacement confirmation.
4. Measure displacement as price travel from the body reference over 1 to 5 bars, normalized by ATR.
5. On confirmation, draw the RB zone from the wick base to the body, record the tier, and begin lifecycle tracking.
Zone lifecycle tracks four events — test (price enters the zone), hold (price exits without a body close through the far edge), break (body close through the far edge), and near miss (price approaches within a configurable ATR band without entering). All events are edge-detected to prevent inflated counts when price lingers near a zone.
📊 SIGNALS & ALERTS
• New block formation label — A / B / C tier plus wick ratio, placed with anti-collision offset.
• Test markers (T) — one per zone entry event, with cooldown to prevent visual clutter.
• Break markers (B) — placed when a zone is invalidated by a body close.
• Wick border highlight — thick colored line on the originating rejection candle.
• Alerts — configurable minimum tier (A, B, or C) fires once per bar close for each qualifying new block.
⚙️ KEY INPUTS
• Detection — Pivot Length, Min Wick-to-Body Ratio, ATR Length, Min Displacement (× ATR), Displacement Confirm Window.
• Zone Management — Max Active Zones per Side, Zone Right Extension, Near-Miss Distance, Near-Miss Cooldown, Break Requires Full Body Close.
• Visuals — Show Zones, Show Tier Labels, Highlight Rejection Wick Border, Show Test / Hold / Break Markers, Zone Fill Opacity, Label Font Size.
• Panel — Show Panel, Panel Location, Panel Font Size, Panel Theme (Dark / Light).
• Alerts — Minimum Tier for Alerts.
🧭 HOW TO USE
Start on a higher timeframe (4H or 1D) to identify macro RB zones, then drill down to execution timeframes for entries. Treat A-tier blocks as the highest-conviction zones, B-tier as situational, and C-tier as context-only. Combine with trend filters, higher-timeframe structure, and risk management — a Rejection Block is a zone of interest, not a standalone buy or sell signal. Use the panel statistics to evaluate how the selected symbol and timeframe have historically respected these zones before committing to them in live decision-making.
⚠️ LIMITATIONS & TRANSPARENCY
This indicator is a structural detector, not a trading strategy. It does not forecast price direction, generate entry or exit orders, or calculate position sizing. The Success Rate statistic reflects how often past tests on detected zones held versus failed within the visible history — it is a descriptive metric, not a performance projection. Zone detection is historical and reactive: a block only appears after the displacement bar closes, so interpretation on live-forming bars is tentative. Performance varies by symbol, timeframe, and market regime.
⚠️ RISK DISCLOSURE
Trading involves substantial risk of loss. Past behavior of any pattern does not guarantee future outcomes. Use this tool as part of a complete analytical framework that includes your own risk management, position sizing, and broader market context. Nothing in this indicator or description constitutes financial advice. Indicator

Liquidity Void Navigator [AGPro Series]Liquidity Void Navigator
🔹 OVERVIEW
Liquidity Void Navigator identifies impulsive price displacements that were produced with disproportionately low volume participation — the institutional footprint of a true liquidity void. Unlike geometric gap concepts that rely purely on wick-to-wick imbalance, this engine measures the efficiency of each impulsive bar: how much price moved relative to how much volume was transacted. When price travels faster than the order book justifies, a magnet zone is born. These zones frequently act as high-probability retest and mean-reversion targets for SMC and ICT traders.
🔹 UNIQUE EDGE
Most gap-based tools on PulseWire detect Fair Value Gaps using a 3-bar geometric pattern. This indicator uses a fundamentally different signature:
- Volume Efficiency Ratio (core innovation): efficiency = (volume / avgVol) / (range / ATR). Values below the threshold reveal bars where price displacement outpaced volume effort — the statistical definition of a liquidity void.
- Body-based zones, not wick-to-wick: the void box spans the impulsive candle body, excluding wicks that represent liquidity sweeps.
- Dynamic lifecycle management: zones are tracked from birth through mid-line mitigation, with configurable trigger modes (close cross, wick touch, or full fill).
- Strongest-void emphasis: the lowest-efficiency active void automatically receives a bold neutral-colored border, giving traders an at-a-glance view of the most reliable magnet on the chart.
🔹 METHODOLOGY
Each completed bar is evaluated against four quality filters:
1. Range Expansion — bar range must exceed ATR × configurable multiplier (default 1.3).
2. Volume Efficiency — the efficiency ratio must fall below the configurable cap (default 0.85).
3. Minimum Height — void must be at least a fraction of ATR to filter micro-noise (default 0.5×).
4. Body Dominance — the candle body must represent at least 50% of the total range, confirming directional conviction rather than indecision.
Qualifying bars create a directional void zone spanning the body. An optional next-bar gap confirmation adds stricter FVG-style filtering. Active zones are continuously evaluated against the selected mitigation mode and updated in real time. Oldest active voids are pruned when the per-side cap is exceeded, keeping the chart focused on recent, actionable structure.
🔹 SIGNALS & ALERTS
Four alert conditions are available:
- New Bullish Liquidity Void — an upward impulsive void is detected.
- New Bearish Liquidity Void — a downward impulsive void is detected.
- Bull Void Mitigated — closing price crosses the mid-line of an active bullish void from above.
- Bear Void Mitigated — closing price crosses the mid-line of an active bearish void from below.
Each alert fires only on bar close to eliminate repainting concerns. Alert messages include the ticker and timeframe for multi-chart workflows.
🔹 KEY INPUTS
Void Detection
- Volume Baseline Lookback — window for average volume and range calculations.
- Min Range Expansion (×ATR) — minimum impulsive bar size.
- Max Volume Efficiency Ratio — core void qualification threshold.
- Min Void Height (×ATR) — filters micro-voids.
- Require Gap with Next Bar — optional strict confirmation.
- Mitigation Trigger — choose between Close Cross (institutional default), Wick Touch (strict), or Full Fill (swing).
Lifecycle
- Max Active Voids per Side — visual cap to prevent chart clutter.
- Zone Right Extension — how far zones project to the right.
- Show Mitigated Voids — optionally display filled zones in gray.
Visuals
- Bullish / Bearish / Mitigated colors, mid-line toggle, projection arrow toggle, label size.
Panel
- Show / position / font size.
🔹 HOW TO USE
Trend-aligned reversion entries: When price returns to an unmitigated void in the direction of the higher-timeframe trend, watch for rejection at the mid-line or far edge as a potential long (bull void) or short (bear void) trigger.
Breakout continuation context: Newly formed voids in the direction of a breakout often indicate institutional participation. Waiting for a retest of the void zone can provide improved risk-to-reward compared to chasing the breakout bar.
Strongest-void bias: The yellow-bordered void on the chart represents the lowest-efficiency (statistically strongest) active zone. Traders can treat it as the highest-probability magnet for price revisits.
Fill Rate context: A persistently high fill rate on a given symbol or timeframe indicates that voids fill rapidly — more suitable for scalping. A lower fill rate suggests that unfilled voids accumulate meaningfully, offering swing-style opportunities.
Multi-timeframe workflow: Identify voids on a higher timeframe (4H or 1D) as strategic bias zones, then use a lower timeframe (15m or 1H) for tactical execution when price approaches those higher-timeframe voids.
🔹 LIMITATIONS & TRANSPARENCY
- This indicator is built for liquid markets with reliable volume data. Thinly traded symbols or instruments without accurate volume feeds (some spot FX, certain indices) will produce unreliable results.
- Not every detected void will be retested or filled. Voids are statistical zones of interest, not guarantees.
- The indicator is a visualization and analytical tool, not a trading strategy. It does not generate buy or sell recommendations.
- Fill rate statistics are computed over the visible history of active and mitigated voids and are approximate; they are intended as a relative gauge of symbol behavior, not as a backtested performance metric.
- Mitigation triggers are bar-close based to avoid repainting. Intrabar signals may appear and disappear until the bar confirms.
- Zones have a fixed right extension from their birth bar; the indicator does not extend zones infinitely.
🔹 RISK DISCLOSURE
Trading financial markets involves substantial risk of loss and is not suitable for all investors. Past performance of any technical indicator, including this one, is not indicative of future results. This tool is provided for educational and analytical purposes only and does not constitute financial advice, investment recommendations, or solicitation to trade. Users are solely responsible for their own trading decisions, risk management, and outcomes. Always conduct independent analysis and consult with a qualified financial advisor before making investment decisions. Indicator

Cumulative Volume Delta Flow [AGPro Series]Cumulative Volume Delta Flow
🔹 **Overview**
Cumulative Volume Delta Flow is a hybrid CVD engine designed to expose order-flow imbalances without requiring footprint charts or exchange-native buy/sell data. It reconstructs cumulative delta using lower-timeframe breakdown when available, with intrabar polarity as a universal fallback — making it work on every symbol and every timeframe. On top of this engine, a triple-layer divergence detector identifies Regular, Hidden, and statistical Exhaustion signals, and every signal is scored by its own statistical strength with a ★/★★/★★★ rating system printed directly on the label.
The indicator is built for traders who want smart-money context at a glance: when buyers are absorbing, when a rally is losing real participation, and when a climactic flush is likely to reverse — with an immediate visual cue of how strong each signal is relative to the recent flow regime.
🔹 **Unique Edge**
Most CVD indicators are single-mode: either they plot cumulative delta, or they call a Regular divergence. This script combines four layers that rarely appear together in one tool:
- Hybrid engine with transparent fallback (no silent failure on high TFs)
- Exhaustion detection based on standard-deviation of CVD change, not price — catches reversals that price-only divergence misses
- Per-signal ★/★★/★★★ strength rating using type-specific statistical metrics (pivot-gap σ for Regular/Hidden, change σ for Exhaustion), so traders instantly know which signals deserve attention
- Optional reaction zones anchored at flow-driven pivots, behaving as dynamic support/resistance born from real participation events rather than pure price structure
🔹 **Methodology**
- The engine computes two parallel delta streams every bar: an intrabar polarity stream (weighted by wick balance for neutral/doji candles) and a lower-timeframe stream that iterates sub-bars and signs each by its close-vs-open direction
- In Hybrid mode, the LTF stream is preferred when it yields a non-zero value; the intrabar stream is used as fallback so the indicator never goes blank on exotic tickers or high timeframes
- A session/daily/weekly reset prevents long-run drift and keeps the cumulative counter meaningful across regime changes
- Pivots are detected on both price and CVD with a shared lookback window; the last two price pivots and their paired CVD values are tested for all four classical divergence relationships
- Exhaustion is a separate statistical trigger: the single-bar CVD change is compared against a 50-bar standard deviation; a σ breach in the direction opposite to the candle body is flagged as climactic absorption
- Each divergence label is rated with stars based on its type: Regular and Hidden use the CVD-pivot gap normalized by 50-bar CVD level stdev (how far apart the two flow pivots are), while Exhaustion uses the σ multiple of the current CVD change (how extreme the climactic event is)
- A cooldown window suppresses signal clustering in chop, and labels are offset by ATR-scaled distance with a leader line so they never collide with candles
🔹 **Signals & Alerts**
On-chart labels with star rating:
- Reg Bull / Reg Bear ★-★★★ — classical reversal divergence (price exhausts, flow refuses)
- Hid Bull / Hid Bear ★-★★★ — continuation divergence (pullback inside an active trend)
- Exh Bull / Exh Bear ★-★★★ — statistical flow climax above the σ threshold
Star thresholds for Regular/Hidden: ★★★ ≥ 2.0σ gap, ★★ ≥ 1.0σ gap, ★ < 1.0σ.
Star thresholds for Exhaustion: ★★★ ≥ 3.0σ, ★★ ≥ 2.0σ, ★ < 2.0σ (minimum trigger is 1.75σ).
Each signal carries its own color code and a leader line connecting the label back to the source candle for fast visual reading. Six discrete alertcondition slots are exposed plus three proactive alert() calls grouped by divergence family, so traders can route regular, hidden, and exhaustion signals to different channels.
🔹 **Key Inputs**
- Calculation Method: Hybrid, LTF Only, or Intrabar Only
- LTF Resolution: Auto (adaptive by chart TF) or fixed 1 / 3 / 5 / 15m
- CVD Reset: Session, Daily, Weekly, or None
- Pivot Length: 2–15 bars
- Toggles for Regular / Hidden / Exhaustion layers independently
- Exhaustion Threshold (σ): 1.0–4.0, default 1.75
- Min Bars Between Signals: anti-clustering cooldown (default 15)
- Reaction Zones: optional, with ATR width, extend length, and max active cap
- Label Size + Label Offset (ATR) for visual tuning
- Info Panel: 5 positions, 4 text sizes, full hide toggle
🔹 **How to Use**
- On the 4H timeframe, run the defaults on liquid instruments: BTCUSDT, ETHUSDT, SPX, ES, major FX pairs
- Treat ★★★ signals as the highest-priority reads of the chart — these are statistical outliers
- Treat ★★ signals as the normal tradeable population — the bulk of decision-making happens here
- Treat ★ signals as background context — use them for bias confirmation, not as primary entries
- Regular divergences are reversal warnings at structural highs/lows; they are most reliable when aligned with a key horizontal level or trendline
- Hidden divergences are trend-continuation entries during pullbacks inside a confirmed trend
- Exhaustion signals mark participation climaxes and often coincide with short-term reversals even when no classical pivot has formed yet
- Check the Info Panel's Last Signal row for the most recent event type and its star rating without scanning the chart
- Enable Reaction Zones when you want persistent S/R context from flow events; keep them off for minimal, label-only use
- Consider combining with a structure tool from the AGPro Series (SFP, Breaker, Unicorn) for confluence
🔹 **Info Panel**
The compact info panel on the chart surfaces seven live metrics: the current cumulative CVD value, the CVD trend classification (Up/Down/Flat based on price relative to its own EMA 21), the last signal's full name and star rating in color, the rolling divergence count over the last 200 bars (Bull / Bear), and the bar-age of the most recent bullish and bearish events. This gives a full situational snapshot without scrolling.
🔹 **Limitations & Transparency**
- CVD from intrabar polarity is an approximation, not true tick-level order flow. Exchange-native buy/sell volume is only available through footprint data
- On very high timeframes (Daily+), LTF breakdown may return partial data; Hybrid mode is recommended
- Divergence signals appear only after both pivot legs are confirmed; the second pivot needs `pivotLen` bars of right-side confirmation, so signals print with that lag
- Exhaustion requires at least 50 bars of CVD history for the standard-deviation baseline
- Star ratings are statistical descriptors of signal strength relative to recent flow, not trade-quality guarantees
- Past performance of any divergence pattern does not guarantee future results; this tool surfaces probabilistic context, not guaranteed reversals
🔹 **Risk Disclosure**
This indicator is an analytical framework, not a trading system or financial advice. Signals are technical observations intended to support decision-making; they do not account for fundamentals, news, liquidity, or your risk tolerance. Always use proper position sizing, stop-loss placement, and risk management. Test the tool on historical data and in a simulated environment before deploying it on live capital. Trading carries risk of substantial loss. Indicator

Adaptive Volume Concentration Levels + Volume-Price Shift BoxDescription
Adaptive Volume Concentration Levels + Volume-Price Shift Box combines two powerful market analysis concepts into one streamlined tool: adaptive volume-based support and resistance mapping, and a real-time volume-price flow dashboard.
The script identifies the most meaningful price zones based on where volume has concentrated over a chosen lookback range, helping highlight areas where the market has shown strong interest. At the same time, it displays a compact shift box that evaluates price, volume, VWAP, OBV, A/D behavior, and momentum to estimate whether market pressure is currently bullish, bearish, or neutral.
This makes the script useful for traders who want both structural levels and contextual order-flow style bias in a single indicator.
How It Works
The script has two main components:
-Adaptive Volume Concentration Levels
It scans historical price action over a customizable lookback period.
Price is divided into bins, and volume is accumulated into those bins.
The script then selects the highest-volume zones and converts them into horizontal support/resistance levels.
A higher timeframe option and smoothing feature can be used to reduce noise and reveal more stable levels.
Levels can be displayed with custom colors, line styles, transparency, and optional percentage labels.
- Volume-Price Shift Box
The dashboard evaluates several internal conditions:
VWAP trend and price distance from VWAP
OBV trend and OBV acceleration
A/D line trend
Relative volume versus average volume
Price momentum
Weighted bullish and bearish scores are calculated from these components.
The final shift score determines whether the current state is:
Bullish
Bearish
Neutral
The box then displays key readings such as shift strength, volume vs average, VWAP distance, shift duration, and OBV state.
Key Features
Adaptive volume-based support and resistance detection
Dual SR logic for identifying important high-volume price zones
Optional higher timeframe processing for cleaner structure
Price smoothing to reduce noise in level calculation
Customizable level count, bin density, transparency, labels, and styling
Real-time shift box with bullish, bearish, or neutral bias
Weighted scoring model using VWAP, OBV, A/D, volume, and momentum
Shift strength readout for quick bias confirmation
Shift duration tracking to show how long the current condition has persisted
Clean visual layout that combines structure and flow into one script
How to Use
Start by applying the indicator to your chart and adjusting the level settings based on your trading style.
For the volume concentration levels:
Increase the lookback if you want broader, more established levels.
Increase the number of bins for finer price granularity.
Use the minimum volume filter to remove weaker levels.
Turn on the higher timeframe option if you want more stable zones from a broader market perspective.
For the shift box:
Use the default settings first, then adjust sensitivity and component weights to better match your market and timeframe.
Watch for bullish or bearish shifts when price approaches one of the plotted volume levels.
Use the strength reading to judge whether the bias is weak or decisive.
Monitor duration to see whether the current directional pressure is fresh or extended.
A practical workflow is:
Use the horizontal levels as reaction zones
Use the box to judge whether current pressure supports continuation or rejection from those zones
Combine both with your existing entry and risk management rules
How It Helps
How It Helps
This script helps simplify decision-making by combining where price is likely to react with how price and volume are behaving right now.
The volume concentration levels help traders identify:
likely support and resistance
potential reaction zones
areas of prior market agreement or interest
The shift box helps traders evaluate:
whether buyers or sellers currently have control
whether momentum and volume are aligned
whether market pressure is strengthening or fading
Used together, the tool can help with:
trade location
directional confirmation
filtering weak setups
improving timing around important price zones
It is especially useful for traders who want a clearer view of both market structure and current flow conditions without cluttering the chart with multiple separate indicators.
Disclaimer
This indicator is provided for informational and educational purposes only. It does not constitute financial advice, investment advice, trading recommendations, or an offer or solicitation to buy or sell any financial instrument.
All indicator outputs, classifications (including bullish, bearish, or neutral states), and visual elements are derived from historical market data using user-defined parameters. These outputs are interpretive in nature and do not predict future market performance or guarantee any specific result.
Trading financial instruments involves substantial risk, including the risk of loss exceeding initial capital. Market conditions may change rapidly due to factors outside the scope of this indicator, including but not limited to economic events, news releases, liquidity conditions, execution quality, and slippage.
The developer assumes no responsibility or liability for any trading decisions, losses, or damages arising directly or indirectly from the use of this indicator. Users are solely responsible for evaluating the suitability of this tool for their own trading objectives, risk tolerance, and market conditions.
Past performance, indicator behavior, or historical alignment of signals does not guarantee future results. Use of this indicator constitutes acceptance of these terms.
Indicator

AG Pro Chaikin Money Flow Pressure [AGPro Series]AG Pro Chaikin Money Flow Pressure
Overview / What it does
AG Pro Chaikin Money Flow Pressure is a chart-overlay indicator built to translate Chaikin Money Flow behavior into a more structured view of buying and selling pressure on the price chart itself. Instead of presenting CMF only as a standalone oscillator around a zero line, this script converts money-flow behavior into visible pressure zones, a backbone line, selective event labels, and a compact decision panel. The goal is to make pressure conditions easier to read in context with price rather than in a separate pane.
The script is designed to help users judge whether positive or negative money-flow pressure is merely appearing, becoming more persistent, expanding with price support, or losing quality. In practical terms, it focuses on how pressure behaves through time, not only on whether CMF is above or below zero on a single bar. This distinction is important because many CMF readings are technically positive or negative while still being structurally weak, transitional, or unstable.
This publication is an indicator, not a strategy. It does not place orders, does not simulate broker execution, and does not claim to predict future price direction. Its purpose is to organize CMF-derived pressure information into a chart-readable framework that can be used for analysis, filtering, or confluence with a user’s existing process.
Unique Edge
The distinctive design choice in this script is that it treats Chaikin Money Flow as a pressure-structure input rather than as a simple zero-cross oscillator. The script evaluates pressure using a combination of directional bias, persistence, slope behavior, and exhaustion characteristics, then maps those conditions into an overlay format.
That makes it materially different from tools that focus primarily on:
- classic CMF zero-line interpretation,
- MFI-style overbought/oversold framing,
- OBV-style cumulative flow interpretation,
- divergence-first logic,
- or trend/momentum tools that derive most of their signal from price structure rather than money-flow persistence.
Within the broader AG Pro catalog, some scripts are centered on momentum, reaction quality, divergence behavior, or trend-state interpretation. This one is specifically built around CMF-derived pressure persistence. In other words, it is less about identifying a single trigger event and more about showing whether accumulation or distribution pressure is building, holding, fading, or reverting toward balance.
Methodology
The script begins with the standard Chaikin Money Flow foundation: money flow is derived from the close’s location within the bar range and weighted by volume across the selected CMF lookback. That raw series can then be smoothed to reduce short-term noise.
From there, the script classifies pressure through several layers:
1) Bias
Positive and negative CMF conditions establish the directional pressure side. This is the base layer, but it is not used alone.
2) Persistence
The script tracks how long positive or negative pressure has been maintained. Short-lived readings are treated differently from more persistent runs.
3) Expansion
The slope of the smoothed CMF series helps distinguish strengthening pressure from flatter or compressing conditions.
4) Exhaustion risk
When pressure remains extended but begins to weaken internally, the script can shift into a fading or exhaustion-sensitive interpretation instead of treating every positive or negative reading as equally strong.
These components are then summarized into:
- a state,
- a phase,
- a pressure score,
- a backbone-based pressure map,
- and selective event labels.
The overlay uses an EMA backbone and ATR-scaled zones to visualize where pressure is concentrated around price. Outer and core zones help separate broad pressure environment from tighter pressure concentration. A lightweight bridge effect is used to connect confirmed pressure conditions to price in a restrained way so the visual hierarchy remains readable.
Signals & Alerts
The script uses a state/condition framework rather than a direct buy/sell promise.
Core states include:
- Accumulation
- Distribution
- Balanced
- Exhaustion Risk
Phase interpretation includes:
- Building
- Holding
- Fading
- Neutral
Selective chart labels are intentionally limited to higher-quality transitions such as:
- ACCUM
- DIST
- FADE
- FLIP
Available alert conditions are designed around pressure behavior, not outcome guarantees:
- Pressure Building
- Pressure Holding
- Pressure Weakening
- Pressure Flip Risk
- Accumulation Regime Confirmed
- Distribution Regime Confirmed
These alerts are best understood as structural notifications about pressure behavior. They are not instructions to enter or exit positions by themselves.
Key Inputs
Important settings include:
- CMF Length: controls the main money-flow lookback.
- CMF Smoothing: reduces noise in the base CMF series.
- Neutral Band: defines when pressure is treated as balanced rather than directional.
- Strong Pressure Band: helps scale the pressure score and zone intensity.
- Exhaustion Band: helps identify stretched but weakening pressure conditions.
- Persistence Confirmation Bars: sets how long pressure should persist before confirmation.
- Backbone EMA Length: controls the central overlay structure.
- ATR settings: control the width of the pressure zones.
- Label filters and cooldowns: reduce repeated labels and keep the chart cleaner.
These inputs allow users to make the script more responsive or more selective depending on timeframe, asset behavior, and chart density.
Limitations & Transparency
This script does not measure real order-book flow, exchange-specific footprint data, or trade-by-trade delta. It is a CMF-based analytical model built from OHLCV data available on PulseWire. As with any derived indicator, its output depends on the quality and characteristics of the underlying market data.
The pressure score is not a prediction score and should not be interpreted as a probability of success. It is a normalized summary of current pressure quality based on the script’s internal framework. A higher score means the current pressure structure is stronger by the script’s rules; it does not mean the next move is guaranteed.
Like other pressure or flow-based tools, this script can become less reliable in choppy, thin, or event-driven conditions where pressure quickly alternates and persistence breaks down. It should also be expected that different assets and timeframes will respond differently to the same parameter set. Users should evaluate settings in the market context where they intend to use the indicator.
This publication is meant to explain what the script measures and how it organizes that information. It is not presented as a black-box promise, and it is not intended to replace independent chart reading, risk control, or broader market context.
Risk Disclosure
This script is provided for educational and analytical use. It does not constitute financial advice, investment advice, or a solicitation to buy or sell any financial instrument. No indicator can remove uncertainty from markets, and no visual state, score, zone, or alert should be treated as a guarantee of future results.
Users should make their own decisions, test their own process, and apply appropriate risk management. This tool is best used as a structured market-reading aid and as part of a broader analytical framework rather than as a standalone decision engine. Indicator

Vortex Nexus Alpha [JOAT]Vortex Nexus Alpha Strategy
Introduction
The Vortex Nexus Alpha Strategy is an advanced open-source algorithmic trading system that combines multi-dimensional signal generation, adaptive regime detection, and institutional-grade risk management into a unified execution framework. This strategy represents a complete trading system built from the ground up using proprietary mathematical models, fractal analysis, momentum tracking, and market microstructure intelligence.
Unlike simple crossover strategies or single-indicator systems, Vortex Nexus Alpha synthesizes intelligence from five independent signal layers, each containing five distinct detection mechanisms, creating a 25-factor confluence scoring system that validates every trade entry. The strategy is designed for traders who understand that consistent profitability requires multi-dimensional analysis, adaptive positioning, and systematic risk management rather than relying on any single indicator or pattern.
Why This Strategy Exists
This strategy addresses the fundamental challenge of algorithmic trading: most systems over-optimize to historical data or rely on simplistic logic that fails in real market conditions. Vortex Nexus Alpha solves this through a knowledge-based architecture that doesn't depend on indicator mashups but instead builds intelligence from first principles:
Volatility Expansion Engine: Measures market volatility through ATR percentile ranking and adapts position sizing and stop distances dynamically
Price Efficiency Calculator: Quantifies how efficiently price moves using path length analysis, filtering choppy conditions
Chaos Measurement System: Identifies market regime (directional, equilibrium, chaotic) using logarithmic range analysis
Directional Conviction Tracker: Measures trend strength through ADX and directional movement indicators
Adaptive Ribbon System: Multi-layer EMA ribbon that expands/contracts based on volatility and provides dynamic support/resistance
Volume Pressure Analysis: Estimates buying/selling pressure through candle structure and wick analysis
Gauss Smoothing Engine: 4th-order Gaussian filter that eliminates noise while preserving genuine price movements
Fractal Efficiency Measurement: Logarithmic efficiency calculation that adapts Laguerre filtering for optimal lag reduction
Laguerre Momentum Transform: Adaptive momentum oscillator that responds faster during efficient moves
Temporal Flow Dynamics: Analyzes price flow direction, magnitude, and acceleration across multiple dimensions
Pivot Structure Analysis: Detects market structure breaks and shifts using swing high/low analysis
Order Block Detection: Identifies institutional positioning zones through volume-confirmed reversal patterns
Imbalance Zone Mapping: Marks price gaps and inefficiencies that often get filled
Each component contributes unique intelligence that validates or invalidates potential trade setups. The strategy requires minimum confluence scores before entering positions, ensuring that multiple independent systems agree on directional bias.
Core Strategy Architecture
1. Volatility Expansion Engine
The strategy begins with comprehensive volatility analysis:
volatility = ta.atr(volatilityPeriod)
volatilityPercent = (volatility / close) * 100
volatilityRank = ta.percentrank(volatilityPercent, 100)
Volatility percentile ranking provides context for current volatility relative to recent history. This measurement drives multiple strategy decisions:
- Position sizing: Higher volatility = smaller positions
- Stop distance: Higher volatility = wider stops
- Signal filtering: Extreme volatility (>80 percentile) triggers defensive mode
The strategy adapts to volatility rather than using fixed parameters, ensuring it remains relevant across different market regimes.
2. Price Efficiency and Chaos Measurement
The strategy calculates price efficiency to distinguish trending from ranging markets:
priceMovement = math.abs(close - close )
pathLength = math.sum(math.abs(close - close ), efficiencyPeriod)
efficiency = pathLength > 0 ? priceMovement / pathLength : 0
High efficiency (>0.6) indicates clean, directional movement suitable for trend-following. Low efficiency (<0.4) suggests choppy conditions where the strategy reduces activity or switches to mean-reversion logic.
Chaos level is measured using logarithmic range analysis:
rangeHigh = ta.highest(high, volatilityPeriod)
rangeLow = ta.lowest(low, volatilityPeriod)
atrSum = math.sum(ta.atr(1), volatilityPeriod)
chaosLevel = 100 * math.log10(atrSum / (rangeHigh - rangeLow)) / math.log10(volatilityPeriod)
High chaos (>60) triggers defensive positioning. Low chaos (<40) enables aggressive trend-following.
3. Directional Conviction System
The strategy implements complete ADX analysis with directional indicators:
= adx(14, 14)
ADX above 25 indicates emerging directional conviction. Above 40 indicates dominant conviction. The strategy uses conviction strength to:
- Filter entries: Minimum conviction threshold prevents trading in directionless markets
- Size positions: Higher conviction = larger positions (within risk limits)
- Set targets: Strong conviction enables wider profit targets
The difference between bullForce and bearForce determines directional bias and validates signal direction.
4. Adaptive Ribbon System
The strategy calculates 8 EMA layers with adaptive spacing:
stepSize = (slowPeriod - fastPeriod) / (ribbonLayers - 1)
ribbonLevel0 = ta.ema(close, fastPeriod)
ribbonLevel7 = ta.ema(close, slowPeriod)
Ribbon analysis provides:
- Trend direction: Fast > slow = bullish, fast < slow = bearish
- Trend strength: Wider ribbon = stronger trend
- Dynamic support/resistance: Ribbon layers act as price magnets
- Compression detection: Tight ribbon = energy buildup before breakout
The strategy only takes long trades when price is above the ribbon and short trades when below, ensuring alignment with trend structure.
5. Volume Pressure Analysis
The strategy estimates buying and selling pressure using candle structure:
buyPressure = close > open ? volume * ((close - open + upperWick * 0.5) / barSpan) :
close < open ? volume * ((upperWick + bodyMass * 0.3) / barSpan) : volume * 0.5
sellPressure = volume - buyPressure
pressureDelta = buyPressure - sellPressure
Pressure analysis validates signal direction:
- Long signals require positive pressure delta
- Short signals require negative pressure delta
- Extreme pressure (>70% of volume) suggests potential exhaustion
The strategy tracks cumulative pressure to identify accumulation and distribution phases.
6. Gauss Smoothing and Fractal Efficiency
The strategy applies 4th-order Gaussian filtering to eliminate noise:
gaussClose := math.pow(alpha, 4) * close +
4 * (1.0 - alpha) * nz(gaussClose ) -
6 * math.pow(1 - alpha, 2) * nz(gaussClose ) +
4 * math.pow(1 - alpha, 3) * nz(gaussClose ) -
math.pow(1 - alpha, 4) * nz(gaussClose )
Fractal efficiency is calculated using logarithmic path measurement:
fractalRatio = totalSpan > 0 ? math.log(rangeSum / totalSpan) / math.log(fractalSpan) : 0.0
fractalEfficiency = math.max(0, math.min(1, (fractalRatio + 1) / 2))
High fractal efficiency (>0.7) validates that momentum signals are backed by clean price action.
7. Laguerre Momentum Transform
The strategy uses adaptive Laguerre filtering for momentum measurement:
gamma = 0.7 * (1 - fractalEfficiency) + 0.1 * fractalEfficiency
L0 := (1 - gamma) * gaussClose + gamma * nz(L0 )
L1 := -gamma * L0 + nz(L0 ) + gamma * nz(L1 )
L2 := -gamma * L1 + nz(L1 ) + gamma * nz(L2 )
L3 := -gamma * L2 + nz(L2 ) + gamma * nz(L3 )
cu = (L0 > L1 ? L0 - L1 : 0) + (L1 > L2 ? L1 - L2 : 0) + (L2 > L3 ? L2 - L3 : 0)
cd = (L0 < L1 ? L1 - L0 : 0) + (L1 < L2 ? L2 - L1 : 0) + (L2 < L3 ? L3 - L2 : 0)
laguerreValue = cu + cd != 0 ? 100 * (cu / (cu + cd)) : 50
fractalMomentum = (laguerreValue - 50) * (1 + fractalEfficiency)
The adaptive gamma adjustment reduces lag during efficient moves and adds smoothing during choppy conditions. Fractal momentum above 20 validates bullish signals, below -20 validates bearish signals.
8. Temporal Flow Dynamics
The strategy analyzes price flow across multiple dimensions:
priceFlow = ta.ema(close, flowPeriod) - ta.ema(close, flowPeriod * 2)
flowDir = priceFlow > 0 ? 1 : -1
flowMagnitude = math.abs(priceFlow) / volatility
flowAccel = ta.change(priceFlow, 3)
Flow analysis provides:
- Flow direction: Confirms trend direction
- Flow magnitude: Measures flow strength relative to volatility
- Flow acceleration: Identifies momentum shifts
The strategy requires flow alignment with signal direction for entry validation.
9. Market Structure Analysis
The strategy tracks pivot highs and lows to identify structure breaks:
pivotTop = ta.pivothigh(high, pivotSpan, pivotSpan)
pivotBottom = ta.pivotlow(low, pivotSpan, pivotSpan)
Structure breaks occur when:
- Bullish: Price breaks above previous pivot high
- Bearish: Price breaks below previous pivot low
Structure shifts (change of character) occur when:
- Bullish: Downtrend breaks above previous pivot high
- Bearish: Uptrend breaks below previous pivot low
The strategy gives bonus confluence points to signals that align with structure breaks or shifts.
10. Order Block and Imbalance Detection
The strategy identifies institutional positioning zones:
orderBlockBull = close < open and close > open and volume > avgVol * 1.2
orderBlockBear = close > open and close < open and volume > avgVol * 1.2
gapUp = low > high and (low - high ) > volatility * 0.3
gapDown = high < low and (low - high) > volatility * 0.3
Order blocks mark zones where institutions placed large orders. The strategy uses these as:
- Entry zones: Look for entries near order blocks in trend direction
- Stop placement: Place stops beyond order blocks for protection
- Target zones: Opposite-direction order blocks become profit targets
Imbalance zones (gaps) often get filled, providing mean-reversion opportunities.
Multi-Dimensional Signal Generation
The strategy generates signals through five independent layers, each containing five detection mechanisms:
Layer 1: Rapid Scalp Signals (5 mechanisms)
- Laguerre oversold + flow bullish + price above fast ribbon
- Pressure index positive + flow reversal bullish
- Momentum bullish + volume surge + price above mid ribbon
- Strong bullish candle + ribbon bullish + pressure positive
- Fractal momentum positive + flow acceleration positive + ribbon aligned
Layer 2: Swing Position Signals (5 mechanisms)
- Ribbon bullish + price above slow ribbon + bullish regime
- Structure break bullish + momentum bullish
- Order block bullish + flow bullish + conviction strong
- Gap up + pressure extreme + ribbon aligned
- Range breakout up + cumulative pressure positive + flow strong
Layer 3: Momentum Continuation (5 mechanisms)
- Fractal momentum extreme + ribbon bullish + conviction strong
- Laguerre oversold + flow bullish + volume surge
- Momentum extreme + fractal momentum positive + ribbon expanding
- Extreme buy pressure + flow acceleration positive + bullish regime
- Bull force > bear force + conviction strong + ribbon aligned
Layer 4: Structure Confirmation (5 mechanisms)
- Structure shift bullish + volume surge
- Order block bullish + price above last pivot low + momentum bullish
- Gap up + flow bullish + ribbon bullish
- Structure break bullish + pressure extreme positive
- Volume absorption + pressure positive + price above mid ribbon
Layer 5: Confluence Boosters (5 mechanisms)
- Ribbon tight + ribbon expanding + ribbon bullish + volume surge
- Net flow positive + temporal force positive + bullish regime
- Fractal efficiency high + Laguerre oversold + flow magnitude strong
- Strong bullish candle + price above previous high + volume extreme
- Velocity positive + flow bullish + ribbon power strong
Each layer contributes 0 or 1 to the bull strength score. The strategy requires minimum confluence (default 2) before entering long positions. This multi-layer approach ensures that signals are validated across multiple independent dimensions.
Risk Management System
The strategy implements institutional-grade risk management:
Position Sizing:
- Risk percentage per trade (default 1% of equity)
- Dynamic adjustment based on volatility percentile
- Reduced sizing during high chaos or low efficiency
Stop Loss Placement:
stopLoss = close - (volatility * slMultiplier)
- ATR-based stops that adapt to current volatility
- Multiplier (default 1.5) provides breathing room
- Stops placed beyond order blocks when possible
Take Profit Targets:
takeProfit = close + (volatility * slMultiplier * tpMultiplier)
- Risk-reward ratio (default 2.5:1)
- Adjusted based on conviction strength
- Wider targets during strong conviction, tighter during weak
Trailing Stop System:
trailStop = close - (volatility * trailOffset)
- Optional trailing stop (default enabled)
- Offset (default 1.2x ATR) balances protection and breathing room
- Activates after position moves into profit
Visual Elements
Adaptive Ribbon: Multi-layer EMA ribbon with gradient coloring showing trend direction and strength
Entry Signals: Triangle shapes sized by signal strength (large for 5+ confluence, small for 2-3 confluence)
Structure Markers: Lines and labels marking structure breaks, shifts, and order blocks
Imbalance Boxes: Boxes marking price gaps and inefficiency zones
Regime Background: Subtle background coloring showing current market regime
Flow Background: Additional background layer showing flow direction
Comprehensive Dashboard: 18-row intelligence panel showing position status, signal strength, regime, ribbon state, pressure, momentum, structure, flow, conviction, Laguerre, volume, volatility, trade statistics, and win rate
The dashboard provides complete strategy intelligence with real-time metrics and performance tracking.
Strategy Parameters
Core Settings:
Ultra-Aggressive Mode: Maximum trade frequency (default enabled)
Min Signal Strength: Minimum confluence required (1-6, default 2)
Risk %: Risk per trade as percentage of equity (0.5-5.0%, default 1.0%)
TP Multiplier: Take profit as multiple of stop distance (1.0-10.0, default 2.5)
SL Multiplier: Stop loss as multiple of ATR (0.5-5.0, default 1.5)
Trailing Stop: Enable/disable trailing stop (default enabled)
Trail Offset: Trailing stop distance as multiple of ATR (0.5-3.0, default 1.2)
Advanced Parameters:
Volatility Period: ATR calculation length (5-50, default 14)
Efficiency Period: Price efficiency calculation period (5-100, default 20)
Flow Period: Temporal flow analysis period (10-50, default 20)
Ribbon Layers: Number of EMA layers (3-15, default 8)
Fast Period: Fastest EMA period (2-20, default 5)
Slow Period: Slowest EMA period (10-100, default 34)
Visualization:
Dashboard: Toggle metrics panel (default enabled)
Entry Signals: Toggle signal shapes (default enabled)
Regime Zones: Toggle background coloring (default enabled)
Adaptive Ribbon: Toggle ribbon display (default enabled)
How to Use This Strategy
Step 1: Configure Risk Parameters
Set risk percentage appropriate for your account size. 1% is conservative, 2% is moderate, 3%+ is aggressive. Never risk more than you can afford to lose on any single trade.
Step 2: Select Minimum Signal Strength
Default 2 provides balanced trade frequency and quality. Increase to 3-4 for higher quality but fewer trades. Decrease to 1 only in ultra-aggressive mode on highly liquid instruments.
Step 3: Adjust Risk-Reward Ratio
Default 2.5:1 provides good balance. Increase to 3-5:1 for swing trading. Decrease to 1.5-2:1 for scalping. Higher ratios require higher win rates to be profitable.
Step 4: Enable/Disable Trailing Stops
Trailing stops protect profits but can exit prematurely. Enable for trend-following, disable for mean-reversion. Adjust trail offset based on instrument volatility.
Step 5: Monitor Dashboard Metrics
Watch "POSITION" status, "BULL STR" and "BEAR STR" scores, "REGIME" classification, and "WIN RATE" percentage. These provide real-time strategy health assessment.
Step 6: Backtest Thoroughly
Test on at least 100 trades across different market conditions. Verify that win rate, profit factor, and drawdown meet your requirements. Adjust parameters if needed.
Step 7: Forward Test on Demo
Run strategy on demo account for at least 1 month before live trading. Verify that live performance matches backtest expectations. Monitor slippage and execution quality.
Step 8: Start Small on Live
Begin with minimum position sizes on live account. Gradually increase as confidence builds. Never risk more than 1-2% of account on any single trade initially.
Best Practices
Use on liquid instruments with tight spreads and reliable execution
Backtest with realistic commission (0.1%) and slippage (2 ticks minimum)
Test across multiple market conditions (trending, ranging, volatile, calm)
Verify minimum 100 trades in backtest for statistical significance
Monitor win rate - should be 45-60% for 2.5:1 risk-reward ratio
Check profit factor - should be >1.5 for robust strategy
Analyze maximum drawdown - should be <20% of account
Review trade distribution - avoid over-concentration in specific periods
Monitor signal strength distribution - most trades should be 3+ confluence
Check regime alignment - strategy should perform in directional regimes
Verify that losses are controlled - no single loss should exceed 2% of account
Ensure adequate trade frequency - at least 2-3 trades per week on daily timeframe
Combine with manual oversight - review signals before execution in early stages
Use appropriate timeframe - 15m-1H for day trading, 4H-1D for swing trading
Avoid trading during major news events unless specifically tested for that
Keep detailed trade journal to identify patterns in wins and losses
Strategy Limitations
Algorithmic strategies cannot predict black swan events or unprecedented market conditions
Backtested performance does not guarantee future results
Slippage and commission in live trading may differ from backtest assumptions
The strategy requires sufficient volatility - may underperform in extremely low volatility
Signal generation depends on multiple calculations - computational lag possible on slow systems
The strategy works best on trending instruments - may struggle in perpetual ranges
Confluence scoring requires all components to be relevant - some may be less meaningful on certain instruments
The strategy cannot account for fundamental catalysts or news events
Trailing stops can exit prematurely during volatile but ultimately profitable moves
The strategy requires adequate liquidity for execution at desired prices
Parameter optimization can lead to overfitting - use walk-forward analysis
The strategy shows what signals exist, not why - market context still matters
Technical Implementation
Built with Pine Script v6 using:
Complete volatility expansion engine with ATR percentile ranking
Price efficiency calculator using path length analysis
Chaos measurement using logarithmic range calculations
Full ADX implementation with directional indicators
8-layer adaptive EMA ribbon with volatility-based spacing
Volume pressure estimation using candle structure analysis
4th-order Gaussian filter for noise elimination
Fractal efficiency measurement using logarithmic path complexity
Adaptive Laguerre transform with 4 cascading filter levels
Temporal flow analysis with direction, magnitude, and acceleration
Pivot-based market structure tracking
Order block and imbalance zone detection
25-factor confluence scoring system across 5 signal layers
Dynamic position sizing based on volatility and regime
ATR-based stop loss and take profit calculations
Optional trailing stop system with volatility adjustment
Comprehensive dashboard with 18 metrics and performance tracking
Alert system for all entry and exit signals
The code is fully open-source with extensive comments explaining each component and signal generation logic.
Originality Statement
This strategy is original and represents a complete trading system built from proprietary knowledge rather than indicator mashups. The strategy is justified because:
It synthesizes 13 independent analytical systems into a unified execution framework
The 25-factor confluence scoring across 5 signal layers provides multi-dimensional validation
Each component is built from first principles using mathematical models and market microstructure concepts
The adaptive nature of the system (volatility, efficiency, regime) ensures relevance across market conditions
Risk management is integrated at the core rather than added as an afterthought
The strategy doesn't rely on any single indicator or pattern - it builds intelligence from multiple independent sources
Fractal efficiency and Laguerre adaptation provide unique momentum measurement not found in standard systems
Temporal flow analysis adds a dimension of price dynamics beyond simple trend following
Market structure tracking provides context that pure indicator-based systems lack
The comprehensive dashboard provides complete strategy intelligence and performance tracking
The system is designed for real trading with realistic risk management, not just backtest optimization
Each component contributes unique intelligence: volatility drives adaptation, efficiency filters conditions, chaos identifies regimes, conviction measures strength, ribbon provides structure, pressure shows order flow, Gauss filtering eliminates noise, fractal efficiency validates momentum, Laguerre provides adaptive momentum, flow tracks dynamics, structure provides context, order blocks mark zones, and confluence validates signals. The strategy's value lies in combining these complementary perspectives into a cohesive, adaptive trading system with institutional-grade risk management.
Disclaimer
This strategy is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Algorithmic trading strategies are tools for systematic execution, not guarantees of profit. Backtested performance does not guarantee future results. Past strategy performance does not predict future performance. Market conditions change, and strategies that worked historically may not work in the future.
The signals generated are mathematical calculations based on current market data, not predictions of future price movement. High confluence scores, regime alignment, and structure breaks do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this strategy. Users assume full responsibility for all trading decisions made using this tool. Thoroughly backtest and forward test any strategy before live trading.
-Made with passion by officialjackofalltrades Strategy

Temporal Flow Analyzer [JOAT]Temporal Flow Analyzer
Introduction
The Temporal Flow Analyzer is an advanced open-source time-based analysis indicator that examines price flow across temporal dimensions, session dynamics, and time-weighted patterns to identify institutional activity timing and flow shifts. This indicator transforms time-based market data into actionable flow intelligence, helping traders identify when price flow is accelerating, decelerating, reversing, or experiencing temporal pressure changes.
Unlike basic trend indicators that ignore time dynamics, this system analyzes flow direction, flow strength, flow acceleration, session-based patterns, temporal pressure, and time zone positioning. The indicator is designed for traders who understand that institutional activity follows temporal patterns and that time-based analysis reveals flow dynamics invisible to price-only indicators.
Why This Indicator Exists
This indicator addresses a fundamental aspect of market analysis often overlooked: the temporal dimension of price flow. Markets don't just move in price - they move through time, and the relationship between price movement and time reveals institutional flow dynamics. The core innovation lies in analyzing multiple temporal dimensions:
Price Flow Analysis: Measures directional flow using dual-EMA comparison with strength and acceleration tracking
Session Analysis: Identifies Asian, London, and NY sessions with session high/low tracking and breakout detection
Temporal Momentum: RSI-based momentum with flow-weighted calculations and divergence detection
Volume Flow: Analyzes volume flow patterns, net pressure, and buying/selling flow dynamics
Time Zone Positioning: Determines if price is in premium, discount, or equilibrium zones within session range
Flow Shift Detection: Identifies when flow direction changes, signaling potential trend reversals
Flow Exhaustion: Detects when flow strength is high but acceleration is low, warning of exhaustion
Temporal Pressure: Combines price flow, volume flow, and flow strength into unified pressure metric
Each component reveals different aspects of temporal flow. Price flow shows direction, session analysis provides timing context, momentum shows strength, volume flow confirms participation, time zones show value, flow shifts warn of reversals, exhaustion signals caution, and temporal pressure quantifies intensity.
Core Components Explained
1. Price Flow Calculation
Price flow measures directional movement using dual exponential moving averages:
Price Flow = EMA(Close, Flow Period) - EMA(Close, Flow Period * 2)
This calculation creates a zero-centered oscillator:
- Positive values indicate bullish flow (faster EMA above slower EMA)
- Negative values indicate bearish flow (faster EMA below slower EMA)
- Magnitude shows flow strength
Flow Direction = Price Flow > 0 ? Bullish : Bearish
Flow Strength = Absolute(Price Flow) / ATR(14)
Flow strength normalization using ATR ensures cross-instrument comparison and removes price-level bias. Values above 1.5 indicate strong flow, 0.8-1.5 moderate flow, below 0.8 weak flow.
Flow Acceleration = Change in Price Flow over 3 bars
Positive acceleration indicates flow is building, negative acceleration indicates flow is fading. This provides early warning of flow changes before they become obvious in the main flow metric.
2. Session Detection and Analysis
The indicator identifies three major trading sessions using UTC hour detection:
Asian Session: Customizable start hour (default 0 UTC) to London start
London Session: Customizable start hour (default 7 UTC) to NY start
NY Session: Customizable start hour (default 12 UTC) to Asian start
Session tracking maintains:
- Session High: Highest price since session start
- Session Low: Lowest price since session start
- Session Start Bar: Bar index when session began
- New Session Flag: Triggers on session transitions
Session boxes are drawn showing the high/low range for each session, providing visual context for session-based support/resistance and breakout analysis.
3. Session Breakout Detection
Session breakouts mark when price exceeds previous session boundaries with conviction:
Session Breakout Up:
- High > Previous Session High
- Volume > Average Volume * 2.0
- Close > Previous Session High (confirms breakout, not just wick)
Session Breakout Down:
- Low < Previous Session Low
- Volume > Average Volume * 2.0
- Close < Previous Session Low
These breakouts often mark the start of significant moves as price breaks out of established ranges with institutional participation (confirmed by volume). The indicator places small labels marking breakout events.
4. Temporal Momentum Analysis
Temporal momentum combines RSI with flow-based weighting:
Momentum = RSI(Close, Momentum Length)
Momentum Flow = EMA(Momentum, 5)
Momentum Divergence = Momentum - Momentum Flow
Momentum Acceleration = Change in Momentum over 3 bars
Momentum classification:
- Overbought: Momentum > 70
- Oversold: Momentum < 30
- Neutral: Momentum between 30 and 70
The indicator tracks momentum divergence to identify when momentum is deviating from its trend, often preceding flow reversals.
5. Volume Flow Dynamics
Volume flow analysis separates buying and selling pressure:
Volume Flow = EMA(Volume, Volume Flow Period)
Volume Flow Delta = Current Volume - Volume Flow
Volume Flow Ratio = Current Volume / Volume Flow
Buying Pressure = Volume when Close > Open
Selling Pressure = Volume when Close < Open
Net Pressure = EMA(Buying Pressure - Selling Pressure, Volume Flow Period)
Net pressure reveals institutional positioning:
- Positive net pressure: Institutions accumulating (buying dominance)
- Negative net pressure: Institutions distributing (selling dominance)
- Magnitude shows intensity of positioning
6. Time Zone Position Analysis
The indicator calculates price position within the session range:
Session Range = Session High - Session Low
Session Mid = (Session High + Session Low) / 2
Premium Zone = Price > Session Mid + Range * 0.25 (upper 25%)
Discount Zone = Price < Session Mid - Range * 0.25 (lower 25%)
Equilibrium = Price between premium and discount zones
Smart money concepts suggest:
- Premium zones: Favorable for selling/distribution
- Discount zones: Favorable for buying/accumulation
- Equilibrium: No clear value edge
The dashboard displays current zone and suggested bias (SELL in premium, BUY in discount, WAIT in equilibrium).
7. Flow Shift Detection System
Flow shifts mark critical transitions in directional flow:
Flow Shift = Flow Direction changes from previous bar's direction
The indicator tracks the last flow direction and compares it to current direction. When they differ, a flow shift is detected. These shifts often mark:
- Trend reversals (shift from strong flow to opposite flow)
- Consolidation starts (shift from strong flow to weak flow)
- Breakout beginnings (shift from weak flow to strong flow)
Flow shift labels are placed at shift points with direction indicators (UP for bullish shift, DN for bearish shift).
8. Accumulation and Distribution Detection
The indicator identifies institutional accumulation/distribution using strict criteria:
Strong Accumulation:
- Close > Open (bullish candle)
- Volume > Average Volume * 2.5 (very high participation)
- Close > EMA(20) (above trend)
- Close > High (breaking above previous high)
- Momentum < 50 (not overbought)
Strong Distribution:
- Close < Open (bearish candle)
- Volume > Average Volume * 2.5
- Close < EMA(20) (below trend)
- Close < Low (breaking below previous low)
- Momentum > 50 (not oversold)
These strict criteria ensure only genuine institutional positioning is flagged, not retail noise. Labels mark accumulation ("A") and distribution ("D") events.
9. Flow Divergence Analysis
Flow divergences identify price-flow asymmetries:
Bullish Flow Divergence:
- Price makes lower low (Price < Price )
- Flow makes higher low (Flow > Flow )
- Momentum < 35 (oversold context)
- Flow Strength > 0.5 (significant flow)
Bearish Flow Divergence:
- Price makes higher high (Price > Price )
- Flow makes lower high (Flow < Flow )
- Momentum > 65 (overbought context)
- Flow Strength > 0.5
Divergences warn that flow is not confirming price extremes, often preceding reversals. The indicator places "DIV" labels at divergence points.
10. Flow Exhaustion Detection
Flow exhaustion occurs when flow strength is high but acceleration is low:
Flow Exhaustion = Flow Strength > 2.0 AND Absolute(Momentum Acceleration) < 0.5
This condition suggests flow has reached extreme levels but is no longer accelerating, often marking climax moves before reversals. Exhaustion labels ("EX") warn traders to prepare for potential flow reversal.
11. Temporal Pressure Calculation
Temporal pressure combines multiple flow dimensions:
Temporal Pressure = (Price Flow / ATR) * (Volume Flow Ratio - 1) * Flow Strength
This calculation creates a comprehensive pressure metric:
- Positive values: Bullish temporal pressure
- Negative values: Bearish temporal pressure
- Magnitude shows pressure intensity
Extreme pressure (absolute value > 2.0) often precedes significant moves or reversals depending on context.
12. Flow Velocity Analysis
Flow velocity measures the rate of price change over time:
Flow Velocity = Change in Close over 5 bars / 5
Flow Velocity EMA = EMA(Flow Velocity, 10)
Velocity Divergence = Flow Velocity - Flow Velocity EMA
Velocity Threshold = ATR * 0.2
Velocity classification:
- Fast: Absolute Velocity > Velocity Threshold
- Slow: Absolute Velocity <= Velocity Threshold
Fast velocity indicates rapid flow, slow velocity indicates gradual flow. Velocity divergence shows when current velocity differs from average velocity.
Visual Elements
Session Boxes: Colored boxes showing Asian (yellow), London (green), and NY (red) session ranges
Flow Shift Labels: Small labels marking flow direction changes (UP/DN)
Accumulation/Distribution Labels: Tiny labels marking institutional positioning (A/D)
Flow Divergence Labels: Labels marking price-flow asymmetries (DIV)
Session Breakout Labels: Labels marking session high/low breakouts (BO/BD)
Flow Exhaustion Labels: Labels warning of flow exhaustion (EX)
Time Zone Backgrounds: Subtle backgrounds showing premium (bearish) and discount (bullish) zones
Flow Direction Background: Very subtle background showing current flow direction
Session Level Lines: Dashed lines showing session high, mid, and low levels
Flow EMA Line: Line showing flow EMA for trend context
Comprehensive Dashboard: 12-row intelligence panel with all temporal flow metrics
The visual system is designed for clarity with minimal clutter - only significant events are marked, and backgrounds are very subtle to avoid distraction.
Input Parameters
Temporal Settings:
Flow Period: Period for flow calculation (10-50, default 20)
Session Length: Bars for session analysis (10-100, default 24)
Momentum Length: Period for momentum (5-30, default 14)
Volume Flow Period: Period for volume flow (5-30, default 10)
Features:
Price Flow Direction: Toggle flow analysis (default enabled)
Session Analysis: Toggle session detection (default enabled)
Temporal Momentum: Toggle momentum tracking (default enabled)
Volume Flow: Toggle volume analysis (default enabled)
Time-Based Zones: Toggle premium/discount zones (default enabled)
Flow Shift Signals: Toggle shift detection (default enabled)
Flow Divergence: Toggle divergence detection (default enabled)
Session Breakouts: Toggle breakout signals (default enabled)
Sessions:
Asian Session Start: Hour in UTC (0-23, default 0)
London Session Start: Hour in UTC (0-23, default 7)
NY Session Start: Hour in UTC (0-23, default 12)
Colors:
All colors are fully customizable including time bull (neon cyan), time bear (neon pink), session active (gold), flow positive (neon green), flow negative (pink), momentum high (purple), accumulation (cyan), and distribution (pink).
How to Use This Indicator
Step 1: Identify Flow Direction
Check dashboard "FLOW" field showing BULLISH or BEARISH. This indicates current directional flow. Note the status (STRONG/MODERATE/WEAK) showing flow strength.
Step 2: Monitor Flow Strength
Review "STRENGTH" metric showing flow intensity. Values above 1.5 indicate strong directional flow suitable for trend-following. Values below 0.8 suggest weak flow where range-bound strategies may work better.
Step 3: Watch Flow Acceleration
Check "ACCELERATION" showing ACCELERATING, DECELERATING, or STABLE. Accelerating flow confirms trend strength. Decelerating flow warns of potential exhaustion even if flow remains positive/negative.
Step 4: Identify Active Session
Review "SESSION" field showing ASIAN, LONDON, or NY. Different sessions have different characteristics - London and NY overlap often shows highest volatility and volume.
Step 5: Assess Volume Flow
Check "VOL FLOW" showing HIGH, NORMAL, or LOW. High volume flow confirms genuine institutional participation. Low volume flow suggests retail-dominated or thin-market conditions.
Step 6: Monitor Net Pressure
Review "PRESSURE" showing BUYING or SELLING with intensity (STRONG/MODERATE/WEAK). This reveals institutional positioning - sustained buying pressure suggests accumulation, sustained selling suggests distribution.
Step 7: Check Time Zone Position
Review "TIME ZONE" showing PREMIUM, DISCOUNT, or EQUILIBRIUM with bias suggestion. Buy in discount zones, sell in premium zones for optimal risk/reward aligned with smart money concepts.
Step 8: Watch for Flow Shifts
Flow shift labels mark critical transitions. These often provide early warning of trend changes before they're obvious in price. Shifts from strong flow to opposite flow are most significant.
Step 9: Use Divergence Warnings
Flow divergence labels warn when flow is not confirming price extremes. These often precede reversals and provide high-probability counter-trend entry opportunities.
Step 10: Monitor Flow State
Check "STATE" field showing current flow condition (EXHAUSTED, SHIFTING, BULL DIV, BEAR DIV, ACCUM, DISTRIB, or FLOWING). This provides immediate context for current flow dynamics.
Best Practices
Flow shifts with strong acceleration often mark the start of new trends
Session breakouts during London/NY overlap offer highest-probability setups
Accumulation in discount zones and distribution in premium zones are most reliable
Flow divergences at extreme momentum levels (>70 or <30) are most significant
Flow exhaustion signals work best when combined with time zone extremes
Strong volume flow confirmation separates genuine moves from false signals
Temporal pressure above 2.0 or below -2.0 often precedes significant moves
Flow velocity acceleration provides early entry timing before flow shift is obvious
Session high/low levels often provide support/resistance for intraday trading
Multiple flow shifts in short period suggest choppy conditions - reduce position size
Flow strength above 2.0 in discount zones offers optimal long entry conditions
Flow deceleration in premium zones warns of potential distribution
Indicator Limitations
Session detection uses UTC hours which may not align perfectly with actual market hours
Flow analysis works best on instruments with consistent intraday patterns
Volume flow requires accurate volume data - some instruments have unreliable volume
Time zone analysis assumes session ranges are meaningful - may not apply to all instruments
Flow shifts can whipsaw during genuinely transitional periods
Accumulation/distribution detection uses strict criteria - may miss some institutional activity
Flow divergences can persist longer than expected before price reverses
Session breakouts can be false - always use stop losses
The indicator shows flow dynamics but cannot predict news events or fundamental catalysts
Temporal pressure can remain extreme during strong trends
Flow exhaustion signals are warnings, not guarantees of reversal
Technical Implementation
Built with Pine Script v6 using:
Dual-EMA flow calculation with ATR-normalized strength measurement
Session detection using hour() function with customizable UTC start times
Session high/low tracking with reset on new session detection
RSI-based momentum with flow-weighted calculations
Volume flow analysis with buying/selling pressure separation
Net pressure calculation using EMA smoothing
Time zone position analysis using session range calculations
Flow shift detection using directional comparison
Strict accumulation/distribution criteria combining volume, price action, and momentum
Flow divergence detection using lookback comparison with strength filtering
Flow exhaustion identification combining strength and acceleration thresholds
Temporal pressure calculation integrating flow, volume, and strength
Flow velocity tracking with EMA smoothing and divergence calculation
Comprehensive dashboard with 12 metrics and color-coded status indicators
Minimal label system preventing chart clutter while maintaining signal visibility
The code is fully open-source with detailed comments explaining temporal flow concepts.
Originality Statement
This indicator is original in its comprehensive temporal flow analysis approach. While individual components (flow, sessions, momentum, volume) are established concepts, this indicator is justified because:
It integrates price flow, session analysis, momentum, and volume flow into a unified temporal framework
The flow shift detection system provides early warning of directional changes
Accumulation/distribution detection uses strict multi-factor criteria ensuring institutional-grade signals
Flow divergence analysis identifies price-flow asymmetries with strength filtering
Flow exhaustion detection combines strength and acceleration for climax move identification
Temporal pressure calculation synthesizes multiple flow dimensions into unified intensity metric
Time zone position analysis provides smart money context for entry timing
Session breakout detection with volume confirmation identifies high-probability setups
The comprehensive dashboard synthesizes 12 distinct metrics into unified temporal intelligence
Flow velocity and acceleration tracking provides early momentum shift detection
Each component reveals different temporal dynamics: flow shows direction, sessions provide timing, momentum shows strength, volume confirms participation, time zones show value, shifts warn of changes, divergences signal reversals, exhaustion marks climaxes, and pressure quantifies intensity. The indicator's value lies in combining these complementary perspectives into a cohesive temporal flow analysis system.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Temporal flow analysis is a tool for understanding time-based market dynamics, not a crystal ball for predicting future price movement. Flow shifts do not guarantee trend changes. Session breakouts do not guarantee continuation. Past flow patterns do not guarantee future flow patterns. Market conditions change, and strategies that worked historically may not work in the future.
The metrics displayed are mathematical calculations based on current market data, not predictions of future price movement. Flow shifts, divergences, exhaustion signals, and session breakouts do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

AG Pro Volume Delta Imbalance Map [AGPro Series]AG Pro Volume Delta Imbalance Map
OVERVIEW / WHAT IT DOES
AG Pro Volume Delta Imbalance Map is an overlay-style volume pressure tool designed to visualize directional participation asymmetry directly on the price chart. Instead of presenting volume as a standalone histogram or reducing the analysis to a single cumulative line, this script maps estimated directional imbalance into a chart-native structure built around a basis line, a flow spine, and an adaptive ribbon. The result is a cleaner view of whether recent participation is leaning bullish, bearish, or balanced, while keeping the analysis anchored to actual price movement.
The script is built for traders who want a more visual interpretation of directional volume pressure without relying on a separate lower-pane oscillator. The main purpose is not to predict tops, bottoms, or reversals in isolation. Its role is to help users read where directional pressure is expanding, where it is fading, and where the current state remains neutral or low-conviction. By placing the analysis directly on the chart, the script aims to make flow conditions easier to compare with market structure, pullbacks, trend continuation attempts, and local regime shifts.
A key design objective of this script is practical readability. Many volume-based tools either become too abstract for quick chart work or too visually dense to remain useful during live decision-making. Here, the imbalance model is translated into a compact overlay with a smoothed directional spine, a ribbon that adapts to pressure intensity, optional burst labels, optional zone-start labels, and a summary panel that reports the current state, bias, strength, persistence, label mode, and exhaustion condition. This keeps the output interpretable across multiple markets and timeframes without forcing the user to decode a complicated dashboard.
This script should be understood as a directional-volume map, not as a trade automation engine. It is intended to support chart reading, context building, and workflow discipline. It can help highlight when directional participation is broadening, when pressure alignment is improving, or when a previously strong move begins to lose quality. Those observations can then be combined with price structure, support and resistance, volatility context, and the user’s own execution framework.
UNIQUE EDGE
The main differentiator of this script is that it does not approach volume pressure in the same way as classic cumulative-flow or oscillator-style tools. Traditional cumulative tools such as OBV compress volume behavior into a running line, while money-flow oscillators often frame the analysis around momentum-style expansion and contraction in a lower pane. AG Pro Volume Delta Imbalance Map takes a different route: it transforms estimated directional pressure into an on-chart flow structure that is designed to be read alongside candles, pullbacks, transitions, and continuation attempts.
Another differentiating element is the emphasis on flow state rather than raw volume magnitude alone. The script is not simply asking whether volume is high or low. It is asking whether directional participation is leaning to one side strongly enough to create an interpretable imbalance state, whether that pressure is stabilizing or intensifying, and whether that condition is durable enough to remain relevant across several bars. This creates a more structural view of participation rather than a purely reactive one.
The visual architecture is also intentionally distinct. The flow ribbon is not only cosmetic. It is designed to express directional pressure breadth around the spine, while the spine itself provides a simpler anchor for the prevailing flow direction. Optional labels then mark either stronger burst moments or the beginning of a new directional zone, depending on user preference. This allows the script to serve different chart-reading styles without changing the core methodology.
Finally, transparency matters. This script does not claim to be a true bid/ask footprint, a tape-reading engine, or an exact institutional order-flow detector. It uses an estimated directional-volume proxy derived from price-location and candle-structure behavior. That distinction is important. The objective is to provide a disciplined, readable directional-pressure framework within the constraints of standard chart data, not to imply access to information the script does not use.
METHODOLOGY
The model begins with a directional-pressure proxy built from three components: close location within the bar, candle body dominance relative to the full range, and directional sign reinforcement from candle structure. These inputs are blended into a bounded hybrid bias value intended to estimate whether recent volume participation was more likely to have leaned bullish or bearish within the bar. That estimate is then scaled by the bar’s volume to produce directional volume estimates and a delta-style imbalance reading.
The raw imbalance is normalized using a volume baseline so that the output remains more comparable across changing participation environments. The normalized value is then smoothed to reduce excessive noise and to create a more usable state engine. From there, bullish, bearish, and balanced conditions are determined through explicit thresholds. This means the displayed state is not arbitrary. It is driven by a consistent threshold structure that helps separate neutral conditions from more meaningful directional pressure.
The chart overlay is built around three visual elements. First, a basis line offers a stable reference. Second, the flow spine tracks the smoothed imbalance state translated onto price space. Third, an adaptive ribbon expands or contracts around the spine based on imbalance strength, which helps communicate whether directional participation is broadening or losing intensity. Together, these components aim to make flow conditions visible without overwhelming the chart.
The script also tracks persistence and a simplified exhaustion heuristic. Persistence reflects how long the current directional state has remained in force, while exhaustion attempts to highlight cases where imbalance remains strong but starts to weaken while price response underperforms. This is not a reversal guarantee. It is a contextual warning that a previously forceful participation state may be losing efficiency.
SIGNALS & ALERTS
The script can label directional events in two different styles. In Burst Labels mode, labels are reserved for stronger acceleration moments inside an existing directional condition. In Zone Start Labels mode, labels are printed when a new directional zone begins. This distinction matters because some traders prefer confirmation after pressure expansion, while others prefer earlier visual markers at the start of a state change.
Bullish and bearish imbalance burst alerts are available for users who want notification when directional pressure expands beyond the relevant threshold. These alerts are best interpreted as flow acceleration events, not standalone entry signals. In practice, many users will prefer to combine them with local structure, pullback quality, reclaim behavior, or continuation context.
The script also includes bias reversal alerts and imbalance strength expansion alerts. These are useful for monitoring whether a previously balanced or opposing environment is transitioning into a new directional condition, or whether an already active imbalance is strengthening enough to deserve attention. The summary panel helps reinforce these changes by showing state, bias, strength, persistence, label mode, and exhaustion status in a compact format.
A separate exhaustion-risk alert is provided for conditions where the model detects that a strong imbalance may be fading in quality. This should be interpreted as a caution flag, not as a direct call to reverse or exit automatically. In many workflows, it is more useful as a prompt to reassess the context, tighten risk discipline, or watch for weakening continuation quality.
KEY INPUTS
Normalization Lookback controls the volume baseline used in the imbalance normalization process. Larger values can stabilize the model, while smaller values can make the output more reactive. Imbalance Smoothing influences how quickly the directional state responds to changing pressure. Shorter smoothing reacts faster but may increase noise, while longer smoothing can improve stability at the cost of responsiveness.
Map Basis EMA Length affects the visual anchor used for the overlay. ATR Length and Spine ATR Multiplier influence how the spine is translated into price space and how the ribbon behaves around it. Flow Ribbon Width controls the breadth of the visible pressure corridor, while Bull Flow Width Boost allows the bullish side to be widened slightly for visual emphasis when appropriate.
Bullish and Bearish Imbalance Thresholds define when the script considers directional pressure strong enough to move out of the balanced state. Burst Threshold determines when the model treats a move as a more meaningful acceleration event. Extreme Threshold contributes to the exhaustion logic and strength classification. Users can also choose whether labels represent burst moments or zone starts, depending on how early or selective they want the chart annotations to be.
Visual controls allow users to show or hide the basis line, flow ribbon, spine glow, backdrop, burst labels, exhaustion labels, spine tag, and panel. Panel position, panel theme, text sizing, label sizing, and offset controls are included so that the script can be adapted to different chart layouts and personal reading preferences without changing the underlying methodology.
LIMITATIONS & TRANSPARENCY
This script uses an estimated directional-volume model. It does not use order-book data, footprint data, bid/ask tape data, or exchange-level aggressor classification. As a result, the displayed imbalance should be understood as a chart-based directional proxy, not as an exact measurement of true traded delta.
Because the model relies on price-location and candle-structure inputs, the output can behave differently across instruments with different volatility profiles, gap behavior, liquidity conditions, and session structures. It is normal for a setting that looks well balanced on one asset or timeframe to require refinement on another. Users should expect to tune thresholds and visual parameters when moving between markets.
Signals and labels are contextual. A bullish label inside a weak range environment does not carry the same meaning as a bullish label that appears after a reclaim, a pullback stabilization, or a clean continuation structure. Likewise, a bearish label during highly erratic volatility may be less reliable than a similar reading inside a smoother directional sequence. The script is designed to assist interpretation, not to replace it.
No single output from this script should be treated as a guaranteed trade trigger, reversal call, or risk-management rule. The panel, ribbon, spine, and labels are tools for reading participation conditions. They are most useful when integrated with broader chart context, including trend structure, invalidation logic, nearby levels, liquidity conditions, and the user’s own process.
RISK DISCLOSURE
This script is for chart analysis and educational use. It does not provide financial advice, portfolio advice, or guaranteed trade outcomes. All trading and investing involve risk, including the risk of loss. Past market behavior and prior indicator responses do not guarantee future results.
Users remain fully responsible for how they interpret and apply the script. Any signal, label, or state reading should be evaluated within a complete decision process that includes market context, risk definition, and position management. This script should not be used as the sole basis for entering, exiting, or sizing a trade.
If you use this tool in live market conditions, it is sensible to test it across different assets and timeframes and to confirm that its behavior matches your own execution logic before relying on it in a real-money workflow. Indicator

AG Pro MFI Flow Imbalance [AGPro Series]AG Pro MFI Flow Imbalance
Overview
AG Pro MFI Flow Imbalance is a directional money-flow study built to evaluate whether buying pressure and selling pressure are developing in a balanced way or becoming meaningfully one-sided. Instead of using the classical Money Flow Index as a simple overbought/oversold gauge, this script reframes money flow as an imbalance problem. The objective is not to predict future price with certainty, and it is not presented as a standalone trading system. Its role is to help traders inspect how strongly flow is leaning to one side, how persistent that imbalance has become, and whether the condition is expanding, stabilizing, fading, or returning toward balance.
This publication is designed around a very specific analytical question: is money flow distributed relatively evenly between both sides, or is participation clustering in a way that suggests directional dominance? That is the core problem the script is trying to organize visually. In practical terms, the script separates positive and negative money flow, normalizes the relationship between them, smooths the result for readability, and then classifies the current state using threshold bands, persistence logic, event labels, and a compact summary panel. The result is a tool focused on flow asymmetry rather than on generic oscillator levels.
This distinction is important because many money-flow and volume-based studies are ultimately used as broad momentum proxies. That is not the purpose here. AG Pro MFI Flow Imbalance is built to track directional imbalance itself. The central read is not simply “high” or “low”; the central read is whether flow is bullish or bearish, whether that condition is weak or strong, whether it is becoming more one-sided or less one-sided, and whether the move is persistent enough to deserve more attention.
Within the AG Pro catalog, this script is intentionally solving a different problem than the other tools. It is not a break-and-retest study, not a reclaim tool, not a trendline or structure-mapping script, not a trend-quality score, not a session-based framework, not a cumulative OBV-style divergence tool, and not an RSI pressure oscillator. Those tools ask different questions. This script focuses on directional flow asymmetry: how unevenly money flow is being allocated between bullish and bearish participation over a rolling window. That difference is deliberate and central to the design.
What the script does
The script computes a directional money-flow relationship using typical price and volume, then compares positive flow and negative flow over a configurable lookback. That relationship is converted into a normalized imbalance score. A smoothed score line is then used to reduce noise and improve interpretability. The study also tracks whether the current imbalance is inside a neutral band, above a strong threshold, or in an extreme zone. It further evaluates persistence, meaning whether the imbalance has remained outside the neutral band for enough bars to be treated as more than a brief fluctuation.
The visual structure is built around several coordinated layers:
- a histogram that shows directional imbalance strength,
- a signal line for smoother state tracking,
- an optional raw score for users who want to inspect unsmoothed swings,
- threshold zones that separate neutral, strong, and extreme conditions,
- a subtle directional tint to keep the pane readable at a glance,
- optional event labels for selected state changes,
- and a compact panel summarizing state, bias, imbalance, strength, persistence, flow mode, MFI regime, and threshold status.
The script also includes alert conditions for directional starts, strong-threshold transitions, extreme imbalance events, fading conditions, and balance restoration. These events are not promises of future performance. They are structured notifications describing the current state of the internal flow model.
Unique edge
The unique edge of this script is not that it “improves” MFI by making stronger claims. Its edge is conceptual. Classical MFI is often read primarily as an overbought/oversold oscillator. AG Pro MFI Flow Imbalance uses MFI-related inputs as a flow framework, but the main output is a directional asymmetry engine. The question is not “is MFI high or low?” The question is “how skewed is money flow, how persistent is that skew, and is the current skew expanding or fading?”
That is why the classical MFI layer is treated as secondary context rather than as the primary engine. In this script, the MFI regime is an auxiliary read that can support or fail to support the main imbalance state. The main analytical product remains the normalized imbalance score and the way that score behaves through time.
How this differs from other AG Pro scripts
This point deserves to be explicit.
AG Pro MFI Flow Imbalance is not a structure script. It does not map swing highs, swing lows, break points, reclaim levels, retest quality, support-resistance interaction, or breakout geometry. Users looking for structural confirmation should not expect this tool to replace scripts built for structural analysis.
It is not a cumulative pressure-divergence script. It does not frame the market through OBV-style accumulation paths or through price-versus-cumulative-volume disagreement. Its emphasis is current directional flow imbalance over a rolling window, not cumulative divergence logic.
It is not an RSI pressure tool. It does not try to express internal price pressure through RSI-derived compression or momentum-pressure logic. The model here is flow allocation, not RSI pressure mapping.
It is not a trend-quality or regime-classification tool. While strong one-sided flow can sometimes align with directional trends, this script is not built to classify broad market regimes on its own. It is a flow diagnostic, not a complete regime engine.
It is not a dashboard or screener. It is a single-study analytical tool focused on one chart at a time, designed to help interpret the quality and persistence of directional money flow in context.
Because of those boundaries, this publication should not be read as a renamed variant of earlier AG Pro concepts. Its design problem, internal framing, visual hierarchy, and interpretation model are distinct.
Methodology
At a conceptual level, the script begins with typical price and volume to form raw money flow. It then separates that flow into positive and negative components based on directional change. Those components are aggregated over a lookback period and compared through a normalized formulation so the result can be interpreted as a directional imbalance score rather than as a raw cumulative total.
That normalized score is then smoothed for readability. Persistence logic is applied to distinguish short-lived pushes from conditions that remain outside the neutral band for multiple bars. The script then classifies the output using three broad layers of interpretation:
1. direction: bullish, bearish, or neutral,
2. strength: neutral, moderate, strong, or extreme,
3. behavior: expanding, fading, stabilizing, or balanced.
A secondary classical MFI context layer is also displayed in the panel. This is intentionally subordinate to the main engine. Its purpose is to tell the user whether the classical MFI backdrop is broadly supportive of the current imbalance read, not to replace the imbalance model.
How to read it
A positive histogram indicates bullish directional flow imbalance. A negative histogram indicates bearish directional flow imbalance. The further the score moves away from the neutral band, the more one-sided the flow condition becomes according to the script’s current settings.
The signal line is there to help users judge whether the imbalance is strengthening, flattening, or reversing. The raw score can also be displayed for users who want to compare unsmoothed behavior with the smoothed model.
The neutral band is important because it separates relatively balanced participation from meaningful directional skew. Movement beyond the strong threshold suggests a more assertive one-sided condition. Movement into the extreme zone signals a more stretched imbalance state. None of these states should be interpreted in isolation. A strong bullish imbalance is not automatically a bullish trade signal, and a strong bearish imbalance is not automatically a bearish trade signal. They are context states.
Persistence is also important. A one-bar excursion outside the neutral band does not carry the same informational weight as an imbalance that has remained active across several bars. That is why the panel includes a persistence read and why the optional event labels are intentionally restricted to selected events rather than every minor fluctuation.
Signals and alerts
The script includes structured event logic for the following types of conditions:
- bullish directional imbalance started,
- bearish directional imbalance started,
- bullish imbalance strengthening above the strong threshold,
- bearish imbalance strengthening above the strong threshold,
- bullish extreme imbalance,
- bearish extreme imbalance,
- imbalance fading,
- and balance restored.
These alerts describe what the internal model is detecting. They do not guarantee that price will continue in the same direction, reverse, or reach any target. Their function is organizational: they help users identify when the script’s flow state changes materially.
Key inputs
The main controls are MFI Length, Imbalance Lookback, Smoothing Length, Signal Length, Persistence Bars, Neutral Threshold, Strong Threshold, and Extreme Threshold. These settings alter how sensitive the model is to short-term changes and how quickly it escalates a condition from neutral to strong or extreme.
Visual controls allow users to show or hide the histogram, signal line, raw score, threshold zones, bias tint, MFI guides, summary panel, and event labels. Label behavior can also be filtered through event mode, size, spacing, and transparency settings so the pane can remain readable without becoming over-annotated.
Practical use
This script is generally most useful when the user wants to inspect whether directional participation is broadening or weakening under the surface. For example, a user may observe price moving higher while checking whether the flow imbalance remains supportive, is fading, or never became strong in the first place. Likewise, when price weakens, the script can help distinguish between shallow bearish flow and more persistent bearish dominance.
It can also be used as a filter alongside other tools. A trader using structural tools, trend tools, or volatility tools may find it useful to ask whether those reads are accompanied by balanced flow, strengthening directional skew, fading imbalance, or a return toward neutrality. In that role, AG Pro MFI Flow Imbalance functions as a context layer rather than as a one-click decision engine.
Limitations and transparency
This script does not know market intent, external news, hidden liquidity, or order-book behavior. It works only with the price and volume data available on the chart and the transformations applied to that data inside the model. Different symbols, exchanges, sessions, liquidity profiles, and volatility regimes can all change how the output behaves.
The study also does not eliminate the tradeoff between sensitivity and stability. Shorter settings may react faster but can become noisier. Longer settings may produce smoother states but react later. Threshold placement matters as well. If thresholds are too loose, the script may classify too many minor swings as meaningful. If thresholds are too strict, it may ignore useful early changes.
Users should also remember that strong imbalance is not inherently bullish or bearish in a simple predictive sense. A strong condition can persist, fade, stall, or reverse depending on context. The script is descriptive and analytical. It is not a guarantee engine.
Why it may be useful to traders
The usefulness of this publication comes from clarity, not from exaggerated claims. Many traders already work with price structure, trend tools, moving averages, or oscillators. What is often less explicit is whether money flow is becoming more balanced or more one-sided while those other reads are developing. This script offers a structured way to inspect that question and to keep the answer visually organized.
By focusing on directional money-flow asymmetry, persistence, threshold behavior, and event transitions, the study provides a clear framework for discussing flow conditions without collapsing everything into a generic overbought/oversold interpretation.
Risk disclosure
This script is an analytical indicator. It is not financial advice, not a promise of future results, and not a substitute for risk management, market context, or independent judgment. It does not guarantee profitable trades, trend continuation, reversals, or improved performance. Use it as one input among others. Indicator

Open Interest Flow & Context Overlay [HYPR-run]DESCRIPTION:
Reads Binance perpetual open interest and classifies each bar into one of eight context states based on OI direction, price direction, and volume direction. Flow arrows show how open interest is developing bar by bar; the context matrix tells you what it means. OI rising + price rising + volume rising = new longs with conviction. OI rising + price falling + volume rising = new shorts with conviction. OI falling + price falling = long squeeze (liquidation, trend acceleration). OI falling + price rising + volume = short squeeze (covering, trend acceleration). The matrix answers: who is entering, who is exiting, and is volume confirming?
DISCOVERING EDGE
This indicator classifies every bar into eight context states by combining OI direction, price direction, and volume direction into a single read. In order to gain a persistent, mechanical edge in distinguishing real demand from forced covering and genuine selling from liquidation, we explored a more meaningful expression of open interest flow that resulted in strong confirmation signals that became actual entry/exit signals (Large Outline Triangles on chart) in our latest automated strategies.
8 OI CONTEXT STATES vs RAW OI CANDLES
Raw OI rising tells you positions are opening but not who or why. Eight context states (new longs with volume, short squeeze, long liquidation, etc.) answer who is entering, who is exiting, and whether volume confirms, turning a single data stream into actionable positioning context. Arrow color hierarchy gives the instant read: green/bright red = fresh direction flip (highest conviction); cyan/orange = continuation; purple = no volume confirmation (lower conviction but a staple of grinding price action in intermediate trend. Dashboard distinguishes "LONG, New Longs + Volume" from "Short Squeeze, Accumulation"; both show price rising, but one is real demand and the other is forced covering that ends when covering is done. Alerts fire only on strong OI signals (OI + price + volume all aligned) with full bar filter and directional candle confirmation; three layers of filtering before the signal fires.
FEATURES
- Eight OI context states with color-coded overlay arrows
- Two-row dashboard: OI context state + OI flow arrows with color badges
- Strong/weak filter: price + volume + OI alignment required for full signals
- Direction flip tracking: fresh signals vs continuation (brighter vs dimmer)
- ZLEMA-based trend detection (smoother than raw crossovers)
- Webhook-ready alerts on strong OI signals with full bar filter
- Full bar filter: body >= 66.6% of range (no doji fakeouts)
DASHBOARD
Two-row display: OI context state and OI flow. Row 1 classifies the current bar from the eight-state matrix. Row 2 shows the active flow arrow state matching the arrows on chart.
OI CONTEXT TABLE (Dashboard row 1)
OI FLOW TABLE (Dashboard row 2)
HOW IT WORKS
ZLEMA (zero-lag EMA) detects rising/falling direction on three inputs: open interest, price, and volume. The combination determines the context state. Strong signals require all three aligned. A fixnan state variable tracks direction flips to distinguish fresh entries from continuation. OI data is pulled from Binance perpetual contracts (USDT or coin-margined). Auto-detects the coin from the chart symbol, or enter manually for non-Binance tickers.
ALERTS
Fires on strong OI long/short signals (all three aligned) with a full directional bar. Fresh direction flips are distinguished from continuation. Alert payload is built into the script; works with any webhook receiver.
CREDITS
OI data approach: ByzantiumScripts, spacemanbtc
Indicator

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

Adaptive Flow Analyzer [JOAT]Adaptive Flow Analyzer
Introduction
The Adaptive Flow Analyzer is an advanced open-source volatility regime classification indicator that combines dynamic regime detection, entropy analysis, adaptive bands, and momentum waves into a unified flow state system. This indicator helps traders identify whether the market is trending, ranging, or choppy by analyzing volatility patterns, price distribution entropy, and momentum characteristics in real-time.
Unlike basic volatility indicators that simply show ATR or Bollinger Bands, this system classifies market conditions into actionable regimes and recommends appropriate trading strategies. Trending regimes favor breakout and trend-following approaches, ranging regimes favor mean-reversion strategies, and choppy regimes signal to avoid trading. The indicator is designed for traders who understand that different market conditions require different strategies and that regime identification is critical for consistent profitability.
Why This Indicator Exists
This indicator addresses a fundamental challenge in trading: applying the right strategy to the right market condition. Most traders lose money because they use trend-following strategies in ranging markets or mean-reversion strategies in trending markets. By combining multiple regime analysis methodologies, this indicator reveals:
Volatility Regime Detection: Classifies markets as Trending, Ranging, or Choppy based on volatility ratio and directional alignment
Entropy Analysis: Measures price distribution chaos using information theory - high entropy = uncertainty, low entropy = order
Adaptive Bands: Dynamic upper/lower bands that adjust to volatility - shows price position relative to extremes
Momentum Waves: RSI rate-of-change visualization showing momentum acceleration and deceleration
Chaos Zones: Identifies extreme uncertainty periods when trading should be avoided
Strategy Recommendations: Suggests Trend Follow, Mean Revert, or Avoid based on current regime
Each component provides a different lens on market flow. Regime classification shows condition, entropy shows uncertainty, bands show extremes, momentum shows acceleration, and chaos zones show danger. Together, they create a comprehensive view of market state.
Core Components Explained
1. Volatility Regime Detection
The indicator classifies markets into three regimes using volatility ratio and trend alignment:
atr = ta.atr(14)
atrSma = ta.sma(atr, 50)
volRatio = atr / atrSma
// Trending: Aligned EMAs + normal volatility
trendStrength = (ema9 > ema21 and ema21 > ema50) or
(ema9 < ema21 and ema21 < ema50)
regime = volRatio > 1.5 ? 0 : // Choppy
trendStrength ? 2 : // Trending
1 // Ranging
Regime classification:
Trending (2): EMAs aligned + volatility ratio < 1.5 - directional market with follow-through
Ranging (1): EMAs not aligned + volatility ratio < 1.5 - oscillating market with mean reversion
Choppy (0): Volatility ratio > 1.5 - erratic market with no clear pattern
The indicator displays regime with color-coded background and text in dashboard. Trending = green, Ranging = orange, Choppy = red.
2. Entropy Calculation
Entropy measures the randomness or uncertainty in price distribution using information theory:
The indicator:
Collects price changes over lookback period (default 50 bars)
Creates histogram by dividing changes into bins (default 10 bins)
Calculates Shannon entropy: -Σ(p * log(p)) where p = probability
Normalizes to 0-100 scale for easy interpretation
Entropy interpretation:
High entropy (>70): Price changes are random and unpredictable - high uncertainty
Medium entropy (40-70): Moderate predictability - mixed conditions
Low entropy (<40): Price changes are ordered and predictable - low uncertainty
High entropy warns of chaotic conditions where patterns break down. Low entropy confirms regime reliability. The indicator plots entropy as a gradient area chart (green to red).
3. Adaptive Bands System
Adaptive bands adjust to volatility and show price position relative to extremes:
ma = ta.sma(close, 50)
upperBand = ma + (atr * 2.0)
lowerBand = ma - (atr * 2.0)
// Normalize price position to 0-100
pricePosition = (close - lowerBand) / (upperBand - lowerBand) * 100
The indicator displays:
Price position oscillator (0-100 scale)
Reference lines at 0 (lower band), 50 (middle), 100 (upper band)
Multi-layer glow effect on position line for visibility
Color changes based on regime (green for trending, orange for ranging, red for choppy)
Price position interpretation:
Above 75: Overbought - expect mean reversion in ranging regime
Below 25: Oversold - expect mean reversion in ranging regime
Sustained above 50: Bullish in trending regime
Sustained below 50: Bearish in trending regime
4. Momentum Waves
Momentum waves visualize RSI rate-of-change to show acceleration and deceleration:
rsi = ta.rsi(close, 14)
rsiMomentum = ta.change(rsi, 3)
momentumStrength = math.abs(rsiMomentum) / 10 * 100
The indicator plots momentum as gradient area chart:
Green gradient: Positive momentum (RSI rising)
Red gradient: Negative momentum (RSI falling)
Intensity: Stronger color = faster momentum change
Height: Taller wave = larger momentum shift
Momentum waves reveal:
Acceleration into trends (expanding waves)
Deceleration at reversals (contracting waves)
Momentum divergence from price (warning signal)
Momentum exhaustion (extreme waves followed by collapse)
5. Chaos Zone Detection
Chaos zones occur when entropy exceeds threshold (75) AND volatility ratio exceeds 1.5:
inChaosZone = entropyNormalized > 75 and volRatio > 1.5
When chaos zone is active:
Pulsing red background appears
"CHAOS ZONE" label displays
Dashboard shows "CHAOS" flow state
Strategy recommendation changes to "AVOID"
Chaos zones represent extreme uncertainty where technical patterns break down. Trading during chaos zones typically results in whipsaws and losses. The indicator warns to stay flat.
6. Strategy Recommendations
Based on regime classification, the indicator recommends trading approach:
Trending Regime: "TREND FOLLOW" - Use breakout strategies, ride momentum, trail stops
Ranging Regime: "MEAN REVERT" - Fade extremes, buy support, sell resistance
Choppy Regime: "AVOID" - Stay flat, wait for regime clarity
The dashboard displays current recommendation with color coding. This prevents applying wrong strategy to wrong condition.
Visual Elements
Price Position Oscillator: Multi-layer glow line showing position in bands (0-100)
Reference Lines: Horizontal lines at 0, 50, 100 with gradient colors
Regime Background: Color-coded background (green/orange/red) based on regime
Entropy Area Chart: Gradient fill (green to red) showing uncertainty level
Momentum Waves: Gradient area chart showing RSI momentum
Chaos Zone Background: Pulsing red background during extreme uncertainty
Dashboard: Real-time regime state and strategy recommendations
The dashboard displays 9 key metrics:
1. Flow Regime (Trending/Ranging/Choppy)
2. Flow Ratio (volatility multiple)
3. Chaos Index (entropy percentage)
4. Strategy Mode (Trend Follow/Mean Revert/Avoid)
5. Momentum (Strong Up/Strong Down/Neutral)
6. Confidence (High/Medium/Low)
7. Flow State (Directional/Oscillating/Erratic/Chaos)
8. Position (Overbought/Oversold/Neutral)
Input Parameters
Flow Dynamics:
Flow Period: ATR calculation length (default: 14)
Band Multiplier: ATR multiple for bands (default: 2.0)
Equilibrium Period: Moving average length (default: 50)
Adaptive Bands: Enable dynamic band adjustment
Entropy Analysis:
Chaos Measurement: Lookback for entropy calculation (default: 50)
Distribution Bins: Number of histogram bins (default: 10)
Chaos Zones: Enable/disable chaos zone detection
Visualization:
Flow Bands: Show/hide adaptive bands
Regime Coloring: Enable/disable background colors
Entropy Overlay: Show/hide entropy chart
Momentum Waves: Show/hide RSI momentum
How to Use This Indicator
Step 1: Identify Current Regime
Check the dashboard for Flow Regime. This determines your trading approach. Trending = breakouts, Ranging = reversals, Choppy = avoid.
Step 2: Assess Chaos Index
Check entropy level. High chaos (>70) = unreliable patterns. Low chaos (<40) = reliable patterns. Only trade when chaos is low to medium.
Step 3: Check Strategy Recommendation
Dashboard shows recommended approach. Follow it. Don't use trend strategies in ranging markets or mean reversion in trending markets.
Step 4: Monitor Price Position
In ranging regime: Buy near 0-25 (oversold), sell near 75-100 (overbought). In trending regime: Stay with trend when above/below 50.
Step 5: Watch Momentum Waves
Expanding waves = acceleration (enter trends). Contracting waves = deceleration (prepare for reversal). Divergence = warning.
Step 6: Avoid Chaos Zones
When chaos zone activates (pulsing red background), close positions and wait. Don't trade during extreme uncertainty.
Best Practices
Regime determines strategy - always check before trading
High entropy + choppy regime = stay flat
Low entropy + trending regime = best trend-following conditions
Low entropy + ranging regime = best mean-reversion conditions
Momentum waves lead price - watch for acceleration
Chaos zones are dangerous - respect them
Confidence level in dashboard shows setup quality
Flow ratio > 1.5 = elevated risk regardless of regime
Position oscillator works differently in each regime
Regime changes take time to confirm - don't trade transitions
Indicator Limitations
Regime classification is retrospective - may lag at transitions
Entropy calculation requires sufficient data - unreliable on new instruments
Choppy regime can persist longer than expected
Adaptive bands can whipsaw during regime transitions
Momentum waves show acceleration, not direction
Chaos zones can have false positives during news events
The indicator shows current state, not future regime
Strategy recommendations are general - not specific entry signals
Regime classification may differ across timeframes
Technical Implementation
Built with Pine Script v6 using:
ATR-based volatility ratio calculations
EMA alignment for trend strength detection
Shannon entropy calculations with histogram binning
Adaptive band system with dynamic adjustment
RSI momentum rate-of-change analysis
Chaos zone detection with dual criteria
Multi-gradient visualization with pulsing effects
Real-time dashboard with 9 regime metrics
The code is fully open-source and can be modified to suit individual trading styles and preferences.
Originality Statement
This indicator is original in its comprehensive regime integration approach. While individual components (ATR, entropy, bands, RSI) are established concepts, this indicator is justified because:
It synthesizes volatility analysis, entropy theory, and momentum detection into unified regime classification
The entropy calculation applies information theory to price distribution for uncertainty measurement
Chaos zone detection combines entropy and volatility for extreme condition identification
Strategy recommendations adapt to regime in real-time
Momentum wave visualization shows RSI acceleration, not just level
The confidence scoring system quantifies regime reliability
Multi-gradient visualization with pulsing effects enhances regime awareness
Real-time dashboard presents 9 metrics simultaneously for holistic regime analysis
Each component contributes unique information: Regime shows condition, entropy shows uncertainty, bands show extremes, momentum shows acceleration, chaos shows danger, and strategy shows approach. The indicator's value lies in presenting these complementary perspectives simultaneously with unified classification and actionable recommendations.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves substantial risk of loss and is not suitable for all investors.
Regime analysis is a tool for understanding market conditions, not a crystal ball for predicting future behavior. Trending regimes can become ranging. Ranging regimes can become choppy. Past regime patterns do not guarantee future regime patterns. Market conditions change, and strategies that worked historically may not work in the future.
The regime classifications displayed are analytical constructs based on current market data, not predictions of future market state. High confidence scores do not guarantee profitable trades. Users must conduct their own analysis and risk assessment before making trading decisions.
Always use proper risk management, including stop losses and position sizing appropriate for your account size and risk tolerance. Never risk more than you can afford to lose. Consider consulting with a qualified financial advisor before making investment decisions.
The author is not responsible for any losses incurred from using this indicator. Users assume full responsibility for all trading decisions made using this tool.
-Made with passion by officialjackofalltrades Indicator

Omni-Flow Consensus [LuxAlgo]The Omni-Flow Consensus indicator is a high-performance momentum and liquidity oscillator designed to visualize the directional pressure behind price movements through volume-weighted aggression and adaptive smoothing. It provides a comprehensive view of market regimes, identifying high-conviction capital injections while filtering out low-probability market noise.
🔶 USAGE
The indicator is designed to be used as a primary trend-confirmation tool. Unlike standard oscillators that only track price, Omni-Flow incorporates volume and candle body relativity to determine if a move has "weight" behind it.
🔹 Momentum Regimes
Bullish Flow (Cyan): Occurs when the main flow line is above zero and expanding toward the upper bands. This indicates aggressive buying pressure. Bearish Flow (Red): Occurs when the main flow line is below zero and expanding toward the lower bands. This indicates aggressive selling pressure. Accumulation/Neutral (Gray): When the flow line stays within the "Zero Zone" (±10), the market is in a contraction phase. Users should exercise caution as this is often a "no-trade" zone.
🔹 Impulse Injections
The indicator plots small diamond shapes within the oscillator pane. These represent "Flow Injections"—moments where momentum has been confirmed by the Signal Strictness logic and has broken out of the neutral threshold. These are high-probability entry or trend-continuation points.
🔹 Gradient Candle Coloring
The script features a cinematic gradient coloring system for price bars. Instead of binary "Up/Down" colors, the candles transition smoothly between Bullish, Neutral, and Bearish states based on the flow intensity. This allows traders to visually "feel" the momentum fading or building before a crossover actually occurs.
🔶 HOW TO USE
Traders can utilize the Omni-Flow Consensus to filter entries and manage trend expectations:
Trend Confirmation: Look for the main flow line to cross the Zero Axis. A cross above zero suggests a shift toward bullish dominance, while a cross below suggests bearish dominance. Identifying Injections: Pay attention to the Diamond symbols. These appear when the flow line crosses its signal line and maintains its direction for a set number of bars (defined by Strictness). These are often the start of volatile "expansion" phases. Volatility Monitoring: When the flow line remains flat near the zero line and the dashboard displays "ACCUMULATION," it indicates a lack of directional conviction. Traders may use this as a signal to avoid trend-following strategies until an injection occurs. Exhaustion Signals: When the flow line enters the glow bands (±70 to ±90), the market is in an extreme state. While trends can persist here, a crossover of the signal line within these bands often precedes a mean reversion or deep pullback.
🔶 DETAILS
🔹 Smart-Flow Engine
To ensure the tool works across all assets (including Forex, which lacks centralized volume), the script uses a "Smart-Flow" proxy. If volume data is available, it calculates (Close - Open) / (High - Low) * Volume. If volume is missing, it automatically swaps to a Volatility Proxy using True Range, ensuring consistent behavior on any chart.
🔹 Adaptive Spectral Filter (ASF)
The main flow line uses an adaptive alpha-based smoothing technique. This allows the indicator to remain reactive during high-volatility spikes (reducing lag) while smoothing out "whipsaws" during sideways consolidation.
🔹 Stochastic Normalization
The values are mapped to a fixed -100 to +100 range using a double-lookback window. This ensures the oscillator utilizes the full vertical space of the pane, making Overbought and Oversold levels much easier to identify compared to standard Z-score oscillators.
🔶 SETTINGS
🔹 Core Logic
Flow Sensitivity: Adjusts the primary lookback for the flow calculation. Higher values result in a slower, more macro view. Spectral Smoothing: Controls the responsiveness of the Adaptive Spectral Filter. Signal Boost: A non-linear multiplier that "magnifies" movements near the zero line to make crossings more distinct.
🔹 Signal Filtering
Smooth Signals: When enabled, uses the Strictness and Threshold logic to remove false "whipsaw" signals. Signal Strictness: Defines how many bars the flow must maintain its position to confirm an "Impulse." Momentum Threshold: The level the flow must break (e.g., ±15) before a signal is considered valid.
🔹 Aesthetics
Gradient Candle Coloring: Toggles the smooth color transitions on the price chart. Glow Intensity: Adjusts the visual brightness of the "Momentum Fill" between the main and signal lines. Flow Dashboard: Enables a real-time HUD showing the current Regime, Flow Intensity %, and Signal Status. Indicator

Indicator

Synapse_VSync_LibV-Sync (Volume Synchronization) is a multi-dimensional macro-confluence engine. It aggregates four objective market truths into a single synchronized bias (0.0 to 1.0) to filter signals and define market regime.
The Four Pillars of V-Sync
1. Base Volume (Temporal Flux)
Engine: Exponentially weighted volume flow.
Logic: up_volume / total_volume with a math.exp(-i/lookback) decay.
Utility: Capturing sustained momentum in raw participation. It filters out low-volume "fakeout" moves that lack broad participation.
2. Footprint (Order Flow Delta)
Engine: Micro-delta tracking (Institutional Tape).
Logic: Normalized ratio of aggressive buy orders vs sell orders, sourced from LTF footprint or synthetic body-to-wick estimation.
Utility: Identifying where "Smart Money" is actively committing capital in real-time.
3. TICK Data (Market Internals)
Engine: Exchange-wide breadth internals.
Index Mapping:
SPX/ES: NYSE:TICK
NQ/NDX: NASDAQ:TICKQ
Fidelity: Processes intrabar HT/LT extremes to capture high-speed institutional sweeps.
Commitment Levels: Benchmarked at 800 (MOO alignment), 1000 (Extreme), and 1200 (Climax).
4. Thermal Map (Structural Binning)
Engine: Range-based volume distribution (Heatmap).
Logic: 30-bin price-range analysis. Identifies if the current price is supported by "Buy Liquidity" below or capped by "Sell Liquidity" above.
Utility: Visualizing structural depth and identifying high-probability zones where price is likely to stick or bounce.
Interaction & Intelligence Modules
5. Interaction Tooltips
Engine: Dynamic string generator.
Logic: Aggregates pillars (V-Sync, TICK, Heatmap) and local interaction (Delta, OB Bias) into a human-readable forensic report.
Utility: Provides instant clarity on why a level is reacting (e.g., "Institutional Defense" vs "Passive Absorption").
6. Delta Aggregation (Defense vs Aggression)
Engine: Decaying session delta sum.
Logic: Tracks footprint delta at discrete price levels. Categorizes bias as:
Aggressive (A): Delta moves in the direction of the break (Push).
Defensive (D): Delta moves against the local price interaction (Absorption/Soaking).
Utility: Standardizing the interpretation of footprint across all Synapse indicators.
7. Universal Plot Auditing
Engine: Kinetic flux interaction logic.
Logic: Allows auditing of any technical plot line (Moving Averages, VWAP, Anchored Levels) for touches, cross-overs, and structural fidelity.
Utility: Enables the entire Synapse forensic suite to be applied to any existing indicator's data lines.
Library Architecture: Synapse_VSync_Lib
Key Functions
f_get_tick_source(): Auto-detects SPX vs NQ for correct internal sourcing.
f_calc_tick_extreme(): High-fidelity internal pressure tracking.
f_vsync_stack(): Blends all pillars into a weighted consensus.
HUD Representation
Indicators utilizing the full stack display V-STACK (instead of V-SYNC), signifying that Market Internals and Structural structural depth are being calculated alongside volume flow.
License: Open Source (MIT License) Library

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
