Liquidity Surge Forecast with Markov Chains [TechnicalZen]Clear direction from Markov Chains confirmed projections.
Publishing this v3 with all the enhancements users desired and more. Thank you for your feedback.
What This Is
A 3D liquidity-and-momentum visualization that tells you where the market is heading right now, how long the current state is likely to hold, and when the next regime change is expected — all backed by a 2nd-order Markov chain that learns from your chart's own history.
Two independent systems — Money Flow (MFI-driven) and Price Current (Hull-VWMA or signed-ADX) — render as layered dotted carpets inside a bounded 3D box. When both systems agree on direction AND the Markov chain confirms, a whale surfaces — 🐳 bullish, 🐋 bearish. Chop gets a shark 🦈. Sideways drift gets a crab 🦀. And when the Markov chain predicts an imminent regime transition, a small hatchling whale appears before confluence forms.
The Current State row tells you, in one line, exactly what to expect next.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built On
Money Flow Dynamics Forecaster 3D — the original 3D layered-terrain architecture, MFI/RSI momentum carpet, Hull-VWMA price current carpet, slope-extrapolated forecast, rider + whale system.
Same 3D engine. Same dual-system confluence as the foundation. Then: regime classification, Markov statistical learning, current-state intelligence, and a live win-rate scoreboard on top.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Clear Direction — At A Glance
Most indicators show you lines and ask you to interpret. This one tells you plainly, in a single dashboard row:
What regime you're in right now — 🐳 Bull, 🐋 Bear, 🦈 Chop-zone, or 🦀 Sideways
How long it's been held — in bars
Whether the regime is BALANCED or IMBALANCED — based on the Markov chain's next-bar probabilities
When the next regime change is expected — in bars, computed from the stay-probability
Which direction the market leans next — the highest-probability non-current state
Example readouts:
"Current State: 🐳 Bull held 5b · IMBALANCED — stay 68%, change expected in ~3b · next lean: 🦀 Sideways"
"Current State: 🦀 Sideways held 12b · BALANCED — change imminent · next lean: 🐳 Bull"
"Current State: 🐋 Bear held 2b · IMBALANCED — stay 82%, change expected in ~5b · next lean: 🦀 Sideways"
No interpretation required. You read the line, you know where you are, you know what to expect.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
New Features — And Why Each Exists
1. Current State intelligence row
Why: Confluence indicators tell you WHEN a signal fires. They don't tell you "how solid is the current regime," "is a change coming," or "how long do I have before conditions flip." The Current State row answers all three in one glance.
The balanced / imbalanced distinction matters most:
BALANCED — the three next-bar probabilities are close to 1/3 each. No clear direction. A regime change is imminent (could go anywhere). Trade lighter, wait for resolution.
IMBALANCED — one direction dominates. Regime has a preferred path. The stay-probability tells you how long it's likely to persist; the next-lean tells you which direction it will tilt when it does flip.
The expected-bars-to-change is a geometric distribution mean: 1 / (1 − P(stay)). If a regime has 80% stay probability, it's expected to persist ~5 more bars. If 33%, it's expected to flip in ~1.5 bars.
2. 2nd-order Markov chain regime predictor
Why: the original whale logic was reactive — it fires after confluence forms. Markov is predictive — it learns your instrument's transition habits and uses them to gate and anticipate whale signals.
Pure statistics, no black box:
2nd-order — predicts the next regime from the pair of previous regimes, not just one. Captures patterns like "Chop → Sideways → 68% Bull next" that a 1st-order chain would miss.
Laplace smoothing (α=1) — every transition count gets a +1 pseudocount before normalization. Prevents "never observed → 0% forever" failure. Standard in real statistics.
Exponential recency decay — newer transitions count more than old ones (default 0.995/bar). Markets drift; stale history shouldn't dominate current prediction.
Duration conditioning — separate transition matrices for "current state held <5 bars" vs "held ≥5 bars." Regimes behave differently after they've been running. Real statistical sub-populations.
Confidence gating — if the current context has fewer than 10 observations, predictions are flagged low-n . No fabricated probabilities.
Maximum useful substance without gimmick. 3rd-order Markov would need thousands of regime transitions per cell to converge — doesn't happen on typical charts. 2nd-order is the ceiling before diminishing returns.
3. Dual-layer regime classification — Chop-zone 🦈 vs Sideways 🦀
Why: prior versions treated "not trending" as a single category. But there are two fundamentally different kinds of non-trending market:
🦈 Chop-zone — violent range-bound circling. Detected via classic Choppiness Index . Often precedes a sharp breakout.
🦀 Sideways — slow drift, flat angles across close/high/low at both short and long periods. Detected via angle consensus . Often indicates accumulation or distribution.
Showing them separately lets you read which kind of non-trending you're in. Different implications, different decisions.
4. Hatchling whales — pre-signal pre-whales
Why: the Markov chain lets us anticipate confluence before it forms. When the current state is Sideways AND Markov predicts Bull (or Bear) with confidence above the hatchling threshold, a small whale appears at the mid-forecast position — a heads-up that confluence is probabilistically coming.
Full whale (size.huge at forecast edge) = confluence is here now.
Hatchling whale (size.small at forecast mid) = confluence is probably coming soon.
Better entries on regime changes.
5. Markov-gated whale confirmation
Why: sometimes projected-confluence fires, but the instrument's historical pattern says "from this context, the opposite is more likely." That's exactly the setup a trader wants the indicator to filter out .
The gate is permissive — Markov blocks a whale only if it's confident AND its argmax points the opposite direction. Uncertainty or agreement = pass through. Reduces false confluence without over-filtering.
6. Regime-aware 4-column win-rate dashboard
Why: knowing how much time the instrument actually spends in each regime is as actionable as the signals themselves.
Four parallel columns:
🐳 Bull — confluence signals and win rate
🐋 Bear — same, opposite direction
🦈 Chop-zone — CI chop events and % of bars
🦀 Sideways — angle-sideways events and % of bars
If your instrument spends 80% of bars in Chop/Sideways, confluence will be rare — adjust timeframe or instrument. If Markov shows low-n on most bars, the matrix isn't populated yet — wait for more history before trusting predictions.
7. Session-aware for futures
Why: NQ, ES, CL and other overnight-session futures stamp their daily bar at session start , which is the previous calendar evening. Naive `dayofweek(time)` reads NQ's "Friday session" as Thursday. The indicator uses `time_close("D")` — the close of the daily bar, always on the trading date — so regime classification is correct for both cash equities (TSLA, SPY) and overnight futures (NQ, ES). Same indicator, any asset class.
8. Honest evaluation — next-signal MFE or directional close
Why: "close-at-N-bars" is dishonest. Price can move 2×ATR favorably then retrace — close-at-N logs that as a loss. MFE logs it as what it actually was.
Each signal is held pending until the next signal fires. It's a win if either:
The close at next-signal bar was directionally favorable vs entry, OR
The Maximum Favorable Excursion between the two signals reached the ATR-scaled threshold (default 0.5×ATR at entry bar)
Either qualifies. Transparent. Computed live. Disclaimer embedded in the dashboard footer.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
How to Read the Dashboard
┌────────────────────────────────────────────────┐
│ Liquidity Surge + Markov · Win Rate │
├────────┬────────┬─────────────┬───────────────┤
│🐳 Bull │🐋 Bear │🦈 Chop-zone │🦀 Sideways │
│42 sigs │38 sigs │7 events │12 events │
│31 wins │24 wins │120 bars │45 bars │
│73.8% │63.2% │23% │8.6% │
├────────────────────────────────────────────────┤
│Markov Forecast Next: 🐳 52% · 🦀 31% · 🐋 17% │
├────────────────────────────────────────────────┤
│Current State: 🐳 Bull held 5b · IMBALANCED │
│ stay 68%, change expected in ~3b · next: 🦀 │
├────────────────────────────────────────────────┤
│⚠ Not financial advice · Learned on chart hist │
└────────────────────────────────────────────────┘
Reading order:
Column data — how Bull/Bear signals have performed, how much time is spent in each regime
Markov Forecast Next — next-bar regime probabilities (with sample-size confidence)
Current State — the single-line answer to "where am I and what's next"
Footer — disclaimer + config
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
How to Use
Load with defaults.
Wait for ~100-200 bars of history. The Markov matrix needs observations to learn.
Read Current State first. It tells you what to expect.
If BALANCED → expect a regime change, trade light.
If IMBALANCED + change in ~N bars → plan around that window.
Watch for 🐳 / 🐋 full whales at the forecast edge — confluence + Markov confirmed.
Watch for small hatchling whales at forecast mid-point — Markov's early prediction of confluence coming.
Respect 🦈 (chop-zone) and 🦀 (sideways). Don't fight the regime.
Tune Hatchling Threshold and Win Threshold (×ATR) to your instrument and style.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Best Paired With Smart Candle Structures
This indicator answers whether and when to trust the flow. Smart Candle Structures answers where to act. Together: right place, right moment, measurable conviction, regime-aware.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Key Settings
Time Span — past bars rendered + forecast horizon (default 15)
Momentum Source — MFI (default) or RSI
Oscillator Type — Hull-VWMA (default) or signed-ADX
Slope Lookback — bars for slope that fires whales (default 4)
Evaluation Window — bars after a signal to measure MFE (default 5)
Win Threshold (× ATR) — minimum favorable excursion as a multiple of ATR (default 0.5)
Gate Whale by Choppiness — master toggle for 🦈 / 🦀 filter
CI Length / CI Threshold — classic Choppiness Index tuning
Angle Short / Long Period — angle-based sideways lookbacks
Angle Trend / Sideways Threshold — angle degrees defining trending vs sideways
Use Markov Predictor — master toggle for the 2nd-order chain
Count Decay per Bar — recency weighting for Markov counts (default 0.995)
Hatchling Threshold — minimum Markov probability to fire pre-whale (default 55%)
Dashboard Text Size — Tiny / Small / Normal / Large / Huge
Camera — yaw / pitch / scales for the 3D view
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Disclaimer
This is a visualization and analytical tool, not financial advice or a signal service. The Markov chain is trained on your chart's history — it describes what has happened on this instrument at this timeframe, not what will happen. Regime transition probabilities are learned estimates; past frequencies do not guarantee future outcomes. Markets are reflexive and can transition in ways the chain has never observed. Hatchlings, whales, sharks and crabs are visualizations of mathematical predictions — they do not constitute buy or sell recommendations. Trade with your own risk management. Every trade can lose.
The indicator echoes this disclaimer in its dashboard footer so you see it every time you read the chart. It's always there because it's always true.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Clear direction from learned regimes.
— TechnicalZen
Indicator

Conflux Engine | AnonycryptousConflux Engine | Anonycryptous
Description & user manual
Why this indicator is different?
Most signal indicators work the same way. One condition triggers. One signal fires. The trader either takes it or does not.
The problem is that a single condition — a crossover, a level break, a momentum read — is almost never enough to define a genuinely high-quality trade. Markets are too complex and too noisy for that.
Conflux Engine works differently.
It does not fire on one condition. It requires multiple independent market forces to align simultaneously before a signal appears. Structure has to agree. Volume has to confirm. Momentum has to support. Volatility has to be in the right zone. Session positioning has to be favorable. And optionally, the higher timeframe trend and the ribbon have to be aligned too.
Only when enough of these forces agree — and agree clearly — does the indicator produce a signal.
This is what confluence means in practice. Not one thing being right. Multiple independent things being right at the same time.
The result is fewer signals. But the signals that do appear carry more weight than anything a single-condition system can produce.
Important notice
Conflux Engine generates trading signals based on a multi-factor scoring engine.
These signals are not financial advice.
They do not predict the future.
They do not guarantee profitability.
They are a systematic read of current market conditions across multiple dimensions.
All trading decisions are made entirely by the user.
Always manage your own risk. Always apply your own judgment.
1. Overview
Conflux Engine is a scoring-based signal indicator for traders who want structured, high-conviction entries rather than frequent, noisy ones.
Six independent pillars evaluate the market continuously. Each pillar scores independently. The scores combine into a total out of 100. When the total exceeds the signal threshold — and the dominant direction leads the opposite direction by a minimum gap — a signal fires.
Additional hard gates can be enabled: an ADX noise filter to block signals during choppy markets, a VWMA filter to ensure macro trend alignment, a Supertrend filter for dynamic trend confirmation, and an Ultra Ribbon filter using 15 Hull Moving Averages for the fastest momentum read.
The result is an indicator that is selective by design. It is not built to fire constantly. It is built to fire well.
2. The six pillars
2.1 Structure
Evaluates market structure using swing pivot highs and lows. A higher high combined with a higher low defines a bullish structure. A lower high combined with a lower low defines a bearish structure.
This pillar answers the most fundamental question in trading: is the market making progress in a direction, or is it deteriorating?
Weight: up to 16 points.
2.2 Volume
Uses OBV slope via linear regression to determine whether volume is accumulating in the direction of price or diverging from it.
Rising OBV slope on a bullish signal means participation supports the move. Falling OBV slope on a bullish signal is a warning. This pillar separates moves with institutional backing from moves without it.
Weight: up to 16 points.
2.3 Momentum
Evaluates three independent momentum reads: KAMA position (a Kaufman adaptive moving average that adjusts its speed to market conditions), RSI relative to the 50 midline with slope direction, and Williams %R for price positioning within the recent range.
Two of three aligned scores partial points. All three aligned scores full points.
Weight: up to 16 points.
2.4 Liquidity
Detects sweep events — moments where price wicks beyond a recent swing high or low and closes back inside. These events mark liquidity grabs and often precede directional moves.
A confirmed bull sweep sets up a long bias context. A confirmed bear sweep sets up a short bias context. The context remains active for a configurable number of bars, decaying over time.
Weight: up to 16 points.
2.5 Volatility
Measures ATR relative to its own moving average to identify the volatility sweet spot. Signals during dead, flat markets carry less meaning. Signals during chaotically explosive moves are harder to execute cleanly. This pillar rewards the in-between: active, directional, manageable volatility.
Weight: up to 16 points.
2.6 Session
Evaluates price positioning within the current day's developing range. Price in the lower portion of the range (discount) favors long bias. Price in the upper portion (premium) favors short bias.
This pillar can be toggled independently from the session time filter — you can use session scoring without restricting signals to specific hours, or vice versa.
Weight: up to 20 points.
3. Hard gates
Beyond the six scoring pillars, Conflux Engine includes four optional hard gates. These do not add points. They block signals entirely when their condition is not met.
3.1 ADX noise filter
Blocks signals when ADX is below a configurable threshold. ADX measures trend strength. A low ADX means the market is ranging and directionless — exactly the environment where momentum signals fail most often. Default threshold: 35. Adjustable up to 100 for maximum selectivity.
3.2 VWMA filter
Price must be above the Volume Weighted Moving Average for long signals, and below it for short signals. The VWMA is slower than a standard EMA and reflects the average price weighted by volume — a more meaningful macro reference than a simple average. Default length: 200.
3.3 Supertrend filter
The Supertrend must confirm the signal direction. This is a dynamic trend line based on ATR bands that flips cleanly between bull and bear states. It acts as an additional structural confirmation that the trend environment supports the entry.
3.4 Ultra Ribbon filter
The fastest gate. Built from 15 Hull Moving Averages spanning a range of lengths. When the fastest HMA is above the slowest HMA, the ribbon is bullish. When below, bearish. Because Hull MAs minimize lag, this gate reacts to trend changes earlier than most moving average systems.
The ribbon also serves as a trailing stop option in the backtest — the slowest HMA tracks trend without being too reactive.
4. Signal scoring
Every bar, both a bullish and bearish score are computed from the six pillars. The scores are added together.
A signal fires when:
- The dominant score meets or exceeds the signal threshold (default 70)
- The dominant score exceeds the opposite score by at least the directional lead (default 20)
- All enabled hard gates are cleared
This two-condition check — threshold plus gap — prevents marginal signals from appearing when the market is ambiguous. Both bull and bear can score reasonably high during mixed conditions. The gap requirement ensures the dominant direction is meaningfully ahead.
Pillar weights are individually adjustable. The system allows traders to prioritize the factors most relevant to their trading style and instrument.
The Extreme Threshold (default 90) flags signals where the confluence score is exceptionally high. These are the highest-conviction setups in the system.
5. The Ultra Ribbon
The Ultra Ribbon is a 15-layer Hull Moving Average ribbon that sits on the chart as both a visual trend tool and a momentum gate. Three themes are available:
Classic — green and red. Clear, functional, no ambiguity.
Phantom — cyan and pink with purple exhaustion. A darker, stylized read of the same data. (the default)
Custom — full color control for bull, bear, and exhaustion states.
The ribbon color adapts dynamically. When the spread between the fastest and slowest HMA is wide relative to its historical average, the ribbon fades toward the exhaustion color — a visual signal that the trend may be overextended. When the spread is moderate, the ribbon shows its full trend color.
Candle coloring follows the ribbon's bull/bear state continuously, giving an immediate read of trend direction on every bar.
The dashboard accent color and signal indicators follow the active theme, giving the entire indicator a unified visual identity across chart and panel.
6. Multi-timeframe filter
When enabled, the MTF filter evaluates the trend on a higher timeframe using a 50-period EMA. If the higher timeframe trend agrees with the signal direction, a weight bonus is added to the total score. If it disagrees, no bonus is added — but the signal is not blocked unless the score falls below threshold as a result.
This behavior is intentional. The HTF filter adds weight to aligned signals without making every counter-trend setup impossible. It rewards confluence with the bigger picture without enforcing hard alignment.
Default timeframe: 240 (4-hour).
Default weight bonus: 20 points.
7. Backtest and performance tracking
Confluence Engine includes a built-in performance tracker that logs every signal, applies configurable stop and target multipliers based on the current regime, and tracks wins, losses, and win rate across the visible history.
Stop loss modes:
- ATR — a fixed multiple of ATR from the entry price. Simple and consistent.
- Pivot — stop placed at the most recent swing low (for longs) or swing high (for shorts). Respects structure.
- Supertrend — stop placed at the dynamic Supertrend level at the time of entry. Tighter and adaptive.
- Trailing (h15) — stop follows the slowest HMA of the Ultra Ribbon. Trends with the market and gives winners more room.
Target multipliers are adjustable for each regime: Scalp, Intraday, and Swing. The regime is determined by the current ADX value.
Recent log shows the last three trade results in R multiples. This gives a quick read on recent system performance without requiring a separate journaling tool.
Note: the backtest uses bar close logic and approximated fill prices. It is a directional performance reference, not a precise simulation. Session filtering does not retroactively apply to historical trades — enabling session filtering after a test period will affect forward signals but not past performance data.
8. Dashboard reference
The dashboard updates on every bar and shows:
- Header: indicator name and current timeframe
- Pillar rows 1–6: score per pillar, colored by direction
- HTF Trend: higher timeframe alignment and weight (when MTF enabled)
- Signal: LONG / SHORT / WAIT with direction color
- Win Rate: percentage of tracked signals that hit target
- Recent Log: last three results in R multiples
- Score: total confluence score out of 100
- Session: OPEN or FILTERED
The dashboard header and accent colors follow the active ribbon theme.
Tiny, Small, and Normal size options are available.
9. Settings reference
General Settings
- Signal Threshold: minimum score to trigger a signal (50–95, default 70)
- Extreme Threshold: score above which extreme confluence is flagged (80–100, default 90)
- Directional Lead: minimum gap between bull and bear score (default 20)
Multi-Timeframe Trend
- Enable MTF Filter
- HTF Timeframe (default 240)
- HTF Weight (default 20)
Quality Filters (Noise Reduction)
- Enable ADX Noise Filter
- Min ADX Value (0–100, default 35)
Trend Confirmation
- Enable VWMA Filter + length
- Enable Supertrend Filter + ATR length + multiplier
- Show/hide Supertrend and VWMA lines
Pillar Weights
- Individual weight for each of the six pillars
Session Filtering
- Filter Entries by Session (time gate)
- Enable Session Pillar Scoring (premium/discount scoring)
- Trading Session input
Trade Suggestions (ATR Multipliers)
- SL and TP multipliers for Scalp, Intraday, and Swing regimes
Ultra Ribbon
- Enable Ribbon Filter
- Show Ribbon on Chart
- Base Length and Length Step
- Theme: Classic / Phantom / Custom
- Custom color inputs (bull, bear, elite)
Backtest & UI
- Enable Performance Tracking
- Start Year
- Show Active Trade Lines
- Show Recent Trade Log
- Stop Loss Mode: ATR / Pivot / Supertrend / Trailing (h15)
UI Settings
- Show Dashboard
- Dashboard Position
- Dashboard Size: Tiny / Small / Normal
10. How to use
10.1 Initial setup
1. Load the indicator on your preferred chart and timeframe.
2. Select a ribbon theme that matches your visual preference.
3. Set the signal threshold based on your desired selectivity. Start at 70.
4. Set the directional lead. 15–20 is a balanced starting point.
5. Enable the hard gates relevant to your style. For intraday trading, ADX + Supertrend is a strong combination. For swing trading, VWMA + MTF adds macro context.
6. Configure the session scoring if you trade specific sessions. NY traders: set session to 1330–2000 UTC (or your local equivalent).
7. Set your backtest start year and stop mode preference.
10.2 Reading a signal
When a signal appears:
- Check the dashboard. Which pillars are active? A signal with Structure + Volume + Momentum all scoring is stronger than one carried primarily by Session and Volatility.
- Check the score. A signal at 72 with a 20-point gap is valid but tight. A signal at 88 with a 30-point gap is a high-conviction setup.
- Check the ribbon. Is it cleanly bullish or bearish? Is it near exhaustion color? Signals during ribbon exhaustion carry more risk.
- Check the hard gates. They cleared — but were they close? A signal that barely cleared ADX 35 is different from one with ADX at 55.
10.3 Managing entries
Confluence Engine does not tell you the exact entry price. It tells you when conditions align. Your entry technique — pullback, breakout, limit at structure — remains your decision.
Use the stop mode that fits your trade: ATR for consistency, Pivot for structure-respect, Supertrend for dynamic adaptation, Trailing h15 for trend trades you want to hold.
10.4 Interpreting win rate
The built-in win rate is a useful reference, not a guarantee of future performance. A 65% win rate over 50 signals on a specific asset and timeframe tells you the system has been profitable in that environment. It does not guarantee the next signal wins.
Win rate should always be evaluated alongside average RR. A 60% win rate at 2R average beats a 70% win rate at 0.8R average. Use the recent log and the trade lines together to assess both dimensions.
10.5 Optimizing settings
If you see too many signals: raise the threshold, raise the directional lead, raise the ADX minimum, or enable additional hard gates.
If you see too few signals: lower the threshold slightly, reduce the directional lead, or disable one or two hard gates.
Do not optimize purely for win rate without considering signal frequency. A system that fires once per week at 80% win rate is different in practice from one that fires daily at 65%. Both can be profitable. Choose what fits your trading style.
11. Timeframe guide
1m–5m — Ultra Ribbon filter on, ADX threshold 30–40, Supertrend on, session scoring on. Focus on fast momentum signals during active sessions.
15m–30m — Full filter stack recommended. Threshold 70–75. Strong balance of frequency and quality.
1H–4H — VWMA and MTF filter add significant value. Threshold 75–80. Fewer signals, higher conviction.
Daily — Disable session scoring. Enable VWMA and MTF only. Use as swing context, not scalp tool.
12. What this indicator does not do
- Does not predict price direction with certainty
- Does not guarantee profitability
- Does not replace your own risk management
- Does not account for news events, gaps, or liquidity voids
- Does not track open positions in real time
- Does not connect to any broker or execution system
- Does not replace the Risk Management Engine for position sizing and account compliance
For position sizing, drawdown compliance, and trade logging, pair with Risk Management Engine | Anonycryptous.
For complete session analysis and market context, pair with Environment | Anonycryptous.
Together, the three tools cover strategy context, signal generation, and risk execution — a complete framework for structured trading.
13. Disclaimer
This indicator is provided for educational and informational purposes only. Nothing in this document constitutes financial advice or any form of recommendation.
All trading decisions are made entirely by the user. The indicator provides signal analysis based on configurable parameters — the relevance of any output depends on how those parameters are set and the market conditions in which the indicator is used.
Trading financial instruments involves substantial risk of loss. Past performance of the backtest function 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 or any content in this manual.
Indicator

Liquidity Surge Forecast with Win Rate [TechnicalZen]Publishing this v2 with Proven performance dashboard for scalpers.
What This Is
A 3D liquidity-and-momentum visualization with a built-in, MFE-verified win-rate dashboard.
Two independent systems — Money Flow (MFI-driven) and Price Current (Hull-VWMA or signed-ADX) — render as layered terrains inside a bounded 3D box. When both systems agree on direction, a whale surfaces: 🐳 bullish, 🐋 bearish. Every whale is tracked. Every outcome is scored. The dashboard prints the running win rate on your chart, on your instrument, on your timeframe. Live.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built On Money Flow Dynamics Forecaster 3D
This is the next iteration. Same solid confluence-detection engine, rebuilt rendering, and a performance dashboard on top for visual proof of how the system is doing.
Improvements over v1:
Win-rate dashboard with ATR-scaled MFE — every 🐳 / 🐋 signal is now tracked and scored. Each signal resolves when the next one fires, judged by directional close or MFE ≥ 0.5 × ATR. No more hand-waving about "does this actually work."
Seamless carpet terrain — layered strips share color between fill and outline. No visible seams; the terrain reads as one continuous surface.
Dotted wave contours — each HMA layer traces as a dotted line along its depth, like isobars on a topographic map. Wave shape is visible at a glance.
Depth fog gradient — far Z layers tint toward atmospheric navy-violet. Real 3D depth perception without extra wireframe.
Dotted wireframe, emphasized horizon — box edges and grids are dotted (quieter), while the Y=0 tide line is kept solid and bold as the one structural anchor that should stand out.
Unified ADX-mode terrain — ADX mode now renders a proper 12-layer terrain (v1 fell back to a single-ribbon). Both oscillator modes share identical visual grammar.
Cleaner defaults — Yaw −20°, Pitch 15°, axis markers off, back-wall grid off, mesh columns removed. Less visual noise out of the box.
Bug fixes — ring-buffer wrap when Slope Lookback > Time Span ; ADX-mode second-signal for the emoji confluence check; dead inputs cleaned up.
If you're coming from v1, interpretation is identical — same riders, same whales, same color semantics. The new dashboard simply gives you a way to measure how often confluence actually pays off.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The Win-Rate Dashboard — Proof, Not Claims
Most indicators claim a success rate. This one measures it.
Every 🐳 / 🐋 signal is recorded at its first bar of entry and held pending — until the next signal fires. At that moment the indicator judges the previous signal by two criteria :
Directional close — did price close favorable at the next signal's bar? (bull: close > entry. bear: close < entry.)
MFE ≥ ATR threshold — did the favorable excursion between the two signals reach 0.5 × ATR (at the entry bar)? ATR multiplier is tunable.
Either criterion qualifies as a win. Direction alone is a win. MFE alone is a win. No fixed evaluation window — signals are judged against reality when the regime actually changes.
The threshold is volatility-relative : quiet instruments need small moves, volatile ones need larger moves. Always calibrated to the instrument, never arbitrary.
The dashboard shows:
Total bull and bear signals fired (resolved ones only — the most recent signal is pending until the next)
How many won
Rolling win rate, traffic-lit — green ≥ 60%, yellow 40–60%, red < 40%
Your ATR multiplier, printed right on the table
Why next-signal evaluation? Because fixed bar counts are arbitrary. A regime lasts as long as it lasts. When the next whale flips, the previous whale's journey is over — and that's the fair moment to judge it. Entry quality and regime persistence are both captured naturally.
The result: you don't trust marketing, you trust your own data . Every number is computed from your chart, right now, with your settings. Change the ATR multiplier, change the timeframe — the dashboard updates. This is how an indicator should prove itself.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The Signal
Confluence requires agreement between two fundamentally different witnesses:
Money Flow — volume-weighted momentum (MFI). 20 Hull-smoothed layers (HMA 3 → HMA 60). Detects accumulation or distribution before price has to move.
Price Current — volume-weighted directional pressure (Hull-VWMA 2-bar slope, or signed-ADX HMAs). 12 layers. Detects committed displacement of price.
Money Flow leads. Price Current confirms. When both middle-layer slopes point the same way, a whale fires. That is the signal worth trading — not a crossover, not a threshold break, but two independent systems aligning.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
What You See
Layered dotted waves — each HMA smoothing horizon, stitched into a 3D carpet. Depth fog tints far layers into atmospheric haze for real 3D perception.
Forecast terrain — each layer slope-extrapolated with exponential decay into the future half of the box.
🏄♂ Surfer — rides the Money Flow leading edge (the impulse).
⛵ Sailboat — rides the Price Current leading edge (the trend).
🐳 / 🐋 Whale — surfaces at the forecast edge when both slopes agree. Confluence confirmed.
Dashboard — running win rate, always visible.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
How to Use
Load with defaults. Switch chart to Volume Candles.
Check the dashboard — what is your current win rate on this instrument / timeframe?
Tune Win Threshold (× ATR) to match how strict you want the measurement to be — 0.3×ATR = loose, 0.5×ATR = balanced (default), 1.0×ATR = strict.
Watch for 🐳 or 🐋. They are rare by design.
On a whale, align with the direction. On no whale, stand aside. Let the dashboard keep scoring.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Best Paired With Smart Candle Structures
This indicator tells you whether and when to trust the flow. Smart Candle Structures tells you where to act — order blocks, fair-value gaps, liquidity sweeps, BOS / CHoCH zones.
Together: the right place, at the right moment, with a measurable win rate behind it.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Key Settings
Time Span — past bars rendered and forecast horizon (default 15)
Momentum Source — MFI (default) or RSI
Oscillator Type — Hull-VWMA (default) or signed-ADX
Slope Lookback — bars used to compute the slope that fires whales (default 4)
ATR Length — lookback for volatility scaling the win threshold (default 14)
Win Threshold (× ATR) — minimum favorable excursion between signals, as a multiple of ATR at the entry bar (default 0.5 × ATR)
Depth Fog Strength — atmospheric depth gradient on far layers (default 0.55)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Disclaimer
This is a visualization and analytical tool, not financial advice or a signal service. The dashboard measures what has happened on your chart; it does not predict what will. Markets are reflexive. Past performance does not guarantee future results. Trade with your own risk management. Every trade can lose.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Confluence you can measure.
— TechnicalZen
Indicator

Reaction Efficiency Meter [AGPro Series]Reaction Efficiency Meter
A pure observation lens that scores every pivot-based support and resistance reaction from 0 to 100 and classifies it as WEAK, LIMITED, FAIR, STRONG or EFFICIENT. Designed to answer one specific question on any chart: how well did price actually react when it touched that level? Not a strategy, not a signal generator — a quality meter for S/R reactions.
🔹 Overview
Reaction Efficiency Meter watches pivot-based support and resistance levels and, the moment price touches any of them, opens a fixed reaction window to observe what happens next. At the end of that window the reaction is scored from 0 to 100 using four weighted components — strength, speed, cleanliness, follow-through — and then classified into a five-tier hierarchy. The result is printed directly on the chart as a color-coded label (BULL or BEAR), while a side panel keeps a live summary of the last bullish reaction, last bearish reaction and the currently active event window. The indicator is built as a post-event quality lens for traders who already work with horizontal levels, pivot zones, or structural S/R and want an objective readout of reaction quality instead of a subjective eyeball assessment.
🔸 Unique Edge
Most support and resistance indicators stop at drawing lines or zones. Reaction Efficiency Meter goes one step further and evaluates the reaction itself on a fixed, reproducible scale. Four distinct quality dimensions are blended into a single 0-100 score, and a separate adverse-excursion penalty reduces the score when price violated the level before reacting. The result is a transparent number tied to a five-tier verbal classification (WEAK / LIMITED / FAIR / STRONG / EFFICIENT), which makes reactions directly comparable across symbols and timeframes. There are no repainting signals, no lagging smoothers and no hidden strategy logic — the scoring is purely descriptive and fires only after the reaction window closes on a confirmed bar.
🔹 Methodology
The engine has four clear stages:
1. Level detection. Classic pivot highs and lows are tracked as dynamic resistance and support. Only the most recent N levels per side stay active — older ones are retired, so the chart never clutters.
2. Touch detection. A touch is registered when the bar's range enters a tolerance band around any active level (expressed in ATR units so the logic auto-scales across volatility regimes). A cooldown of N bars between tests on the same level prevents noise from restarting an event too quickly.
3. Event tracking. Once a touch fires, a reaction window of N bars is opened. During that window the script tracks (a) the best favorable excursion in ATR units, (b) the worst adverse excursion in the wrong direction, (c) which bar produced the peak favorable move, (d) the net retained move at window close.
4. Scoring and classification. At window close the four components are combined with a penalty:
• Strength (0-35): best favorable excursion relative to 1.5 ATR reference.
• Speed (0-20): how early the peak favorable bar occurred inside the window.
• Cleanliness (0-20): reduced linearly by adverse excursion.
• Follow-through (0-15): how much of the peak move was retained at window close.
• Adverse penalty (up to -15): applied when price broke through the level.
Final score is clamped 0-100 and mapped to: WEAK (<25), LIMITED (25-44), FAIR (45-64), STRONG (65-79), EFFICIENT (80+).
🔸 Signals & Alerts
The indicator does not emit buy or sell alerts. Its outputs are purely descriptive:
• A color-coded reaction label (BULL or BEAR with score and tier) plotted after each completed window.
• Active zone rectangle and reaction corridor drawn around the touched level while the window is open.
• Touch markers on the bar where a new event begins.
• Live status tag showing BULL WINDOW x/N or BEAR WINDOW x/N during an active event.
• A stateful side panel with Status, Last Bull, Last Bear, Window progress and Mode rows.
All visuals render on confirmed bars only, so the score and tier of a completed reaction do not change afterwards.
🔹 Key Inputs
• Pivot Length — bar distance used to qualify pivot highs and lows.
• Max Active Levels / Side — how many recent resistance and support levels stay active.
• ATR Length — volatility reference for tolerance, corridor depth and scoring.
• Touch Tolerance (ATR) — how close to the level a bar must come to count as a touch.
• Reaction Window Bars — fixed observation length per event.
• Minimum Bars Between Tests — cooldown on the same level.
• Reaction Corridor Depth (ATR) — vertical span of the reaction corridor drawn during the window.
• Display group — toggles for levels, tags, markers, labels, active zone, corridor, panel.
• Theme & Layout — panel theme (Auto / Dark / Light), position, font size, line width and opacity controls.
🔸 How to Use
The indicator is intended as a companion lens, not a standalone system. Typical workflows include:
• Confluence study. Compare reaction scores at different levels on the same chart to see which zones historically produced stronger reactions.
• Bias assessment. Watching whether BULL and BEAR labels on a given timeframe skew toward higher or lower tiers can inform directional bias for discretionary decisions made elsewhere.
• Framework validation. Add it on top of an existing S/R, order block or pivot framework to quantify whether the levels those tools produce actually generate efficient reactions.
• Multi-timeframe scanning. Running the indicator on multiple timeframes shows where strong reactions cluster — often useful for context, not entry timing.
The tool is descriptive and retrospective. It is not designed to replace risk management, structural analysis or the user's own trading plan.
🔹 Limitations & Transparency
• The reaction window is fixed per event. Very fast V-reversals may still register as WEAK if most of the favorable move happens after the window closes; conversely, slow grind reactions may score lower on the Speed component even when the net outcome is good.
• Pivot-based levels are, by definition, confirmed with a lag equal to Pivot Length bars.
• Scores are descriptive — a STRONG tag on a past reaction does not imply that the next test of the same level will also react strongly.
• All scoring uses confirmed-bar logic, so the indicator is non-repainting by design.
🔸 Risk Disclosure
This indicator is provided for educational and analytical purposes only. It is not financial advice, not a trade signal generator, and not a recommendation to buy or sell any instrument. Trading involves substantial risk of loss. Past reactions do not guarantee future reactions. Users are solely responsible for their own trading decisions and risk management. Indicator

Reference Price Operating Map [AGPro Series]Reference Price Operating Map
🔹 OVERVIEW
Reference Price Operating Map is a focused overlay that consolidates the four most universally watched reference prices — Daily Open, Weekly Open, Monthly Open, and Previous Close — into a single operating map. It tracks how price interacts with each level in real time, attributes control to the reference currently leading price action, groups overlapping references into confluence clusters, and fades distant context so the active map stays clean.
The chart answers one direct question at a glance: which reference is controlling the session right now.
Built for intraday operators, swing traders, and position traders who anchor their bias to session and period opens. Works on any symbol and any intraday or daily timeframe.
🔸 WHAT MAKES IT DIFFERENT
Most open-line indicators simply draw horizontal lines for Daily, Weekly, Monthly, and Previous Close and stop there. This script goes further by adding four layers on top of those lines:
• State tracking — each reference is classified as Untouched, 1st Touch, Tested, Held, Reclaimed, or Rejected, and the state updates bar by bar as price interacts with the level.
• Control attribution — a proximity-weighted scoring system selects one reference as the current "controller" of price action, highlighted with a dominant-row background in the panel and a thicker line on the chart.
• Confluence grouping — when two or more references sit within 0.5 ATR of each other, they collapse into a single cluster label (for example "D-Open + W-Open + PClose") instead of stacking separate labels on top of each other.
• Distance-aware rendering — references far from current price are demoted to a thin gray zone with a dotted line, keeping them visible as structural context without crowding the active map.
The engine also includes a far-aware state machine: references that price has not meaningfully engaged stay in the Untouched state instead of being forced into misleading classifications.
🔷 METHODOLOGY
Reference levels are pulled directly from the higher timeframe open (Daily, Weekly, Monthly) and the previous daily close using lookahead-safe security calls on confirmed bars.
Distance classification uses ATR(14) as a volatility scale. A reference is considered "near" when price is within a configurable ATR multiple and "far" when it exceeds the far-distance threshold. This adapts the map to both low-volatility ranges and high-volatility expansions without manual tuning.
State transitions are driven by a finite state machine with six states. Key transitions:
• Untouched → 1st Touch when price enters the touch zone (default 0.25 ATR) or wicks through it.
• 1st Touch / Tested → Held when price moves cleanly away from the level on the same side.
• 1st Touch / Tested → Reclaimed when price closes on the opposite side (optionally requiring multi-bar confirmation).
• Any engaged state → Rejected when a large wick rebounds from the level with more than 60 percent wick ratio.
• Held / Rejected → Reclaimed on a confirmed cross.
The control score combines proximity (how close price is to the reference relative to ATR) with a state weight (Reclaimed and 1st Touch score highest, Held scores lowest). The reference with the highest score is tagged as controller; if no reference has meaningful engagement the panel reports No Active Control.
🔶 SIGNALS AND ALERTS
Three alert conditions are exposed:
• Reference Touched — fires the first time any reference is touched in its period.
• Reference Reclaimed — fires when any reference transitions into the Reclaimed state.
• Reference Rejected — fires when a large-wick rejection bar is registered at any reference.
On-chart, first-touch diamond markers are placed on recent bars to make period engagement easy to spot in screenshots and reviews. The panel footer reports the current controller and updates in real time.
🔹 KEY INPUTS
Reference Lines — independent toggles for Daily Open, Weekly Open, Monthly Open, and Previous Close.
Display — Show Active References Only (hide untouched references for a cleaner map), Strict Reclaim Confirmation (require multiple confirmation bars for Reclaim), Label Density (Minimal shows only the dominant reference, Normal shows all active, Detailed appends state names to labels), Show Reaction Bands, Mark First Touches.
Panel — position (four corners), font size, label font size. All default to Normal per AG Pro Series visual standards.
Sensitivity — Touch Threshold (ATR multiple defining a touch), Reclaim Confirm Bars (strict-mode confirmation count), Band Width (reaction band width in ATR), Far Distance (ATR multiple beyond which references are faded to context).
All parameters are ATR-scaled so defaults transfer cleanly across instruments and timeframes.
🔸 HOW TO USE
1. Open the panel and read the controller. If the footer shows "D-Open Controls" with a Bull bias, intraday operators treat Daily Open as the session pivot and trade with that bias until the state changes.
2. Watch the confluence label. A grouped label such as "D-Open + W-Open + PClose" means three references are stacked — a cluster of this kind is typically a higher-conviction zone than a single isolated reference.
3. Use state transitions as triggers. A Rejected state at Monthly Open during a rally is a different signal than a Reclaimed state at the same level. The state tells you what just happened at the level, not just where the level is.
4. Use the far zone as context. A Monthly Open plotted as a gray zone five ATR away from price is not an execution level — it is orientation. When price approaches it, the zone transitions into an active band and the state engine re-engages.
5. Combine with your own structure work. This map is designed to sit underneath price action analysis, order flow, or trend tools, not replace them.
🔷 LIMITATIONS AND TRANSPARENCY
• This is an indicator, not a strategy. No entries, exits, position sizing, or backtesting is performed.
• Reference prices are sourced from higher timeframe candles using confirmed lookahead. Results on intraday charts should match the official Daily, Weekly, and Monthly opens of the exchange the chart is connected to.
• State classifications are heuristic. They describe observed behavior at each level in historical terms and should not be read as forecasts. A Reclaimed state is a description of what just happened, not a prediction of what comes next.
• ATR-based thresholds mean the map adapts to volatility but can feel different on very low-volume or very thinly traded instruments. Adjust the touch threshold and far distance inputs if defaults feel too loose or too tight.
• Confluence grouping uses a 0.5 ATR window. On very wide-range days this window can become large; on very narrow ranges it can feel tight.
🔶 RISK DISCLOSURE
This indicator is provided for informational and educational purposes only. It does not constitute financial advice, investment advice, trading advice, or any other form of advice. Past performance of any level, state, or methodology shown on the chart does not guarantee future results. Trading and investing involve substantial risk of loss. You alone are responsible for your decisions, for managing your risk, and for complying with the laws and regulations that apply to you. Test any tool on a demo account or in paper trading before using it with real capital. Indicator

Cross-Timeframe Value Overlay [AGPro Series]Cross-Timeframe Value Overlay
🔷 Overview
Cross-Timeframe Value Overlay projects up to three independent rolling value
bands — one per selected higher timeframe — onto a single chart. Each band
marks the region where price has been accepted on that timeframe over a
configurable lookback window, built from a volume-weighted or mean-based
anchor surrounded by an ATR envelope. A built-in state engine then classifies
the relationship between bands in real time as ALIGNED, OVERLAP, CONFLICT or
NEUTRAL, so multi-timeframe context becomes readable in a single glance.
🔷 What Makes This Different
Most multi-timeframe scripts stack indicators or draw fixed HTF pivots. This
tool builds a *rolling* value envelope on each timeframe and then compares
them structurally rather than numerically.
• Three independent MTF value bands on one chart, each with its own lookback
context and ATR-sized width.
• Dedicated state engine with four discrete regimes — ALIGNED / OVERLAP /
CONFLICT / NEUTRAL — based on pairwise band geometry, not on raw price.
• Dynamic z-order rendering that automatically draws the slowest timeframe
behind faster ones, and an opacity hierarchy that keeps the slowest band
lightest and the fastest band darkest. Larger structures frame smaller
ones instead of obscuring them.
• Rank-based label placement that prevents collisions when bands overlap in
price, so labels remain readable even during OVERLAP or ALIGNED states.
• Box width adaptively capped so a Daily band cannot swallow a 1H chart.
• Dominant-TF tracking that always reports the highest enabled timeframe and
the price position relative to its band.
🔷 Methodology
For each enabled timeframe the script computes:
• Anchor = VWAP (volume-weighted HLC3) over the rolling window, or HLC3 SMA
when volume data is unreliable.
• Half = ATR(window) multiplied by the configured band-width factor.
• Band = .
Values are requested with lookahead disabled, so historical band positions
reflect only data that was available at the time.
The state engine then evaluates:
• Pairwise overlap — do any two bands share a price region?
• Alignment — are all enabled band centers clustered within a strictness
threshold (Loose 1.2 ATR / Standard 0.8 ATR / Strict 0.4 ATR) of their
mean?
• Disjoint count — how many pairs are fully separated?
These three checks map deterministically to one of four states on every bar.
🔷 Signals and Alerts
Three built-in alert conditions cover the most useful MTF transitions:
• Value Overlap Detected — a new pairwise overlap forms between any two
enabled timeframes.
• Higher-Timeframe Value Lost — price leaves the dominant HTF value band
after being inside it on the previous bar.
• Cross-Timeframe Conflict — the state engine transitions into CONFLICT,
indicating that at least one enabled pair of bands has become fully
disjoint.
All alerts are wired as alertcondition() entries so they can be combined
with the standard PulseWire alert workflow.
🔷 Key Inputs
• Timeframes — enable/disable up to three HTFs and pick any resolution for
each (defaults 1H / 4H / Daily).
• Rolling Window — 10 to 500 bars for the anchor and ATR.
• Band Width — 0.25 to 3.0 ATR half-width.
• Anchor Method — VWAP + ATR or HLC3 MA + ATR.
• Alignment Strictness — Loose, Standard or Strict threshold for the state
engine.
• Show Only Overlapping Bands — hides isolated bands to keep confluence
zones visible.
• Visuals — per-TF color, base opacity, right-edge label toggle, label font
size.
• Panel — position, font size and master visibility switch.
🔷 How to Use
• Read the state first. ALIGNED = all enabled timeframes agree on a common
value region; OVERLAP = partial confluence; CONFLICT = disjoint
timeframes; NEUTRAL = fewer than two active bands or indeterminate.
• Read the Dominant row to see which timeframe currently carries the most
structural weight.
• Read the per-TF rows to locate price as Above / Inside / Below each band.
• Combine the three in a single pass: for example, price Above a dominant
HTF band while the state is CONFLICT is a very different context from
price Inside an ALIGNED stack.
• Pair with your existing entry framework (breakout, mean-reversion, order
flow, trend-following) — this tool is a context layer, not an entry
signal generator.
🔷 Limitations and Transparency
• Box-based rendering is capped at three concurrent bands by design to keep
the chart readable.
• All values are computed with lookahead disabled. Bands update when the
corresponding HTF bar closes, which is the expected behavior for any MTF
tool.
• Volume-weighted anchoring depends on the quality of the instrument's
volume feed; on markets with unreliable volume, switch to the HLC3 MA
method.
• This script is an analytical overlay. It is not a strategy, does not
produce buy/sell signals, and makes no forecasting claim.
🔷 Risk Disclosure
Trading involves substantial risk. This indicator is provided for research
and educational purposes only and does not constitute financial advice.
Past market behavior does not guarantee future results. Always perform your
own due diligence and use proper risk management.
Open-source under Mozilla Public License 2.0. Indicator

Setup Quality Scorecard [AGPro Series]Setup Quality Scorecard
Setup Quality Scorecard grades every bar on a transparent 0-100 scale across ten independent confluence dimensions. Instead of another signal generator, it is a quality filter: it tells you how strong the current setup is, which factors are firing, and how often similar past setups have followed through. Works on any symbol, any timeframe.
🔹 OVERVIEW
Every trader has the same question before pulling the trigger: "Is this setup actually good, or am I forcing it?" Setup Quality Scorecard answers that question with a single auditable number. The composite score blends ten orthogonal factors — trend, momentum, volume, volatility, structure, S/R proximity, divergence, candle quality, session context, and higher-timeframe alignment — into a weighted 0-100 quality rating. Bars scoring above the A-Tier threshold are marked with support/resistance-style zones on the chart, so high-quality setup regions stay visible even as the market moves on.
🔹 UNIQUE EDGE
Most quality indicators hide their internals behind a black-box algorithm. This one is fully transparent. Every factor exposes its own 0-10 score in the panel, every factor weight is user-adjustable, and every historical signal is evaluated against a forward-looking hit-rate test. There are no secret filters, no proprietary confidence bands, and no cherry-picked backtest. If a setup scores 87, you can see exactly which factors contributed and which did not.
🔹 METHODOLOGY
Each of the ten factors is computed independently on the current bar and normalized to a 0-10 scale:
1. Trend Alignment — EMA 20/50/200 stack plus slope confirmation
2. Momentum — RSI zone position combined with 3-bar RSI delta
3. Volume Context — relative volume versus 20-period SMA, calibrated for real-world distribution
4. Volatility Regime — ATR percentile over the last 100 bars, favoring mid-range regimes
5. Structure — HH/HL or LH/LL confirmation via recent pivots
6. S/R Proximity — ATR-normalized distance to the nearest pivot level
7. Divergence — price-versus-RSI regular divergence captured at pivot time
8. Candle Quality — body-to-range ratio and wick balance
9. Session Context — active trading session weighting (London/NY overlap prioritized)
10. HTF Agreement — graduated higher-timeframe alignment scoring (full stack, partial stack, opposed regimes)
The ten factor scores are weighted by user-adjustable coefficients, summed, and normalized to produce the final 0-100 composite. Tier labels (S / A / B / C / D) are assigned against user-configurable thresholds.
🔹 SIGNALS AND ALERTS
When a bar crosses into A-Tier or higher, a zone is drawn using support/resistance-style geometry (body plus a small ATR cushion). Zones merge automatically when adjacent qualifying setups share the same directional bias, preventing chart clutter. Each zone is labeled with its tier and score in compact A·83 format, with a dotted leader line connecting the label to the zone edge.
Four built-in alert conditions are exposed:
- S-Tier Setup Detected (score crosses the S-Tier threshold)
- A-Tier Setup Detected (score crosses the A-Tier threshold)
- New Bullish Quality Setup (first A-tier bullish bar in a run)
- New Bearish Quality Setup (first A-tier bearish bar in a run)
🔹 KEY INPUTS
- General: Higher timeframe reference, rolling history window, forward evaluation bars
- Thresholds: S / A / B / C tier cutoffs, fully adjustable
- Factor Weights: ten independent sliders, 0.0 to 2.0, tune the scorer to your style
- Zones: adaptive extend (auto or manual), merge window, max height cap in ATR units, maximum age
- Labels: on-chart label mode (A-Tier only, S-Tier only, off), size presets
- Panel: position, size, factor breakdown toggle
🔹 HOW TO USE
Start with defaults and observe for a full session on your chart. Trend traders should raise the Trend and HTF Align weights. Reversal traders should raise Divergence, Structure, and S/R Proximity. Use the Active count in the panel as a quick filter: fewer than three factors above seven generally means a weak setup regardless of composite score. Use the hit-rate number to sanity-check whether your current configuration is performing on this asset and timeframe — if it is below 50 percent on a large sample, revisit your weight assignments.
🔹 LIMITATIONS AND TRANSPARENCY
The hit-rate metric is backward-looking. It measures how often past A-tier signals produced a one-ATR directional move within the next N bars. It is not a forecast of future performance. A hit rate with fewer than twenty signals is flagged with an info marker because the sample size is not yet statistically meaningful. Factor definitions are static — they do not adapt to regime changes automatically. Session weighting assumes standard crypto and equity session times in UTC; adjust if you are trading exotic hours. The script uses pivot-based structure, which lags by the pivot length on the right edge of the chart (a standard trade-off for noise suppression).
🔹 RISK DISCLOSURE
This indicator is an analytical tool, not financial advice. It does not predict future price movements. A high quality score does not guarantee a winning trade. Past performance of any displayed signal does not indicate future results. Always use proper risk management and position sizing. Never trade with capital you cannot afford to lose. Indicator

Take Profit Planner [AGPro Series]Take Profit Planner
🎯 **Overview**
**Take Profit Planner ** is a precision exit-planning tool that transforms trade management from guesswork into a structured process. It builds a disciplined profit ladder around any trade idea — whether you are a scalper managing rapid exits or a swing trader stepping out of positions over days — and keeps the entire plan on one chart with live progress tracking.
Most traders agonize over entries and leave exits to improvisation. This tool flips that habit: define your anchor, choose your calculation style, and the script projects a complete multi-tier exit map with stop loss, position-sizing allocation, confluence scoring, and real-time hit tracking.
🪜 **What Makes It Different**
Unlike conventional take-profit indicators that plot a single ATR-based target or fixed R:R pair, this tool offers a **multi-layer exit architecture**:
▫️ **Three Calculation Modes** — Fibonacci Extensions, R-Multiples, or Hybrid Confluence in a single tool
▫️ **Three Anchor Sources** — Manual price inputs, auto pivot detection, or recent S/R zone anchoring
▫️ **Confluence Scoring** — In Hybrid mode, every target receives a ★ / ★★ / ★★★ rating based on how many independent level types (Fib, round number, pivot S/R) cluster at that price
▫️ **Position-Sizing Layer** — Allocate a custom percentage of your position to close at each tier, with automatic weighted P&L calculation
▫️ **Live Progress Tracking** — Visual hit confirmation (✓), realized vs expected profit, and a six-state status ladder: ACTIVE → PROGRESSING → IN PROFIT → NEAR COMPLETE → ALL TPs HIT → STOPPED OUT
🧠 **Methodology**
▫️ **Anchor Detection** — The script identifies a trade's origin (Swing) and entry point using one of three methods. Auto Pivot uses a confirmable `pivothigh`/`pivotlow` with configurable length. Auto S/R uses the most recent swing extremes as structural anchor points. Manual lets you input exact prices.
▫️ **Direction Inference** — LONG or SHORT is determined automatically from the geometry: Entry above Swing → LONG, Entry below Swing → SHORT. No manual flag needed.
▫️ **Stop-Loss Logic** — Three modes: ATR Multiple (volatility-adaptive), Swing Point (structural), or Fixed Percent (disciplined). In Manual anchor mode, you set the stop directly.
▫️ **Target Projection** — Fibonacci mode projects targets from the Anchor→Swing leg using standard extensions (1.272, 1.414, 1.618, 2.000, 2.618). R-Multiple mode multiplies the stop distance by risk factors (1R, 2R, 3R, 5R, 8R). Hybrid uses Fibonacci as base and scores confluence.
▫️ **Confluence Algorithm** — For each Fibonacci target, the script checks proximity to: (1) the nearest psychological round number within 0.15 ATR, (2) the most recent pivot high within 0.2 ATR, (3) the most recent pivot low within 0.2 ATR. Each alignment adds one point to the base Fibonacci score.
▫️ **Hit Detection** — On every confirmed bar, the script checks whether price crossed each un-hit target. Hits are persistent until the anchor changes by more than 1 ATR, at which point the plan resets.
🔔 **Signals & Alerts**
▫️ **TP Hit** — Fires once per bar when price touches a specific target. Alert message includes tier number, price, and direction.
▫️ **SL Hit** — Fires once when stop-loss is breached.
▫️ **All TPs Reached** — Fires once when the full ladder is completed.
All alerts are non-repainting and trigger only on confirmed bars.
🎛️ **Key Inputs**
▫️ **Calculation Mode** — Fibonacci Extensions, R-Multiples, or Hybrid Confluence
▫️ **Anchor Source** — Manual Price, Auto Pivot High/Low, or Auto Recent S/R
▫️ **Pivot Length** — Bars of confirmation for automatic pivot detection (default 10)
▫️ **Stop-Loss Mode** — ATR Multiple, Swing Point, or Fixed Percent
▫️ **Number of TP Tiers** — 2 to 7 (default 5)
▫️ **Fibonacci / R-Multiple Levels** — Fully customizable per tier
▫️ **Allocation %** — Position-sizing percentage per tier
▫️ **Zone Half-Width (ATR)** — Vertical thickness of target zones in ATR units
▫️ **Panel Location & Theme** — Six positions, Dark or Light theme
▫️ **Label & Panel Font Size** — Tiny, Small, Normal, Large
💡 **How to Use**
▫️ **Scalper Workflow (Fast Exits)** — Set Calculation Mode to R-Multiples, tier count to 3, allocations to 50 / 30 / 20. Use Auto Pivot with pivot length 5–8 on lower timeframes. Exit weighted-partials at each R-level.
▫️ **Swing Trader Workflow (Multi-Day Holds)** — Set Calculation Mode to Hybrid Confluence, tier count to 5, allocations to 20 / 20 / 25 / 20 / 15. Use Auto Pivot with length 10–15 on 4H or daily. Prioritize exits at ★★★ confluence targets.
▫️ **Discretionary Trader Workflow** — Set Anchor Source to Manual Price, enter your own Entry, Swing, and SL values. Choose Fibonacci mode for trend-based projections or Hybrid for confluence-weighted decisions.
▫️ **Position Management** — The Expected line in the panel shows total profit % if all active tiers are filled (weighted by allocation). The Realized line tracks booked profit as tiers fill. Use this to compare planned vs actual performance.
⚠️ **Limitations & Transparency**
▫️ This is a **planning and visualization tool**, not an entry signal generator. It assumes you already have a trade bias; it structures the exit.
▫️ **Auto-anchor modes** rely on confirmed pivots, which means the most recent plan updates a few bars after a fresh pivot forms. This is intentional to prevent repainting.
▫️ **Confluence scoring** is based on the current snapshot of pivot highs/lows and round numbers. As price moves and new pivots form, scores may change.
▫️ **Hit detection** uses bar highs/lows on confirmed candles only.
▫️ The tool does not know your actual fill prices, slippage, or spreads — expected and realized percentages assume exact execution at target prices.
🛡️ **Risk Disclosure**
Trading involves substantial risk of loss and is not suitable for every investor. The information provided by this indicator is for educational and informational purposes only and does not constitute financial advice, a trading recommendation, or a solicitation to buy or sell any asset. Past performance does not guarantee future results. Always perform your own analysis, define risk before entering any trade, and use proper position sizing. The author and AGProLabs accept no liability for trading decisions made using this tool.
🔓 **Open Source**
This script is published open-source under the Mozilla Public License 2.0. You are welcome to study the methodology, build on it, and contribute feedback. Indicator

Divergence Stack Scanner [AGPro Series]Divergence Stack Scanner
🔹 Overview
Divergence Stack Scanner scans five independent momentum and volume oscillators simultaneously — RSI, MACD Histogram, CCI, MFI, and OBV — and grades every confirmed pivot by how many of them show regular divergence at the same time. The result is a 0 to 5 STACK score that isolates rare, high-conviction reversal zones which single-divergence tools simply cannot surface.
Most divergence indicators track one oscillator at a time. Strong reversals, however, tend to leave fingerprints across momentum and volume at once. This tool quantifies that confluence in a single, objective number you can act on.
🔸 Unique Edge
What separates this script from the crowded divergence space:
1. Five-oscillator confluence in one engine — not one divergence, five divergences graded together.
2. Strict versus Window classification — a 5/5 STRICT stack (all five on the exact same pivot) is marked with a star flash, while a 5/5 WINDOW stack (all five within a small bar tolerance) is tagged separately. The distinction matters because strict stacks are statistically rarer and sharper.
3. Pressure Zones — a rectangular, SR-style zone is drawn forward from each qualifying pivot, so the reversal level stays visible long after the signal fires.
4. Rolling win-rate panel — the last N decided signals are evaluated N bars forward, and the win percentage is displayed live on the panel.
5. Per-oscillator live state — you see at a glance which oscillators are already in divergence and how long ago they triggered.
🔹 Methodology
Pivots are detected using the standard PulseWire pivot method with a configurable lookback (default 5 bars each side, confirmed, non-repainting).
When a pivot is confirmed, the script compares the current pivot price and oscillator value to the previous same-direction pivot:
- Regular bullish divergence: price prints a lower low while the oscillator prints a higher low.
- Regular bearish divergence: price prints a higher high while the oscillator prints a lower high.
This comparison runs independently for RSI, MACD Histogram, CCI, MFI, and OBV. Each oscillator stores the bar index of its most recent divergence. The stack engine then counts how many oscillators have fired within a tolerance window of the current pivot:
- Strict stack (window = 0): all counted oscillators fired on the exact same pivot bar.
- Window stack (window = 1 to N bars): oscillators fired within N bars of each other.
Pressure zones are drawn only when the stack meets a configurable minimum (default 4/5). Zone height is ATR-scaled so it stays proportional across instruments and timeframes. A proximity filter prevents label clutter: once a label is drawn in a given direction, a new label in the same direction within a short window is only drawn if its stack level is strictly higher.
🔸 Signals & Alerts
On-chart signals:
- ★ N/5 STACK label (filled color) — strict same-bar stack at level N.
- N/5 NEAR label (lighter color) — window stack (near-miss of strict).
- Pressure zone rectangle — drawn forward from the pivot for qualifying stacks.
Alerts available:
- 5/5 Strict Stack (bull and bear, separate) — the rarest and sharpest signal.
- Minimum Stack threshold — fires whenever the stack reaches your configured minimum level.
All alerts use alert.freq_once_per_bar_close and include ticker plus timeframe in the message.
🔹 Key Inputs
Core Engine:
- Pivot Lookback — bars each side to confirm a pivot (default 5).
- RSI, MACD, CCI, MFI lengths — standard defaults, all configurable.
Stack Configuration:
- Minimum Stack Level — display threshold (default 3/5).
- Window Tolerance — bar tolerance for near-stacks (default 3).
- Win-Rate Lookback — number of recent signals used for rolling win rate (default 20).
- Win Evaluation Bars — forward bars to decide win or loss (default 10).
Pressure Zones:
- Minimum Stack for Zone (default 4/5) — keeps the chart premium and uncluttered.
- Zone Extend and Height (ATR%) — tune the visual footprint to your taste.
- Max Active Zones — oldest zones are automatically trimmed.
Panel and Theme:
- Location (6 anchors), Dark or Light theme, font size presets.
- Fully brand-consistent AGPro color palette built in.
🔸 How to Use
- Treat 5/5 STRICT stacks as the headline signal. They are rare by construction and typically appear at genuine inflection points.
- Use 4/5 stacks as early-warning context around support, resistance, or higher-timeframe levels.
- Read the per-oscillator live state on the panel. When RSI, MACD, CCI, MFI are all in the same direction and OBV is the last holdout, a full stack is often imminent.
- Pressure zones work well as re-entry or invalidation levels after the initial signal fires.
- The rolling win rate is a sanity check for the current asset and timeframe — if it degrades meaningfully, raise the minimum stack level or widen the pivot lookback.
🔹 Limitations and Transparency
- This is a confluence tool, not a standalone trading system. Divergence by nature can persist in strong trends before any reversal.
- The engine is pivot-based and therefore delayed by the pivot lookback. Labels appear on the bar the pivot is confirmed, not on the pivot itself.
- Win rate is computed on the last N decided signals on the current chart. It is not a backtest, it is an evolving statistic and it does not include slippage, spread, or position sizing.
- Window stacks are lower-confidence than strict stacks by design. The visual distinction is intentional.
- Session-based "Today's Max" uses calendar-day rollover.
🔸 Risk Disclosure
This indicator is a technical analysis tool for research and education. It is not financial advice, not a signal service, and not a trading strategy. Past patterns do not guarantee future behavior. You are solely responsible for your trading decisions, risk management, and position sizing. Always combine any indicator with independent analysis, higher-timeframe context, and strict risk controls.
🔹 Technical Notes
- Pine Script v6, overlay indicator.
- Fully non-repainting. All divergences are evaluated only on confirmed pivots.
- Drawing objects (labels, boxes) are capped to avoid resource overruns.
- MPL 2.0 licensed — open source. Indicator

Multi-Anchor VWAP Grid [AGPro Series]Multi-Anchor VWAP Grid
🔹 Overview
Multi-Anchor VWAP Grid is a volume-weighted analysis tool that plots five independently anchored VWAP lines on the same chart — anchored from swing high, swing low, higher-timeframe pivot, all-time high, and session open. Each anchored VWAP includes optional ±1σ and ±2σ standard deviation bands, forming a dynamic grid of volume-weighted support and resistance levels. When three or more VWAPs converge within a tight ATR-based band, the indicator draws a rectangular confluence zone highlighting the area as a higher-probability price reaction region.
The script is fully automatic. All five anchors are detected by internal engines (pivot detection, session detection, timeframe change detection, all-time-high tracker) and require no manual date picking or retroactive anchor placement. Install the indicator, select which anchors you want active, and the grid builds itself.
🔹 What It Does Differently
Most anchored VWAP tools plot one anchor at a time and require the user to manually place the anchor each time a new swing or event is identified. This script plots five anchors simultaneously and lets them compete for relevance. When multiple independent anchors agree on a price level, that agreement itself becomes the signal — visualized as a confluence zone. A single VWAP is one data point. Five VWAPs intersecting within 0.5 ATR of each other is a structural event.
The confluence detection engine tests each active VWAP as a reference point, counts how many others fall within the user-defined ATR tolerance, and picks the densest cluster on each bar. A minimum VWAP count threshold (default 3) prevents noise, and a lifecycle manager extends, adaptively resizes, and expires zones based on bar age and midpoint drift.
🔹 Methodology
**Anchor engines**
Swing High and Swing Low VWAPs reset on each confirmed pivot using the standard ta.pivothigh / ta.pivotlow detector with a configurable lookback length. HTF Pivot VWAP resets at the start of each selected higher-timeframe period (daily, weekly, or monthly) using timeframe.change. ATH VWAP resets whenever a new all-time high is printed on the visible chart. Session Open VWAP resets at the first bar of each trading session defined by the session window input.
**VWAP calculation**
Each anchor maintains three running accumulators since its last reset: sum of (price × volume), sum of volume, and sum of (price² × volume). VWAP is computed as the first divided by the second. Standard deviation is derived from the variance identity: sqrt(E − E ²), where E and E are computed from the running accumulators. Bands are plotted at configurable multipliers of this running standard deviation.
**Confluence engine**
On each bar, the script evaluates every active VWAP as a potential cluster center. For each candidate center, it counts how many other active VWAPs fall within ATR × tolerance distance. The cluster with the highest count wins. If the winning count meets or exceeds the minimum threshold, the bar is marked as confluence-active.
**Zone lifecycle**
When confluence becomes active, a new rectangular zone is created spanning the min/max of the clustered VWAPs. As long as confluence remains active and the cluster midpoint drifts less than 0.5 ATR from its original midpoint, the zone extends to the current bar and adaptively resizes with rate-limited expansion (maximum 1 ATR growth per bar per direction, preventing erratic stretching). If the midpoint drifts more than 0.5 ATR, a new zone is created. A 5-bar debounce prevents micro-breaks in confluence from prematurely closing active zones. Zones auto-expire after a configurable age limit (default 120 bars).
🔹 Signals and Panel Readouts
The information panel in the top-right corner (position and theme configurable) displays:
- **Price Bias** — count of VWAPs price is currently above vs below, with an overall BULL / BEAR / MIXED classification
- **Confluence** — current status (active with cluster count, or none) and the minimum-count threshold in use
- **Closest VWAP** — which of the five VWAPs is currently closest to price, and the distance in ATR units
- **Active VWAPs** — each enabled VWAP's current value and percent distance from close
Two alert conditions are built in: new confluence zone detection, and price crossing any active VWAP line.
🔹 Key Inputs
**Anchor Points group** — toggle each of the five VWAPs on or off, set swing pivot lookback length, choose HTF timeframe (D/W/M), define the session window for intraday anchoring.
**Deviation Bands group** — toggle bands on or off, configure band 1 and band 2 multipliers, enable or disable gradient fills between VWAP and the first band.
**Confluence Zones group** — toggle zones on or off, set minimum VWAPs required for a confluence (2 to 5), adjust the ATR-based tolerance, define maximum zone age in bars.
**Panel group** — toggle panel, choose location (six positions), select Dark or Light theme, set font size (Small / Normal / Large).
**Labels group** — toggle the compact end-of-line labels that identify each VWAP at the right edge of the chart.
🔹 How to Use
This indicator is designed as a context layer, not a standalone entry signal. Suggested workflow:
**1. Identify structural bias.** Check the Price Bias row in the panel. If 4 or 5 VWAPs sit below price (BULL), the market is trading above its most relevant volume-weighted averages across multiple timeframes and event contexts. The opposite applies for BEAR.
**2. Watch for confluence formation.** When the panel shows Confluence ACTIVE with 3 or more VWAPs clustered, a meaningful volume-weighted support or resistance area is forming. These zones often precede reaction or reversal behavior.
**3. Use bands for context.** When price trades near the ±1σ band of a single VWAP, reversion back toward that VWAP is statistically more likely. ±2σ extensions indicate volatility outliers.
**4. Cross-reference with your own tools.** This script is most useful combined with price action, volume profile, or a trend filter of your choice. It does not generate entries or exits on its own.
🔹 Tips
- On crypto 24h markets, set Session Window to 0000-2359 for a full-day session VWAP.
- Higher Swing Pivot Length values (30–50) filter noise on higher timeframes; lower values (10–15) are better for intraday.
- If the chart feels visually crowded, disable the ±2σ bands or reduce the number of active anchors. All five are rarely needed simultaneously.
- For the strongest confluence signals, increase Min VWAPs for Confluence to 4 — rarer but higher conviction.
🔹 Limitations and Transparency
- The script uses standard Pine Script pivot detection for swing anchors. Pivots are confirmed only after the pivot length has passed, which means swing VWAP anchors are placed retrospectively by that many bars. This is an inherent limitation of all pivot-based tools, not a bug.
- ATH tracking is limited to the visible chart range. On timeframes or symbols where the chart does not load full history, the "ATH" anchor represents the highest point within loaded data, not the true all-time high.
- Standard deviation bands assume price dispersion around each VWAP is approximately normal over the anchored period. In strongly trending markets, this assumption weakens and bands may widen significantly.
- Confluence zones are descriptive, not predictive. They mark areas where multiple volume-weighted averages happen to agree. They do not guarantee price reaction, only indicate where reaction is more plausible than average.
- Session Window input must match the instrument's trading hours to produce a meaningful intraday VWAP. Incorrect session definitions will produce misleading anchor points.
🔹 Risk Disclosure
This indicator is provided for educational and analytical purposes only. It is not financial advice, investment advice, or a recommendation to buy, sell, or hold any asset. All trading involves substantial risk of loss. Past chart behavior and historical VWAP reactions do not guarantee future results. Users are solely responsible for their own trading decisions and risk management. Always combine indicator output with independent analysis and appropriate position sizing. The author accepts no responsibility for any financial outcome resulting from the use of this script. Indicator

Trendline Confluence Map [AGPro Series]Trendline Confluence Map
Overview
Trendline Confluence Map automatically draws ascending and descending trendlines from major and minor swing pivots, then maps the zones where two or more of these trendlines intersect with each other or with key horizontal support and resistance levels. Every confluence zone is scored from 0 to 100 based on touch count, line age, trendline angle and volume, so traders can instantly see which reaction levels are backed by the most structural weight. Drawn as long rectangular zones in the classic S/R style, the map stays anchored to current price and hides old, irrelevant levels automatically.
Unique Edge
Most trendline tools either draw a single line or flood the chart with dozens of low-quality lines that never interact with each other. This indicator is built around the opposite idea: confluence is the signal, single lines are just noise. Its three design choices make the difference. First, the script maintains a disciplined pool of only the trendlines whose current projection is on-chart, so a zero-visibility clutter problem cannot happen — the panel count always equals what you actually see. Second, horizontal S/R levels participate as first-class confluence sources alongside trendlines, with a guard requiring at least one real trendline per zone so the tool remains true to its name. Third, every zone label shows a source breakdown such as "2 TL" or "1 TL + 1 SR", giving you immediate insight into why a zone was considered high-probability.
Methodology
Swing pivots are detected at two depths (major and minor) using pivot-high and pivot-low structures, with configurable lookback lengths. Each valid consecutive pivot pair spawns a trendline, and every subsequent bar that wicks into the projected line within an ATR-based tolerance increments its touch count, raising its structural validity. Horizontal S/R levels are extracted from recent major pivots and merged when they fall within 0.4 ATR of each other. On each confirmed bar, the detector builds a combined pool of all on-chart trendline projections plus horizontal levels, then runs a greedy clustering pass using a zone-width-sized tolerance window. Candidate clusters that contain at least one trendline and meet the minimum source count are scored by combining touch strength, line age, slope quality, a rolling volume component and a horizontal S/R bonus. The highest-scoring cluster becomes a confluence zone, drawn as a rectangle whose right edge extends dynamically to the current bar so every active zone stays visually anchored to price. Zones are deduplicated by price and direction, and expire automatically after a configurable age.
Signals and Alerts
Every new confluence zone is announced with a descriptive alert that carries its mid-price, score and source breakdown. A second alert fires when price first crosses into an active zone from outside, helping traders react to the moment a level is tested. Zone colors encode directional bias: green zones indicate support-favored confluence while pink zones indicate resistance-favored confluence, with the bias derived from the dominant trendline direction in the cluster. Labels on the right edge of each zone show the current score, the source breakdown and the bias tag, so at a glance the trader knows which level is strongest and why.
Key Inputs
Major Pivot Length and Minor Pivot Length define the swing-detection depth of the two pivot streams. Max Active Trendlines caps the internal pool, while Min Touches to Validate filters out unconfirmed trendlines from the confluence pass. Touch Tolerance in ATR units controls how generously the script counts interactions. Min Sources for Zone sets the confluence requirement, Zone Width in ATR units determines rectangle thickness, and Zone Forward Extension controls how far each zone reaches to the right. Max Active Zones and Max Zone Age in bars keep the map focused on currently relevant structure. Panel Theme, Panel Location and Font Size cover the full visual customization layer.
How to Use
Start on the timeframe you trade and leave the defaults — they are tuned for 4H crypto and major FX on equivalent timeframes. Scan for zones with a score above 60 in a direction aligned with the higher-timeframe bias. Use the green support-biased zones as pullback entry areas in uptrends and the pink resistance-biased zones as fade or short entry areas in downtrends. Break-and-retest traders can wait for price to pierce a high-score zone and return to its edge; mean-reversion traders can watch for rejection at zones where the source breakdown includes both a trendline and a horizontal level, as those tend to hold more strongly. The panel at the top shows a quick summary of the current map state and the distance to the nearest zone in ATR units, which is useful for position sizing and stop placement.
Limitations and Transparency
This is not a strategy and not a complete trading system. It does not predict price and does not generate buy or sell instructions. Confluence zones are structural context, not entries, and their score is an internal quality estimate derived from visible price action, not a probability of success. The script needs a reasonable amount of historical bars to build a stable trendline pool. Very low timeframes and very illiquid symbols can produce erratic pivot structures and are not the intended use case. Like all pivot-based tools, the indicator reflects past structure, and levels can weaken or become stale as market regimes change. Zones older than the configured age are removed automatically to reduce this risk.
Risk Disclosure
Trading involves substantial risk of loss and is not suitable for every investor. Past performance is not indicative of future results. This indicator is provided for educational and analytical purposes only and should not be interpreted as financial advice, an investment recommendation or a solicitation to trade. Always combine multiple forms of analysis, manage position size responsibly, and never risk capital you cannot afford to lose.
Indicator

Unicorn Model Detector [AGPro Series]Unicorn Model Detector
Overview
The Unicorn Model Detector identifies one of the most discussed setups in Inner Circle Trader (ICT) and Smart Money Concepts literature: the Unicorn Model. A Unicorn forms when a Breaker Block and a Fair Value Gap (FVG) overlap inside the same price zone — a pocket where prior swing liquidity has been swept and an unfilled imbalance still exists at the retest. The detector scans for these overlaps, tracks every occurrence through its full lifecycle, and reports aggregate statistics in a compact on-chart panel. It is a detection and bookkeeping tool, not a trading strategy.
Unique Edge
Most breaker and FVG scripts publish either zones in isolation or require the user to eyeball the overlap. This detector does the overlap match automatically and only draws a zone when both conditions are present on the same chart area with the same directional bias. A strict causality rule is enforced — the Breaker must form first (after liquidity sweep) and the FVG must appear during or after the retest, which matches the true ICT Unicorn definition. A pairing that consumes a given breaker and FVG is removed from future candidate pools, so the chart never stacks redundant zones from the same source structure. A Loose overlap mode is also provided for users who prefer an ATR-based proximity interpretation instead of strict geometric intersection.
Methodology
1. Swing pivots are detected with a configurable left/right length using ta.pivothigh and ta.pivotlow.
2. When a confirmed pivot forms, the body range of the pivot bar is stored as the potential Breaker source zone.
3. A Breaker Block is registered when price closes through the previous-bar swing level in the opposite direction.
4. A Fair Value Gap is registered when a 3-bar formation produces an unfilled imbalance (low > high for bullish, high < low for bearish) and the gap exceeds a user-defined ATR multiple.
5. A Unicorn is spawned when a same-direction Breaker zone and FVG zone overlap vertically AND the FVG formed at or after the Breaker (causality check).
6. A configurable cooldown prevents consecutive spawns from clustering, improving signal hygiene.
7. The overlap rectangle becomes the tracked zone. Zone mid is the reference entry, the stop is placed 0.4 times the zone height beyond the structure boundary, and the target is projected at the user-defined R-multiple.
Signals & Alerts
Four independent alert conditions are exposed:
- New Unicorn Detected — a fresh bullish or bearish Unicorn has just formed.
- Unicorn Triggered — price has entered the overlap zone of a pending Unicorn.
- Target Hit — a triggered Unicorn has reached its R-multiple target.
- Stop Hit — a triggered Unicorn has been invalidated at its stop level.
All alerts fire once per bar close and include the ticker and timeframe in the payload.
Key Inputs
- Swing Pivot Length (default 7) — left/right length used for pivot confirmation.
- Breaker Lookback (default 80 bars) — maximum age for a broken swing to remain a valid Breaker.
- FVG Minimum Size (default 0.25 x ATR) — noise filter for 3-bar imbalances.
- Overlap Mode (Strict / Loose) — geometric intersection vs ATR-tolerance match.
- Reward-to-Risk Target (default 2.0) — multiple used to project the target level.
- Max Active Pending Unicorns (default 3) — chart-cleanliness cap.
- Cooldown After Signal (default 30 bars) — minimum spacing between consecutive spawns.
- Invalidate on Close Through Zone (default off) — optional tighter invalidation rule.
- Visual controls — show/hide per lifecycle state, label size, zone opacity, max recent labels.
- Panel controls — show/hide, location (6 positions), theme (Dark/Light), text size.
How to Use
1. Add the indicator to any timeframe; higher timeframes (1H, 4H, 1D) tend to produce structurally more meaningful Unicorns.
2. Watch for a new Unicorn zone to appear. Pending zones are drawn in the directional state color with a bold border; triggered ones switch to the indigo accent color; TP / SL / Expired zones fade to their respective colors with a thinner border.
3. Each zone carries a tethered flag label outside the price axis — Bullish labels below, Bearish labels above — so they never overlap candles.
4. The panel reports running counts of pending and active Unicorns, historical win rate, average R per setup, and total completed.
5. Use the displayed entry / target / stop reference lines as a structural map for your own analysis. The tool does not place orders and does not recommend position sizing.
6. Combine with higher-timeframe bias (trend, session context, HTF structure) before acting on any zone.
Limitations & Transparency
- The detector is a structural scanner, not a forecasting engine. It reports what has formed, not what will happen.
- Swing detection depends on pivot length; shorter lengths generate more noise, longer lengths miss smaller structures.
- Statistics are calculated on-chart from historical bars loaded by PulseWire and will vary with timeframe, symbol and data range.
- Realtime behaviour: zones are drawn on confirmed events (bar close for breaks, 3-bar-complete for FVGs). Some invalidations are evaluated intrabar on wick touches of the stop level.
- The script is open-source under Mozilla Public License 2.0. Users are encouraged to inspect and adapt the methodology.
Risk Disclosure
This indicator is provided for educational and analytical purposes only. It is not financial advice, a trading signal service, or a strategy. Past structural patterns do not guarantee future outcomes. Trading involves substantial risk of loss; readers are solely responsible for their own decisions and risk management. Indicator

Mitigation Block Quality [AGPro Series]OVERVIEW
Mitigation Block Quality grades every order-block retest as A, B, or C based on
the strength, speed, and follow-through of the bounce after price returns to
the block. Instead of just drawing order blocks and leaving you to guess
which ones matter, the script measures each mitigation objectively and keeps
a live scoreboard of how those reactions have been performing.
The result is an order block tool that tells you two things at once: where
the zones are, and how well price has historically respected them on the
symbol and timeframe you are looking at.
UNIQUE EDGE
Most order-block indicators end at detection. This one begins there. Each
time a block is mitigated, the script measures the reaction over a fixed
window and grades the bounce by its ATR-normalized magnitude. That grade
is then reflected everywhere: on the block border, in the on-chart label,
in the dashboard, and in the historical success-rate statistics.
You also get multi-timeframe context, confluence detection, streak tracking,
and a dynamic setup banner that describes the current price-block
relationship in plain English.
METHODOLOGY
1. Detection. Swing pivots are identified using a configurable pivot length.
The last opposite-colored candle before the pivot forms the order block.
2. Mitigation. A block is mitigated when price re-enters the zone.
3. Grading. After a fixed reaction window, the script measures the peak of
the bounce and normalizes it to ATR. Grade A is a strong bounce, B is
solid, C is weak.
4. Invalidation. A body close beyond the block marks it as invalidated.
Invalidated blocks can be hidden or shown as a dotted reference.
5. Retirement. Blocks retire by age, by distance from price, or when the
per-side cap is exceeded.
FEATURES
- A, B, or C grade assigned to every mitigation (ATR-normalized reaction)
- Reaction trail line on Grade A mitigations showing the bounce extent
- Entry marker (diamond) at the exact mitigation bar of Grade A bounces
- Confluence glow when two or more blocks overlap within 0.5 ATR
- Time-based opacity decay so older blocks recede and fresh ones pop
- Optional pulse animation on A/B blocks while price is inside them
- Price-scale labels tagging each active block's grade and side
- Higher-timeframe alignment check against a configurable HTF structural bias
- Dashboard panel with: active count, tested count, success (current),
nearest-block state (Inside / Touching / distance in ATR), all-time
success rate with stacked distribution bar, last-20 success, health
progress bar, current Win/Loss streak, HTF alignment, and a dynamic
setup banner
SIGNALS & ALERTS
Three alert conditions are provided:
- Grade A Mitigation — a premium-quality bounce has been detected
- Grade B Mitigation — a solid bounce has been detected
- Block Invalidation — an active block has been broken
These are alertconditions and can be configured from the PulseWire
Create Alert dialog in the usual way.
KEY INPUTS
- Pivot Length and Lookback: control how blocks are detected and how long
they stay on the chart
- Reaction Window and Grade Thresholds (A, B in ATR units): define what
counts as a premium, solid, or weak bounce
- Invalidation Mode: choose between body close or wick pierce
- Retire Block Beyond (xATR): automatic cleanup when price moves far away
- Max Active Blocks per Side and Max Visible Labels: keep the chart premium
- Premium Visuals toggles: Reaction Trail, Entry Marker, Confluence Glow,
Quality Heatmap row, Setup Banner, Pulse, Time Decay, Price Scale Labels,
HTF Alignment, Streak row
- HTF for Alignment: the higher timeframe used for multi-timeframe confluence
- Panel location and theme
HOW TO USE
1. Add the script to any chart and timeframe.
2. Read the panel top-down:
- Last 20 breakdown tells you the recent quality regime
- Nearest Block tells you how close the closest active zone is
- All-time and Last 20 success tell you how reliable those zones have been
- Streak gives you momentum context
- HTF Alignment tells you if the bigger picture agrees
- Setup banner describes what is happening right now
3. Look at the chart:
- A/B/C labels on mitigated blocks tell you how those tests resolved
- Reaction trails and diamonds highlight the premium Grade A mitigations
- Confluence glows mark zones where multiple blocks agree
4. Use alerts to get notified when a fresh Grade A or Grade B mitigation
occurs, or when an active block is invalidated.
The tool is designed to help with discretionary analysis. It is not a
trading system and does not generate buy or sell signals on its own.
LIMITATIONS & TRANSPARENCY
- Pivots are confirmed after the swing length completes, so block detection
has a small structural lag. This is inherent to any pivot-based method.
- Grades are assigned after the reaction window closes. A very fresh
mitigation will briefly show "Active" before its grade appears.
- HTF Alignment uses a 50-period simple moving average on the chosen higher
timeframe as a structural bias proxy. It is a context filter, not a
predictive signal.
- All metrics are computed from the visible historical data on the current
chart. Loading more bars will change the all-time statistics.
- The script uses Pine Script v6 drawing objects. Extremely long histories
on very low timeframes may hit PulseWire object limits; the built-in
per-side cap and distance-based retire keep this under control in normal
use.
RISK DISCLOSURE
This script is an analysis aid, not financial advice. It does not predict
future price movement and does not generate trade recommendations. Any
decision to enter or exit a position is the responsibility of the user.
Historical grade distributions are descriptive, not predictive. Past
mitigation behavior on a symbol does not guarantee future behavior.
Trade with risk capital you can afford to lose and use appropriate
position sizing and stop placement.
LICENSE
Released under the Mozilla Public License 2.0. The full source is available
on PulseWire via the Open-Source badge. You are free to study and modify
the code subject to the terms of the license. Indicator

Confluence Matrix [JOAT]Confluence Matrix
Introduction
Every component in a professional trading system should serve a purpose, and ideally, no single component should bear the entire weight of decision-making alone. The best entries occur when multiple independent analytical methods all point in the same direction simultaneously — a confluence event that dramatically raises the probability that the observed setup reflects genuine market structure rather than random noise. The Confluence Matrix is built around this philosophy, integrating six distinct analytical modules into a single, cohesive overlay indicator with a unified seven-point scoring framework that gates every trade entry.
The six integrated modules are: HEMA regime analysis (three-layer Hull-EMA Hybrid with two-bar confirmation), Break of Structure and Change of Character market structure (swing pivot-based BOS and CHoCH detection), a triple-smoothed Fibonacci channel (0.618, 1.618, and 2.618 bands around a triple-EMA basis), an ATR compression detection engine (volatility squeeze state), Z-score cumulative impulse detection (statistically significant momentum streaks), and an OLS linear regression combined with cumulative delta proxy and volume RSI. Each module contributes one integer point to a directional score. Entries require a minimum score threshold — meaning price must be supported by a configurable number of simultaneously aligned modules before a position is opened.
Beyond signal generation, the indicator includes a simulated position tracking system that monitors open virtual positions with defined entry prices, take-profit levels, stop-loss levels, and a trailing stop mechanism. This system does not execute real trades — it visualizes what a rule-based system following the indicator's own signals would have done, providing an educational and contextual layer that helps users understand how the signals sequence in live trading conditions. All trade signals are confirmed-bar only, with no look-ahead repainting. The fifteen-row dashboard, ten alert conditions, and extensive visual customization options make this the most comprehensive single-overlay indicator in the JOAT suite.
Core Concepts
1. HEMA Three-Layer Regime with Two-Bar Confirmation
The HEMA (Hull-EMA Hybrid) forms the structural backbone of the regime assessment. Three independent HEMA instances at periods 20, 50, and 100 represent the fast, mid, and slow trend layers. Full bull regime requires ascending order of all three (fast above mid above slow). Full bear regime requires descending order. The two-bar confirmation state machine requires two consecutive bars of raw alignment before the confirmed regime variable updates — preventing rapid back-and-forth flipping on borderline crossovers.
f_hema(src, len) =>
ta.ema(2 * ta.ema(src, len / 2) - ta.ema(src, len), math.round(math.sqrt(len)))
hema1 = f_hema(close, 20)
hema2 = f_hema(close, 50)
hema3 = f_hema(close, 100)
rawBull = hema1 > hema2 and hema2 > hema3
rawBear = hema1 < hema2 and hema2 < hema3
confBull = rawBull and rawBull
confBear = rawBear and rawBear
The CHoCH (Change of Character) logic builds directly from this: a bullish BOS that occurs while confBear is true represents structural bullish momentum emerging from within a confirmed bear regime — the first evidence of potential regime reversal.
2. BOS and CHoCH with Visual Lines
Break of Structure detection uses ta.pivothigh and ta.pivotlow to track prior swing levels. BOS events draw labeled lines on the chart: teal/red for standard BOS continuation, violet-dashed for CHoCH. All line drawing uses line.new() with fixed coordinates on confirmed bars, and extends the right endpoint to the next BOS event for visual continuity across the chart.
chochUp = bosUp and confBear
chochDn = bosDn and confBull
lineStyle = (chochUp or chochDn) ? line.style_dashed : line.style_solid
lineColor = chochUp ? color.purple : bosUp ? color.teal : chochDn ? color.purple : color.red
3. Triple-Smoothed Fibonacci Channel
The Fibonacci channel applies the same triple-EMA smoothing used in the FVC indicator to produce a noise-resistant basis line, then projects Fibonacci-ratio bands (0.618, 1.618, 2.618) both above and below using ATR or standard deviation as the volatility measure. Within the Confluence Matrix, the channel serves a dual purpose: its own slope defines the "fib trend" score contribution, and its band levels serve as reference zones for proximity analysis.
basis = ta.ema(ta.ema(ta.ema(hlc3, basisLen), basisLen), basisLen)
fibTrend = basis > basis ? 1 : basis < basis ? -1 : 0
The 0.618 and 1.618 inner bands are filled with a gradient between basis and inner band, with the fill opacity tied to the confirmed regime — teal fills in bull regime, red fills in bear regime, gray in neutral.
4. ATR Squeeze Detection
The ATR squeeze module uses the same compression ratio logic as the VSO indicator: comparing a short-term EMA-smoothed ATR against a longer baseline to determine whether volatility is contracting or expanding. When volatility is contracting (squeezing), the squeeze score contribution is zero — the market is not yet expressing directional energy. When volatility is expanding, the module contributes to the appropriate directional score.
atrShort = ta.ema(ta.tr(true), sqzLen)
atrLong = ta.ema(atrShort, sqzLen * 2)
squeezing = atrLong > atrShort
sqzOK = not squeezing
5. Z-Score Cumulative Impulse
The Z-score impulse module tracks separate cumulative bull and bear momentum streaks, normalizes them against rolling sma/stdev, and marks statistically significant events with diamond markers (◆) plotted above and below the price bars. These markers are displayed at confirmed bars only. The Z-score values for both directions are shown in the dashboard and contribute one point each to the long and short scores when their respective thresholds are exceeded.
cumBull := close > close ? nz(cumBull ) + (close - close ) : 0
cumBear := close < close ? nz(cumBear ) + (close - close) : 0
zBull = (cumBull - ta.sma(cumBull, zLen)) / ta.stdev(cumBull, zLen)
zBear = (cumBear - ta.sma(cumBear, zLen)) / ta.stdev(cumBear, zLen)
6. OLS Regression, Delta Proxy, and Volume RSI
The sixth analytical layer combines three sub-components. The OLS linear regression (using the same manual implementation as the ARO indicator) provides the Pearson R correlation quality metric and theta angle, which together determine whether the regression score contributes. The cumulative delta proxy (bar-range-based buying/selling pressure estimate) determines the delta directional score. Volume RSI (RSI applied to volume series) provides the volume quality gate. All three sub-components are evaluated in the context of long or short scoring.
regressionScore = pearsonR > minR and math.abs(theta) > minTheta ? (theta > 0 ? 1 : -1) : 0
deltaScore = deltaPos ? 1 : -1
volumeScore = highVol ? (localBull ? 1 : -1) : 0
7. Seven-Point Confluence Scoring
Each of the six modules contributes one integer point to either the long score or the short score (some modules contribute to both). The seven scoring variables (ls1 through ls7 for long, ss1 through ss7 for short) are summed individually so each module's contribution is transparent and auditable. The minimum score threshold (default: 5 of 7) gates entry conditions.
ls1 = confBull ? 1 : 0 // HEMA regime
ls2 = lastBOSDir == 1 ? 1 : 0 // Last BOS direction
ls3 = fibTrend == 1 ? 1 : 0 // Fibonacci channel trend
ls4 = sqzOK ? 1 : 0 // Squeeze OK (not compressing)
ls5 = regressionScore == 1 ? 1 : 0 // Regression + Pearson
ls6 = deltaPos ? 1 : 0 // Delta proxy bullish
ls7 = highVol and localBull ? 1 : 0 // Volume RSI + local trend
longScore = ls1 + ls2 + ls3 + ls4 + ls5 + ls6 + ls7
8. Simulated Position Tracking with Trailing Stop
The position tracker uses persistent var variables to track open trade state. Entry occurs when a BOS trigger or HEMA crossover fires, the score meets the minimum threshold, the bar is confirmed, and no position is currently open in that direction. Stop-loss is set at ATR below the entry for longs (above for shorts). Take-profit is set at a multiple of ATR from entry. The trailing stop mechanism moves the SL to breakeven once the position has moved one ATR in the favorable direction — locking in capital protection once momentum is confirmed.
var int posDir = 0
var float openTP = na
var float openSL = na
var float entryPx = na
longEntry = (bosUp or hemaXover) and longScore >= minScore and barstate.isconfirmed and posDir <= 0
if longEntry
posDir := 1
entryPx := close
openTP := close + atr14 * tpMult
openSL := close - atr14 * slMult
// Trailing stop to breakeven
if posDir == 1 and high - entryPx > atr14
openSL := math.max(openSL, entryPx)
Exits occur on TP hit, SL hit, or confirmed regime flip opposing the position direction (confBear while long, confBull while short).
9. Proximity-Gradient Bar Coloring
Bar colors are driven by the distance between the current close and the HEMA mid layer (hema2), normalized by the range between the fast and slow HEMA layers. This produces a bar coloring scheme that reflects not just direction but the degree of extension relative to the HEMA structure's own internal spread — a more dynamically calibrated proximity measure than a fixed ATR reference.
hemaRange = math.abs(hema1 - hema3)
hemaDist = hemaRange > 0 ? math.abs(close - hema2) / hemaRange : 0
hemaProxAlpha = math.min(math.round(hemaDist * 60), 75)
Features
Six Integrated Modules: HEMA regime, BOS+CHoCH structure, Fibonacci channel, ATR squeeze, Z-score impulse, and OLS regression+delta+volume all active simultaneously.
Seven-Point Scoring System: Each module contributes one point to a transparent, auditable confluence score with configurable minimum threshold for entry.
Two-Bar HEMA Confirmation: Prevents false regime transitions on single-bar HEMA crossovers.
CHoCH Detection: BOS events opposing the confirmed regime are classified as Change of Character and drawn with violet dashed lines.
Z-Score Diamond Markers: Statistically significant momentum streak markers displayed as ◆ above and below bars on confirmed events.
Triple-Smoothed Fibonacci Channel: 0.618, 1.618, and 2.618 bands with regime-conditional gradient fills.
Simulated Position Tracking: Virtual positions with TP, SL, and trailing stop to breakeven — visualizing the signal system in action.
Proximity-Gradient Bar Coloring: HEMA-internal-range-normalized distance drives bar color alpha for structure-relative visual encoding.
BOS Lines: Teal/red for continuation BOS, violet dashed for CHoCH — drawn at confirmed bars with horizontal extensions.
Fifteen-Row Dashboard: Position direction, regime, last BOS, CHoCH state, fib trend, volatility, Pearson R, theta, bull Z, bear Z, volume RSI, delta proxy, long score, short score, and minimum score threshold.
Ten Alert Conditions: Long entry, short entry, long exit, short exit, CHoCH up, CHoCH down, bull impulse, bear impulse, BOS up, BOS down — all as constant string alerts.
Input Parameters
HEMA Settings:
Fast/Mid/Slow Lengths: HEMA layer periods (defaults: 20, 50, 100)
Structure Settings:
Swing Length: Pivot lookback for BOS/CHoCH detection (default: 10)
Fibonacci Channel Settings:
Basis Length: Triple-EMA period (default: 20)
Volatility Type: ATR or StDev (default: ATR)
Volatility Length: Period for volatility measure (default: 14)
Z-Score Settings:
Z Lookback: Rolling window for normalization (default: 50)
Z Threshold: Sigma level for impulse trigger (default: 2.0)
Regression Settings:
Regression Length: Bar count for OLS calculation (default: 50)
Min Pearson R: Minimum |R| for regression score contribution (default: 0.6)
Min Theta: Minimum angle for regression score contribution (default: 5)
Entry/Exit Settings:
Minimum Score: Points required for entry (default: 5)
TP Multiplier: ATR multiple for take-profit level (default: 2.0)
SL Multiplier: ATR multiple for stop-loss level (default: 1.0)
Display Settings:
Show HEMA Layers: Toggle individual HEMA line visibility (default: true)
Show Trend Cloud: Toggle HEMA gradient fill (default: true)
Show Fibonacci Channel: Toggle Fibonacci band fills (default: true)
Show BOS Lines: Toggle structural break lines (default: true)
Show Z Markers: Toggle diamond impulse markers (default: true)
Show Position Lines: Toggle TP/SL/entry lines (default: true)
Show Bar Colors: Toggle proximity gradient bar coloring (default: true)
Show Dashboard: Toggle the fifteen-row table (default: true)
How to Use This Indicator
Step 1: Read the Score Before Acting on Any Signal
The most important discipline when using the Confluence Matrix is to check the long score or short score before taking any action on a signal. A BOS up event alone carries one point; it does not guarantee a high-probability setup. A BOS up event accompanied by a score of 6 or 7 — meaning five or six other modules are simultaneously aligned — is a materially different situation. Begin each analysis session by reading the dashboard scores and understanding which modules are contributing and which are not.
Step 2: Use the CHoCH for Regime Change Awareness
CHoCH events are the most important structural signals in the indicator. A CHoCH up (bullish BOS during a confirmed bear regime) does not mean immediately go long — it means the structural assumption of the prior bear regime is being challenged. Wait for the regime confirmation to update, watch for the long score to rise as modules align with the new potential bull regime, and then consider entry on the next confirmed BOS in the bull direction backed by a high score. The sequence matters: CHoCH first, then regime confirmation, then high-score entry.
Step 3: Let the Simulated Position Tracker Teach Pattern Recognition
The position tracker lines (entry, TP, SL) on the chart are an educational tool. Over time, reviewing where simulated positions were opened and closed relative to the subsequent price action reveals patterns about which score thresholds, which module combinations, and which entry triggers produce the cleanest outcomes on the specific instrument you are analyzing. Use this visual feedback to calibrate your own minimum score setting and module weighting preferences.
Step 4: Manage Visual Complexity Through Selective Display
Six integrated modules produce a significant amount of simultaneous chart information. New users should start with all display elements enabled to understand the full system, then progressively toggle off elements they are not actively using for a given analysis. The dashboard always reflects the underlying calculations regardless of display settings — so even with Fibonacci fills and BOS lines hidden, the score, regime, and all module states remain visible in the dashboard.
Indicator Limitations
The simulated position tracking system is a visual and educational tool only. It does not place real orders, cannot account for slippage, spread, or commission costs, and its results should never be used as a basis for financial decisions. Simulated performance and real-world trading performance are categorically different.
The seven-module scoring system assigns equal weight to all contributing modules. In practice, some modules (e.g., HEMA regime) may carry more structural significance than others (e.g., volume RSI). The equal-weight assumption is a simplification.
Six integrated modules means six sets of parameters to configure. The default settings are calibrated for daily and 4-hour chart analysis on liquid instruments. Heavy optimization of all parameters to historical data risks overfitting — the resulting configuration may perform well on history but fail on new data.
The OLS regression component requires sufficient bars to produce stable Pearson R and theta values. In the first regression-length bars of any chart session, these values will be based on very short windows and should not be treated as reliable quality filters.
All modules operate on the chart's native timeframe. The indicator does not incorporate multi-timeframe analysis internally — users seeking MTF context should reference the MCG indicator in combination.
Proximity bar coloring uses the HEMA internal range (hema1 minus hema3) as the normalizer. When all three HEMA layers are closely clustered (flat, sideways market), this range approaches zero, which can cause division instability in the proximity calculation. A guard for this case is included but the coloring will be less informative during flat HEMA conditions.
The trailing stop to breakeven mechanism fires when the position has moved one ATR in the favorable direction. In very high-volatility conditions with large ATR values, this may mean the SL does not move to breakeven until the position is significantly extended, reducing capital protection in fast-moving markets.
Originality Statement
The Confluence Matrix is the most comprehensive indicator in the JOAT suite and represents an original architectural achievement in the design of multi-module overlay indicators.
The seven-point confluence scoring system — where six independent analytical modules each contribute a single integer vote, and entry is gated by a minimum aggregate threshold — is an original framework for combining heterogeneous technical signals into a unified, transparent decision criterion.
The combination of HEMA regime, BOS/CHoCH structure, Fibonacci channel, ATR squeeze, Z-score impulse, and OLS regression+delta+volume in a single non-repainting overlay indicator with no external indicator dependencies is an original integration not replicated by any single publicly available PulseWire indicator.
The simulated position tracking system with trailing stop to breakeven — driven entirely by the indicator's own scoring and signal conditions, visualized directly on the chart — is an original self-contained feedback mechanism for understanding the system's real-time behavior.
The CHoCH classification (BOS event opposing the confirmed two-bar regime, not merely the raw regime) adds a confirmation layer to the standard CHoCH definition that reduces false change-of-character signals during borderline regime periods.
The proximity bar coloring normalized by the internal HEMA range (hema1 minus hema3) rather than by a fixed ATR reference creates a structure-relative alpha calculation that adapts to the current degree of HEMA layer separation — a more contextually aware coloring approach than fixed-reference alternatives.
The use of ten constant-string alert conditions (not dynamic or computed strings) ensures full compatibility with PulseWire's alert system, including webhook delivery and multi-condition alert construction.
Disclaimer
The Confluence Matrix is provided for educational and informational purposes only. It is a technical analysis tool and does not constitute financial advice. The simulated position tracking feature is for educational visualization only and does not represent actual trade results. No scoring system or multi-indicator confluence framework can guarantee profitable trading outcomes. All trading involves risk, including the potential loss of principal. Users are solely responsible for their own trading decisions. Please consider your individual risk tolerance and consult a licensed financial professional before engaging in any trading activity.
-Made with passion by officialjackofalltrades
Indicator

Syndicate Confluence [JOAT]Syndicate Confluence
Introduction
Syndicate Confluence is an open-source overlay indicator that unifies three independent analytical engines into a single spatially organized visual system. Engine 1 is an adaptive Kalman filter with a Supertrend ratchet trail — it classifies the macro directional regime and generates a triple-glow neon trail on the chart. Engine 2 is an institutional order block zone mapper — it identifies swing-pivot order blocks, classifies them by trading session, and renders them as persistent box-based zones with session-colored borders and labeled displacement ratios. Engine 3 is an HMA pressure trail paired with a custom volume-weighted MFI — it classifies each bar into bull pressure, bear pressure, or neutral states.
The three-layer visual architecture ties all three engines together: an outer ATR cloud communicates the macro volatility context of the Kalman filter; a corridor fill between the Kalman Supertrend line and the HMA trail communicates whether both engines are aligned in the same direction; and a core gradient fill between the HMA trail and the candle mid-body communicates the intensity of the current pressure state. When all three layers are saturated in the same color, the confluence is at its strongest. When they are fragmented, the market is transitioning.
The highest-confidence signal — the starred HC Long or HC Short label — fires only when a trail flip, Kalman direction, and order block proximity all coincide simultaneously. This triple-engine intersection is the indicator's primary setup, and the remaining visual layers exist to help traders evaluate whether conditions are building toward or away from that state.
Core Concepts
1. Adaptive Kalman Regime Engine
The Kalman filter maintains a running estimate and error variance. Each bar, the gain is computed as err / (err + noise), where noise = alpha * period. The estimate is updated toward close proportional to the gain, and the error variance self-adjusts — expanding when prediction is poor (high responsiveness), contracting when the filter tracks well (high smoothness). A Supertrend ratchet is applied to the Kalman value: ATR-scaled upper and lower bands drift with a direction-persistence rule — the upper band can only fall, the lower band can only rise. Direction flips when the Kalman value closes through the active band. Applying the ratchet to a Kalman-smoothed price removes the micro-fluctuations that cause excessive flips in price-based systems.
2. Session-Colored Order Block Zones
When a swing pivot low is confirmed, the indicator searches back for the last bearish candle before the pivot. If the subsequent displacement exceeds ATR * dispMult, that candle becomes a bull order block. The zone is drawn at the candle's midpoint with ATR-scaled height. Zone border color is determined by the birth session: London = blue (#60a5fa), NY = pink (#f472b6), Asia = green (#34d399). The label shows type, session, displacement ratio (e.g., "▲ BULL LON 1.8x 5030.41"), and updates its x-position every bar to track the right edge of the chart. Border thickness scales with displacement ratio — zones from 2x+ displacement moves get thicker borders.
3. HMA Pressure Trail and Volume-Weighted MFI
An HMA ratchet trail determines directional commitment. The custom volume-weighted MFI sums volume * hlc3 on rising bars (positive flow) and volume * hlc3 on falling bars (negative flow), normalizes with the RSI formula, and smooths with an HMA. Bull pressure is active when the trail is bullish AND the smoothed MFI exceeds the bull threshold. Bear pressure when trail is bearish AND MFI below the bear threshold. The pressure strength percentage tracks the rolling 50-bar proportion of bars spent in an active pressure state.
4. Three-Layer Visual Architecture
Outer ATR Cloud: k_val ± cloudMult * ATR filled with directional color at near-full transparency — communicates macro volatility context and Kalman regime at a glance
Corridor Fill: The zone between the Kalman Supertrend line and the HMA trail — fills cyan when both agree bullish, rose when both agree bearish, neutral gray when diverging. When the corridor narrows and both trails converge in the same direction, confluence is building
Core Pressure Gradient: Between the HMA trail and the candle mid-body — transparent at the HMA, saturated at the body, colored by pressure state. Deep color indicates active, volume-backed directional pressure
5. Signal Hierarchy
★ HC Long / ★ HC Short: Trail flip + Kalman direction + OB proximity — the highest-confidence setup. Starred label with colored background
Trail flip arrows: Triangle up/down when trail flips in Kalman direction with MFI above/below 50 — standard entry signal
MFI cross-50 triangles: Small triangles on the Kalman trail when MFI crosses the 50 level in the trail direction — momentum regime shift marker
TP labels: Fire when MFI reaches overbought or oversold extremes in the trail direction
K▲ / K▼ labels: Mark the exact bar where the Kalman Supertrend direction flips
Squeeze diamond / circle: Diamond on squeeze start, circle on squeeze release
Volume impulse labels: "1.8x vol" label on high-volume directional bars above the configured multiple
Proximity diamonds: Fire on the first bar where price enters the OB proximity buffer
Features
Adaptive Kalman Filter: Self-calibrating gain updates noise estimate each bar — faster during impulses, smoother during consolidation
Supertrend Ratchet on Kalman: Direction-persistent bands applied to the filtered price — stable, low-whipsaw regime signal
Triple-Layer Kalman Glow: Widths 9/5/2 with decreasing transparency create a neon halo effect on the Supertrend trail
Outer ATR Volatility Cloud: Wide envelope around the Kalman value, gradient-filled by regime direction
Corridor Fill (Kalman ST ↔ HMA Trail): The alignment region between both trails — fills directionally when confluent, neutral when diverging
Core Pressure Gradient Fill: HMA-to-mid-body gradient colored by active pressure state
Session-Colored OB Zone Borders: London blue / NY pink / Asia green borders encode session context directly in the zone visual
OB Zone Labels: Type, session, displacement ratio, and price level — updated live at right chart edge
★ HC Long / HC Short Labels: Triple-confluence signal fired when trail flip, Kalman direction, and OB proximity align
Trail Flip Arrows: Triangle up/down entry signals when trail flips in Kalman direction with MFI midline confirmation
MFI Cross-50 Markers: Small triangles on the trail at momentum regime shifts
TP Overbought/Oversold Labels: Fire at MFI extremes in trail direction
K▲/K▼ Kalman Flip Labels: Pinpoint the exact bar of each Kalman regime change
Squeeze Detection: Diamond on Kalman band compression start, circle on release
K-Velocity Dots: Brightness-scaled dots on the trail communicating momentum acceleration
Volume Impulse Labels: Ratio labels on high-volume directional bars
Proximity Diamonds: Alert when price first enters the OB proximity buffer
Regime Transition Circles: Fire at every Kalman regime change on the trail line
Gradient Bar Coloring: Saturates with MFI intensity when Kalman and trail agree, fades to neutral otherwise
13-Row Dashboard: K-Regime, Trail, Pressure state, Zone proximity, Confluence, MFI, P-Strength %, Squeeze state, Band Width, Trend Bars, K-Velocity %, ATR
9 Alertconditions: Long/short signals, HC signals, TP signals, squeeze release, Kalman flips
Input Parameters
Regime Engine:
Kalman Alpha: Base noise smoothing — lower = smoother, more lag (default 0.02)
Kalman Beta: Error variance recovery rate (default 0.10)
Kalman Period: Gain magnitude scaler (default 50)
ST Factor: ATR multiplier for Supertrend bands on Kalman (default 1.5)
ST ATR Length: ATR lookback for band calculation (default 10)
Cloud ATR Width: Outer cloud multiplier (default 2.5)
Squeeze Threshold %: Band width below this % of SMA triggers squeeze (default 80%)
Zone Engine:
Swing Length: Pivot confirmation lookback (default 5)
OB Lookback: Bars searched for qualifying order block candle (default 20)
Displacement ATR Mult: Minimum move to validate an OB (default 0.8)
Zone ATR Width: Zone height as ATR fraction (default 0.75)
Max Active OBs / Side: Oldest zones trimmed beyond this limit (default 8)
Proximity Buffer (ATR): Approach detection radius (default 1.5)
Momentum Engine:
MFI Length: Volume-weighted money flow lookback (default 14)
MFI Smooth: HMA smoothing on raw MFI (default 5)
Trail HMA Length: HMA period for pressure trail (default 14)
Trail ATR Mult: Trail band width (default 1.5)
MFI Bull/Bear Thresholds: Pressure activation levels (default 58/42)
Signals:
TP Overbought / Oversold: MFI extremes for TP labels (default 78/22)
Impulse Vol Multiplier: Volume multiple for impulse labels (default 1.5)
How to Use This Indicator
HC Signal Setup:
The ★ HC Long / HC Short label is the primary setup. It fires when the trail flips in the Kalman direction while price is within proximity of an active order block. Enter on the labeled bar. Trail your stop at the HMA trail line. Look for the TP label or pressure state deactivation as an exit reference.
Corridor Fill as Trend Quality Gauge:
When the corridor between the Kalman trail and HMA trail is narrow and saturated with color, both trend systems are locked in the same direction — this is the highest-confidence trending condition. When the corridor is wide or neutral gray, the two systems are diverging — reduce size or wait for re-alignment.
Reading the Signal Hierarchy:
Start with the Kalman regime (K▲/K▼ label and trail color) for macro direction. Add the trail flip arrow for timing. Confirm with MFI cross-50 triangle. Check if an OB zone is nearby for HC bonus. Exit on TP label or when the corridor fill turns neutral.
Squeeze Breakout Setup:
When the golden diamond squeeze marker fires, the Kalman bands are compressing. Wait for the circle squeeze release marker. If the trail is aligned with the Kalman regime at release, the first trail flip after the release is a high-quality breakout entry.
Indicator Limitations
Order block detection requires a confirmed swing pivot, which in Pine Script v6 is offset by swingLen bars — zones are created after the fact relative to the actual pivot candle
The corridor fill between the Kalman trail and HMA trail can produce wide fills on instruments with large spread between the two systems — this is informational, not a defect, but may visually dominate the chart on some timeframes
HC signals require all three conditions simultaneously. On instruments with sparse order block formation, HC signals may be infrequent compared to standard trail flip arrows
The volume-weighted MFI requires volume data. On instruments with unreliable volume reporting, the pressure engine may be less meaningful than on equities or futures
Squeeze detection uses 80% of the 20-bar SMA as the threshold. On instruments that are persistently low-volatility, this threshold may trigger continuously — adjust the squeeze percentage parameter upward for such instruments
Originality Statement
This indicator is original in its three-engine confluence architecture, the corridor fill system between the Kalman Supertrend and HMA trail, and the session-colored OB zone integration with the starred HC signal. The publication is justified because:
The corridor fill between the Kalman Supertrend trail and the HMA pressure trail creates a novel visual quality gauge — the width and saturation of the corridor communicates alignment strength between macro regime and near-term pressure in a single spatial layer
Session-colored OB zone borders encode institutional session context directly into the zone visual without requiring a separate session indicator, making the chart self-contained for context-aware zone evaluation
The HC signal requires three independent engine conditions to coincide: Kalman regime direction, trail flip timing, and OB proximity. This triple-gate structure is a more restrictive and higher-quality filter than any two-condition confluence approach
The three-layer visual architecture (outer cloud, corridor fill, core pressure gradient) creates a spatially organized picture where the distance between layers communicates regime context, trail alignment, and pressure intensity at different spatial scales simultaneously
The K-velocity dot brightness system embeds momentum acceleration directly into the trail visualization without requiring a separate panel — the trail itself communicates direction, state, and rate of change simultaneously
Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial advice or a recommendation to buy or sell any financial instrument. Past performance of any pattern or signal does not guarantee future results. All trading involves substantial risk. Always use proper risk management and conduct your own independent analysis.
— Made with passion by officialjackofalltrades
Indicator

AG Pro HTF Bias Dashboard [AGPro Series]AG Pro HTF Bias Dashboard
Overview / What it does
AG Pro HTF Bias Dashboard is a higher-timeframe context tool built for traders who want a fast, structured view of directional conditions across multiple larger timeframes without crowding the chart with extra signals, zones, or decision noise.
The script summarizes higher-timeframe bias in a compact dashboard and presents each selected row as Bull, Bear, or Neutral, together with a mode-specific status readout. The goal is not to predict the next candle or replace a full trade plan. The goal is to make larger-timeframe context easier to read at a glance.
This indicator is designed to answer a simple but important workflow question: "What is the broader directional environment across the higher timeframes I care about right now?" Instead of forcing the user to manually flip through multiple charts and compare structure or trend conditions one by one, the dashboard keeps that information visible in a single panel.
The script supports multiple bias engines so the same dashboard can be adapted to different styles of chart reading. Users can evaluate higher-timeframe context through EMA Stack alignment, confirmed Swing Structure, SuperTrend direction, or MACD Momentum agreement. This makes the tool flexible enough for trend-following traders, structure-based traders, and users who prefer momentum-style confirmation.
Unlike many overlays that try to combine entries, exits, alerts, pattern detection, and signal generation inside one study, this script stays focused on one task: higher-timeframe directional context. That single-purpose design is intentional. It keeps the output clean, readable, and easier to integrate into an existing process.
Unique Edge
The main strength of this script is not signal generation. Its edge is structured context compression.
Instead of plotting a large number of higher-timeframe elements directly on the chart, AG Pro HTF Bias Dashboard converts higher-timeframe conditions into a compact visual matrix. This makes it possible to assess multi-timeframe agreement quickly while keeping the chart itself relatively clean.
A second differentiator is the ability to switch the bias engine. The dashboard is not locked to one interpretation framework. Users can work with:
- EMA Stack, for ribbon-style alignment
- Swing Structure, for confirmed HH/HL and LH/LL progression
- SuperTrend, for ATR-based directional trend state
- MACD Momentum, for momentum agreement between line, signal, and histogram
Another important detail is the higher-timeframe validity filter. Rows that are not actually higher than the current chart timeframe are marked as Lower/EQ instead of being treated as valid higher-timeframe context. This helps keep the dashboard aligned with its intended purpose.
The script also includes confluence logic, so the user can see not only the state of each row, but also the dominant higher-timeframe bias and how many valid rows support that direction. In practice, this helps users distinguish between broad directional agreement and mixed conditions.
Methodology
The dashboard can display three to five higher-timeframe rows, depending on user settings. Each row evaluates one selected timeframe and classifies it into Bull, Bear, or Neutral.
Bias Mode options:
1) EMA Stack
This mode evaluates directional alignment using a three-EMA structure. A bullish state requires price and the EMA ribbon to be aligned in bullish order. A bearish state requires the opposite alignment. When the full sequence is not aligned, the row can remain neutral and display a partial status such as 2/3 or 1/3 rather than forcing a directional label.
2) Swing Structure
This mode uses confirmed pivot logic to read higher-timeframe structure. It looks for confirmed higher highs / higher lows or lower highs / lower lows, and then evaluates position relative to the active swing range. Because this logic depends on confirmed pivots, structure changes are naturally more selective and may appear later than faster trend models.
3) SuperTrend
This mode reads directional state using an ATR-based trend framework. It is intended for users who prefer a cleaner directional state model rather than ribbon alignment.
4) MACD Momentum
This mode classifies bias through agreement between the MACD line, signal line, and histogram. It is useful for traders who prefer momentum confirmation over structure or moving-average ordering.
The dashboard then calculates:
- the number of valid bullish rows
- the number of valid bearish rows
- the dominant higher-timeframe state
- the confluence count across valid rows
Optional chart context features are also included. Depending on settings, the script can color candles according to the active chart bias, plot the active EMA ribbon or SuperTrend on the chart, apply a subtle background tint when confluence is strong enough, and show a compact mini context tag on the chart.
States / Context Output
This indicator is a context dashboard, not an alert engine.
It does not generate buy or sell alerts, does not mark trade entries, and does not claim to identify optimal execution points. Its outputs are state-based and contextual:
- Bull
- Bear
- Neutral
- Confluence summary
- Mode-specific status text
The mini chart tag, when enabled, is only a compact summary of dominant higher-timeframe direction and current confluence. It should be read as context, not as a trade instruction.
Key Inputs
Higher Timeframes
Users can select three to five rows and define the exact higher timeframes to monitor.
Bias Mode
Choose between EMA Stack, Swing Structure, SuperTrend, and MACD Momentum.
Engine Parameters
The script exposes relevant inputs for each engine, including EMA lengths, Swing Strength, SuperTrend ATR settings, and MACD settings.
HUD Controls
The panel position and panel scale can be customized so the dashboard can fit different layouts and chart styles.
Style Controls
Users can adjust theme and directional colors for bullish, bearish, and neutral states.
Chart Context Controls
Optional features include candle coloring, active indicator plotting for EMA / SuperTrend, strong-confluence background tinting, mini context tag visibility, tag anchor, tag offset, and tag font size.
Limitations & Transparency
This script is not a prediction model. It summarizes directional context from user-selected higher-timeframe logic.
Higher-timeframe tools can update only when data from those larger intervals updates. Because of that, the dashboard should be understood as a context layer rather than a real-time trigger engine.
Swing Structure mode uses confirmed pivots. That means structure changes may appear later than faster directional methods, because confirmation requires completed pivot information.
Neutral states do not necessarily mean the market is untradeable. They simply indicate that the selected bias engine does not currently show clear directional alignment under the chosen rules.
The confluence count is a summary statistic, not a quality score. A larger number of aligned rows does not automatically mean a better trade. It only means more selected higher-timeframe rows currently point in the same direction.
Rows marked Lower/EQ are excluded from valid higher-timeframe confluence because they are not above the active chart timeframe.
This script is intended to support discretionary analysis and chart organization. It should be combined with the user’s own execution framework, risk model, and market understanding.
Risk Disclosure
This indicator is provided for analysis and educational use. It does not provide financial advice, investment advice, or guaranteed outcomes.
Market conditions can change quickly, and no single indicator or dashboard can remove uncertainty from trading or investing. Users should evaluate higher-timeframe context together with price action, liquidity, volatility, risk management, and their own decision process.
Past behavior, historical alignment, or current confluence does not guarantee future performance.
Indicator

AG Pro ICT Confluence Score Dashboard [AGPro Series]AG Pro ICT Confluence Score Dashboard
Overview / What it does
AG Pro ICT Confluence Score Dashboard is a panel-first decision support tool built to evaluate whether multiple ICT-style conditions are aligning at the same time. Instead of focusing on a single event in isolation, the script converts several contextual factors into a structured confluence model so traders can quickly assess whether the current environment is weak, building, or high-conviction.
The dashboard tracks a stack of evidence that includes sweep activity, imbalance interaction, block retests, structure shifts, premium/discount location, trap context, session context, higher-timeframe alignment, freshness, and conflict. Those components are summarized into core and effective scores, then translated into a clean bias/state panel. An optional chart layer can display signal tags and a lightweight halo only when stronger threshold conditions are met.
This script is designed for traders who prefer structured context over isolated triggers. It does not attempt to replace discretion, and it is not presented as a one-click signal engine. Its purpose is to help users evaluate whether multiple factors are working together in the same direction, or whether the current picture is mixed and should be treated more cautiously.
What makes the script practical is that it reduces chart-reading friction. A trader can still inspect sweeps, gaps, blocks, structure, and location manually, but the dashboard helps organize that information into a readable hierarchy. This makes it easier to separate random activity from environments where several pieces of evidence are beginning to align.
Unique Edge
The distinctive feature of this script is not that it detects one ICT concept better than every other tool. Its edge comes from treating multiple ICT-style events as parts of a single evidence framework. The dashboard does not simply list conditions; it scores them, weighs context, and highlights whether the active side remains clean or is facing meaningful opposition.
That means the script is less about finding a single pattern and more about measuring alignment quality. A sweep without supportive structure is different from a sweep followed by structure, location support, and a fresh contextual trigger. A gap touch inside a neutral area is different from a gap touch that appears inside a stronger directional stack. By organizing these relationships into a dashboard, the script gives the user a more structured read on what is happening now.
This also separates it from single-purpose tools. AG Pro ICT Confluence Score Dashboard is not a standalone liquidity sweep script, not a standalone FVG script, not a standalone order block script, and not a standalone session indicator. It is a meta-layer built to evaluate whether several pieces of market evidence are converging into a more coherent setup environment.
Methodology
The model begins with a set of factor states derived from recent chart structure. Confirmed pivot swings are used to define recent highs and lows. From there, the engine evaluates conditions such as sweep events, structure breaks, imbalance zones, block interaction, premium/discount location, and trap-style sequences. Each factor can become active for a limited validity window instead of remaining relevant indefinitely.
The script then builds a core score for bullish and bearish context separately. Session logic can add a directional bonus when the active side is aligned with the configured session window. After that, contextual adjustments are applied through higher-timeframe alignment, freshness, and conflict logic. This produces an effective score that attempts to reflect not only how many factors are present, but whether they are present in a cleaner and more supportive sequence.
The dashboard then translates that information into a readable structure: Bull/Bear core values, effective score, net bias, score bar, conflict read, Why Now summary, Sequence summary, and factor-by-factor status rows. The idea is to help the user see both the headline state and the underlying reasons behind it.
Signals & Alerts
The optional chart signals are intentionally restrained. They are meant to mark stronger score states rather than call every minor condition. Signal tags can appear when the configured score threshold is reached, and the visual layer can be limited so the chart stays readable.
Available alert logic is based on state transitions rather than promotional claims. The script can notify when bullish or bearish confluence crosses the configured threshold, when high confluence is entered, and when that state is lost. This keeps the alert structure deterministic and easier to interpret in a workflow.
Key Inputs
Swing Length controls the pivot sensitivity used by the structure engine.
Factor Validity Window defines how long a detected event can continue to contribute to the stack.
Trap Confirmation Window controls how tightly sweep and structure events must cluster to qualify as trap context.
Freshness Window helps determine whether the active side is still recent enough to deserve extra weight.
Conflict Penalty Threshold defines when opposing evidence becomes meaningful enough to reduce the active side.
Alert Threshold sets the effective score level required for stronger signal conditions.
HTF Timeframe and HTF EMA Length define the higher-timeframe directional filter.
Session controls allow users to enable or disable London, New York, and Asia windows.
Dashboard and visual controls manage panel position, theme, text size, signal tags, and halo behavior.
Limitations & Transparency
This script is a context model, not a prediction model. A high score does not guarantee continuation or reversal, and a low score does not mean price cannot move aggressively. The dashboard only summarizes the relationship between the conditions it measures.
Some components rely on confirmed pivot logic. Because pivot confirmation needs bars on both sides, certain structure-related states become available only after that confirmation exists. This is a design choice intended to keep the model structured, but it also means some events are inherently delayed relative to raw price movement.
The script is also selective by design. It does not attempt to represent every possible ICT interpretation, and it does not replace chart reading, risk control, or execution planning. Users should treat it as a decision-support framework that helps organize evidence, not as a substitute for a full trading process.
Risk Disclosure
This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment advice, or a solicitation to buy or sell any financial instrument. Trading involves risk, and users should rely on their own analysis, risk management, and judgment before making decisions. Indicator

AG Pro Pivot Cluster Survival Map [AGPro Series]AG Pro Pivot Cluster Survival Map
Overview / What it does
AG Pro Pivot Cluster Survival Map is an overlay tool that evaluates the durability of nearby pivot clusters rather than focusing on a single pivot reaction. The script groups Daily, Weekly, and Monthly Classic Pivot levels when they compress into the same price neighborhood, then measures how well that cluster has held up under repeated interaction.
The goal is not to label every pivot touch as strong or weak. The goal is to show whether a pivot-derived zone has continued to absorb pressure, remain structurally relevant, or lose stability over time. This makes the script suitable for users who want to monitor confluence-based pivot structure instead of isolated one-bar reactions.
The visual model is intentionally compact. The script highlights the nearest upper cluster and the nearest lower cluster, assigns a survival score to each side, and displays a pressure readout for the dominant active zone. The result is a map of pivot-cluster durability, not a generic support/resistance overlay and not a simple reaction detector.
Unique Edge
The distinguishing feature of this script is its focus on pivot-cluster survival.
Many pivot tools concentrate on one level at a time. Many reaction tools classify the immediate response after a touch, reclaim, or rejection. This script approaches the problem differently. It asks whether multiple pivot levels from different higher timeframes are compressing into the same zone, and whether that zone is still surviving repeated market interaction.
That difference matters.
This script does not score a single bounce. It does not try to predict a reversal from one isolated pivot event. It evaluates whether a pivot cluster remains durable after tests, inside-zone pressure, breaches, and time spent without structural failure.
Within the AG Pro catalog, this script is materially different from AG Pro Pivot Points Reaction Map. Pivot Points Reaction Map is centered on reaction quality at pivot levels. Pivot Cluster Survival Map is centered on cluster durability, confluence density, and survival under pressure. In other words, one evaluates the response; the other evaluates the staying power of the pivot cluster itself.
It is also different from broader level-survival or support/resistance tools because the source engine here is explicitly pivot-derived. The script is built around Daily, Weekly, and Monthly Classic Pivot families, then transformed into a confluence-survival framework.
Methodology
The current version uses Classic Pivot calculations from higher timeframes.
1. Daily, Weekly, and Monthly pivot levels are collected.
2. Nearby pivot levels are grouped into clusters when they fall within the active cluster width.
3. The script selects the nearest upper cluster and the nearest lower cluster relative to current price.
4. Each selected cluster is evaluated with a survival model.
The survival model is based on factors such as:
- cluster density
- higher-timeframe participation
- repeated tests
- rejection behavior
- inside-zone pressure
- breach frequency
- time since structural failure
A higher survival score suggests that the cluster has remained more durable under recent interaction. A higher pressure reading suggests that the cluster is experiencing more structural stress.
The chart display is intentionally selective. Instead of plotting every pivot line independently, the script concentrates on the nearest relevant clusters and presents them as zones with a backbone line and state label. This is designed to keep the structure readable.
States / Signals
The script uses state-based interpretation rather than directional promises.
Typical state classifications include:
- Stable
- Strengthening
- Balanced
- Under Stress
- Fragile
- Failed
These states are derived from the relationship between survival and pressure. They are meant to describe the condition of the cluster, not to issue a guaranteed trading outcome.
The panel summarizes:
- nearest upper cluster
- nearest lower cluster
- dominant survival side
- cluster pressure
- pivot mix currently included in the model
The script can also generate alert conditions for:
- cluster strengthening
- cluster failure
- cluster reclaim behavior
These alerts are deterministic conditions derived from the script logic. They are informational and should be interpreted within a broader market workflow.
Key Inputs
Pivot Formula
This version is intentionally limited to Classic Pivots in order to keep the clustering and scoring model consistent.
Include Daily / Weekly / Monthly
These settings control which higher-timeframe pivot families are included in the cluster engine.
Cluster ATR Width
Controls how aggressively nearby pivot levels are merged into the same cluster using ATR-based spacing.
Cluster Percent Width
Adds a percentage-based width floor so clusters remain practical across different price scales.
Minimum Levels Per Cluster
Controls how many pivot levels are required before a true cluster is recognized.
Survival Lookback
Defines the observation window used for the durability calculations.
Visual Controls
The script includes settings for cluster visibility, labels, backbone lines, panel location, and font sizes.
Limitations & Transparency
This script is a structural reading tool. It is not a prediction engine.
A high survival score does not guarantee that price will reverse, hold, or trend from that area. A low survival score does not guarantee immediate failure. The values should be read as condition metrics for pivot-derived zones.
Because the script groups pivot levels into clusters, output can vary depending on volatility, symbol characteristics, and timeframe context. On some symbols, one side may show a stronger cluster than the other. On some charts, one side may temporarily rely on a weaker fallback anchor when cluster density is limited.
This script does not attempt to replace market structure analysis, higher-timeframe context, liquidity analysis, or risk management. It is intended to organize pivot confluence into a readable survival framework.
What this script is not:
- not a buy/sell signal engine
- not a guarantee of support or resistance
- not a standalone trade system
- not a future-price prediction model
Risk Disclosure
This script is for chart analysis and decision support only. It does not provide financial, investment, or trading advice. Markets can move unpredictably, and no indicator can eliminate risk.
Users should evaluate signals, states, and cluster conditions together with their own process, timeframe alignment, and risk controls before making any decision.
Indicator

Harmonic Resonance Detector [JOAT]Harmonic Resonance Detector
Introduction
The Harmonic Resonance Detector is an advanced open-source Fibonacci analysis indicator that combines multi-wave Fibonacci retracements, confluence zone detection, golden ratio harmonics, and density heatmapping into a unified harmonic analysis system. This indicator helps traders identify high-probability reversal and continuation zones by analyzing where multiple Fibonacci levels from different swing waves converge, creating magnetic price attraction zones.
Unlike basic Fibonacci tools that draw levels from a single swing, this system analyzes three simultaneous swing waves (primary, secondary, tertiary) and identifies where their Fibonacci levels cluster. These confluence zones represent areas where multiple timeframes and swing structures agree on key levels, significantly increasing the probability of price reaction. The indicator is designed for traders who understand that Fibonacci levels work best when multiple waves confirm the same price zone.
Why This Indicator Exists
This indicator addresses a fundamental limitation of traditional Fibonacci analysis: single-swing Fibonacci levels are subjective and often unreliable. Different traders draw different swings and get different levels. By combining multiple swing analyses and identifying confluence, this indicator reveals:
Triple Swing Analysis: Analyzes three different swing lengths simultaneously (20, 50, 100 periods) to capture short, medium, and long-term structure
Confluence Zone Detection: Identifies where multiple Fibonacci levels cluster within tolerance - these zones act as price magnets
Golden Pocket Highlighting: Marks the 0.618-0.65 retracement zone - the highest probability reversal area based on golden ratio
Fibonacci Extensions: Projects 1.272, 1.414, and 1.618 extension levels for profit targets beyond the swing range
Density Heatmap: Visual representation of Fibonacci level concentration - darker colors = more confluence
Liquidity Sweep Detection: Identifies when price breaks highs/lows but closes back inside - signals institutional traps
Each component provides a different lens on harmonic structure. Triple swing analysis shows multi-timeframe agreement, confluence zones show magnetic levels, golden pocket shows optimal entry, extensions show targets, heatmap shows density, and sweeps show manipulation. Together, they create a comprehensive view of harmonic resonance.
Core Components Explained
1. Triple Swing Fibonacci Analysis
The indicator calculates Fibonacci retracements from three different swing lengths simultaneously:
// Calculate swing high/low for each period
swingHigh1 = ta.highest(high, 20) // Primary wave
swingLow1 = ta.lowest(low, 20)
swingHigh2 = ta.highest(high, 50) // Secondary wave
swingLow2 = ta.lowest(low, 50)
swingHigh3 = ta.highest(high, 100) // Tertiary wave
swingLow3 = ta.lowest(low, 100)
// Calculate Fibonacci levels for each swing
fib1 = calculateFibs(swingHigh1, swingLow1)
fib2 = calculateFibs(swingHigh2, swingLow2)
fib3 = calculateFibs(swingHigh3, swingLow3)
For each swing, the indicator calculates standard Fibonacci retracement levels:
23.6% - Shallow retracement, weak pullback
38.2% - Moderate retracement, common in strong trends
50.0% - Equilibrium level, psychological significance
61.8% - Golden ratio, highest probability reversal zone
78.6% - Deep retracement, last chance before trend failure
By analyzing three different swing lengths, the indicator captures short-term, medium-term, and long-term structure simultaneously. When levels from all three swings align, it creates powerful confluence.
2. Confluence Zone Detection
The indicator identifies zones where multiple Fibonacci levels cluster within a tolerance percentage:
confluenceTolerance = 0.3 // Default 0.3%
// For each Fibonacci level, count how many other levels are nearby
for each level in allFibLevels:
confluenceCount = 0
for each otherLevel in allFibLevels:
if abs(level - otherLevel) / level * 100 <= confluenceTolerance:
confluenceCount += 1
if confluenceCount >= 3: // Minimum 3 levels clustering
createConfluenceZone(level, confluenceCount)
Confluence zones are displayed as:
Horizontal boxes spanning the tolerance range
Color intensity based on confluence count (4+ levels = red, 3 levels = orange, 2 levels = yellow)
Labels showing "3x CONFLUENCE", "4x CONFLUENCE", etc.
Thicker borders for higher confluence zones
The more Fibonacci levels that converge at a price zone, the stronger the magnetic effect. 4x or 5x confluence zones are extremely high-probability reaction areas.
3. Golden Pocket Visualization
The Golden Pocket is the zone between 0.618 and 0.65 Fibonacci retracement - the highest probability reversal area:
fib618 = swingLow + (swingHigh - swingLow) * 0.618
fib650 = swingLow + (swingHigh - swingLow) * 0.650
goldenTop = max(fib618, fib650)
goldenBottom = min(fib618, fib650)
The Golden Pocket is special because:
Based on the golden ratio (phi = 1.618), found throughout nature and markets
Represents optimal balance between retracement depth and trend continuation
Historically shows highest win rate for reversal trades
Often coincides with institutional order placement zones
The indicator highlights the Golden Pocket with:
Multi-layer gradient gold box
"GOLDEN POCKET" label at center
Enhanced candlestick coloring when price is inside (gold for bullish, brown for bearish)
Background gradient when price enters the zone
4. Fibonacci Extensions
Extensions project levels beyond the swing range for profit targets:
// Extension levels
ext1272 = swingLow + (swingHigh - swingLow) * 1.272
ext1414 = swingLow + (swingHigh - swingLow) * 1.414
ext1618 = swingLow + (swingHigh - swingLow) * 1.618
Extension levels represent:
127.2% - First extension target, common profit-taking zone
141.4% - Square root of 2, geometric harmony level
161.8% - Golden ratio extension, major target zone
Extensions are drawn as dashed lines with purple gradient colors. They show where price is likely to find resistance after breaking through the swing high (or support after breaking swing low).
5. Confluence Density Heatmap
The heatmap visualizes Fibonacci level concentration across the price range:
The indicator:
Divides the recent price range into 20 grid cells
Counts how many Fibonacci levels fall into each cell
Colors cells based on density (blue = low, red = high)
Displays as vertical bars on the left side of the chart
The heatmap reveals:
Zones with highest Fibonacci concentration (darkest red)
Gaps where few Fibonacci levels exist (blue or empty)
Vertical distribution of harmonic structure
Quick visual reference for key zones
Traders can quickly identify the most important price levels by looking for the darkest red cells in the heatmap.
6. Liquidity Sweep Detection
Liquidity sweeps occur when price breaks a swing high/low but closes back inside the range - a classic institutional trap:
// Detect sweep: high breaks previous swing high but close is below it
liquiditySweepHigh = high > prevSwingHigh and close < prevSwingHigh
// Detect sweep: low breaks previous swing low but close is above it
liquiditySweepLow = low < prevSwingLow and close > prevSwingLow
When sweeps occur:
Dashed horizontal line marks the swept level
"LIQ SWEEP" label appears
Often precedes reversal as institutions trapped retail traders
Combines with Fibonacci confluence for high-probability setups
Liquidity sweeps at Fibonacci confluence zones are especially powerful - they signal institutional positioning complete and reversal imminent.
7. Equilibrium Boxes (EQH/EQL)
Equilibrium boxes mark 50% retracement zones throughout the chart:
The indicator:
Identifies significant ranges throughout lookback period
Calculates 50% level (equilibrium) for each range
Draws grey boxes around equilibrium with dashed center line
Labels with "EQH" (Equal Highs) marker
Equilibrium zones represent fair value and often act as support/resistance. Price tends to gravitate toward equilibrium before continuing or reversing.
Visual Elements
Fibonacci Lines: Dotted lines at 23.6%, 38.2%, 50%, 61.8%, 78.6% with color coding
Extension Lines: Dashed purple lines at 127.2%, 141.4%, 161.8%
Confluence Zones: Horizontal boxes with intensity-based coloring and count labels
Golden Pocket: Multi-layer gradient gold box with center label
Density Heatmap: Vertical gradient bars showing Fibonacci concentration
Liquidity Sweeps: Dashed lines with "LIQ SWEEP" labels
Equilibrium Boxes: Grey boxes with dashed center lines and "EQH" labels
Enhanced Candles: Gold/orange coloring in Golden Pocket, red/green at confluence zones
Background Gradients: Premium zone (red), Discount zone (green), Golden Pocket (gold)
Dashboard: Real-time confluence metrics and trade signals
The dashboard displays 8 key metrics:
1. Active Zones (count of confluence zones)
2. Peak Confluence (highest confluence count)
3. Nearest Zone (distance to closest confluence)
4. Magnetic Pull (Extreme/Strong/Moderate/Weak)
5. Golden Zone (Active/Inactive)
6. Heatmap Density (total Fibonacci levels)
7. Trade Signal (Sniper Entry/Valid Setup/Wait)
Input Parameters
Harmonic Waves:
Primary Wave: First swing length (default: 20)
Secondary Wave: Second swing length (default: 50)
Tertiary Wave: Third swing length (default: 100)
Golden Pocket: Enable 0.618-0.65 zone highlighting
Confluence Engine:
Resonance Tolerance: Percentage range for confluence (default: 0.3%)
Min Harmonic Count: Minimum levels required for confluence (default: 3)
Magnetic Zones: Enable/disable confluence zone boxes
Visualization:
Fibonacci Levels: Show/hide retracement lines
Confluence Zones: Show/hide confluence boxes
Density Heatmap: Show/hide vertical heatmap
Extensions: Show/hide 1.272, 1.414, 1.618 levels
Equilibrium Boxes: Show/hide EQH zones
Liquidity Sweeps: Show/hide sweep markers
Gradient Backgrounds: Show/hide value zone colors
Enhanced Candlesticks: Enable special candle coloring
How to Use This Indicator
Step 1: Identify Confluence Zones
Look for horizontal boxes with "3x CONFLUENCE" or higher labels. These are magnetic zones where price is likely to react. 4x+ confluence = highest probability.
Step 2: Check Golden Pocket Status
Dashboard shows if Golden Pocket is active. When price enters the golden zone (0.618-0.65), it's optimal reversal area. Candles turn gold.
Step 3: Monitor Nearest Zone Distance
Dashboard shows distance to nearest confluence. <0.5% = price is at the zone. <1.0% = approaching. >2.0% = far away.
Step 4: Assess Magnetic Pull Strength
Dashboard shows pull strength. "EXTREME" = 4+ confluence within 0.5%. "STRONG" = 3+ confluence within 1.0%. Trade extreme and strong only.
Step 5: Watch for Liquidity Sweeps
When price sweeps a high/low at a confluence zone and reverses, it's a sniper entry. Institutions trapped retail and are now reversing.
Step 6: Use Extensions for Targets
After entry at confluence zone, use extension levels (127.2%, 141.4%, 161.8%) as profit targets. These are natural resistance/support zones.
Step 7: Check Trade Signal
Dashboard shows "SNIPER ENTRY" when price is within 0.5% of 4+ confluence. "VALID SETUP" for 3+ confluence within 1.0%. "WAIT" otherwise.
Best Practices
Higher confluence = higher probability - prioritize 4x+ zones
Golden Pocket + confluence = best reversal setups
Liquidity sweeps at confluence zones = institutional positioning
Use heatmap for quick visual reference of key zones
Extensions work best after confluence zone holds
Equilibrium boxes show fair value - expect gravitational pull
Premium/discount background shows context - buy discount, sell premium
Enhanced candles signal when price is at key zones
Multiple timeframe confluence (all three swings) = strongest setups
Confluence zones can act as support after breaking resistance (and vice versa)
Indicator Limitations
Fibonacci analysis is subjective - different swing selections produce different levels
Confluence zones show where levels cluster, not guaranteed reversals
Golden Pocket doesn't always hold - strong trends can blow through it
Liquidity sweeps can extend further than expected (double sweeps)
Heatmap density doesn't account for level importance (all levels weighted equally)
Extensions may not be reached in weak trends
Tolerance setting affects confluence detection - too tight misses zones, too wide creates false zones
The indicator shows harmonic structure, not fundamental drivers
Confluence zones can fail during news events or market shocks
Technical Implementation
Built with Pine Script v6 using:
Triple swing Fibonacci calculations with automatic trend detection
Confluence detection algorithm with tolerance-based clustering
Golden Pocket identification and highlighting system
Fibonacci extension projections (1.272, 1.414, 1.618)
Density heatmap with grid-based level counting
Liquidity sweep detection with close confirmation
Equilibrium box generation throughout chart history
Enhanced candlestick coloring based on zone proximity
Multi-gradient background system for value zones
Real-time dashboard with 8 harmonic 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 harmonic integration approach. While individual components (Fibonacci retracements, golden ratio, extensions) are established concepts, this indicator is justified because:
It synthesizes three simultaneous swing analyses into unified confluence detection
The confluence algorithm identifies clustering zones with configurable tolerance
Golden Pocket highlighting with enhanced visualization and candlestick coloring
Density heatmap provides visual representation of Fibonacci concentration
Liquidity sweep detection combines with Fibonacci zones for trap identification
Equilibrium box system marks fair value zones throughout chart history
Multi-gradient background system shows premium/discount context
Magnetic pull strength quantification based on confluence and proximity
Real-time dashboard presents 8 metrics simultaneously for holistic harmonic analysis
Each component contributes unique information: Triple swings show multi-timeframe structure, confluence shows magnetic zones, golden pocket shows optimal entry, extensions show targets, heatmap shows density, sweeps show manipulation, and equilibrium shows fair value. The indicator's value lies in presenting these complementary perspectives simultaneously with unified classification and actionable trade signals.
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.
Fibonacci analysis is a tool for identifying potential support and resistance zones, not a crystal ball for predicting future price movement. Confluence zones do not guarantee reversals. Golden Pocket does not guarantee entries. Extensions may not be reached. Past harmonic patterns do not guarantee future harmonic patterns. Market conditions change, and strategies that worked historically may not work in the future.
The zones displayed are analytical constructs based on current market data, not predictions of future price movement. High confluence 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

MTF Pure Delta Light [Zofesu]01 — Overview
What is MTF Pure Delta Light?
MTF Pure Delta Light is a minimalist overlay indicator that displays the volume delta of any chosen timeframe directly on your chart — as a compact, always-visible table widget. No separate pane, no clutter. Just the number and the trend direction.
Delta is the difference between buying and selling volume pressure for a bar. A positive delta means buyers dominated. A negative delta means sellers dominated. Combined with the HMA trend direction, you get an instant read on who is in control — on any timeframe — without leaving your chart.
BULLISH EXAMPLE
TF: D Delta Trend
+24.7K ▲
BEARISH EXAMPLE
TF: D Delta Trend
-19.4K ▼
Why "Light"?
This is the lightweight companion to the full Flow Oscillator. No separate pane, no cumulative history — just the current bar's delta value and trend direction from your chosen timeframe, always visible on the chart. Designed for traders who want context without complexity.
02 — Delta Calculation
How Delta Is Measured
The indicator uses the same dual-source delta standard as the full Flow Oscillator:
Footprint - Real bid/ask volume delta via fp.delta(). Used when your broker or data feed provides footprint data. Exact buying vs. selling volume per bar. High ✅
Elder CTI - Approximation using volume × (2×close − high − low) / range. Automatic fallback when footprint is unavailable. Works on all instruments and brokers. Good ⚡
The delta is then smoothed using an HMA (Hull Moving Average) to determine trend direction. HMA is used specifically because it minimises lag — the trend signal responds quickly to delta shifts without excessive whipsawing.
03 — Table Widget
Reading the Display
The table widget shows two values at all times:
Delta Value (left)
The raw delta of the selected timeframe bar. Green = positive (buyers dominated). Red = negative (sellers dominated). Formatted as volume shorthand (K, M).
Trend Arrow (right)
▲ Green — HMA delta trend rising. Buying pressure increasing.
▼ Red — HMA delta trend falling. Selling pressure increasing.
▬ Gray — No change. Neutral.
✅ Strong Bullish
Delta positive AND trend arrow ▲. Buyers in control and accelerating. Highest confidence bullish read.
⚠️ Divergence Warning
- Delta positive BUT trend arrow ▼ — buying is slowing.
- Delta negative BUT trend arrow ▲ — selling is slowing.
Potential shift incoming.
✅ Strong Bearish
Delta negative AND trend arrow ▼. Sellers in control and accelerating. Highest confidence bearish read.
➡️ Neutral
Delta near zero or trend arrow ▬. No dominant force. Avoid directional bias until one side takes control.
04 — Settings
Configuration Parameters
Group - Parameter - Default - Description
Core - Target Timeframe - D - Timeframe for delta calculation. Use standard TV notation: 1, 5, 15, 60, 240, D, W. Leave D for daily delta on any intraday chart.
Core - Trend Smoothing (HMA) - 5 - HMA length for delta trend direction. Lower = faster reaction, more signals. Higher = smoother, fewer but stronger signals.
UI - Table Position - Top Right - Position of the widget on the chart. Options: Top Right, Top Left, Bottom Right, Bottom Left, Middle Right, Middle Left.
UI - Text Size - Large - Widget text size. Small for compact charts, Large for readability at a glance.
UI - Background Opacity - 80 - Transparency of the widget background. 0 = fully transparent, 100 = fully opaque black.
Timeframe examples:
60 = 1 hour · 240 = 4 hours · D = Daily · W = Weekly
Recommended setup: If you trade H1 charts, set Target Timeframe to D. You get the daily delta context without switching charts.
05 — Use Cases
When and How to Use It
Higher timeframe context on intraday charts
Set Target Timeframe to D while trading on H1 or H4. The widget shows you whether the daily bar is currently dominated by buyers or sellers — without leaving your intraday view. Align your intraday trades with the daily delta direction for higher probability setups.
Quick confluence check
Before entering a trade, check the widget. If your price action setup is bullish but the delta is strongly negative with a ▼ trend — reconsider. If everything aligns — price structure, S/R, and positive delta ▲ — confidence increases.
Multi-indicator stack
MTF Pure Delta Light is designed to run alongside other indicators without occupying a separate pane. Pair it with Best MA for trend context and Flow Oscillator for cumulative delta history — all three together give a complete volume-delta picture.
Important: Delta is a confirmation tool, not a prediction tool. A positive delta tells you buyers dominated the last completed bar on your chosen timeframe — it does not guarantee the next bar will be bullish. Always use price structure and S/R as your primary decision framework. Indicator

Ultimate Confluence Engine Synapse v6Ultimate Confluence Engine v6
Description:
Ultimate Confluence Engine v6 is a multi-layer signal confluence system that combines seven independent analytical engines into a single, unified buy/sell framework. A signal fires only when all active filters agree — dramatically reducing noise and false positives compared to single-indicator approaches.
How It Works
The indicator stacks seven confirmation layers. Every active layer must pass before a signal label appears on the chart.
① Evasive SuperTrend A volatility-adaptive SuperTrend that adjusts its multiplier dynamically using ATR, volume weight, and trend correlation strength. A noise threshold prevents premature flips during sideways chop; an expansion alpha gently repositions the band during consolidation rather than snapping aggressively.
② KNN Machine Learning Filter A K-Nearest Neighbors classifier trained on four normalized features: RSI momentum, price deviation from its moving average, RSI signal divergence, and a Choppiness Index component. The model evaluates the current bar against up to 500 historical samples, weights neighbors by Gaussian distance, and outputs a directional probability. Signals pass only when the bullish or bearish probability exceeds a configurable threshold (default 0.65).
③ Cumulative Volume Delta (CVD) Intrabar buying and selling pressure is estimated from the high-low-close relationship and accumulated into a running CVD. A moving average of CVD acts as a trend filter — buy signals require CVD above its MA, sell signals require the opposite.
④ VWAP Bands Session VWAP is computed from cumulative volume-weighted prices. Standard deviation bands (±1σ, ±2σ) are plotted. The filter confirms directional bias: long signals require price above VWAP, short signals require price below.
⑤ Candlestick Pattern Recognition Five bullish reversal patterns are scored per bar: Bullish Engulfing, Hammer, Morning Star, Bullish Harami, and Three Rising Soldiers. A minimum pattern count threshold (default 1) gates the signal. The score and matched pattern names appear in the signal tooltip.
⑥ Volume Spike Confirmation A volume multiplier threshold (default 1.3×) relative to a rolling average filters out low-conviction bars. Volume ratio also dynamically adjusts ribbon opacity — higher volume produces a more vivid ribbon.
⑦ Multi-Timeframe ADX Trend Alignment Optional MTF filter queries ADX trend direction across 1h, 4h, and daily timeframes. A minimum count of aligned bullish or bearish timeframes (configurable) must be met. Disabled by default for performance; enable when trend alignment context matters.
Quality Score
Each signal receives a quality rating (WEAK / GOOD / STRONG / EXCELLENT) based on volume spike magnitude and ATR expansion. The score is displayed in the dashboard and in the signal tooltip.
Trend Duration Prediction
After each SuperTrend flip, the indicator samples historical durations of the same trend direction, computes an exponentially-weighted average (EWA) and median, and projects a predicted trend length as a fading box sequence. Box opacity decreases over time to represent declining probability. Probability percentages (85% / 50% / 20% / 5%) are marked along the projection. Prediction length is adjusted by trading style multiplier, asset type multiplier, and current ATR context.
Trading Style Presets
Auto-detection maps the current timeframe to Scalping, Day Trading, Swing, or Position. Each preset adjusts SuperTrend ATR length, multiplier, and prediction weighting automatically. A Custom mode exposes all parameters manually.
Visuals
15-layer gradient ribbon between close and SuperTrend band, color-coded bull/bear, opacity modulated by volume
SuperTrend line rendered as solid, dotted (noisy zone), or circle (flip bar)
VWAP with ±1σ and ±2σ bands
KNN confidence expressed as per-bar color gradient
Buy/Sell labels placed at flip bars only — not on every bar
Bottom-right dashboard showing all filter states, quality score, and trend bar count
How to Use
Add to any chart. Style auto-detects from your timeframe.
A Buy label marks confirmed bullish SuperTrend flips where all active filters agree. A Sell label marks confirmed bearish flips with the same requirement.
Hover the label tooltip for full signal breakdown: ML probability, CVD direction, VWAP position, volume ratio, MTF alignment, pattern matches, and quality score.
Use the prediction box to estimate approximate trend duration — treat it as a probabilistic guide, not a target.
Disable any filter layer independently via the input groups if your setup or timeframe does not require it.
Set alerts using the four built-in alert conditions: Ultimate BUY, Ultimate SELL, ST → Bull, ST → Bear.
Settings Overview
Group
Key Inputs
Trading Style
Auto / Scalping / Day Trading / Swing / Position / Custom
Evasive SuperTrend
ATR Length, Multiplier, Noise Threshold, Adaptive toggle
KNN ML
K-Neighbors, Sample Window, Stride, Probability Threshold
CVD
Enable toggle, MA Length
VWAP
Enable toggle, Show toggle, Band multipliers
Patterns
Minimum pattern count (0 = disabled)
Volume + MTF
Volume multiplier, MTF toggle, Min bullish TFs
Prediction
Mode (Simple / Standard / Advanced), Asset Type, EWA Decay
Notes
Signals appear on confirmed bars only (barstate.isconfirmed) — no repainting on close.
KNN recalculates every 3 bars to preserve chart performance.
MTF filter uses lookahead_on on historical data; disable if strict no-lookahead compliance is required for your workflow.
Past signal accuracy does not guarantee future results. Use in conjunction with your own risk management framework. Indicator

Indicator

Session Confluence Tracker [JOAT]Session Confluence Tracker
Introduction
The Session Confluence Tracker is an open-source overlay indicator that monitors the Asian, London, and New York trading sessions simultaneously, tracking each session's high and low, counting consecutive bullish or bearish sessions (streaks), detecting overstretch conditions, and identifying confluence zones where multiple sessions share overlapping price levels. It gives traders a structured view of how liquidity develops across the global trading day and where institutional interest is concentrating.
Built with Pine Script v6, the indicator uses custom types for session data, streak tracking, confluence zones, session momentum, session gaps, and session pivots.
Why This Indicator Exists
Session-based analysis is a cornerstone of institutional trading. Different sessions have distinct characteristics — the Asian session often establishes a range, London tends to break that range, and New York frequently continues or reverses the London move. However, most session indicators simply draw boxes around session times. This indicator goes further by:
Streak analysis: Counts how many consecutive sessions have been bullish or bearish, revealing directional persistence that simple session boxes cannot show
Overstretch detection: Compares the current session's range to its historical average. When a session extends significantly beyond its norm (configurable ratio, default 1.5x), it flags a potential exhaustion point
Confluence detection: Identifies price levels where two or more sessions share overlapping highs or lows within a configurable tolerance, highlighting zones of multi-session institutional agreement
Session momentum: Tracks the directional strength within each session, not just whether it closed up or down
Gap detection: Monitors gaps between session closes and opens, which often act as magnets for price
Core Components Explained
1. Multi-Session Tracking
The indicator tracks three configurable sessions with default times aligned to major global markets:
Asian Session: Default 1800-0300 (EST) — typically the lowest volatility, range-setting session
London Session: Default 0300-1130 (EST) — the highest volume session, often sets the daily direction
New York Session: Default 0800-1600 (EST) — overlaps with London for the most liquid period of the day
Each session is tracked independently with its own high, low, open, close, and volume data. Session boundaries are drawn as colored boxes on the chart, and session highs/lows extend as horizontal lines until the next session begins.
2. Streak Analysis
The streak engine counts consecutive bullish (close > open) or bearish (close < open) sessions for each market. This reveals directional persistence that is invisible on a standard chart:
if sessionClose > sessionOpen
streakData.bullCount += 1
streakData.bearCount := 0
else
streakData.bearCount += 1
streakData.bullCount := 0
When a streak reaches the minimum threshold (default 3 consecutive sessions), it is highlighted on the chart. Long streaks in a single direction often precede reversals, while the start of a new streak can confirm a trend change.
3. Overstretch Detection
Overstretch occurs when a session's range significantly exceeds its historical average. The indicator calculates the average session range over a lookback period and compares the current session's range against it:
Overstretch ratio >= 1.5x: The session has extended well beyond its norm — potential exhaustion
Overstretch ratio >= 2.0x: Extreme extension — high probability of mean reversion
Overstretch signals are plotted as markers above or below the session, giving traders a visual warning that the session may be running out of steam.
Chart showing three session boxes (Asian in purple, London in blue, New York in green) with streak counts displayed, overstretch markers on an extended London session, and confluence zones where session levels overlap
4. Confluence Zone Detection
When the high or low of one session falls within a configurable ATR-based tolerance of another session's high or low, the indicator identifies a confluence zone. These zones represent price levels where multiple sessions have found significant support or resistance:
tolerance = atrVal * confluenceTolerance
if math.abs(session1High - session2High) < tolerance
confluenceStrength += 1
Confluence zones are drawn as highlighted horizontal bands on the chart. The strength of the confluence (how many sessions agree) determines the visual intensity. A zone where all three sessions share a similar level is considered the strongest form of multi-session agreement.
5. Session Momentum and Gaps
Session momentum measures the directional conviction within each session using the relationship between the close and the session's range. A session that closes near its high has strong bullish momentum; one that closes near its low has strong bearish momentum.
Session gaps — the difference between one session's close and the next session's open — are tracked and visualized. These gaps often act as magnets, with price tending to fill them during the subsequent session.
Visual Elements
Session Boxes: Colored boxes marking each session's time range and price range
Session High/Low Lines: Horizontal lines extending from each session's extremes
Streak Labels: Counts displayed at session boundaries showing consecutive bullish/bearish sessions
Overstretch Markers: Warning signals when a session extends beyond its historical norm
Confluence Zones: Highlighted bands where multiple sessions share price levels
Session Gaps: Visual markers showing gaps between session close and next session open
Background Coloring: Subtle session-based background tinting
Dashboard: Real-time display of each session's status, streak counts, overstretch ratios, and confluence strength
Input Parameters
Session Settings:
Toggle each session (Asian, London, New York) independently
Custom session times for each market
Custom colors for each session
Streak Detection:
Min Streak Count (default 3): Minimum consecutive sessions to highlight
Overstretch Ratio (default 1.5): Threshold for overstretch detection
Confluence Detection:
Confluence Tolerance (ATR-based, default 0.5): How close session levels must be to count as confluent
Min Confluence Strength (default 2): Minimum number of agreeing sessions
Advanced Features:
Show Session Momentum, Volume Profile, Gaps, Pivots
Visual Settings:
Max Days Back (default 5): Limit historical session display for performance
Show Session Boxes, Dashboard, Glow Effects, Pulse Effects, Gradient Fill, Confluence Animation
Timezone selection
How to Use This Indicator
Step 1: At the start of your trading day, review the Asian session range. This range often defines the battlefield for London and New York. Note the Asian high and low as key levels.
Step 2: As London opens, watch for a break of the Asian range. A decisive break with volume often sets the daily direction. Check the streak count — if London has been bullish for 4+ consecutive sessions, be cautious of a reversal.
Step 3: Monitor overstretch conditions. If London extends 1.5x or more beyond its average range, the move may be exhausted. This is especially relevant if the overstretch occurs at a confluence zone.
Step 4: Look for confluence zones. A price level where the Asian high aligns with a previous London low is a zone of multi-session institutional interest. These levels often produce strong reactions.
Step 5: During New York, check for session gaps from the London close. Price frequently fills these gaps early in the New York session.
Step 6: Use the dashboard for a quick overview of all sessions, streaks, and confluence strength.
Dashboard view showing Asian, London, and New York session statistics including streak counts, overstretch ratios, momentum readings, and confluence strength score
Indicator Limitations
Session times are based on exchange time or a configurable timezone. Ensure your timezone setting matches your intended market hours.
Streak analysis requires sufficient historical data. On newly listed instruments or very high timeframes, streak counts may be limited.
Overstretch detection uses historical averages, which can be skewed by outlier sessions (e.g., major news events).
Confluence zones are based on proximity of session levels, not on the reason those levels formed. Not all confluences will produce reactions.
The indicator is most useful on intraday timeframes (1m to 1H) where session boundaries are meaningful. On daily or weekly charts, session tracking is less relevant.
Session overlap periods (London/New York) can produce complex price action that is harder to attribute to a single session.
Originality Statement
This indicator is original in its multi-session analytical framework. While session boxes and session high/low indicators exist, this indicator is justified because:
Streak analysis across multiple sessions provides a directional persistence metric not available in standard session tools
Overstretch detection compares current session range to historical norms, adding a statistical dimension to session analysis
Multi-session confluence detection identifies price levels where institutional interest from different global markets converges
Session momentum tracking quantifies the directional conviction within each session, going beyond simple bullish/bearish classification
Gap tracking between sessions highlights potential price magnets that standard session indicators ignore
The unified dashboard presents all three sessions' metrics simultaneously for rapid cross-session analysis
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. Session analysis is a framework for understanding market structure across time zones, not a guarantee of future price movement. Always use proper risk management. The author is not responsible for any losses incurred from using this indicator.
-Made with passion by officialjackofalltrades
Indicator
