JSS - SMC / ICT Time-Fibs & LiquidityAn all-in-one institutional toolkit designed to trade the New York Session using Time-Based Standard Deviations, Smart Money Concepts (SMC), and algorithmic liquidity targets.
Instead of drawing random Fibonacci retracements, this indicator traps the opening volatility of the market and mathematically projects exactly where the algorithms will exhaust.
Core Features :
The Time-Box Fibs : Automatically maps the Overnight Macro Range (22:00–11:00) and the New York Open Micro Range (15:00–16:00).
Institutional Liquidity Lines : Automatically draws your essential daily, weekly, and monthly HTF midpoints (PDH, PDL, PD50, PW50, PM50, and True Daily Open).
Dynamic FVG & IFVG Scanner : Highlights Fair Value Gaps with dashed equilibrium lines. When an FVG is closed through, it transforms into an Inverted FVG. To keep your chart perfectly clean, the engine tracks all gaps in the background but only highlights the exact IFVG closest to live price. Индикатор

[ A L P H A X ] CADENCE - Elliott Wave + Fibonacci + StructureAlphaX CADENCE — Elliott Wave + Fibonacci + Market Structure Engine: Live W2/W4 Golden Zone Pullbacks, W3 Momentum Breakout, RSI Divergence Exit Warnings & Fibonacci Extension Targets
AlphaX CADENCE is a professional-grade Elliott Wave and Fibonacci confluence system built around the most powerful and time-tested framework in technical analysis — the five-wave impulse and three-wave corrective structure that governs institutional price delivery across all timeframes and all markets. Where most Elliott Wave indicators focus on labeling historical waves after the fact, CADENCE is engineered for live trade execution : it identifies the current wave phase in real time, marks the active golden Fibonacci pullback zone, and fires entry signals at the precise moment price enters the optimal entry window with market structure, higher timeframe bias, volume, and momentum confirmation all aligned. Four setup types — Wave 2 Golden Zone, Wave 4 Golden Zone, Wave 3 Momentum Breakout, and ABC Correction End — cover both pullback and breakout entries within the Elliott Wave framework. A dedicated RSI divergence exit warning system alerts you to potential Wave 5 exhaustion before the reversal strikes. Fibonacci extension targets (TP1 at Wave 1 high, TP2 at 1.618× extension) are computed automatically from the identified impulse leg. Designed for traders who want the rigor of Elliott Wave theory applied with quantitative precision, across crypto, forex, gold, and indices on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
〰 The Elliott Wave Framework — Why Institutional Price Moves in Waves
Elliott Wave theory is one of the oldest and most institutionally respected frameworks in technical analysis. Its core observation is that market prices do not move randomly — they move in structured, repeating patterns that reflect the collective psychology of all participants. The primary pattern is the five-wave impulse:
Impulse wave structure (bull):
Wave 0 → Wave 1: The initial impulse move — institutions begin accumulating, price moves sharply higher
Wave 1 → Wave 2: The first pullback — retail traders who missed the initial move sell back gains; Wave 2 never fully retraces Wave 1
Wave 2 → Wave 3: The most powerful wave — institutional participation accelerates, Wave 3 is typically the longest and strongest impulse
Wave 3 → Wave 4: A corrective pullback after Wave 3's extension, typically shallower than Wave 2; Wave 4 never enters Wave 1's territory in a valid impulse
Wave 4 → Wave 5: The final impulse leg, often accompanied by declining momentum and RSI divergence as the move exhausts
Why the golden zone matters: Waves 2 and 4 are the pullback waves — the retracement phases where price temporarily retreats before the next impulse. The Fibonacci golden zone (61.8%–38.2% retracement of the prior wave) is where these pullbacks most frequently terminate and reverse. Entering at the golden zone means entering with the lowest possible risk relative to the impulse target — the tight stop is at the wave invalidation level, and the target is the next wave's extension.
CADENCE is built to detect when the market is in a Wave 2 or Wave 4 pullback, when price has entered the golden zone, and when a qualified rejection candle confirms the reversal — producing entries at the statistically optimal Fibonacci reversal level within a confirmed Elliott Wave structure.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌊 The Wave Engine — Pivot-Based Leg Classification
CADENCE uses a real-time swing pivot detection system to classify the current Elliott Wave phase from confirmed price structure. On every bar, confirmed fractal pivot highs and lows are collected into a rolling swing array (configurable depth, default: 8 swings). The alternating sequence of highs and lows is then pattern-matched against Elliott Wave leg configurations.
3-swing classification (W2 phase):
When the three most recent confirmed swings form the pattern Low → High → Low (for bull impulse), CADENCE identifies:
W0 at the first low (impulse origin)
W1 at the high (impulse peak)
W2 in progress at the current low (the pullback)
If W1 is above W0 (valid impulse direction), the wave phase is classified as W2 PULL — the system is watching for the golden zone entry.
5-swing classification (W4 phase):
When five confirmed swings form Low → High → Low → High → Low (bull), CADENCE identifies all five wave points (W0 through W4). When W3 is above W1 (confirming the wave hierarchy) and W1 is above W0, the phase is classified as W4 PULL — the system is watching for the Wave 4 golden zone entry before the final Wave 5 push.
Wave phase display: The current wave phase is displayed prominently on the dashboard as W2 PULL, W4 PULL, CORR, or SCAN. This single row tells you exactly where CADENCE believes the market is in its current impulse cycle.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 Fibonacci Golden Zone — The Optimal Entry Window
The Fibonacci golden zone is the price range between the 38.2% and 61.8% retracement of the prior impulse wave. This zone, sometimes called the "golden pocket," represents the most common termination range for corrective waves within a healthy impulse structure.
Wave 2 golden zone calculation:
Zone top = W1 − (W1 − W0) × 38.2%
Zone bottom = W1 − (W1 − W0) × 61.8%
Three Fibonacci levels displayed: 38.2% (dotted), 50.0% (solid, the equilibrium), 61.8% (dotted)
Wave 4 golden zone calculation:
Computed from the W2 → W3 leg rather than the W0 → W1 leg, reflecting that Wave 4 corrects Wave 3 specifically:
Zone top = W3 − (W3 − W2) × 38.2%
Zone bottom = W3 − (W3 − W2) × 61.8%
Golden zone visualization:
A semi-transparent box spans the golden zone from the prior wave's start bar to 15 bars beyond the current bar. Yellow-green for bull zones, red for bear zones. The box extends forward in real time — you can see the target zone approaching as price pulls back toward it.
In-zone detection:
Price is considered inside the golden zone when the bar's low (bull) or high (bear) reaches within the zone boundaries AND the candle closes on the correct side of the zone. The close-inside condition ensures the touch is a genuine rejection from within the zone rather than a pass-through.
Live Fibonacci levels:
The 38.2%, 50%, and 61.8% retracement lines are plotted from the Wave 1 pivot bar to 15 bars beyond current, updating in real time as the wave structure develops. The 50% line is plotted as a brighter solid line — the golden pocket midpoint.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷 Four Live Setup Types
CADENCE fires signals through four distinct entry setups, each targeting a specific phase of the Elliott Wave cycle. Each has different risk/reward characteristics and different position within the wave sequence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
W2 Golden Zone — Wave 2 Pullback Entry
The most frequent high-conviction setup. Fires when price retraces into the 38.2%–61.8% golden zone of Wave 1 during an identified Wave 2 correction.
Full conditions for long:
Bull impulse identified (three-swing pattern W0→W1→W2)
Wave phase is W2 PULL
Market structure is bullish (or HTF is bullish as a fallback)
The bar's low has entered the golden zone (between 38.2% and 61.8% retracement)
The bar closes above the zone bottom — confirming rejection, not breakdown
Wave 2 (the pullback) is holding above Wave 0 (the impulse origin) — the Elliott Wave rule that W2 never fully retraces W1 is validated
The impulse leg (W1 − W0) is at least the minimum size (default: 1.0× ATR) — filtering micro-waves
A qualifying bull trigger candle (rejection wick above 48% of range or bullish engulfing) is present
Stop placement: Below the minimum of W2 and W0 (the prior impulse origin) plus the ATR buffer. If price violates Wave 0, the impulse structure is invalid by Elliott Wave rules.
Targets: TP1 at W1 (the prior wave high); TP2 at the close plus 1.618× the impulse leg distance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
W4 Golden Zone — Wave 4 Pullback Entry
The higher-conviction pullback setup. Wave 4 occurs after Wave 3 — the strongest and longest wave — has completed. The W4 correction offers the final opportunity to enter before Wave 5.
Key differences from W2:
Requires confirmed market structure (structure == 1 for bull, not just HTF fallback) — Wave 4 entries demand structural confirmation
Golden zone is computed from the W2 → W3 leg (correcting Wave 3, not Wave 1)
Requires five confirmed swings (W0 through W4) — a more mature wave count
Why W4 is high-conviction: By the time a Wave 4 is identifiable, the impulse sequence has completed three waves with Wave 3 confirming above Wave 1. The institutional participants who accumulated during Wave 2 are in strong profit and will add to positions during Wave 4. The golden zone for Wave 4 is the most actively defended pullback level in the entire five-wave sequence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
W3 Momentum Breakout — Wave 3 Entry
The highest-momentum setup. Fires when price breaks above the Wave 1 high (bull) or below the Wave 1 low (bear) during a Wave 2 or Wave 4 pullback phase — the moment Wave 3 begins.
Long conditions:
Wave phase is W2 PULL or W4 PULL (the correction is completing)
Price closes above the last identified swing high (the Wave 1 level) in a single bar
The prior bar was at or below the breakout level
Market structure is bullish
Impulse leg size meets the minimum threshold
The W3 breakout philosophy: The Wave 3 breakout is the moment institutional participation accelerates explosively — the "Wall of Worry" is cleared and the crowd that was short begins covering. Entering at this exact bar captures the beginning of the fastest and largest wave of the impulse. The risk is paying a higher price than the golden zone pullback entries, but the momentum confirmation is unambiguous.
Target for W3 entries: TP1 is at entry + the full impulse leg distance (projecting a Wave 3 equal to Wave 1); TP2 is at the 1.618× extension.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ABC Correction End — Three-Wave Reversal Entry
The counter-trend corrective setup. Disabled by default — the lower-conviction alternate wave scenario. Fires when a three-wave ABC correction retraces to the 61.8% level of the prior impulse with a rejection candle.
ABC conditions (bull):
Three-swing pattern confirms an ABC correction structure (Low → High → Low within a bull structure)
Price reaches the 61.8% retracement of the A leg from the B peak
Close recovers back above the 61.8% level
Bull trigger candle confirms
Why ABC is off by default: ABC entries are counter-corrective — they attempt to catch the end of a pullback at a single Fibonacci level without the full five-wave context. They work well when the prior impulse was clean and the ABC is proportional, but carry higher failure rates in choppy or range-bound conditions. Enable this setup only after studying its behavior on your specific instrument and timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ W5 RSI Divergence Exit Warning System
One of CADENCE's most valuable risk management features is the dedicated Wave 5 exhaustion detection system. When price is making new highs in a bull structure but the RSI is simultaneously making lower highs — a classic bearish divergence — the system plots small orange circles above the relevant bars as exit warnings.
How the divergence is detected:
Using confirmed pivot highs and lows from both price and RSI, CADENCE identifies:
Bearish divergence (bull W5 exhaustion): Price's pivot high exceeds the prior pivot high, but RSI's corresponding pivot is below its prior reading — price strength is not confirmed by momentum
Bullish divergence (bear W5 exhaustion): Price's pivot low is below the prior low, but RSI's reading is above its prior — selling momentum is fading at lower prices
Why W5 divergence is the most important Elliott Wave exit signal: Wave 5 is structurally the most exhausted wave — it occurs after four prior waves have already moved in the impulse direction, and is frequently accompanied by declining institutional participation. RSI divergence at Wave 5 is the most reliable early warning of the corrective ABC wave that follows. The small orange circles appear at the divergence bars — not blocking entry signals (divergence can persist for multiple bars) but providing continuous awareness that the impulse is aging.
These exit warnings fire separate alert conditions — CADENCE W5 Exit Bear and W5 Exit Bull — allowing you to set targeted notifications that prompt profit-taking on active wave trades.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 The 10-Layer Confluence Engine
Every setup is scored through a 10-layer confluence system. The default minimum is 4 of 10, producing a relatively permissive signal environment. Raising the minimum to 6–7 restricts signals to the highest-conviction wave setups only.
Layer 1 — Market Structure (1 point):
The current market structure state (bull or bear from the BOS/CHoCH engine) aligns with the signal direction. A W2 Golden Long in a bullish structure scores this point. A W2 Golden Long against a bearish structure does not.
Layer 2 — Fibonacci Zone (1 point):
Price is inside the applicable golden zone (W2 zone for W2 entries, W4 zone for W4 entries). For W3 and ABC entries, this layer is always credited since those setups do not require Fibonacci zone confirmation.
Layer 3 — Trigger Candle (1 point):
A qualifying bull or bear trigger candle is present — either a rejection pin bar (lower wick above 48% of range for bull) or a bullish engulfing. For W3 momentum entries, this layer is always credited since the breakout bar itself is the trigger.
Layer 4 — HTF Bias (1 point):
The higher timeframe EMA structure agrees with the signal direction. Can be set as a hard block (requireHtf = on) or as a soft scoring layer (default: off). When HTF is disabled, this layer awards 1 neutral point.
Layer 5 — Volume Expansion (1 point):
Current bar volume exceeds the volume moving average by the configured multiplier (default: 1.1×). Confirms institutional participation on the entry bar.
Layer 6 — Non-Chop Market (1 point):
Choppiness Index is below the configured threshold. Also enforced as a hard gate — extreme chop blocks all signals regardless of wave count quality.
Layer 7 — RSI Zone (1 point, optional):
RSI is in the appropriate zone for the signal direction — above the minimum for longs (default: 38), below the maximum for shorts (default: 62). Off by default — when enabled, adds a momentum context filter.
Layer 8 — EMA Trend Filter (1 point, optional):
Price is on the correct side of the configurable EMA. Off by default — when enabled, adds a trend alignment filter.
Layer 9 — RSI Momentum (1 point, optional):
RSI is actively rising (bull) or falling (bear) on the current bar — momentum is accelerating in the signal direction. Off by default.
Layer 10 — Base Credit (1 point):
A flat credit awarded to all qualifying setups — the minimum point that acknowledges the setup type itself has passed its structural requirements. This ensures that even with optional filters disabled, the maximum achievable score is 10.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Fibonacci Extension Targets — Automatic TP Calculation
Every CADENCE signal produces two automatically computed take profit levels based on the identified impulse wave measurement.
TP1 — Wave 1 High / Wave Projection:
For W2 and W4 golden zone entries, TP1 is set at the prior Wave 1 level — the high that preceded the current pullback. This is the minimum structural target: the expectation that Wave 3 or Wave 5 will at least reclaim Wave 1's high. For W3 momentum entries, TP1 is set at entry plus the full impulse leg distance (Wave 3 = Wave 1 in length).
TP2 — 1.618× Extension:
The primary Fibonacci extension target, computed as `entry + impulse_leg × 1.618`. The 1.618 extension (the Golden Ratio) is the most common Wave 3 termination level and a standard Wave 5 target when Wave 3 is extended. This level is configurable (default: 1.618, range: 1.0–2.618).
Visual output: TP1 is plotted as a lime-green dotted line. TP2 is plotted as a bright yellow-green dashed line at width 2. Both extend forward by the configured guide bars (default: 35). The stop loss is plotted as a red dotted line below the wave invalidation level plus ATR buffer.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The 9-row real-time dashboard displays the complete wave analysis state.
Wave Phase — W2 PULL, W4 PULL, CORR, or SCAN. The current position within the Elliott Wave cycle. Purple color
Structure — BULL MS (bullish market structure), BEAR MS (bearish), or RANGE (no clear structural direction)
Setup — the current or most recent setup name: W2 GOLDEN, W4 GOLDEN, W3 BREAK, ABC END, ARM LONG (golden zone approached but not yet triggered), ARM SHORT, or —. Color-coded by directional bias
Layers — the current confluence score out of 10. Yellow-green when at or above the minimum threshold
Chop — live Choppiness Index value. Yellow-green when clear, red when above the stand-aside threshold
TP1 — the current or most recent TP1 level. Shows — between signals
TP2 — the current or most recent TP2 level
HTF — the higher timeframe EMA bias: UP, DOWN, or MIX
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
Live Wave Path Lines — lines connecting the most recent confirmed swing pivots, color-coded yellow-green for bull impulse and red for bear impulse. Shows the current wave sequence structure directly on the price chart
Golden Zone Box — semi-transparent box spanning the 38.2%–61.8% Fibonacci retracement zone from the prior wave. Yellow-green for bull, red for bear. Extends 15 bars forward and updates in real time as the wave structure evolves
Fibonacci Levels — three horizontal dotted/solid lines at 38.2%, 50%, and 61.8% retracement from the Wave 1 pivot bar. The 50% level is the brightest solid line — the golden pocket center
▲ Triangle (below bar, bright yellow-green) — bull entry signal. W2 Golden, W4 Golden, W3 Breakout, or ABC End
▼ Triangle (above bar, bright red) — bear entry signal
● Orange Circle (above bar) — W5 bearish RSI divergence exit warning
● Orange Circle (below bar) — W5 bullish RSI divergence exit warning
Entry Line (bull/bear color dashed) — entry close level extending guideExtend bars forward
Stop Loss Line (red dotted) — structural stop below wave invalidation level plus ATR buffer
TP1 Line (lime dotted) — first target at Wave 1 high or equal-leg projection
TP2 Line (bright yellow-green dashed, width 2) — 1.618× Fibonacci extension target
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX CADENCE — Step by Step
Step 1 — Read the Wave Phase
Check the Wave Phase row on the dashboard. W2 PULL or W4 PULL means the system has identified a valid pullback phase — a setup may be approaching
Confirm Structure — BULL MS for long setups, BEAR MS for short. If Structure shows RANGE, the wave context is weaker
Check the golden zone box on the chart. Is it near current price? Is price approaching from above (bull W2 pullback)?
Step 2 — Watch the Golden Zone Approach
When Setup shows ARM LONG, price is approaching the golden zone. Watch for a rejection candle forming inside or at the zone boundary
Check Layers — if it is approaching the minimum threshold, a signal is likely imminent. Check HTF to confirm the macro direction
The Fibonacci levels on the chart show the exact 38.2%, 50%, and 61.8% prices — monitor for price rejection specifically at the 61.8% level (the deepest golden zone entry) for the highest-conviction golden pocket entry
Step 3 — Enter on the Triangle Signal
A ▲ triangle below the bar confirms all wave, Fibonacci, structural, and confluence conditions are met simultaneously. The setup name shows on the dashboard (W2 GOLDEN, W4 GOLDEN, W3 BREAK, ABC END)
The SL line is at the structural wave invalidation level — if price closes below Wave 0 (W2 entries) or below Wave 2 (W4 entries), the Elliott Wave count is invalid. This is a structural stop, not arbitrary ATR
TP1 is at the prior Wave 1 high — the minimum expectation for the next impulse wave
TP2 is at the 1.618× Fibonacci extension — the classical Wave 3 or Wave 5 termination level
Step 4 — Monitor for W5 Exit Warnings
As price advances toward TP2, watch for the orange W5 exit warning circles appearing above (bear divergence) or below (bull divergence) price bars
When orange circles begin appearing regularly as price approaches TP2, consider taking full profit rather than holding for further extension
A W5 divergence warning combined with price near TP2 is the strongest exit signal the system produces
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
Wave Phase shows SCAN or CORR — the system has not yet identified a clear impulse structure with sufficient pivot history. SCAN means fewer than 3 qualified swings are stored; CORR means the three-swing pattern does not satisfy the impulse directional rules. Do not force entries without clear wave context
Chop Index is red on the dashboard — the hard chop gate is active. Elliott Wave patterns are fundamentally trend-following structures and lose their predictive power in extreme chop. All signals are blocked
Structure shows RANGE — no clear bullish or bearish market structure is established. W2 and W4 golden zone entries without structural support are lower quality. Consider waiting for a CHoCH or BOS to establish directional structure before entering
Layers score is at minimum (4/10) with all optional filters disabled — the bare-minimum score means only the most basic conditions are met. In this environment, require a higher layer count (increase minimum to 5–6) or wait for more confluence factors to align
W5 exit warnings are already appearing when entering — if orange circles are appearing before a new entry signal fires, RSI divergence is already present. This suggests the wave is potentially in a late W5 stage rather than a healthy W2 or W4. Do not enter a new position when existing divergence warnings are active
Golden zone is very narrow (W4 zone nearly coincides with stop) — when the 38.2% and 61.8% levels are very close together (small Wave 3 leg), the golden zone provides minimal entry edge. The risk/reward is poor when the zone height is less than 0.5× ATR
The ideal CADENCE setup:
Wave Phase W4 PULL with confirmed 5-swing structure
Market structure BULL MS or BEAR MS — clear directional bias
Price at or near the 61.8% golden zone boundary — the deepest valid pullback
HTF aligned with impulse direction
Volume expanding on the rejection bar
Layers at 7–8 out of 10
No W5 divergence warnings on the current sequence
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
〰 Real-time Elliott Wave classification — 3-swing (W2 phase) and 5-swing (W4 phase) pattern matching from confirmed fractal pivots, updated on every bar
📐 Adaptive Fibonacci golden zone — 38.2%–61.8% retracement zone computed from the current wave's impulse leg, rendered as a live box and three labeled levels updating in real time
📦 Live wave path visualization — lines connecting the most recent confirmed swing pivots, color-coded by impulse direction, showing the current wave sequence structure
🏷 Four setup types — W2 Golden Zone, W4 Golden Zone, W3 Momentum Breakout, and ABC Correction End (optional) — covering both pullback and breakout entries within the wave framework
📈 Fibonacci extension targets — TP1 at the Wave 1 high (minimum wave projection), TP2 at the configurable Fibonacci extension (default: 1.618×) automatically computed from the identified impulse leg
⚠ W5 RSI Divergence Exit Warning — pivot-based RSI divergence detection produces orange warning circles as price approaches potential Wave 5 exhaustion, with dedicated alert conditions
🧠 10-layer confluence engine — Market Structure, Fibonacci Zone, Trigger Candle, HTF Bias, Volume, Non-Chop, RSI Zone, EMA Filter, RSI Momentum, and Base Credit scored independently
🛡 Wave-anchored structural stop — SL placed below the Elliott Wave invalidation point (Wave 0 for W2 entries, Wave 2 for W4 entries) plus ATR buffer — not an arbitrary distance
📊 Live dashboard — Wave Phase, Structure, Setup, Layers, Chop, TP1, TP2, and HTF updated on every bar
📡 JSON alerts on FIRED — structured alert payload with weapon, side, setup name, entry, SL, TP1, TP2 for webhook integration
🔔 4 alert conditions — CADENCE Long, CADENCE Short, W5 Exit Bear Warning, W5 Exit Bull Warning
⚙ Fully configurable — pivot length, minimum leg size, Fibonacci zone levels, extension target, RSI divergence settings, all four setup enables, confluence minimum, HTF parameters, all optional filters, chop gate, SL buffer, guide bars, wave path and golden box display, dashboard size, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Wave Engine
Swing Pivot Length — fractal sensitivity for pivot detection (default: 5)
ATR Length — ATR calculation lookback (default: 14)
Min Leg Size (xATR) — minimum impulse leg height in ATR multiples for wave classification (default: 1.0)
Swings Stored — rolling swing array depth (default: 8)
Fibonacci Zones
Pullback Zone Low (Fib) — lower Fibonacci level of the golden zone (default: 0.382)
Pullback Zone High (Fib) — upper Fibonacci level (default: 0.618)
TP2 Extension — Fibonacci extension level for the full measured move target (default: 1.618)
Show Active Fib Levels — toggle the 38.2%, 50%, and 61.8% horizontal lines
Market Structure
BOS: Close Only — when on, structure breaks require a close beyond the swing level (default: on)
Live Setups
W2 / W4 Golden Pullback — toggle both golden zone entry setup types
W3 Momentum Breakout — toggle the Wave 3 breakout entry
ABC Correction End — toggle the corrective three-wave reversal entry (default: off)
W5 RSI Divergence Exit Warn — toggle the exit warning system
RSI Length — RSI calculation period (default: 14)
Divergence Lookback — bars for pivot-based RSI divergence detection (default: 14)
Confluence
Min Layers (of 10) — minimum score to fire a signal (default: 4)
Hard HTF Alignment — when on, counter-HTF signals are blocked (default: off)
HTF Trend Bias / HTF Timeframe / HTF Fast / HTF Slow EMA — higher timeframe parameters
Volume Confirm / Volume vs Avg / Volume Avg — volume expansion layer parameters
RSI Momentum Filter — optional RSI direction filter (default: off)
RSI Min (Long) / RSI Max (Short) — RSI zone thresholds when filter is enabled
EMA Trend Filter / EMA Length — optional EMA directional filter (default: off)
Block Extreme Chop / Choppiness Length / Chop Block Above — chop gate parameters
Signal Cooldown (bars) — minimum bars between signals (default: 8)
Entry / Exit Guides
Show SL + TP1 + TP2 — toggle the guide lines
SL Buffer (xATR) — ATR buffer beyond the wave invalidation point (default: 0.25)
Guide Extend (bars) — how many bars forward the guide lines project (default: 35)
Display
Show Live Wave Path — toggle the swing-to-swing connecting lines
Show Golden Zone Box — toggle the Fibonacci retracement zone box
Show Entry Markers — toggle signal triangles
Show Dashboard — toggle the full dashboard
Dashboard Text Size — Standard / Small
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Colors
Bull / Wave Up — yellow-green for bullish waves, signals, and zones
Bear / Wave Down — red for bearish elements
Fib / Wave Accent — purple for Fibonacci levels, wave path, and neutral zone elements
W3 / Exit Accent — orange for W3 breakout accents and W5 exit warning markers
Stop Line / TP1 Line / TP2 Line — individual guide line colors
Dash Text / Dash BG / Dash Header / Dash Section / Dash Frame — full dashboard color control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (4 total + JSON)
Entry Alerts
CADENCE Long — all wave, Fibonacci, structure, and confluence conditions confirmed. JSON payload delivered with setup, entry, SL, TP1, TP2
CADENCE Short — all conditions confirmed for a short wave setup. JSON payload delivered
Exit Warning Alerts
CADENCE W5 Exit Bear — bearish RSI divergence detected at a price pivot high in a bull structure. Wave 5 exhaustion may be approaching
CADENCE W5 Exit Bull — bullish RSI divergence detected at a price pivot low in a bear structure
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument & Timeframe
The default configuration is optimized for XAUUSD, major forex pairs, and crypto on M15–H4 :
Pivot Length at 5 — captures meaningful structural swings without excessive sensitivity on intraday timeframes
Min Leg Size at 1.0× ATR — filters micro-waves while capturing the significant legs that represent genuine Elliott impulses
Fibonacci zone from 38.2% to 61.8% — the classic golden zone that encompasses the highest-probability pullback termination range
HTF at 60-minute as a soft scoring layer — adds confluence when aligned without hard-blocking the counter-HTF wave setups that occasionally occur at institutional correction boundaries
ABC Correction End off by default — the corrective pattern carries more interpretation risk and is better enabled only when the user has studied Elliott corrective structures
For other instruments or timeframes, adjust:
M1–M5 scalping — reduce Pivot Length to 3, reduce Min Leg Size to 0.5, increase Cooldown to 5–6 bars, reduce Guide Extend to 15–20
H4–Daily swing trading — increase Pivot Length to 8–10, increase Min Leg Size to 1.5–2.0, increase TP2 Extension to 2.0–2.618, increase Min Layers to 5–6
Crypto (BTC, ETH) — increase Min Leg Size to 1.5 for the larger swing amplitudes, increase Fibonacci zone to 0.382–0.786 for the deeper corrections common in crypto waves
Higher confidence signals only — raise Min Layers to 6–7, enable Hard HTF Alignment, enable EMA Trend Filter and RSI Momentum Filter, disable ABC Correction End
More signals — lower Min Layers to 3, enable ABC Correction End, disable Volume Confirm, reduce Min Leg Size to 0.5
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
〰 Elliott Wave traders — CADENCE is the definitive quantitative implementation of the Elliott Wave trading framework for the AlphaX suite. Every component — swing identification, wave phase classification, golden zone computation, wave invalidation stop, Fibonacci extension target — is automated and applied consistently
📐 Fibonacci traders who want wave context — the Fibonacci zone in CADENCE is not a standalone level but a wave-specific retracement within a confirmed impulse structure. This context dramatically improves the reliability of Fibonacci entries compared to drawing retracement levels manually without wave classification
🎯 Pullback traders — the W2 and W4 golden zone setups are fundamentally the most optimal pullback entry in all of technical analysis — buying the deepest valid retracement within a confirmed trend impulse, with a stop at the structural invalidation point
⚡ Momentum traders — the W3 Momentum Breakout entry targets the beginning of the fastest and largest wave of the impulse sequence, providing explosive breakout entries within a wave-confirmed context
🧠 Systematic traders who want quantified wave analysis — the 10-layer scoring system and deterministic pivot-based classification replace the subjectivity of traditional Elliott Wave labeling with objective, repeatable criteria
📈 Traders who struggle with knowing when to exit trending trades — the W5 RSI divergence exit warning system provides early, systematic notification of impulse exhaustion — the most common and costly mistake in Elliott Wave trading is riding Wave 5 too long
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. Pivot detection, wave classification, Fibonacci zone computation, and confluence scoring all finalize on confirmed bars only
Elliott Wave classification requires a minimum of 3–5 confirmed swings in the rolling array. On charts with fewer than 200 bars of history, the wave phase may show SCAN until sufficient pivot history accumulates
The wave path lines and golden zone box are redrawn on the last bar only for chart performance. Historical signal triangles and exit warnings are preserved on their original bars
The minimum leg size filter (default: 1.0× ATR) ensures that only waves with meaningful price movement are classified. Very small swings below the ATR threshold are ignored by the wave engine, preventing micro-structure noise from producing false wave counts
The W5 divergence detection uses pivot-based RSI comparison with a configurable lookback. The detection is based on confirmed pivots and is non-repainting, but the divergence signal appears at the confirmation bar (pivLen bars after the actual pivot), not at the pivot bar itself
When both W2 and W4 conditions are simultaneously met (a rare occurrence in transition periods), W4 takes priority in the signal selection because W4 entries occur in more mature, structurally confirmed wave counts
The indicator does not automatically label historical waves — it focuses on the live wave phase and active entry setups. For historical wave labeling, combine with a standalone Elliott Wave labeling tool
The indicator does not track open positions or P&L and does not connect to any broker or account
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Past performance of any signal type does not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who understand that markets move in waves — and who want a system precise enough to position them at the exact Fibonacci level where the next wave begins. Индикатор

Индикатор

Fibonacci SingularityFibonacci singularity is an advanced fibonacci confluence engine designed to find the price zones where multiple fibonacci levels from confirmed market legs collapse into the same area.
instead of drawing one simple fibonacci retracement, the script analyzes several confirmed swing legs, calculates multiple fibonacci retracement and extension levels, then groups the strongest overlapping levels into institutional confluence zones.
the goal is to give the trader a clean map of high-interest price areas where the market may react, reject, pause, break, or build a new directional move.
this tool is not a buy or sell signal system. it is a market structure and confluence map. it should be used with price action, trend context, volume, risk management, and personal confirmation.
main features
confirmed pivot-based fibonacci engine
clean zigzag swing logic
multi-leg fibonacci confluence
non-overlapping confluence zones
automatic merge of zones that touch or overlap
minimum block gap between zones
s-tier, a-tier, b-tier, and c-tier zone classification
walk-forward respect percentage
real volume micro profile inside each zone
right-side density micro profile
volume, touch density, reaction pressure, or composite profile source
volume delta in labels
zone pressure reading
dominant reference fibonacci
fibonacci time zones
magnet targets above and below price
institutional-style dashboard
sober visual style
price-in-zone alerts
upside magnet alerts
downside magnet alerts
how the script works
the script first detects confirmed pivots.
a confirmed pivot high or pivot low appears only after enough bars have closed on both sides of the pivot. this makes the structure cleaner and avoids using unconfirmed swing points.
after pivots are confirmed, the script builds several market legs from the most recent valid zigzag swings.
for each leg, the script calculates important fibonacci levels such as retracements and extensions.
then it groups nearby fibonacci levels into confluence zones.
when several fibonacci levels fall inside the same price area, the zone becomes stronger.
if two zones touch or overlap, the script merges them instead of stacking blocks on top of each other.
each final zone is displayed as a clean block with a center line, optional label, internal profile, and right-side density profile.
the strongest zones are ranked by overlap, strength, and tier.
important concept
a zone is not a guaranteed reversal point.
a zone means that several fibonacci levels are concentrated in the same price area.
the more confluence a zone has, the more important it can become as a decision area.
a trader can use these zones to prepare possible reactions, breakouts, retests, or profit-taking areas.
input guide
pivot strength
this controls how strong a pivot must be before it is accepted.
a higher value creates fewer but stronger swing points.
a lower value creates more swings and makes the engine more reactive.
for beginners:
use a higher value for cleaner zones.
use a lower value only if you want more sensitivity.
active legs
this controls how many confirmed swing legs are used by the confluence engine.
more legs create more historical fibonacci levels and more possible confluence.
fewer legs focus only on recent market structure.
for beginners:
use 4 to 6 legs for a balanced view.
use more legs if you want a wider historical confluence map.
min leg range
this filters out small swing legs.
the value is based on atr.
if a leg is too small, the script ignores it because small legs can create weak or noisy fibonacci levels.
for beginners:
increase this value if the chart has too much noise.
decrease it if the script finds too few zones.
zone width
this controls the width of each fibonacci confluence zone.
the value is based on atr.
a higher value creates wider zones and groups more levels together.
a lower value creates tighter zones and separates levels more aggressively.
for beginners:
use a moderate value to avoid zones that are too wide or too fragmented.
minimum block gap
this controls the minimum space between displayed blocks.
if two zones touch, overlap, or become too close, they are merged so the chart remains clean.
this is important because zones should not stack on top of each other.
for beginners:
increase this value if the zones look too close.
decrease it if you want more detailed separation.
max confluence zones
this controls how many confluence zones can be displayed.
a lower value gives a cleaner chart.
a higher value shows more market structure.
for beginners:
start with 4 to 6 zones.
increase only if you need more context.
min overlap to qualify
this defines how many fibonacci levels must overlap before a zone becomes valid.
a higher value makes zones more selective.
a lower value allows more zones to appear.
for beginners:
use a higher value for stronger zones.
use a lower value only if the market has too few visible zones.
atr length
this controls the atr calculation used for zone width, minimum range, and spacing.
a higher value makes the system smoother.
a lower value makes it react faster to recent volatility.
for beginners:
use 50 for stable behavior.
lower it if you want faster adaptation.
s-tier overlap
this defines the minimum overlap needed for a zone to become s-tier.
s-tier is the strongest classification.
these zones represent the highest fibonacci concentration.
a-tier overlap
this defines the minimum overlap needed for a zone to become a-tier.
a-tier zones are strong but not as extreme as s-tier zones.
b-tier overlap
this defines the minimum overlap needed for a zone to become b-tier.
b-tier zones are medium confluence areas.
c-tier zones
c-tier is used when a zone qualifies but does not reach b-tier, a-tier, or s-tier strength.
enable walk-forward respect percent
this enables the respect percentage calculation.
the script checks how price reacts after a zone exists.
this is cleaner than testing a current zone on old data before the zone was created.
respect window
this controls how many bars are used to measure zone respect.
a larger window gives more historical reaction data.
a smaller window focuses on recent behavior.
for beginners:
use 300 bars for a balanced reading.
min touches to score
this defines the minimum number of touches needed before the respect percentage is considered valid.
if a zone has too few touches, the statistic is not reliable.
for beginners:
keep this at 2 or higher.
show real volume micro profile
this displays a micro profile inside each zone.
the profile uses the real volume available from the chart and distributes it across the zone according to the candle overlap with the zone.
this is not tick-by-tick volume at price. it is the most realistic stable approximation available from regular candle volume in pine.
show right density micro profile
this displays a technical density profile on the right side of each zone.
it helps visualize which parts of the zone had more interaction, pressure, or volume.
right density source
this selects what the right-side density profile is based on.
volume:
uses chart volume.
touch density:
counts how often price interacts with each part of the zone.
reaction pressure:
measures candle reaction strength around the zone.
composite:
combines volume when available with interaction and reaction pressure.
for beginners:
use composite for the most balanced profile.
profile window
this controls how many bars are scanned to build the internal and right-side profiles.
a larger value gives more historical context.
a smaller value focuses on recent market behavior.
for beginners:
use 300 bars as a balanced default.
micro profile rows
this controls how many rows are displayed inside each zone.
more rows give more detail but use more drawing objects.
fewer rows are cleaner and lighter.
for beginners:
use 6 to 8 rows.
max internal profile length
this controls the maximum length of the internal micro profile bars inside each zone.
a higher value makes profile bars longer and more visible.
a lower value keeps the blocks cleaner.
minimum cell width
this ensures every profile row remains visible even when volume or density is low.
this helps every zone keep a technical structure instead of appearing empty.
show volume delta in labels
this adds bull and bear volume difference information into the zone label.
a positive delta means more bullish volume pressure.
a negative delta means more bearish volume pressure.
show confluence zones
this turns the main fibonacci confluence blocks on or off.
when disabled, the engine still calculates data, but the blocks are hidden.
zone history length
this controls how far the zone blocks extend into the past.
a higher value makes zones longer.
a lower value keeps the chart more compact.
show density profile right
this displays the right-side profile structure.
this is useful for quickly comparing zone strength and internal distribution.
profile max length
this controls the maximum visual length of the right-side density profile.
higher values make strong profiles longer.
lower values keep the profile compact.
show zone labels
this shows or hides zone labels.
labels can display the tier, overlap count, price level, respect percentage, delta, and pressure information.
show dominant reference fib
this displays the dominant reference fibonacci from the most important recent leg.
this helps the trader understand which recent swing is guiding the current fibonacci map.
show fibonacci time zones
this displays vertical fibonacci time projections from the latest confirmed pivot.
these are not price signals.
they are timing reference points where the trader can watch for possible market reaction.
show dashboard
this shows the institutional dashboard.
the dashboard summarizes bias, active legs, zones found, top zone, magnets, price position, respect information, and engine status.
dashboard position
this controls where the dashboard appears on the chart.
available positions:
top right
top left
bottom right
bottom left
middle right
bull / b-tier color
this controls the color used for bullish or b-tier visual elements.
bear / a-tier color
this controls the color used for bearish or a-tier visual elements.
singularity / s color
this controls the color used for the strongest s-tier zones.
neutral / c color
this controls the color used for lower-tier or neutral elements.
panel background
this controls the dashboard background color.
panel border
this controls the dashboard border color.
mini tutorial for beginners
step 1: start with clean settings
keep the default settings first.
do not change everything immediately.
the script is designed to find fibonacci confluence zones from confirmed swing legs, so you should first observe how the zones behave on your market and timeframe.
step 2: understand the zones
a zone is an area where several fibonacci levels overlap.
if a zone has a high tier, it means more fibonacci levels are concentrated there.
s-tier is the strongest.
a-tier is strong.
b-tier is medium.
c-tier is weaker but still qualified.
step 3: use zones as decision areas
do not buy or sell only because price touches a zone.
wait for confirmation.
possible confirmations:
wick rejection
strong candle close
breakout
retest
volume reaction
trend alignment
market structure shift
step 4: read the internal micro profile
inside each zone, the micro profile shows where volume or interaction is concentrated.
a larger internal bar means stronger activity in that part of the zone.
this can help identify whether price is reacting near the top, middle, or bottom of the zone.
step 5: read the right-side density profile
the right-side profile gives a fast technical view of the zone.
if the profile is strong and balanced, the zone has more structural importance.
if the profile is thin, the zone may be weaker or less tested.
step 6: use the respect percentage
respect percentage shows how often price reacted from a zone after the zone existed.
a high respect value can mean the zone has been historically reactive.
a low respect value can mean the zone has been ignored or broken often.
do not use respect percentage alone.
combine it with price action.
step 7: use the magnet targets
the up magnet is the nearest important zone above price.
the down magnet is the nearest important zone below price.
these can be used as possible target areas, resistance areas, support areas, or places where price may slow down.
step 8: use the dashboard
the dashboard gives a quick summary of the current state.
watch:
bias
active legs
zones found
top zone
up magnet
down magnet
price position
respect data
engine status
if the panel says waiting or no qualified zone, the script does not yet have enough valid confluence to display a strong zone.
step 9: choose the right timeframe
for intraday trading, use the script to locate major reaction areas.
for swing trading, use higher timeframes for stronger zones.
zones from higher timeframes often carry more weight than small lower timeframe zones.
step 10: build a simple trading plan
bullish example:
price pulls back into a strong confluence zone.
the zone has a good respect percentage.
the internal profile shows strong activity.
price prints a bullish rejection.
the trader can then watch for a possible long setup.
bearish example:
price rallies into a strong confluence zone.
the zone is a-tier or s-tier.
the right-side profile shows strong interaction.
price rejects with a bearish candle.
the trader can then watch for a possible short setup.
breakout example:
price reaches a strong zone but does not reject.
price closes strongly beyond the zone.
the trader can then watch for continuation or a retest.
best beginner settings
pivot strength:
8 to 12 for cleaner swings.
active legs:
4 to 6 for balanced confluence.
min leg range:
0.5 atr or higher to remove small noisy swings.
zone width:
0.5 to 0.8 atr for practical zone size.
minimum block gap:
increase if zones look too close.
micro profile rows:
6 to 8 for clean internal detail.
right density source:
composite for the most balanced view.
profile window:
300 bars for a balanced profile.
important note
this indicator does not guarantee profit.
fibonacci confluence zones can fail.
a strong zone can break.
a high respect percentage does not guarantee the next reaction.
always use stop loss, position sizing, risk management, and personal confirmation before entering a trade.
the best use of this script is as a technical map of high-interest fibonacci zones, not as an automatic trading system.
Индикатор

Nexus Global 15m ORBIntroduction
The Nexus Global 15m ORB indicator is a comprehensive opening range tool designed to map the initial 15-minute price action across the three major global trading sessions: Tokyo, London, and New York. Beyond simply marking the high and low of the opening range, this script integrates Fibonacci-based Optimal Trade Entry (OTE) zones, mathematical trend extensions, and Higher Timeframe (HTF) structural confluence to help traders identify high-probability reversal and continuation zones.
Core Concepts & What It Does
Opening Range Breakout (ORB) strategies rely on the volatility generated at the start of a trading session. The first 15 minutes often establish a support and resistance framework for the hours that follow. This indicator automatically detects these 15-minute windows and projects the range forward until the next session begins.
However, a standard ORB is often not enough to build a complete trading plan. To address this, the indicator incorporates:
- Internal Fibonacci Levels & OTE Zone: Calculates key retracement levels (38.2% and 50%) and highlights a specific Optimal Trade Entry (OTE) box between the 61.8% and 78.6% levels of the session's range.
- Session Trend Extensions: Projects standard Fibonacci extensions (0.618, 1.272, and 1.618) outward from the ORB high and low to serve as dynamic take-profit targets or exhaustion levels.
- HTF Institutional Pivots: Pulls structural swing highs and lows from a user-defined higher timeframe (e.g., 4-hour) and calculates its own macro Fibonacci levels. When these macro levels intersect with the micro 15m ORB range, the indicator highlights them as "Institutional Pivots."
How It Calculates (Underlying Logic)
- Session Tracking: Uses time() functions to detect the exact 15-minute timeframe of the Tokyo (0845-0900 JST), London (0800-0815 GMT), and New York (0930-0945 EST) opens. It dynamically tracks the high and low during this window and locks the values once the window closes.
- Internal Mathematics: The range size (rng) is calculated as ORB High - ORB Low. Internal levels are found by subtracting percentages of the range from the ORB High (e.g., ORB High - (rng * 0.5) for the 50% level).
- HTF Confluence: Utilizes request.security() alongside ta.highest() and ta.lowest() over a customizable lookback period to establish the macro structural range. It then checks if the macro 38.2%, 50%, or 61.8% levels fall sequentially inside the current active ORB boundaries, plotting them distinctly when true.
- Performance Optimization: To ensure the indicator does not cause chart lag (a common issue with heavy line/box drawing scripts), the drawing engine is restricted to update visual arrays strictly on barstate.islast, ensuring lightning-fast load times even on the 1-minute chart.*
How to Use It
- Breakout & Retest: Watch for price to break the ORB High or Low, and then wait for a retracement back to the 38.2% or 50% internal levels to join the trend toward the 1.272 or 1.618 extensions.
- OTE Reversals: If a false breakout (fake-out) occurs, look for price to return to the highlighted OTE Zone (61.8% - 78.6%). This zone often acts as a strong area of defense for institutional order flow, providing excellent risk-to-reward entries back toward the opposite side of the ORB.
- Institutional Pivots: When an HTF line populates inside the session range, treat it as a heavy magnet or resistance. Trades taken in confluence with these pivots carry a much higher structural weighting.
Originality & Usefulness
While there are many ORB tools on TradingView, the vast majority only display horizontal lines for the high and low. This script is highly original because it combines micro-session timing with macro-structural Fibonacci confluence. By mashing up session tracking with HTF swing analysis and deep optimization drawing methods, it provides a complete, lag-free institutional framework in a single indicator, saving traders from needing multiple overlapping scripts to achieve the same result. Индикатор

Индикатор

Fibonacci Volume Profilefibonacci volume profile — institutional edition v2
fibonacci volume profile is a chart-based volume profile tool designed to combine volume structure, fibonacci levels, poc, vah, val, bull/bear volume split, merged poc clusters, confluence detection, global heatmap zones and live volume profile gauges in one visual workspace.
the goal of this tool is to help traders understand where volume is concentrated, where price is reacting, and where important structural levels may exist on the chart.
this indicator is not a buy or sell system. it is a market structure and volume analysis tool. it helps the user read the chart with more context before making a trading decision.
main concept
volume profile shows where volume has traded inside a selected price range.
instead of only looking at candles, this tool studies how volume is distributed across price levels. areas with high volume can act as important reaction zones because many market participants traded there. areas with lower volume can sometimes show thinner zones where price may move faster.
the script builds volume profiles using different trigger modes:
fixed bars
session
manual period
each profile displays volume rows, poc, value area, fibonacci levels and optional advanced modules.
how the volume profile works
each volume profile divides the selected range into several price rows.
for every row, the script estimates how much volume traded there.
the row with the highest volume becomes the poc.
the value area contains the main part of traded volume, based on the selected value area percentage.
vah is the upper limit of the value area.
val is the lower limit of the value area.
poc, vah and val are often used by traders as reference levels for reaction, acceptance, rejection, balance and imbalance.
important levels
poc
poc means point of control. it is the price level with the highest volume inside the profile.
a poc can act as a magnet when price returns to it. it can also become a reaction level if price rejects it.
vah
vah means value area high. it marks the upper boundary of the value area.
price above vah can show strength or expansion away from value.
price rejecting vah can show that buyers failed to accept higher prices.
val
val means value area low. it marks the lower boundary of the value area.
price below val can show weakness or expansion away from value.
price rejecting val can show that sellers failed to accept lower prices.
fibonacci module
the script can draw fibonacci levels from the selected volume profile structure.
the anchor can be based on:
vp range
vah to val
poc to range
the fibonacci direction can be automatic or manually selected.
automatic direction uses the dominant bull or bear volume logic to decide whether the fibonacci should be drawn from low to high or from high to low.
this makes the fibonacci module connected to the volume profile context instead of being only a manual drawing tool.
bull and bear volume split
the profile can separate estimated bullish and bearish volume.
this helps identify whether volume inside the profile is more aggressive on the buy side or the sell side.
the delta method can be selected from several modes:
bar direction
range position
body weighted
wick absorption
hybrid pro
this does not represent real bid and ask order flow. it is an estimation based on candle behavior and volume distribution.
merged poc module
when several poc levels are close together, the script can merge them into a cleaner cluster.
this helps reduce chart noise and makes repeated high-volume zones easier to read.
a merged poc cluster can show that several profiles agree around the same price area.
when multiple poc levels cluster near the same zone, that level can become more important for future analysis.
confluence detector
the true confluence detector looks for clusters between different level types.
it can combine:
poc
vah
val
fibonacci levels
multiple profiles
the idea is to identify zones where several independent references are close to each other.
a confluence zone is not a guaranteed reversal point. it is a zone where the chart deserves more attention.
global heatmap
the global heatmap aggregates visible volume profiles into one heatmap zone on the right side of the chart.
this gives a broader view of where volume is concentrated across all visible profiles.
the global heatmap can help identify larger high-volume areas and thinner zones.
live vp gauges panel
the live vp gauges panel shows live information about the current developing volume profile.
it includes readings such as:
buy pressure
sell pressure
net delta estimate
value area position
distance to poc
distance to vah
distance to val
current row pressure
last bar pressure
close location inside the vp range
this panel is not an order book. it does not use bid and ask data. it is based on the current volume profile structure.
dashboard
the dashboard gives a quick summary of the current mode and important status information.
it can show:
current vp mode
number of stored profiles
nearest poc
distance to nearest poc
fibonacci status
poc merge status
value area extension status
confluence status
global heatmap status
poc touch alert
the script includes a poc touch alert.
this alert can help notify when price reaches a stored poc level.
a poc touch does not mean immediate entry. it only means price has reached an important volume reference level.
how to use the tool
step 1: choose the vp mode
fixed bars creates a new profile every selected number of bars.
session creates profiles based on the selected session.
manual period builds a live profile from a fixed manual number of bars.
beginners can start with fixed bars because it is simple and stable.
step 2: choose the number of rows
rows per vp controls how detailed the volume profile is.
more rows give more precision but can make the chart heavier.
fewer rows give a cleaner view but less detail.
a balanced setting is usually better for beginners.
step 3: read poc, vah and val
start by locating the poc.
then look at vah and val.
ask three simple questions:
is price above value?
is price below value?
is price inside value?
this gives a basic market context.
step 4: check reaction zones
watch how price behaves when it reaches poc, vah, val, fibonacci levels or merged poc clusters.
a strong reaction can show rejection.
a slow move through the level can show acceptance.
a clean breakout can show expansion away from value.
step 5: confirm with price action
do not trade only because price touches a level.
wait for confirmation such as:
market structure shift
rejection candle
break and retest
support or resistance reaction
volume confirmation
trend confirmation
example 1: price returns to poc
price moves away from a profile and later returns to the poc.
this can be a magnet zone because the poc is the highest volume level of that profile.
a beginner can watch if price accepts the poc or rejects it.
if price holds above poc after a retest, it may show support behavior.
if price rejects below poc, it may show resistance behavior.
example 2: rejection at vah
price moves up into vah and fails to stay above it.
this can show that higher prices are not accepted.
a trader can then look for bearish confirmation on the normal price chart.
the level itself is only a reference. confirmation is still required.
example 3: reaction at val
price drops into val and quickly rejects lower prices.
this can show that sellers failed to push price below value.
a trader can then look for bullish confirmation before considering a long setup.
example 4: merged poc cluster
several poc levels appear close to each other and the script merges them.
this creates a cleaner high-volume cluster.
if price returns to that cluster, it can become an important decision zone.
a beginner should watch whether price bounces, consolidates, or breaks through the cluster.
example 5: confluence zone
a poc, a fibonacci level and a value area boundary appear near the same price.
the confluence detector can highlight this type of zone.
this does not predict the future, but it helps the trader focus on areas where several references agree.
example 6: global heatmap
the global heatmap shows a strong high-volume area on the right side of the chart.
if price trades near this zone, it may slow down, react or consolidate.
if price moves through a low-volume zone, it may move faster.
beginner trading workflow
first, identify the current trend on the main chart.
then, check where price is compared to the nearest poc.
next, look at vah and val.
then, check if there is a merged poc cluster or confluence zone nearby.
after that, wait for price action confirmation.
finally, define risk before entering any trade.
a simple beginner rule is:
do not enter just because a level appears.
wait for price to react.
wait for confirmation.
protect the trade with a clear invalidation level.
best use cases
volume profile analysis
poc reaction zones
value area reading
fibonacci confluence
session profile analysis
fixed range profile analysis
support and resistance context
market balance and imbalance reading
high-volume and low-volume zone detection
beginner-friendly structure analysis
settings overview
vp trigger
selects how the profile is created.
fixed bars builds profiles after a fixed number of bars.
session builds profiles around selected market sessions.
manual period builds a profile from a manual number of bars.
bars per vp
controls how many bars are used before a new fixed profile is created.
manual period bars
controls the number of bars used for the manual live profile.
max vp visible
controls how many profiles remain visible on the chart.
rows per vp
controls the number of price rows inside each profile.
value area percentage
controls how much of the profile volume is included inside the value area.
vp width percentage
controls the visual width of each profile.
show fibonacci
enables or disables fibonacci levels.
anchor type
selects what structure is used to anchor fibonacci levels.
fib direction
selects automatic or manual fibonacci direction.
show poc
shows or hides the point of control.
show vah and val
shows or hides value area high and value area low.
extend poc right
extends poc levels to the right side of the chart.
merge close poc lines
merges close poc levels into cleaner clusters.
bull and bear split
shows estimated bullish and bearish volume separately.
delta method
selects how bullish and bearish volume is estimated.
global heatmap
shows an aggregated heatmap from visible profiles.
true confluence detector
detects zones where several important levels cluster together.
live vp gauges panel
shows live pressure and distance readings from the developing profile.
dashboard
shows a compact status panel with useful script information.
risk note
this indicator is designed for technical analysis and education. it does not give financial advice and does not guarantee results. levels, profiles, gauges, heatmaps and alerts are references only. always use risk management and confirm every setup with your own analysis. Индикатор

Fibonacci A-B-C Volles Strategie-Board(ENGLISH)
---
The Fibonacci Betting-Playbook 062026: How to read the Strategy Board
If you want to succeed in the markets, you need more than just a gut feeling, you need a system that delivers crystal-clear odds. This script is your personal bookmaker dashboard directly on the chart. It scans price movements for a highly profitable pattern and shows you exactly when the risk-reward ratio is as good as a massively overpriced underdog quote in La Liga.
Here is the official manual for you and your users, so that everyone knows exactly how to read the signals and when it's better to keep your feet still.
The Game Plan: The A-B-C Formation
In the background, the script constantly scans for a specific market movement, the so-called A-B-C ZigZag. Think of it like the perfect set piece:
Point A (The Kickoff): The lowest point where the movement begins.
Point B (The First Goal): The first high point. The momentum is here.
Point C (The Tactical Pause): The price drops back slightly. Exactly here, in this pullback, we calculate our entry before the second half – the next big price breakout – begins.
As soon as the script recognizes this formation, it paints your playing field (the boxes) onto the chart.
Your Betting Odds: The Zones on the Board
When the setup is "hot", you will see two distinct boxes on your screen. They take the guesswork out of the equation and tell you exactly where you need to place your chips.
🟢 The Green Zone: The Entry (The Value Bets)
Here is where you build your position. If the price falls into this box, we have a statistical advantage (edge).
Line 0.500 (Initial Entry): The market has corrected half of its rally. Here you place your first, smaller bet.
Line 0.618 (Ideal Reload): This is the "Golden Ratio". The absolute sweet spot in the Fibonacci system. If the price drops here, you double down. The chance of a bounce is highest here.
Line 0.667 (The Last Bastion / STOP): The red dashed line. If the price falls below this, the setup is busted. The trade is canceled, you pull the ripcord, and accept the small loss. No hoping, no praying – strict bankroll management.
🟠 The Orange Zone: The Cashout (Taking Profits)
If the trade plays out and the price shoots up, this box shows you where the bookie opens the register.
Line 1.618 (Potential Turning Point): Your first target (Take Profit 1). Here you take a portion of your winnings off the table. Ring the register!
Line 1.809 (Trailing Stop-Loss): The price keeps running? Perfect. Trail your stop-loss to your entry price now. You are now riding a risk-free bet.
Line 2.000 (Massive Resistance): The absolute maximum. The air gets extremely thin up here. Take your remaining profit and close the position.
🔴 The VAR Signal: The Red Warning Box
Markets are often chaotic. If the script fails to recognize a clear A-B-C pattern, the stop-loss has been hit, or the target has already been reached, the system immediately deletes all lines from the chart.
Instead, a red box appears in the center: "CURRENTLY NO RECOMMENDATION POSSIBLE - WAIT FOR FURTHER CHART SIGNALS".
This is like a suspended betting market during a VAR check. Your only task at this moment: Do not trade. Keep your hands off the buy button. Wait patiently until the system builds the next profitable setup.
What you as a user must absolutely pay attention to (The Golden Rules)
Patience is your best croupier: Do not trade blindly just because the price is moving. Always wait until the boxes appear on the chart and the price dips into the green zone.
Respect the Stop-Loss (0.667): Even in the best Spanish casinos, you don't win every hand. If the red line is breached, close the trade on Trade Republic immediately. Whoever hesitates here gambles away their bankroll.
Split your stakes: Do not wager your entire capital at the 0.500 line. Make a partial entry and keep your powder dry in case the price drops to the golden 0.618 line. This massively improves your average entry price.
Secure your profits: When the price reaches the orange 1.618 line, do not get greedy. Take a partial profit. Nothing is more frustrating than turning a fat paper profit back into a loss.
Индикатор

Индикатор

Индикатор

Индикатор

Kinetic Ribbon Trail [JOAT]Kinetic Ribbon Trail
Introduction
Kinetic Ribbon Trail is an open-source trend-following indicator built on two structural layers: a 20-line Hull Moving Average gradient ribbon that quantifies the spread and conviction of near-term versus long-term momentum, and a Fibonacci-anchored adaptive trailing stop that adjusts its sensitivity based on the current swing structure and volatility ratio. The two layers interact — the ribbon provides visual context for momentum strength while the trail provides the dynamic level that determines directional bias.
The unique analytical contribution is the ribbon normalization. Most HMA ribbon indicators simply plot multiple lines and fill between them. Kinetic Ribbon Trail computes the signed spread between the fastest and slowest ribbon line, normalizes it by the 200-bar exponential average of that spread, clamps it to a -1 to +1 range, and uses the result to drive a continuous color gradient between the bear and bull theme colors. This means the ribbon's color intensity directly reflects how unusual the current momentum spread is relative to its historical average — not just whether the ribbon is bullish or bearish.
Core Concepts
1. 20-Line HMA Ribbon with rFactor Normalization
Twenty Hull Moving Average lines are computed from a base period, incrementing by a configurable step. The spread between the fastest and slowest line is the primary signal variable:
rSpread = rh01 - rh20
rAvgSpread = ta.ema(math.abs(rSpread), 200)
rFactor = math.max(-1, math.min(1, rSpread / (rAvgSpread * 1.5 + 1e-9)))
rCol = color.from_gradient(rFactor, -1, 1, colorBEAR, colorBULL)
When the fastest line is far above the slowest relative to its recent average, rFactor approaches +1 and the ribbon glows in full bull theme color. The gradient reflects spread magnitude — a bullish spread twice as wide as normal appears more saturated than one just barely positive.
2. Fibonacci Adaptive Trailing Stop
The trailing stop anchors to swing structure rather than to fixed ATR multiples. Confirmed swing highs and lows define a Fibonacci range. Three trail levels are computed from this range at the 0.382, 0.5, and 0.618 Fibonacci retracement. One is selected based on the trail mode: Aggressive, Balanced, or Conservative. A volatility adjustment scales the selected level by the inverse of the current volatility ratio.
The trail ratchets: for longs, it can only move up. For shorts, it can only move down. A flip occurs when price closes through the trail level with body ratio and penetration confirmation.
3. Four-State Regime Detection
A four-state regime classification determines which visual treatments are active: Trend Bull, Trend Bear, Range High-Vol, Range Low-Vol. The classification uses ADX relative to a threshold and the ATR-to-SMA(ATR) ratio. When a regime transition occurs, the chart background is tinted for 10 bars in the corresponding theme color before clearing.
4. Six-Factor Confidence Score
Each signal is assigned a confidence grade (D through A+) based on six weighted factors: swing structure alignment (20%), regime alignment (20%), ADX strength (15%), volume participation (15%), volatility favorability (15%), and SMA50 proximity to trail level (15%). Signals below a user-set minimum grade are suppressed.
Features
20-line HMA gradient ribbon: rFactor-normalized color gradient reflecting momentum spread intensity vs. its 200-bar historical average
19 ribbon fill layers: Adjacent HMA lines filled with gradient opacity layers for depth visualization
Fibonacci adaptive trailing stop: Trail anchored to swing structure at 0.382 / 0.5 / 0.618 Fibonacci levels with volatility adjustment
Trail ratchet with flip confirmation: Trail advances in one direction only; flips require body ratio and penetration confirmation
Gradient trail fill: Fill between trail and close — top color opaque, bottom color transparent
Four-state regime detection: Trend Bull, Trend Bear, Range High-Vol, Range Low-Vol with background tint on transition
Six-factor confidence scoring: A+ / A / B / C / D grading system applied to each signal
Confidence filter: Signals below the minimum confidence grade are suppressed
Trade block on trail flip: Entry, stop, TP1/TP2/TP3 rendered as gradient boxes on confirmed flip signals
Backtest tracker: Win rate and expected value
Four color themes: Phantom, Neon, Classic, Solar
Non-repainting: All signals gated by barstate.isconfirmed
Institutional dashboard: 13-row table with regime, trail level, confidence grade, signal, TP/SL levels, and performance stats
Input Parameters
Ribbon:
Base Length: Fastest HMA period (default: 10)
Step: Increment between each ribbon line (default: 14)
Fibonacci Trail:
Trail Mode: Aggressive (0.618) / Balanced (0.5) / Conservative (0.382) / Auto (regime-adaptive)
Pivot Lookback: Bars required to confirm a swing pivot
Confidence:
Enable Confidence Filter toggle
Min Signal Grade: D / C / B / A / A+
Trade Levels:
Show Trade Block toggle
Risk Preset: Conservative / Balanced / Aggressive / Scalping
Extend Bars: How far lines project right
How to Use This Indicator
Step 1: Read the Ribbon Color
A deeply saturated bull color means the ribbon spread is unusually wide — momentum is strong. A muted or transitional color means the spread is near its historical average — momentum is uncertain.
Step 2: Watch for Trail Flips
A signal fires when the Fibonacci trail flips direction and confidence meets the minimum grade. The trade block appears immediately with entry, stop, and three TP levels.
Step 3: Use Regime Context
The four-state regime in the dashboard tells you whether you are in a trending or ranging environment. High-confidence signals in trending regimes carry more structural weight than the same grade in a ranging regime.
Indicator Limitations
Swing detection uses ta.pivothigh() and ta.pivotlow() with a lookback offset. The Fibonacci levels are computed from swings confirmed bars after they occurred
In markets with very shallow swing structures, the Fibonacci range can be small relative to ATR, causing the trail to cluster near the current price and produce excessive flips
The 20-line ribbon increases visual complexity. Reducing the base length and step can make the ribbon more compact on busy charts
The confidence score uses volume as one factor. On timeframes or instruments where volume is not meaningful, this factor should carry less weight
Regime detection uses ADX, which lags price. A trend that begins explosively may be classified as ranging for several bars before ADX responds
Originality Statement
The rFactor normalization — dividing ribbon spread by a 200-bar EMA of absolute ribbon spread, clamped to -1/+1, driving a continuous color.from_gradient() — is an original approach to HMA ribbon coloring that reflects relative momentum intensity rather than absolute direction
Anchoring a trailing stop to Fibonacci retracements of the current confirmed swing structure, with volatility-ratio adjustment and body/penetration confirmation on flips, is distinct from standard ATR-multiplier trailing stops
The six-factor confidence scoring system applied per signal, producing an A+ to D grade that gates signal output, provides per-trade quality assessment within the indicator itself
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Past confidence grades and win rates do not predict future performance. The author accepts no responsibility for trading losses resulting from use of this indicator.
Made with passion by jackofalltrades
Индикатор

MIDAS Fibonacci Cloud [JOAT]MIDAS Fibonacci Cloud
Introduction
MIDAS Fibonacci Cloud is an open-source VWAP-based analytical tool that combines a MIDAS-anchored volume-weighted average price with six Fibonacci-scaled standard deviation bands, a Z-score probability engine, and a synthetic order flow score to produce an integrated picture of institutional value, statistical deviation, and directional pressure on a single overlay.
The problem this solves is band relevance. Standard VWAP deviations use fixed multipliers (1×, 2×, 3× standard deviation) that carry no structural meaning in market terms. Replacing those multipliers with Fibonacci ratios (0.236, 0.382, 0.5, 0.618, 1.0, 1.618) means the band levels correspond to proportional retracement relationships that institutional participants commonly reference. The 1.618 band in particular acts as an extreme extension zone where reversion probability, quantified by the built-in Z-score engine, typically exceeds 99.7%.
Core Concepts
1. MIDAS VWAP with Configurable Anchoring
The VWAP calculation uses the MIDAS method — cumulative volume-weighted price that resets at a user-selected anchor point rather than running as a continuous session VWAP. The anchor can be set automatically (based on the current timeframe), manually to a specific higher timeframe, or to a precise date. This allows the VWAP to be anchored to any significant market event.
The variance term used for standard deviation is computed directly from the volume-weighted sum of squared prices, producing a statistically correct VWAP standard deviation:
float midasVwap = sumVolPrice / sumVol
float variance = (sumVolSq / sumVol) - math.pow(midasVwap, 2)
float stdDev = math.sqrt(math.max(0, variance))
2. Fibonacci Deviation Bands
Six band pairs are computed above and below the VWAP anchor using the standard deviation scaled by a global sensitivity multiplier and each Fibonacci ratio. Upper bands are colored in the bull theme color with decreasing opacity from band 1 to band 6; lower bands in the bear theme color with the same gradient. A gradient fill connects the outer zone (fib4–fib6) to visually highlight the extreme deviation region.
3. Z-Score and Bell Curve Probability
Each bar's Z-score is computed as the signed distance from the VWAP in units of standard deviation. The dashboard converts this to a mean-reversion probability using standard normal distribution thresholds: within 1σ = 68.2%, within 2σ = 95.4%, within 3σ = 99.7%, beyond 3σ = 99.9%.
4. Synthetic Order Flow Score
A bar-level order flow score is computed from three components: candle body-to-range ratio (directional conviction), volume relative to the 20-bar average (institutional participation), and wick rejection percentage (price acceptance or rejection). These are weighted 40/35/25 and scored 0 to 100. VWAP crossover signals are gated by this score — crossovers with low order flow scores are filtered as noise.
5. Gradient Fill Zones
The two outer Fibonacci bands (fib4 and fib6) are connected with a gradient fill that creates a visual glow effect identifying the extreme deviation zones — the regions where price is statistically most likely to be overextended.
Features
MIDAS VWAP with three anchor modes: Auto (timeframe-adaptive), Timeframe (manual higher TF), Date (specific date anchor)
Six Fibonacci deviation band pairs: Levels at 0.236, 0.382, 0.500, 0.618, 1.000, 1.618 × standard deviation × global sensitivity
Gradient fill on extreme zones: Color-to-transparent gradient between fib4 and fib6 identifies overextension zones
Z-score and reversion probability: Computed every bar with bell curve probability output (68.2% / 95.4% / 99.7% / 99.9%)
Synthetic order flow gate: Body ratio, volume participation, and wick rejection combined into a 0-100 score that gates VWAP cross signals
Candle coloring by Z-score: Bar colors intensity-coded by distance from VWAP — neutral near center, saturated at extremes
Band labels at right edge: Each band level labeled with its Fibonacci ratio and price value, updated each bar
Anchor reset marker: Vertical marker in elite theme color at each VWAP reset point
Four color themes: Phantom, Neon, Classic, Solar
Non-repainting: VWAP and bands computed cumulatively from anchor; no future data referenced
Institutional dashboard: 8-row table showing VWAP price, distance %, Z-score, reversion probability, order flow score, and market state
Input Parameters
Anchor Settings:
Anchor Method: Auto / Timeframe / Date
Manual Timeframe: Timeframe to anchor to when method is Timeframe
Manual Date: Specific timestamp when method is Date
Fibonacci Multipliers:
Global Sensitivity: Scales all band widths proportionally (default: 1.2)
Fib Level 1 through 6: Individual Fibonacci ratios (defaults: 0.236, 0.382, 0.500, 0.618, 1.000, 1.618)
Visual Styles:
Color Theme: Phantom / Neon / Classic / Solar
Highlight Candles: Toggle candle coloring by Z-score
Show Band Labels: Toggle right-edge price labels on each band
Table Position and Size
How to Use This Indicator
Step 1: Choose Your Anchor
For intraday scalping, use Auto or Daily anchor. For swing trading, use Weekly or Monthly. For event-driven analysis, use Date and anchor to a specific earnings release, FOMC announcement, or major swing point.
Step 2: Read Band Levels as Statistical Reference
The 0.5 band is one half standard deviation from VWAP — a mild deviation typical of normal trending behavior. The 1.618 band is the extreme extension zone. Price at the 1.618 band has a statistical reversion probability above 99.7%, but this does not mean reversion is imminent or guaranteed.
Step 3: Check the Reversion Probability
Read the Reversion Prob row in the dashboard. As Z-score rises above 2, reversion probability exceeds 95.4%. This quantifies how unusual the current deviation is relative to the full history from the anchor point.
Step 4: Confirm with Order Flow Score
The Order Flow score reflects whether the current bar has institutional characteristics. A high score (above 60) during a VWAP cross suggests genuine participation. A low score (below 30) during a cross suggests a potentially false signal.
Indicator Limitations
The VWAP standard deviation widens significantly with the anchor period. Bands anchored to a six-month period will be very wide; bands anchored to one day will be tight. The global sensitivity parameter must be adjusted accordingly
The Z-score probabilities assume normally distributed returns, which markets do not produce. Fat tails mean extreme Z-scores occur more frequently than the percentages suggest
The synthetic order flow score uses tick volume as a proxy for actual order flow. On assets with low tick frequency, this approximation is less reliable
VWAP-based analysis is most relevant for liquid instruments
This indicator does not generate entry or exit signals. It provides statistical deviation context
Originality Statement
Replacing standard deviation band multipliers with Fibonacci ratios (0.236 through 1.618), scaled by a volume-weighted standard deviation from a MIDAS anchor, is not replicated in existing open-source Pine Script v6 VWAP publications
The combination of Z-score computation, bell curve probability quantification, and a synthetic order flow score as a gate for VWAP cross signals within a single indicator is an original integration
The candle coloring gradient driven by Z-score intensity provides real-time deviation awareness directly on price bars without requiring a separate oscillator panel
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Statistical deviation probabilities are based on a normal distribution assumption that financial markets do not satisfy. Past VWAP behavior does not predict future price action. The author accepts no responsibility for trading losses resulting from use of this indicator.
Made with passion by jackofalltrades
Индикатор

MTF CVD Synchrony | Rainbow MatrixGENERAL OVERVIEW
MTF CVD Synchrony is a multi-timeframe directional flow oscillator that condenses five independent CVD (Cumulative Volume Delta) readings — one per Fibonacci-spaced timeframe — into a single weighted Master Line on a zero-centered 0-100 scale, surrounded by per-TF "ghost lines" that fade visually as they diverge from the consensus. The defining feature: 50 is true neutral. Above 50 means buyers are dominating; below 50 means sellers are dominating. The further from 50, the stronger the directional pressure. When the five timeframes align, the rainbow becomes a solid band; when they diverge, the disagreement becomes a visible density property of the indicator itself.
A background histogram visualizes the Master score's deviation from the neutral 50 line — green columns extend up when buyers dominate, red columns extend down when sellers dominate. A compact 7×9 MTF Legend Table surfaces every dimension simultaneously: per-TF resolutions, score values, trend direction, divergence flags, raw flow magnitude, and named directional State — with an antenna marker flagging the row whose timeframe matches your chart's native resolution.
Designed as the directional member of a three-indicator family. Apply all three side-by-side for a complete read: MTF RSI Synchrony shows where price sits in its momentum range; MTF Volume Delta Bar Synchrony shows whether the move has volume magnitude behind it; MTF CVD Synchrony shows who is actually winning — buyers or sellers. Same visual signature, same canonical Fibonacci ratios, same Legend Table layout — instant cross-indicator readability.
WHAT IS THE THEORY BEHIND THIS INDICATOR
Cumulative Volume Delta attempts to answer a question that price and volume alone cannot: in any given bar, were buyers or sellers more aggressive? Traditional volume tells you HOW MUCH traded, but not the DIRECTION of the pressure. A high-volume bar that closes flat tells a very different story from a high-volume bar that closes at its highs — yet raw volume scores them identically.
CVD approximates directional pressure by weighting each bar's volume by where price closed within its range. This indicator uses the Close Location Value (CLV) for that weighting:
clv = ((close − low) − (high − close)) / (high − low)
CLV ranges from +1 (close exactly at the high — maximum buying pressure) to −1 (close exactly at the low — maximum selling pressure), with 0 at the midpoint. Multiplying CLV by volume produces a signed directional contribution per bar: delta_raw = clv × volume. This is more nuanced than the binary tick rule (close > open = buy) used by most "delta" indicators — CLV captures HOW DECISIVELY price closed in its range, not just the sign.
The per-bar delta is then smoothed by EMA and normalized into a bounded 0-100 zero-centered score:
cvd_smooth = EMA(delta_raw, smoothing_length)
max_abs = highest(|cvd_smooth|, normalization_window)
score = 50 + (cvd_smooth / max_abs) × 50
The genius of the zero-centered approach: 50 always means balance, regardless of the asset's structural bias. A score of 75 means buyers are exerting 50% of the maximum recent pressure to the upside; a score of 25 means sellers are exerting 50% of maximum recent pressure to the downside. This is fundamentally different from a percentile rank (which would anchor 50 at the historical median, skewing with structural trends).
Five such scores — one per timeframe (default 5 / 15 / 60 / 240 / D) — are fused via canonical Fibonacci weights (0.15 / 0.20 / 0.25 / 0.25 / 0.15, peak weight on the macro TF3/TF4 where institutional positioning consolidates) into the weighted Master Line.
FEATURES
🔹 Multi-Timeframe CVD Fusion Engine (zero-centered directional scale)
🔹 CVD Histogram (deviation from neutral 50 — green buy / red sell)
🔹 Adaptive Fibonacci Channel (Z-Breathing → Z-Alert → Z-Exhaustion → Black Swan)
🔹 Hybrid Black Swan Zones (static or dynamic — default dynamic)
🔹 Classic Price↔CVD Divergence Detection (per-TF + Master)
🔹 MTF Legend Table (7 columns × 9 rows, with Raw Flow + State, multilingual)
🔹 Multilingual Interface (EN / PT / ES / RU / ZH)
🔹 Multi-Timeframe CVD Fusion Engine
What It Does
Runs five independent CVD scores on Fibonacci-spaced timeframes and fuses them into a single weighted Master Line, with each per-TF reading plotted as a ghost line that fades by distance to the consensus.
Method
On each timeframe, f_cvd_full() computes CLV × volume per bar, smooths it via EMA, and normalizes against a rolling-max window to produce the zero-centered score. The five scores fuse via Fibonacci weights (0.15 / 0.20 / 0.25 / 0.25 / 0.15). Both smoothing length and normalization window are independently configurable per timeframe.
Per-TF smoothing defaults (Wilder-anchored on TF3+TF4):
◇ TF1 (5m): 7 — scalping
◇ TF2 (15m): 10 — day-trading
◇ TF3 (60m): 14 — Wilder canonical
◇ TF4 (240m): 14 — Wilder canonical
◇ TF5 (D): 21 — swing/position
Per-TF normalization windows (each TF's natural horizon):
◇ TF1: 30 (≈2.5h on 5m)
◇ TF2: 50 (≈12.5h on 15m)
◇ TF3: 80 (≈3.3 days on 1h)
◇ TF4: 100 (≈16 days on 4h)
◇ TF5: 150 (≈5 months on Daily)
All request.security calls use lookahead=barmerge.lookahead_off for anti-repaint integrity.
Why It Matters
A 5-minute buy surge means little if the 4-hour and daily flows are decisively selling. The fusion engine reveals whether directional pressure is aligned across timescales (high conviction) or contradictory (a counter-trend bounce inside a larger trend). The ghost-line rainbow makes that alignment visible at a glance.
🔹 Adaptive Fibonacci Channel
What It Does
Six color-coded bands around the Master Line that adapt to its own recent volatility, using the brand's canonical Fibonacci ratios.
Method
Highest/lowest of the Master over a configurable lookback (default 50) are smoothed by EMA (default 10) to form the channel envelope. Bands sit at canonical Fibonacci proportions: Z-Breathing (1.50/1.85), Z-Alert (1.85σ anchor), Z-Exhaustion (2.75/1.85), Black Swan (3.85/1.85). All six band values are mathematically clamped to before rendering, keeping the rainbow inside the visible pane.
Why It Matters
Static thresholds can't adapt to regime changes. The Fibonacci channel calibrates the warning zones to the asset's current directional-flow volatility, so a "climax" on a calm pair and a "climax" on a volatile one both trigger at appropriate statistical extremes.
🔹 Hybrid Black Swan Zones
What It Does
Flags directional flow climax extremes — either at static 85/15 thresholds (BUY CLIMAX / SELL CLIMAX boundaries) or at the dynamic Fibonacci 3.85σ band.
Method
Dynamic Black Swan Mode is ON by default (Fibonacci 3.85σ proportion of the Master channel). Toggle OFF for static 85/15. Each zone renders as a glow line that brightens as the Master approaches. The static reference lines (15/50/85) are shown by default to anchor the zero-centered scale: 85 = purple (buy climax boundary), 50 = yellow (neutral), 15 = aqua (sell climax boundary).
Why It Matters
Directional flow climaxes mark exhaustion points — a BUY CLIMAX (score ≥ 85) means buyers have pushed to a recent extreme, often preceding a pause or reversal; a SELL CLIMAX (≤ 15) marks capitulation. The dynamic mode self-calibrates per asset and regime.
🔹 Classic Price↔CVD Divergence Detection
What It Does
Detects regular bear divergences (price higher high while CVD makes lower high — rally on weakening buy pressure) and bull divergences (price lower low while CVD makes higher low — selling exhausting). Runs on each timeframe AND on the Master line.
Method
Per-TF divergence runs inside request.security via pivot detection on the per-TF CVD score. Master divergence runs on the chart-TF directly, rendering a connecting line + label between pivots (red bear / green bull) on the pane. Per-TF results surface in the Legend Table's "Div" column.
Why It Matters
Price↔flow divergence is one of the most powerful applications of CVD. When price makes a new high but directional flow doesn't confirm, the rally is running on fading conviction — a classic distribution warning. Detecting this per-TF AND on the Master gives both early granular warnings and high-conviction confirmations.
🔹 MTF Legend Table
What It Does
A compact 7×9 table surfacing every dimension of the analysis at a glance.
Method
Rendered via table.new(force_overlay=false) on the pane. Layout:
◇ Row 0: title (spans all columns)
◇ Row 1: column headers — Indicator / Timeframe / Value / Trend / Div / Raw / State
◇ Rows 2-6: per-TF data
◇ Row 7: Master row ("🌈 Master (~XhYm)" with effective TF)
◇ Row 8: MTF Divergence status row
Per-TF cells show: ● TF label (+ antenna 📡 if chart-native), TF resolution, zero-centered score (zone-colored), trend arrow (±0.5 deadzone), divergence (🔺/🔻/—), Raw Flow (compact K/M/B signed magnitude, green if positive / red if negative), and State (directional name, zone-colored).
Why It Matters
The Raw Flow column complements the Value column: Value answers "how strong is the directional pressure?" (the normalized score), while Raw answers "how much actual volume is behind it?" (the absolute flow). A score of 75 with a small raw magnitude is weaker conviction than 75 with a huge raw magnitude. Together with State, the table tells a complete directional story per timeframe.
🔹 Multilingual Interface
What It Does
Translates all HUD labels, status messages, alert text, Legend Table headers, and directional State names to 5 languages: English, Português, Español, Русский, 中文.
Method
A single language dropdown selects the active language via Pine v6's ternary-chain pattern. Code, comments, and configuration tooltips remain in English by convention.
Why It Matters
The Rainbow Matrix family is built for traders worldwide. Multilingual UI removes friction for non-English-native users.
HOW TO USE
Reading the Pane
◇ Master near 50 with ghost lines tight: balanced flow, no directional edge (absorption / equilibrium).
◇ Master rising above 50: buyers gaining control. Above 62 = BUY PRESSURE; above 71 = STRONG BUY.
◇ Master falling below 50: sellers gaining control. Below 38 = SELL PRESSURE; below 29 = STRONG SELL.
◇ Master touches Black Swan High (≥85, purple glow): BUY CLIMAX — buyers at a recent extreme, watch for exhaustion.
◇ Master touches Black Swan Low (≤15, aqua glow): SELL CLIMAX — capitulation, watch for reversal.
◇ Histogram green/red columns: immediate bar-by-bar directional read around the 50 centerline.
Reading the Legend Table
The antenna marker (📡) flags your chart's native timeframe — start there, then scan up/down to see whether faster/slower TFs confirm or contradict the directional bias. Compare Value (pressure strength), Raw (actual flow magnitude), and State (named classification) for each row. The status row summarizes MTF alignment between TF1 and TF5.
Reading Divergences
Master bear divergence (price up + CVD down) = rally on fading buy conviction, distribution warning. Master bull divergence (price down + CVD up) = selling exhausting, potential bottom. Per-TF divergences in the Div column give early granular warnings.
Tactical Combinations
◇ Master BUY CLIMAX + bear divergence + multiple TFs diverging = strongest reversal-from-high signal.
◇ Master SELL CLIMAX + bull divergence = strongest reversal-from-low signal.
◇ Master near 50 + all TFs near 50 + tight ghosts = absorption / coiling, often precedes a directional break.
◇ Triple confluence (the full family): RSI overbought + Volume EXTREME magnitude + CVD STRONG SELL = distribution at the top. RSI oversold + Volume EXTREME + CVD STRONG BUY = accumulation at the bottom. These three indicators answering momentum + magnitude + direction simultaneously is the strongest read the Rainbow Matrix family offers.
INPUTS EXPLAINED
GLOBAL SETTINGS — System Language (EN/PT/ES/RU/ZH), table/label font sizes.
MULTI-TIMEFRAME — AI Auto-Sync TFs; TF1-TF5 manual resolutions (default 5/15/60/240/D); per-TF CVD Smoothing Length (7/10/14/14/21); per-TF CVD Normalization Window (30/50/80/100/150).
ENGINE — Dynamic Black Swan Mode (default ON); Dynamic Channel Lookback (50) and Smoothing (10); Divergence Pivot Lookback (5).
VISUALIZATION — TF1-TF5 colors + show toggles (all ghost lines OFF by default — only Master visible on install); Ghost Fade Sensitivity (3.5); Show Master Line / Rainbow Fills / Black Swan / Dynamic Channel; Show CVD Histogram; Show MTF Legend Table; Show Divergence Column; Show Raw Flow Column; Show State Column; Show Master Divergence Chart Line; Legend position; Show Divergence Event Markers; Show Static Reference Lines (15/50/85, ON by default).
ALERTS — Black Swan crossings (high/low); Strong MTF Divergence; Z-Exhaustion zone entries; Master Classic Divergence.
IMPORTANT NOTES
🔸 Pine Script v6 — uses request.security with lookahead=barmerge.lookahead_off. 16 total security calls (5 CVD score + 5 per-TF divergence + supporting channel calculations). Chart load may take a moment longer than a single-TF indicator.
🔸 CLV approximation, not order-flow tick data — Directional pressure is approximated via the Close Location Value (where price closed within each bar's range), NOT real bid/ask order flow. Pine Script v6 has no tick-by-tick data access in indicator scripts. CLV is a more nuanced approximation than the binary tick rule used by most free-tier "delta" indicators, but it remains an approximation. For true order-flow delta, use dedicated footprint/order-flow tools.
🔸 Zero-centered scale — Unlike the percentile-rank siblings (RSI, Volume Delta Bar), this indicator's 50 is a TRUE neutral (zero net directional flow), not a historical median. This is intentional — direction is inherently signed, so a fixed zero-point is more meaningful than a regime-relative median.
🔸 Normalization warmup — During the first normalization_window bars on each TF, the rolling-max anchor (max_abs) is built from a small sample, so early bars may show exaggerated swings until the window fills. Normal warmup behavior for any rolling-window indicator.
🔸 Repaint behavior — Historical bars use confirmed close data; the current real-time bar updates as ticks arrive. Pivot-based divergence requires confirmation bars before triggering (standard pivot divergence behavior).
🔸 Fibonacci ratios are canonical — The channel proportions (1.50/1.85/2.75/3.85) and fusion weights (0.15/0.20/0.25/0.25/0.15) match the Rainbow Matrix brand standard across all sibling indicators, preserving cross-indicator visual consistency.
🔸 License: MPL 2.0 — open source. Free to fork, modify, and republish under the same license terms.
UNIQUENESS
Three pillars differentiate this from other CVD indicators on TradingView:
1. Multi-timeframe CVD fusion with synchrony as a visual property. Most CVD tools run on a single timeframe. This indicator runs five, fuses them via Fibonacci weights, and expresses directional alignment as a rainbow density — solid when timeframes agree on direction, spread when they disagree. The cross-TF directional consensus becomes immediately readable.
2. True zero-centered scale with CLV weighting. The 50 midpoint is a mathematically meaningful neutral (zero net flow), not a regime-skewed median. And the directional weighting uses Close Location Value — capturing how decisively price closed within each bar's range — rather than the cruder binary tick rule. This combination produces a directional read that stays honest across structural trends.
3. Three complementary readings in one Legend Table, designed as a family. Value (pressure strength), Raw Flow (actual magnitude), and State (named classification) disambiguate a single timeframe's directional picture. And as the directional member of the Rainbow Matrix trio (alongside RSI for momentum and Volume Delta Bar for magnitude), it completes a three-dimensional read of any market: where price is, how big the move is, and who's winning.
Rainbow Matrix AI | Multi-timeframe institutional analysis tools for traders.
🌐 rainbowmatrix.ai
✉️ Contact: contact@rainbowmatrix.ai
Индикатор

MTF Volume Delta Bar Synchrony | Rainbow MatrixGENERAL OVERVIEW
MTF Volume Delta Bar Synchrony is a multi-timeframe volume percentile fusion oscillator that condenses five independent volume readings — one per Fibonacci-spaced timeframe — into a single weighted Master Line, surrounded by per-TF "ghost lines" that fade visually as they diverge from the consensus. When the five timeframes align, the rainbow becomes a solid band; when they spread apart, the disagreement becomes a visible density property of the indicator itself. A compact 7×9 MTF Legend Table surfaces every dimension simultaneously: per-TF volume percentile values, trend direction, divergence flags, Pulse magnitude ratio, and named State classification — with an antenna marker flagging the row whose timeframe matches your chart's native resolution.
Optional Delta Twin Bars project per-candle directional overlays directly onto the price chart via force_overlay=true, combining the oscillator pane and an order-flow approximation in a single indicator. A hybrid Black Swan zone detects volume climax (surge) and squeeze (drought) extremes — either as static 80/20 thresholds (classic) or as a dynamic Fibonacci-scaled channel that adapts to recent volatility. A classic price↔volume divergence engine detects Wyckoff-style "no demand" rallies and selling-climax bottoms on every timeframe and on the Master line.
Designed as a sibling to the MTF RSI Synchrony indicator. Apply both side-by-side for the complete momentum + volume picture: RSI shows where price sits in its momentum range; Volume Synchrony shows whether the move has institutional backing. Same visual signature, same canonical color zones, same Legend Table layout — instant cross-indicator readability.
WHAT IS THE THEORY BEHIND THIS INDICATOR
Most volume indicators on TradingView operate on a single timeframe — volume bars, OBV, CVD approximations — and report raw, unbounded volume values that vary wildly across timescales. A 5-minute volume bar of 50,000 contracts is meaningless without context: is that "high" for 5-minute bars on this asset, or "low"? Compared to what window? A trader watching a 5-minute chart cannot intuitively cross-reference whether that surge corresponds to anything notable on the 4-hour view.
This indicator solves the cross-timescale comparison problem by bounding every volume reading to a 0-100 percentile rank: the same scale, regardless of timeframe, regardless of asset. The percentile answers a single question: "where does this bar's volume sit in the distribution of recent volume on this timeframe?" — a number anyone can read at a glance.
Five percentile readings are then fused via canonical Fibonacci weights (0.15 / 0.20 / 0.25 / 0.25 / 0.15 — peak weight on the macro TF3/TF4 where institutional consolidation tends to occur) into a single weighted Master Line. The Master adapts to a self-calibrating Fibonacci channel built from its own highest/lowest values over a configurable lookback, smoothed by EMA. Channel boundaries use the brand's canonical ratios: Z-Breathing (1.50σ), Z-Alert (1.85σ anchor), Z-Exhaustion (2.75σ), Black Swan (3.85σ) — same proportions as the RSI sibling for cross-indicator consistency.
The result is a volume picture that updates in real time, accounts for five timescales simultaneously, encodes "synchrony" itself as a visible rainbow density property, and triggers as an alertable signal when extremes converge.
FEATURES
🔹 Multi-Timeframe Volume Percentile Fusion Engine
🔹 Adaptive Fibonacci Channel (Z-Breathing → Z-Alert → Z-Exhaustion → Black Swan)
🔹 Hybrid Black Swan Zones (static 80/20 or dynamic Fibonacci-scaled)
🔹 Classic Price↔Volume Divergence Detection (per-TF + Master)
🔹 MTF Legend Table (7 columns × 9 rows, multilingual)
🔹 Volume Profile Reading (Pulse magnitude + State classification — 7-tier vocabulary)
🔹 Delta Twin Bars (per-candle chart overlay with 4 display modes + live intra-bar updates)
🔹 Multilingual Interface (EN / PT / ES / RU / ZH)
🔹 Multi-Timeframe Volume Percentile Fusion Engine
What It Does
Aggregates five independent volume percentile readings — one per Fibonacci-spaced timeframe — into a single weighted Master Line. Each per-TF reading is plotted as a "ghost" line that fades by distance to the Master, so the rainbow becomes a visual representation of multi-timeframe consensus.
Method
Default timeframes are 5 / 15 / 60 / 240 / D (Trigger / Intraday / Macro 1 / Macro 2 / Base). On each timeframe, ta.percentrank(volume, length) produces a 0-100 percentile rank with lookahead=barmerge.lookahead_off for anti-repaint integrity. The five percentiles are fused via canonical Fibonacci weights (0.15 / 0.20 / 0.25 / 0.25 / 0.15 — peak weight on TF3 and TF4 where institutional volume tends to consolidate). The Master itself is then clamped to for pane containment.
Per-TF length defaults are tuned to each timeframe's natural look-back window:
◇ TF1 (5m): 30 bars = 2.5 hours
◇ TF2 (15m): 50 bars = 12.5 hours
◇ TF3 (60m): 80 bars = 3.3 days
◇ TF4 (240m): 100 bars = 16 days
◇ TF5 (D): 150 bars = ~5 months
Set any per-TF override to 0 to inherit the global default (50). One-size-fits-all 50 bars across timeframes either lags on TF1 (16 hours of stale 5-minute history) or feels too reactive on TF5; the per-TF defaults match each horizon's natural cadence.
Why It Matters
Volume distribution is regime-dependent and timeframe-dependent. A single timeframe view can miss whether a 5-minute volume surge is the leading edge of a broader institutional move (visible on TF3/TF4) or a one-off scalper spike. The fusion engine surfaces alignment and disagreement instantly.
🔹 Adaptive Fibonacci Channel
What It Does
Renders six color-coded bands around the Master Line that adapt to its own recent volatility, using the brand's canonical Fibonacci ratios.
Method
Highest/lowest of the Master over lookback_dyn bars (default 50) are smoothed by EMA (default 10) to form dyn_up and dyn_dn. Channel bands are placed at canonical Fibonacci proportions:
◇ Z-Breathing: 1.50/1.85 ≈ 0.811 of half-channel
◇ Z-Alert: anchor at 1.85σ (the channel boundary itself)
◇ Z-Exhaustion: 2.75/1.85 ≈ 1.486
◇ Black Swan: 3.85/1.85 ≈ 2.081
All six band values are mathematically clamped to before rendering, so the rainbow stays inside the visible pane in volatile regimes (no auto-scale stretching). The algorithm itself is preserved bit-exact; only the rendered values are bounded.
Why It Matters
Static thresholds (e.g., 80/20) cannot adapt to regime changes. During a low-volatility consolidation, "70" might be a meaningful surge; during a news-driven trend, "70" might be the new baseline. The Fibonacci channel calibrates the warning levels to the asset's current regime, so the alerts stay informative regardless of market state.
🔹 Hybrid Black Swan Zones
What It Does
Flags volume climax (surge) and squeeze (drought) extremes either at static 80/20 thresholds (top 20% / bottom 20% historically) or at the dynamic Fibonacci 3.85σ band, depending on the operator's preference. Each zone is rendered as a glow line that brightens proportionally as the Master approaches.
Method
By default, Dynamic Black Swan Mode is ON for this indicator (matching the volume distribution's wider range vs canonical RSI). The Black Swan high/low values become osc_up4 / osc_dn4 — the Fibonacci 3.85σ proportion of the Master's channel. Toggle the mode OFF to revert to static 80/20 (top/bottom 20% volume thresholds — classic).
The proximity glow uses the canonical f_calc_glow pattern: transparency = 95 - (1 - dist/range) × 75, where range is the half-channel width. At zero distance, transparency = 20 (solid); at full range distance, transparency = 95 (invisible).
Why It Matters
Black Swan events on volume mark institutional climax moments — news breakouts, capitulation, distribution. The dynamic mode lets the indicator self-calibrate per asset and per regime, so a "climax" on a calm Forex pair and a "climax" on a meme stock both trigger at the appropriate statistical extremes rather than at an arbitrary 80% line.
🔹 Classic Price↔Volume Divergence Detection
What It Does
Detects regular bear divergences (price makes higher high while volume percentile pivot makes lower high — Wyckoff "no demand" rally) and regular bull divergences (price makes lower low while volume percentile pivot makes higher low — selling climax / capitulation). Runs on every individual timeframe AND on the Master line directly.
Method
For each TF, f_classic_divergence_vol(length, lookback) runs inside request.security: it detects pivot highs/lows on the per-TF volume percentile via ta.pivothigh / ta.pivotlow, captures pivot values using ta.valuewhen, and compares the current pivot vs the previous pivot. Default pivot lookback is 5 bars (matches the community standard).
Master divergence runs on the chart-TF directly (no request.security), so it always reflects the current chart resolution's pivot structure. When detected, it renders a connecting line + label between the two pivots on the indicator pane (red for bear, green for bull) and triggers the alert_divergence_native alert if enabled.
Per-TF divergence surfaces in the Legend Table's "Div" column: 🔻 for bear, 🔺 for bull, — for none. Multiple timeframes showing the same divergence direction = stronger conviction signal.
Why It Matters
Divergences between price and volume have been a cornerstone of Wyckoff/Volume Spread Analysis for decades. Most TradingView divergence indicators run on a single timeframe — by detecting per-TF AND Master simultaneously, this indicator surfaces both fast warnings (TF1 divergence) and high-conviction confirmations (Master + multiple TFs aligning).
🔹 MTF Legend Table
What It Does
Compact 7×9 table positioned in a configurable chart corner. Surfaces every dimension of the analysis at a single glance: per-TF resolutions, volume percentile values, trend direction, divergence status, Pulse magnitude, named State classification, plus a Master row and a status row.
Method
The table is rendered via table.new(force_overlay=false) on the indicator pane (kept off the price chart for mobile readability). Per-TF cells use:
◇ Col 0: ● TF label (matches ghost line color) + 📡 antenna marker if this TF == chart's native resolution
◇ Col 1: TF resolution string ("5", "15", "60", "240", "D"...)
◇ Col 2: Volume percentile value (color-coded by zone via the thermal matrix)
◇ Col 3: Trend arrow ▲ rising / ▼ falling / ▬ flat (±0.5 percentile point deadzone to avoid flicker)
◇ Col 4: Div indicator 🔺 bull / 🔻 bear / — none
◇ Col 5: Pulse magnitude ratio (color-coded by intensity tier)
◇ Col 6: State name (multilingual EXTREME / HIGH / ELEVATED / NORMAL / LOW / COMPRESSED / SQUEEZE)
The Master row (row 7) merges cols 0-1 into "🌈 Master (~XhYm)" — the "~XhYm" suffix is the geometric weighted mean of the 5 TF resolutions (same weights as the Master volume fusion), giving you the "effective timeframe" the Master is reading. The status row (row 8) merges cols 0-6 and shows the MTF Divergence summary: Aligned / Strong Top / Strong Bottom / Moderate Top / Moderate Bottom — with background color matching the severity.
All header strings, status messages, and state names support 5 languages via the System Language input (English / Português / Español / Русский / 中文).
Why It Matters
The Legend Table compresses what would otherwise require 5 separate chart panels into a single ~150-pixel-wide compact widget. The antenna marker is especially useful on mobile: it tells you instantly which row is "your" timeframe, so you can scan up/down to see whether faster/slower TFs confirm or contradict.
🔹 Volume Profile Reading — Pulse Magnitude + State Classification
What It Does
Two complementary readings that answer different questions about volume — both surfaced as dedicated columns in the Legend Table.
Method — Pulse Column
Pulse is the ratio volume / SMA(volume, length) per TF. 1.0× = volume at the baseline; below = drought; above = elevated. Color-coded by intensity tier:
◇ < 0.5× → aqua (drought extreme)
◇ 0.5-0.8× → teal (below baseline)
◇ 0.8-1.3× → gray (typical)
◇ 1.3-2.0× → yellow (elevated)
◇ 2.0-3.5× → orange (high activity)
◇ 3.5-6.0× → red (surge)
◇ ≥ 6.0× → purple (climax extreme)
Pulse values cap display at "9.9x+" to avoid overflow in narrow cells.
Method — State Column
State classifies the percentile rank into 7 named tiers using a multilingual dictionary:
◇ ≥ 85 → EXTREME (purple zone — top 15% historically)
◇ 71-85 → HIGH (red — top 30%)
◇ 62-71 → ELEVATED (orange)
◇ 38-62 → NORMAL (yellow / green — middle 24%)
◇ 29-38 → LOW (teal)
◇ 15-29 → COMPRESSED (blue)
◇ ≤ 15 → SQUEEZE (aqua — bottom 15%)
Why It Matters
Pulse and State answer different questions about the same volume reading:
◇ Value (percentile column 2): "Where in the historical distribution?" — a ranking answer.
◇ Pulse (column 5): "How intense vs recent baseline?" — a magnitude answer.
◇ State (column 6): "What's the human-readable label?" — a vocabulary answer.
These three columns together tell a complete story. A bar can be at Percentile 60 (NORMAL state) with Pulse = 3.5x (red surge) — meaning: "this bar's volume isn't historically rare, but it's a massive jump versus what's been happening recently." That's a different signal than Percentile 95 / Pulse = 1.0x (EXTREME state but typical magnitude) — meaning: "this is a rare historical bar, but the magnitude is normal relative to recent activity." The columns disambiguate.
🔹 Delta Twin Bars (Chart Overlay)
What It Does
Renders per-candle directional bars on the price chart (via force_overlay=true) whose dimensions encode the selected volume score and whose color encodes buy/sell pressure approximation. Bridges the gap between this script's oscillator pane and the price action itself.
Method
For each candle, the bar size = candle_range × (score / 100) × user_multiplier. The score source is configurable (Master or any TF1-TF5; default TF1 Trigger for the most responsive read).
Four display modes:
◇ Fixed High: bar always projects above the candle high (regardless of direction)
◇ Fixed Low: bar always projects below the candle low
◇ Dynamic: buy candles get bar above high, sell candles get bar below low (intuitive directional reading)
◇ Dynamic Inverted (default): buy candles get bar BELOW low, sell candles get bar ABOVE high — an order book metaphor where buy pressure builds support and sell pressure presses resistance
Bar color follows the user-configured buy/sell colors (green / red by default — matching the OHLC tick rule: close > open = buy bias, close < open = sell bias). An optional toggle ("Use Master Line Color") overrides this with the Master zone color via the thermal matrix — giving rainbow-colored bars that match the pane oscillator.
Bar width is pixel-controlled (1-8, default 8) via line.new with the user-selected linewidth — visually independent of chart zoom, distinguishable from candle wicks at any chart density.
Two update modes:
◇ Live (default): the current bar's twin bar updates on every tick — score, direction, and color reflect real-time data. When the bar closes, the live line is "frozen" into the confirmed pool. One additional persistent line is used (zero pool overhead).
◇ Confirmed-only: twin bar appears only when the candle closes (useful for backtesting comparisons where intra-bar flicker is unwanted).
The last 500 bars are rendered (Pine v6 line pool limit) with rolling FIFO management — older candles fall out of the pool and lose their twin bar, but the most recent 500 stay live.
🚨 Honest tick-rule disclosure
The buy/sell direction encoding uses the OHLC tick rule — close > open = buy bias, close < open = sell bias. This is NOT order-flow tick-data delta. Pine Script v6 has no tick-by-tick data access in indicator scripts on the free tier. The OHLC approximation is what virtually every "delta" indicator on TradingView free uses; this script discloses it transparently rather than claiming real order flow.
For most use cases (visual confirmation, trend bias, magnitude readings) the OHLC approximation captures the essential information. Traders who need true bid/ask delta should look at paid Order Flow tools or Sierra Chart / Bookmap.
Why It Matters
The Delta Twin Bars combine two analytical layers in a single indicator: the oscillator pane (Master fusion + ghost lines + Legend Table) and the chart overlay (per-candle directional reference). Most TradingView indicators force users to choose between oscillator-only or overlay-only paradigms; this script delivers both via force_overlay=true on selectively-rendered lines, preserving full pane functionality while adding a quick visual reference directly on the price candles.
🔹 Multilingual Interface
What It Does
Translates all HUD labels, status messages, alert text, state classifications, and Legend Table headers to 5 languages: English (default), Português, Español, Русский, 中文 (Chinese). 33 multilingual keys are maintained across all 5 languages.
Method
A single language dropdown input (in the GLOBAL SETTINGS group) selects the active language. The script uses Pine v6's _l == "PT" ? ... : _l == "ES" ? ... ternary chain pattern for each translated string, evaluated once at startup. Configuration tooltips, variable names, and code comments remain in English by convention — this script is designed to be readable to developers globally.
Why It Matters
Trading is a global activity. The Rainbow Matrix product family is designed for traders worldwide; multilingual UI removes a friction point for non-English-native users without adding development overhead.
HOW TO USE
Reading the Rainbow (Pane Oscillator)
◇ Master between 30 and 70 with all 5 ghost lines solid: typical volume profile, no anomaly to flag.
◇ Master entering Z-Alert (orange / teal bands): notable volume deviation — watch for follow-through confirmation across timeframes.
◇ Master in Z-Exhaustion (red high / blue low): elevated probability of climax or drought completing.
◇ Master touches Black Swan High (purple glow): volume climax event — statistically rare top-of-distribution moment, often coincides with news catalysts, breakouts, or capitulation.
◇ Master touches Black Swan Low (aqua glow): volume drought / squeeze — extreme compression, often precedes breakouts when paired with price consolidation.
Reading the Legend Table
The antenna marker (📡) flags your chart's native timeframe. Start your read there, then scan up/down the table to see whether faster/slower TFs confirm or contradict the current volume bias. Look at the relationship between Value (where in distribution), Pulse (how intense vs baseline), and State (named tier) for each row — divergences between these three readings within a single TF are early warnings.
The status row at the bottom summarizes MTF divergence: Aligned (TFs in agreement, default), Strong Top (TF1 ≥ 70 vs TF5 ≤ 30 — fast surge with slow drought), Strong Bottom (TF1 ≤ 30 vs TF5 ≥ 70 — fast quiet with slow surge), or Moderate variants of either.
Reading the Delta Twin Bars (Chart Overlay)
Tall bars = high volume score for that candle's TF source. With Dynamic Inverted mode (default), bars projecting BELOW buy candles signal "support building"; bars projecting ABOVE sell candles signal "resistance pressing" — an order book metaphor. Switch to Dynamic mode for a more intuitive directional read (buy bars project up, sell bars hang down). Use Fixed High/Low for cleaner price action when delta-only context is needed.
Reading Divergences
Master divergence (red line + 🔻 label on the pane) = price made a higher high while Master volume percentile made a lower high — Wyckoff "no demand" rally, often precedes reversal. Master bull divergence (green + 🔺) = price made a lower low while Master volume made a higher low — selling climax, often precedes bottom.
Per-TF divergences in the Legend Table's Div column give early granular warning: a TF1 divergence might fire 5-10 candles before the Master confirms. Multiple TFs aligning on the same divergence direction = high-conviction signal.
Tactical Combinations
◇ Master Black Swan High + Strong Top divergence + Bear Master divergence simultaneously = strongest reversal signal from highs.
◇ Master Black Swan Low + Strong Bottom divergence + Bull Master divergence = strongest reversal signal from lows.
◇ Master SQUEEZE state + multiple TFs SQUEEZE state + Pulse < 0.5x = pre-breakout compression — often precedes expansion events.
◇ Pulse spikes (red / purple tier) preceding percentile shifts = often mark turning points before the percentile catches up.
◇ Pair with MTF RSI Synchrony: Aligned RSI + Aligned Volume = high-conviction setup. Bear RSI div + Bear Volume div on Master simultaneously = strongest reversal signal.
INPUTS EXPLAINED
GLOBAL SETTINGS
◇ System Language (EN / PT / ES / RU / ZH) — affects HUD and alerts only; code stays in English.
◇ Table / Labels Font Size — Tiny / Small (default) / Normal / Large.
MULTI-TIMEFRAME
◇ AI Auto-Sync TFs — when ON, auto-adjusts the 5 TFs based on chart resolution.
◇ TF1-TF5 — manual TF override (defaults: 5/15/60/240/D).
◇ Default Volume Percentile Length — global default (default 50).
◇ TF1-TF5 Length Overrides — per-TF overrides; defaults 30/50/80/100/150; set to 0 to inherit global.
ENGINE
◇ Dynamic Black Swan Mode — ON by default (Fibonacci 3.85σ adaptive). OFF = static 80/20.
◇ Dynamic Channel Lookback (default 50) and Smoothing (default 10).
◇ Divergence Pivot Lookback — default 5 (community standard).
VISUALIZATION
◇ TF1-TF5 Color + Show toggles — TF1 and TF5 visible by default; TF2/3/4 hidden (opt-in).
◇ Ghost Fade Sensitivity — default 3.5 (lines invisible at ~20 percentile points from Master).
◇ Show Master Line / Show Rainbow Fills / Show Black Swan / Show Dynamic Channel — all default ON.
◇ Show MTF Legend Table — default ON.
◇ Show Divergence Column / Pulse Column — both default ON.
◇ Show Master Divergence Chart Line — default ON.
◇ Legend Table Position — Top/Bottom × Left/Right (default Bottom Right).
◇ Show Divergence Event Markers — default OFF (reduces clutter; toggle ON to display triangles).
◇ Show Static Reference Lines — default OFF (cleaner pane on install; toggle ON for 20 / 50 / 80 guides).
ALERTS
◇ Alert on Black Swan crossings (high / low) — default ON.
◇ Alert on Strong MTF Divergence — default ON.
◇ Alert on Z-Exhaustion zone entries — default OFF (opt-in).
◇ Alert on Master Classic Divergence — default ON.
DELTA TWIN BARS
◇ Show Delta Twin Bars — default ON.
◇ Score Source — Master / TF1 (default) / TF2 / TF3 / TF4 / TF5.
◇ Display Mode — Fixed High / Fixed Low / Dynamic / Dynamic Inverted (default).
◇ Buy / Sell Colors + Transparency + Size Multiplier — fully customizable.
◇ Use Master Line Color (override) — default OFF; toggle ON for rainbow-colored bars.
◇ Bar Width (pixels) — 1-8, default 8 (bold, high-visibility).
◇ Lookback (bars) — default 500 (Pine v6 pool maximum).
◇ Live Bar (intra-bar update) — default ON; toggle OFF for confirmed-only rendering.
IMPORTANT NOTES
🔸 Pine Script v6 — uses request.security with lookahead=barmerge.lookahead_off for anti-repaint integrity. The 5 per-TF volume fetches + 5 per-TF Pulse fetches + 5 per-TF divergence fetches + 6 other security calls = 21 total request.security calls; within TradingView's free-tier limits but noteworthy if combining with other heavy multi-TF indicators on the same chart.
🔸 Repaint behavior — historical bars use confirmed close data; the current real-time bar updates as ticks arrive (especially with Live Delta Bars enabled). The pivot-based divergence detection requires div_lookback confirmed bars before triggering — so divergence labels appear on the pivot bar in retrospect, not as live signals. This is standard pivot divergence behavior across all TradingView divergence indicators.
🔸 Tick rule approximation — Delta Twin Bars use the OHLC tick rule (close > open = buy bias) as a direction encoder. This is NOT real order-flow tick data. Pine Script v6 has no tick data access in indicator scripts. Same approximation is used by virtually every "delta" indicator on the TradingView free tier; this script discloses it transparently. For real bid/ask delta, use paid order flow tools.
🔸 Pine v6 line pool limit — Delta Twin Bars are bounded to 500 lines (Pine v6 hard limit). Older candles fall out of the rolling FIFO and lose their twin bar — this is a Pine engine constraint, not a bug. The current bar's live line uses ONE persistent slot reused across bars (no additional pool consumption).
🔸 Fibonacci ratios are canonical — the channel proportions (1.50 / 1.85 / 2.75 / 3.85) match the Rainbow Matrix brand standard across all sibling indicators. They are derived from the brand's design system and are not user-configurable — preserving cross-indicator visual consistency.
🔸 Master effective TF — the "~XhYm" label in the Master row is the geometric weighted mean of the 5 TF resolutions (same weights as the Master fusion: 0.15/0.20/0.25/0.25/0.15). With defaults 5/15/60/240/D, the effective TF is approximately 71 minutes (~1h11m). This tells you the "average horizon" the Master is reading.
🔸 License: MPL 2.0 (Mozilla Public License 2.0) — open source. Free to fork, modify, and republish under the same license terms.
UNIQUENESS
Three pillars differentiate this from the dozens of volume indicators already on TradingView:
1. Multi-timeframe percentile fusion with synchrony as a visual property. Most volume tools operate on a single timeframe with raw unbounded readings. This indicator bounds every reading to a 0-100 percentile scale, fuses five timeframes via Fibonacci-proportioned weights, and expresses synchrony itself as a "rainbow density" — solid when aligned, spread-out when diverging. The disagreement between fast and slow timeframes becomes immediately readable.
2. Three complementary volume readings in one Legend Table. Value (percentile rank), Pulse (magnitude ratio), and State (named tier) answer three different questions about the same volume reading. Most indicators give you one number; this one disambiguates "rare historical event" from "extreme recent magnitude" from "elevated relative position." The combination catches signals that single-metric views miss.
3. Combined oscillator + chart overlay in a single script. Delta Twin Bars project the per-candle volume score and tick-rule direction directly onto the price chart via force_overlay=true, while the full pane oscillator (Master fusion, ghost lines, Legend Table, divergence engine, dynamic channel) continues to operate independently. Most TradingView indicators force you to choose between oscillator-only or overlay-only paradigms; this script gives you both, with honest disclosure about the OHLC tick rule approximation.
Rainbow Matrix AI | Multi-timeframe institutional analysis tools for traders.
🌐 rainbowmatrix.ai
✉️ Contact: contact@rainbowmatrix.ai Индикатор

Takhtupuria Pro master V2..7Takhtupuria Pro V2
The Takhtupuria Pro V2 is an advanced, all-in-one trading indicator designed for precision scalping and trend-following. By integrating Golden Ratio logic, EMA crossovers, and Fibonacci levels, this tool provides a comprehensive system for modern traders.
Key Features:
Golden Ratio Signals: Integrated logic to identify potential "Golden Ratio" setups for both standard and reversed market trends.
Scalping Precision: Features a high-speed 5 EMA + 200 EMA trigger system, optimized for rapid scalping execution.
Fibonacci Integration: Automatic plotting of key Fibonacci levels (Top, Mid, Bottom) to identify support and resistance zones instantly.
Advanced Filters: Includes customizable distance (%) and candle-count settings to ensure high-probability entry points.
Visual Signals: Automated Buy/Sell arrows with configurable visual alerts for real-time decision-making.
How to Use:
Inputs: Adjust your "Distance %" and "Candle Count" to calibrate the sensitivity of the scalping system to your specific asset.
Fibonacci: Set your preferred Fibonacci Timeframe (e.g., 15 minutes) to align with your overall strategy.
Style: Fully customize the colors for EMA lines, Fib levels, and signal arrows to match your chart's unique layout.
Designed by Takhtupuria for traders who require a multi-layered analytical approach in a single, powerful tool. Индикатор

Dynamic Pivot Fibo Analytics [MarkitTick]💡 A highly advanced, automated technical analysis tool designed to objectively identify structural market swings and project key Fibonacci retracement and extension levels. By isolating mathematically confirmed pivot highs and lows, the algorithm eliminates the subjective bias traditionally associated with drawing retracement tools manually. The script dynamically maps out critical zones of interest—such as the widely observed Golden Pocket—while continuously evaluating the current price action against these historical vectors. Coupled with a real-time analytical dashboard, it provides traders with a comprehensive breakdown of swing volatility, level proximity, and directional bias, serving as a complete ecosystem for retracement-based methodologies.
✨ Originality and Utility
The primary utility of this script lies in its capacity to transform a traditionally manual and subjective charting process into an automated, mathematically rigorous system. While standard charting platforms require users to manually select anchor points for Fibonacci tools—often leading to inconsistent application—this script programmatically identifies the most statistically relevant extremums based on user-defined lookback periods.
Its originality is further highlighted by its multi-layered filtering architecture. Rather than treating every minor price fluctuation as a valid swing, the script incorporates an objective volatility filter utilizing either the Average True Range (ATR) or a strict percentage threshold. This ensures that only structurally significant market movements are measured, effectively filtering out stochastic market noise. Furthermore, the integration of an on-chart analytical dashboard and a dynamic level-touch highlighting system brings a level of interactive feedback rarely seen in standard visualization tools, allowing traders to instantly gauge the health and maturity of an active swing.
🔬 Methodology and Concepts
● Pivot Extrema Detection
The foundational logic relies on the identification of local minimums and maximums within a continuous time-series dataset. The algorithm evaluates a central candidate bar against a defined window of preceding and succeeding bars. A Pivot High is only confirmed if the candidate's high remains unbreached across the entire evaluation window, ensuring it represents a true structural peak. This mechanism inherently requires a confirmation delay to validate the peak, preventing the erratic shifting of anchors during live price formation.
● Swing Filtering and Validation
Once opposing pivot points are confirmed, the script calculates the absolute price range of the resulting swing. To prevent false positives in low-volatility environments, the script applies a normalization filter. It evaluates the raw swing range against either a fractional multiplier of the current ATR or a static percentage of the asset's price. Swings failing to meet this geometric threshold are automatically discarded, preserving chart clarity.
● Fibonacci Mathematics and Zonal Mapping
Upon validating a swing, the algorithm applies standard Fibonacci sequence ratios to the defined price vector. It calculates core retracements (0.236, 0.382, 0.500, 0.618, 0.786) and projects mathematical extensions (1.272, 1.618, 2.000) for target mapping. The script specifically isolates the 0.618 to 0.650 region, commonly referred to as the Golden Pocket, rendering it as a distinct filled zone to highlight its historical significance as an area of mean reversion.
🎨 Visual Guide
● Main Chart Elements
Swing Line: A distinct, solid line directly connecting the anchored Pivot Low and Pivot High, visually defining the active vector being measured.
0.000 and 1.000 Anchors: The baseline extremums of the swing, marked by precise labels and dashed/dotted lines to indicate the absolute boundaries of the measured range.
Key Retracement Levels (0.382 & 0.618): Rendered with emphasized, dashed lines to denote their elevated importance in traditional retracement theory. The 0.618 level utilizes a distinct gold color to draw the user's attention.
Minor Retracement Levels (0.236, 0.500, 0.786): Displayed using subtle, dotted lines to provide contextual support without overwhelming the primary visual hierarchy.
Golden Pocket Fill: A translucent shaded region spanning the area between the 0.618 and 0.650 price coordinates, serving as a primary zone of interest for exhaustion.
Touch Highlights: When the current price intersects any active Fibonacci line, the line's color dynamically shifts (defaulting to white), providing immediate visual feedback of level interaction.
Historical Swings: If enabled, the script retains ghosted, dotted representations of previously confirmed swings, allowing users to analyze past interactions without cluttering the active setup.
● Dashboard Elements
Direction: A color-coded textual readout confirming whether the active, validated swing is Bullish or Bearish.
Swing Range: A visual block-bar representation (scaling from 0 to 10) evaluating the magnitude of the current swing relative to the prevailing ATR.
Key Levels: Direct, high-precision price readouts for the critical 0.382 and 0.618 levels.
Levels Touched: A scoring metric visualizing how many individual Fibonacci levels the current price action has interacted with since the setup was confirmed.
0.618 Proximity: A dynamic strength bar indicating how close the current price is to the Golden Ratio, aiding in the anticipation of level tests.
Setup Age: A raw bar-count indicating the duration since the swing anchor was established.
📖 How to Use
Setup Identification: Apply the script to your chart and observe the automated generation of the Swing Line. The script will wait for the defined lookback period to confirm a pivot before drawing the corresponding Fibonacci grid.
Trend Context: Use the Dashboard to immediately confirm the direction and strength of the swing. A high Swing Range score indicates a robust structural move, lending higher confidence to the subsequent retracement levels.
Zone Monitoring: Focus attention on the highlighted Golden Pocket zone. As price retraces into this filled area, monitor for deceleration or reversal patterns. The built-in proximity score on the dashboard will alert you as price nears this critical threshold.
Interaction Feedback: Watch for the dynamic Touch Highlights. When a level changes color, it confirms that price has officially probed that mathematical coordinate.
Alert Automation: Instead of manually monitoring the chart, configure the script's alert parameters to notify you strictly when price touches a key level (such as the 0.382 or 0.618), streamlining your analytical workflow.
⚙️ Inputs and Settings
Swing Settings: Controls the structural strictness of the algorithm. Adjusting the "Left Bars" alters the required validation period for a pivot, while "Extend Lines" controls the horizontal projection length of the drawn levels.
Swing Filter: Toggles the volatility validation on or off. Users can select between an "ATR" multiplier or a pure "Percent" requirement, establishing the minimum acceptable size for a swing to be plotted.
Direction Filter: Allows the user to isolate the script's output to strictly Long setups, strictly Short setups, or Both simultaneously.
Fib Extensions & Golden Pocket: Provides granular control over the visibility and aesthetic rendering of the >1.000 extension levels and the specialized 0.618-0.650 fill zone.
Level Touch Alerts: Configuration options for automating notifications. Users can toggle alerts for specific key levels, all levels collectively, and customize the visual highlight color triggered by these interactions.
Historical Swings: Defines the quantity of past setups to retain on the chart for retrospective analysis.
Dashboard Settings: Customization parameters for the analytical table's background and text colors to ensure readability across different chart themes.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The theoretical foundation of this script intersects two distinct disciplines of market analysis: algorithmic extremum detection and geometric proportion analysis.
The extremum detection relies on a localized peak-trough evaluation algorithm. By isolating a data point and verifying that its scalar value is strictly greater than (or less than) all corresponding values within a symmetric `n`-period domain, the script establishes a mathematically unassailable structural node. This method effectively filters out continuous monotonic sequences and isolates true inflection points in the time-series data.
To prevent the algorithm from validating micro-fluctuations inherent in random walk market environments, it employs a normalization technique using Average True Range (ATR). ATR provides a dynamic measure of standard deviation over time. By forcing the absolute scalar difference between two validated extremums to exceed a fractional coefficient of the ATR, the script ensures that the analyzed vector falls outside the bounds of standard market noise, thereby validating its statistical significance.
Once the vector is established, the script applies the principles of the Fibonacci sequence—a recursive mathematical progression where the ratio of successive terms converges on Phi (approximately 1.618). In the context of market dynamics, these ratios (particularly their inverses and square roots, such as 0.618 and 0.382) have been empirically observed to act as psychological focal points for mass market behavior. The script translates these geometric proportions into static coordinate thresholds, creating a structured, grid-based framework for evaluating the amplitude and potential exhaustion points of counter-trend market phases.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Индикатор

MTF RSI Synchrony | Rainbow MatrixGENERAL OVERVIEW
The MTF RSI Synchrony is a multi-timeframe RSI fusion oscillator that aggregates five independent RSI readings — one per Fibonacci-spaced timeframe — into a single weighted Master Line. Each per-timeframe RSI is also plotted as a "ghost line" that fades by distance to the Master: when the five timeframes align, the rainbow renders solid; when they diverge, the ghost lines spread visibly across the pane, making synchrony itself a visible density property rather than a number to compute.
The main goal of this indicator is to give traders a single integrated read of RSI across multiple horizons — without flipping between charts, mentally averaging values, or guessing which timeframe's RSI matters at the current decision point. Every line, color, and divergence event on the pane was derived from real RSI calculations on each native timeframe, not approximated from the current chart's resolution.
It computes the Master Line from five timeframes via Fibonacci-proportioned weights (peak weight on the macro middle TFs), classifies the result through an adaptive Fibonacci channel that builds Z-Breathing / Z-Alert / Z-Exhaustion / Black Swan zones around the Master, and runs a classic price↔RSI divergence engine on each of the 5 TFs plus the Master line independently. A 5-column MTF Legend Table surfaces every TF's state at a glance, with an antenna marker (📡) flagging the row whose timeframe matches the chart's native resolution.
This indicator was developed for traders who already understand RSI and divergence concepts and want to see them across multiple timeframes in a single visual, with automatic synchrony detection and an integrated classic divergence layer.
WHAT IS THE THEORY BEHIND THIS INDICATOR?
Most RSI implementations on TradingView operate on a single timeframe. They show you a value between 0 and 100 for the current chart and leave the multi-timeframe assessment to manual work — flipping between charts, sketching trendlines, or stacking multiple instances of the indicator on different intervals. This treats each timeframe as an isolated decision space.
The problem: institutional momentum is not isolated to one timeframe. The participants operating on the daily horizon see different RSI conditions than those operating on the weekly or 4-hour horizon. When the 15-minute RSI flips above 70 but the daily RSI is still neutral, the overbought signal is local — likely a counter-trend bounce. When the 15-minute RSI flips above 70 and the daily RSI also approaches the upper zone, the overbought signal is structurally agreed across horizons — far more likely to mark a multi-horizon exhaustion.
This indicator addresses that by extracting RSI from five user-configured timeframes simultaneously via request.security, fusing them via canonical Fibonacci weights (peak weight on the macro middle TFs), and rendering both the integrated Master signal and each contributing TF's individual reading on the same pane. The math of the per-TF extraction is standard RSI on the native bars — what makes it useful is doing it across five timeframes at once, weighting them by structural significance, and surfacing both the alignment and the per-TF divergences in a single visual.
The classic divergence layer addresses a parallel problem: textbook regular divergence (price↔RSI on the same timeframe) is a well-known reversal cue, but traders typically watch it on one timeframe at a time. By running pivot-based divergence detection independently on each of the 5 TFs and on the Master line, the indicator surfaces local divergences (on fast TFs — often noise) versus structural divergences (on slow TFs — often precede major reversals) in the same table view, with the Master line acting as the integrated read drawn directly on the chart.
MTF RSI SYNCHRONY FEATURES
The indicator includes 7 main features:
◇ Multi-Timeframe RSI Fusion Engine
◇ Adaptive Fibonacci Channel (Master Volatility Envelope)
◇ Hybrid Black Swan Zone (static or dynamic)
◇ Classic Divergence Detection Engine (per-TF + Master)
◇ MTF Legend Table with antenna marker
◇ Per-Timeframe RSI Length Customization
◇ Multilingual interface (5 languages) and full visual customization
MULTI-TIMEFRAME RSI FUSION ENGINE
🔹 What It Does
The core of the indicator. For each of the five configured timeframes, an independent RSI reading is extracted at its native resolution. The five readings are then fused into a single Master Line via canonical Fibonacci-proportioned weights.
🔹 Method
The extraction runs via request.security with lookahead=barmerge.lookahead_off to prevent repainting. Per-timeframe RSI uses Wilder's standard formulation. The Master is computed as a weighted average with the following Fibonacci weights:
◇ TF1 (Trigger, default 5m): 0.15
◇ TF2 (Intraday, default 15m): 0.20
◇ TF3 (Macro 1, default 60m): 0.25 (peak weight)
◇ TF4 (Macro 2, default 240m): 0.25 (peak weight)
◇ TF5 (Base, default Daily): 0.15
The peak weight sits on the macro middle TFs (TF3 + TF4), where institutional decisions consolidate. The Master is clamped to the 0–100 RSI range.
🔹 Ghost Line Rendering
Each per-timeframe RSI is plotted as a ghost line with transparency inversely proportional to its absolute distance from the Master. The fade sensitivity is configurable (default 3.5): at distance 0 the line is solid (transparency 20), at ~20 RSI points away it becomes effectively invisible. Synchrony emerges as a visible density property — when the five lines collapse toward the Master, the rainbow is solid; when they spread, the pane fills with translucent ghosts.
ADAPTIVE FIBONACCI CHANNEL
🔹 What It Does
The Master Line is wrapped in an adaptive volatility channel built from its own highest/lowest over a configurable lookback (default 50), EMA-smoothed (default 10). From the channel envelope, four Fibonacci-proportioned zones are derived above and below the channel midpoint:
◇ Z-Breathing (1.50σ proportion) — yellow (high) / green (low)
◇ Z-Alert (1.85σ anchor) — orange (high) / teal (low)
◇ Z-Exhaustion (2.75σ proportion) — red (high) / blue (low)
◇ Black Swan (3.85σ proportion) — purple (high) / aqua (low)
🔹 Why It Matters
The 30/50/70 lines of classic RSI are static — they don't adapt to the volatility regime of the current instrument or timeframe. The Fibonacci channel does. In a low-volatility regime, the Z-Exhaustion zone tightens and the script flags exhaustion at lower thresholds; in a high-volatility regime, the channel widens and only genuine outliers reach the extreme zones. The Master's position within the channel — color-coded continuously — is a regime-aware read on momentum saturation that the fixed 30/70 lines cannot provide.
HYBRID BLACK SWAN ZONE
🔹 What It Does
The Black Swan threshold operates in hybrid mode:
◇ OFF (default): classic 80/20 RSI extremes — the conventional Wilder oversold/overbought boundaries.
◇ ON: dynamic Fibonacci 3.85σ proportion of the Master channel — adapts to current volatility.
🔹 Method
When dynamic mode is enabled, the Black Swan High becomes osc_up4 = dyn_mid + (dist_up × 3.85/1.85), and the Low becomes dyn_mid − (dist_dn × 3.85/1.85). Both are clamped to . The threshold breathes with the channel — wider in volatile regimes, tighter in calm ones.
🔹 Visual Design
Black Swan zones render as a line + proximity-based glow only — NO fill is drawn underneath, by design. This is a hard rule of the indicator's visual grammar: every other zone (Breathing, Alert, Exhaustion) has a fill; Black Swan is line + glow only, making the extreme zone visually distinct from the gradient zones below it.
CLASSIC DIVERGENCE DETECTION ENGINE
🔹 What It Does
Regular divergence (price↔RSI on the same timeframe) is detected independently on each of the 5 timeframes and on the Master line:
◇ Bear divergence (top): price made higher high + RSI made lower high — momentum failing to confirm the new price peak; exhaustion warning.
◇ Bull divergence (bottom): price made lower low + RSI made higher low — momentum failing to confirm the new price trough; accumulation signal.
🔹 Method
Pivot detection runs via ta.pivothigh and ta.pivotlow with a configurable lookback (default 5 bars before and after). For each timeframe, the previous pivot and current pivot are compared on both price and RSI. A divergence is flagged when price and RSI move in opposite directions across the two pivots, gated by na guards to handle cold-start conditions.
🔹 Two Layers of Output
The detection produces two complementary outputs:
◇ Per-TF divergence flags are rendered in the Legend Table 'Div' column (🔺 bull / 🔻 bear / — none, color-coded). This gives granular per-horizon insight: which exact timeframe is showing divergence right now.
◇ Master divergence — the integrated MTF signal — is additionally drawn on the indicator pane as a line connecting the two pivots, with a "🔺 Bull Div Master" or "🔻 Bear Div Master" label at the second pivot. An alert is available (toggleable, ON by default).
🔹 Why Two Layers
Per-TF divergences answer "where is the divergence forming?" — fast TFs (TF1, TF2) often catch local noise; slow TFs (TF4, TF5) catch structurally significant turns. Master divergence answers "is the integrated MTF view showing exhaustion?" — Master fuses all five TFs into one signal weighted by significance, so its divergence is the consolidated read. The strongest setups occur when both layers agree: Master divergence drawn on the chart + multiple Legend Table 'Div' cells lighting up in the same direction.
MTF LEGEND TABLE
🔹 What It Shows
A compact 5-column table renders inside the indicator pane (force_overlay=false for mobile readability), with 8 rows:
◇ Row 0: title header (multilingual)
◇ Rows 1–5: per-timeframe data — color-coded RSI value, timeframe resolution, trend arrow (▲ rising / ▼ falling / ▬ flat with ±0.5 RSI point deadzone to avoid flicker), and classic divergence cell (🔺/🔻/—)
◇ Row 6: Master row — displays "🌈 Master (~XhYm)" where XhYm is the geometric weighted mean of the 5 active timeframes (e.g. ~1h11m for the default 5/15/60/240/D set), with the Master's RSI value, trend arrow, and divergence state
◇ Row 7: MTF Divergence status row — tracks RSI alignment between TF1 and TF5
🔹 Antenna Marker
An antenna marker (📡) appears at the end of the timeframe label on the row whose timeframe matches the chart's native resolution. Start the read at the antenna row — that's your chart's RSI — then scan up to faster TFs and down to slower TFs to see whether they confirm or contradict the current read.
🔹 MTF Divergence Status Row (TF1 ↔ TF5)
Separate from the classic per-TF divergence: the status row at the bottom tracks RSI alignment between the fastest and slowest configured timeframes:
◇ Aligned (TF1 and TF5 in the same zone): trend continuation, no MTF divergence.
◇ Strong Divergence (TF1 ≥ 70 vs TF5 ≤ 30, or mirrored): fast and slow timeframes telling completely opposite stories. Common at major turning points.
◇ Moderate Divergence (TF1 ≥ 65 vs TF5 ≤ 40, or mirrored): partial misalignment between fast and slow.
PER-TIMEFRAME RSI LENGTH CUSTOMIZATION
🔹 What It Does
RSI period defaults to 14 globally — Wilder's canonical setting. Each of the 5 timeframes has an optional length override: zero means inherit the global default, any positive integer means use that period for that timeframe only.
🔹 Why It Helps
Real-world strategies often want different RSI sensitivities at different horizons. Scalpers use 7-9 on the trigger TF for fast signals while keeping 14 on slower TFs for stability. Swing traders use 14-21 on intraday TFs and 21+ on the daily for smoother reads. Connors-style strategies use 2 on the trigger for mean-reversion. The hybrid pattern keeps the settings panel clean for casual users (one input controls all) while letting power users specialize per TF when needed.
MULTILINGUAL INTERFACE
The indicator supports five languages for the HUD display, Legend Table headers, and alert messages: English (default), Português, Español, Русский, and 中文 (Chinese). Code, comments, and configuration tooltips remain in English regardless of the selected language. Tech abbreviations (RSI, MTF, HTF, TF) stay Latin in all language contexts — they are universally recognized in trading and translation would add noise.
For reference, the multilingual coverage includes:
◇ HUD title and all row labels
◇ Trend arrows (universal: ▲▼▬)
◇ Divergence cells (universal: 🔺🔻—)
◇ MTF Divergence status row (Aligned / Strong / Moderate, with Top/Bottom directional labeling)
◇ All alert messages including the new classic divergence alerts
HOW TO USE
This indicator is not a signal generator. It is a structural map: it tells you where RSI sits across multiple horizons, how aligned (or divergent) those horizons are, and where classic price↔RSI divergence is forming.
🔹 Reading the Rainbow
◇ Solid rainbow + Master near equilibrium (30–70 zone): no clear signal. Trending behavior absent.
◇ Solid rainbow + Master in Z-Alert (orange/teal): trend in motion across all horizons. Look for follow-through confirmation.
◇ Solid rainbow + Master in Z-Exhaustion (red/blue): elevated probability of mean reversion. Multiple horizons agreeing on saturation.
◇ Master touches Black Swan (purple/aqua glow): statistically rare overshoot. High-probability reversal setup, especially when the MTF Divergence row also fires Strong.
◇ Ghost lines visibly spread far from Master: synchrony breakdown. Wait for re-convergence before high-conviction entries.
🔹 Reading the Legend Table
◇ Antenna row (📡): your chart's native TF. Start there.
◇ Scan above the antenna: faster TFs. If they're in extremes opposite to the antenna, the local signal is conflicted.
◇ Scan below the antenna: slower TFs. If they're aligned with the antenna, the structural bias confirms.
◇ Master row: the integrated read. The "~XhYm" label tells you where Master sits in the TF spectrum.
🔹 Reading the Classic Divergence Layer
◇ Single TF lit up (e.g. only TF2 shows 🔻): local divergence. Often noise on fast TFs.
◇ Multiple TFs lit up in the same direction: structurally significant. Confluence of divergence across horizons.
◇ Master divergence drawn on chart + 2 or more TFs in same direction: high-conviction reversal setup. The strongest signal this indicator produces.
◇ Divergence appearing on slow TFs (TF4 / TF5) while fast TFs are quiet: often precedes major reversals — slow-horizon participants are pulling away before fast-horizon ones notice.
🔹 Tactical Reading
◇ Master in Z-Alert + MTF status Aligned: with-trend continuation setup.
◇ Master in Z-Exhaustion + Bear Div drawn on chart + 2 TFs 🔻: short setup with multi-horizon confirmation.
◇ Master at Black Swan Low + Bull Div drawn on chart + Strong MTF Divergence (TF1 ≤ 30 vs TF5 ≥ 70 mirrored): rare confluence of multiple exhaustion signals.
INPUTS EXPLAINED
🔹 System Language
Display language for the HUD and alert messages. Options: English (default), Português, Español, Русский, 中文 (Chinese).
🔹 Multi-Timeframe (TF1 to TF5)
Configure each of the five timeframes to scan. Defaults: 5m / 15m / 60m / 240m / Daily. Plus AI Auto-Sync option that adjusts the 5 TFs based on chart resolution.
🔹 Default RSI Length + 5 Per-TF Overrides
Default 14 applied globally; per-TF override is 0 by default (inherit). Set override > 0 to specialize per TF.
🔹 Dynamic Black Swan Mode
OFF (default): static 80/20 thresholds. ON: dynamic Fibonacci 3.85σ proportion of the Master channel.
🔹 Dynamic Channel Lookback + Smoothing
Lookback for highest/lowest of Master (default 50). EMA smoothing applied to the channel envelope (default 10).
🔹 Divergence Pivot Lookback
Lookback (bars before/after) for the classic divergence pivot detection. Default 5 — matches most community divergence indicators.
🔹 TF Colors + Show/Hide Toggles
Color and visibility for each of the 5 ghost lines. Hiding a TF does NOT remove it from the Master fusion — the calculation continues; visibility is purely visual.
🔹 Ghost Fade Sensitivity
Higher = ghost lines fade more aggressively as they diverge from the Master. Default 3.5 (invisible at ~20 RSI points apart).
🔹 Show Master Line / Fills / Black Swan / Channel / Legend Table / Static Levels / Div Column / Div Chart Line
Independent toggles for each visual layer.
🔹 Legend Table Position + Font Sizes
Position of the table (four corners) and separate font sizes for data rows and label rows.
🔹 Alert Toggles
Master crosses Black Swan High / Low — fires when Master crosses the threshold.
Strong MTF Divergence — fires when TF1 vs TF5 enter opposite extremes.
Master enters Z-Exhaustion — fires when Master enters the red/blue zone (OFF by default to avoid overlap with Black Swan alerts).
Master Classic Divergence — fires when classic bear or bull divergence is detected on the Master line (ON by default).
IMPORTANT NOTES
The MTF RSI Synchrony works on any timeframe. The default radar configuration (5m/15m/60m/240m/D) is calibrated for intraday and swing trading on liquid instruments. For position trading or scalping, the radar timeframes can be reconfigured to scan longer or shorter horizons respectively, or AI Auto-Sync can be enabled to let the engine pick automatically.
The script makes 10 request.security calls in total (5 for the RSI extraction + 5 for the per-TF divergence detection). On low-volatility chart resolutions or weaker hardware, chart load may take a moment longer than for a single-TF RSI; this is expected and normal.
Alerts fire once per confirmed bar (alert.freq_once_per_bar + barstate.isconfirmed gating). Historical bars never repaint after they close. The live bar updates intra-bar as expected for a real-time indicator.
The Fibonacci channel calibration (ratios 1.50 / 1.85 / 2.75 / 3.85) is the canonical Rainbow Matrix ratio set, also used in other portfolio scripts for consistency.
Pine Script v6. Open-source under Mozilla Public License 2.0.
UNIQUENESS
The MTF RSI Synchrony is unique in three ways. First, it performs RSI extraction across five timeframes simultaneously via request.security with Fibonacci-proportioned weights — the integrated Master Line is not a smoothed version of one TF but a true weighted fusion of five independent RSIs, with peak weight on the macro middle TFs where institutional decisions consolidate. Second, the per-timeframe RSIs are rendered as fade-by-distance ghost lines around the Master, transforming synchrony itself into a visible density property — when the timeframes align the rainbow is solid, when they diverge the ghost lines spread visibly across the pane, without requiring the trader to read numbers. Third, the classic divergence detection runs in parallel on each of the 5 timeframes plus the Master line, producing two complementary outputs: a per-TF Legend Table column for granular per-horizon insight and a Master-line chart visual (line connecting pivots + label) for the integrated MTF signal. The combination of weighted multi-timeframe fusion, density-based synchrony visualization, and two-layer divergence detection produces a structural map of RSI behavior that single-timeframe RSI indicators cannot provide — particularly at decision points where multiple horizons converge or where slow-horizon divergences emerge before they reach fast-horizon attention. Индикатор

Fibonacci Retracement Statistics by VolProfexFIBONACCI RETRACEMENT STATISTICS BY VOLPROFEX
=============================================
DESCRIPTION
-----------
Fibonacci Retracement Statistics is an analysis tool that
automatically detects price swings, tracks retracements within each trend,
and calculates how often price retraces to various Fibonacci levels. The
indicator labels every completed swing with its swing number and deepest
fib level reached (e.g. "▲ #12 78.6%"), and displays a statistics table
showing the count and percentage of swings reaching each level.
All visual elements (trend boxes, fib lines, retracement boxes, labels, and
the statistics table) are drawn only on the last chart bar, keeping the
indicator performant during real-time scrolling. Retracement labels update
in real time so you always see the current value for the active swing.
HOW IT WORKS
------------
1. SWING DETECTION (ATR-Deviation ZigZag)
A volatility-adaptive ZigZag engine finds pivot highs and lows. A pivot
is confirmed when price moves against the current leg by at least
ATR(period) × deviation multiplier. A minimum swing size filter discards
insignificant wiggles. A spike filter rejects reversals triggered by
bars with extreme wick-to-body ratios.
2. HIGHER-TIMEFRAME (HTF) CONTEXT (optional)
When enabled, the indicator loads data from a higher timeframe (default: 1h)
and runs the same ZigZag engine on it. Completed HTF swings are drawn as
translucent boxes on the chart. Local swings are filtered to only count
when their direction matches the HTF swing they fall inside. This removes
counter-trend noise within the larger structure.
A separate gate ("Exclude Retracements outside HTF swing") further filters
retracement contributions: only retracements where both the trend leg and
the counter-trend leg fall inside the same completed HTF box are counted
in statistics and drawn on the chart.
3. TREND & RETRACEMENT TRACKING
Alternating pivot types (high → low → high → ...) create directional
trends. For each unfinalised trend, the indicator tracks the extreme
retracement price bar by bar. When the trend completes, the retracement
percentage is calculated using the actual counter-trend leg. This value is
then compared against each enabled Fibonacci level.
4. FIBONACCI LEVEL COUNTING
A cumulative counting system tallies how many trends have retraced to
each enabled level. Levels available include: 23.6%, 38.2%, 50.0%, 61.8%,
78.6%, 88.6%, 100.0%, 127.2%, 138.2%, 150.0%, 161.8%, plus up to 5
custom levels (0–500%). The statistics table is split into UP and DOWN
sections, each with its own Level / Count / Percent columns.
5. INTRADAY TIME WINDOW (optional)
On intraday charts, you can set a session window (e.g. 09:30–16:00) to
restrict which swings are analysed. Choose between "Pivot Confirmed Inside"
(the confirming bar's timestamp must fall in the window) or "Full Cycle
Inside" (both the pivot start and confirmation must fall in the window).
A visual box overlay can be enabled to highlight the active window.
6. SPIKE FILTER
Optionally discard ZigZag reversals triggered by bars where the upper or
lower wick exceeds the body by a user-defined ratio. This helps avoid
false pivot signals from sudden, low-liquidity spikes.
SETTINGS REFERENCE (defaults optimised for BTCUSDT, 5m chart, 1h HTF)
---------------------------------------------------------------------
── SWING ENGINE ──
- ATR Period: 14
Period for ATR calculations. Shared by local ZigZag and HTF swing detection.
- ZigZag Deviation Multiplier (ATR ×): 3.0
Pivot confirmed when price reverses by ATR × this value.
- Min Swing Size (ATR multiple): 0.8
Legs smaller than ATR × this are discarded. Set 0 to disable.
── HTF CONTEXT ──
- Use Higher Timeframe Swing Context: ON
When enabled, local swings are counted only when their direction matches the
current HTF swing bias.
- HTF Timeframe: 60
Higher timeframe for context. Must be higher than the chart timeframe.
- HTF Swing Deviation (ATR ×): 3.5
ATR multiplier for HTF pivot reversals.
- HTF Min Swing Size (ATR ×): 1.5
Minimum leg size for HTF swings. Set 0 to disable.
- Exclude Retracements outside HTF swing: ON
When enabled, only retracements fully contained within a completed HTF swing
box contribute to statistics and visual output.
- Show HTF Swings: ON
Draws HTF major swing boxes on the chart (Blue = upswing, Red = downswing).
- HTF Bull Color / HTF Bear Color: Blue (50% transp) / Red (50% transp)
── FIBONACCI LEVELS ──
- Levels enabled by default: 23.6%, 38.2%, 50.0%, 61.8%, 78.6%, 100.0%,
138.2%, 161.8%
- 5 custom level slots, each 0.0–500.0%. Set to 0.0 to disable. Default: all 0.0
── FILTERS ──
- Trend Direction: Both
Options: Both / Uptrends Only / Downtrends Only
- Use Intraday Time Window: OFF
When ON, applies a daily clock window on intraday charts.
- Window Session: 0930-1600
- Window Mode: Pivot Confirmed Inside
Options: Pivot Confirmed Inside / Full Cycle Inside
- Window Timezone: Exchange (uses the symbol's exchange timezone)
- Show Time Window Box: OFF
Visual box highlighting the active intraday window.
- Enable Spike Filter: ON
Discard reversals triggered by spike bars.
- Max Wick-to-Body Ratio: 4.0
Threshold for spike detection (wick ≥ this × body).
── DISPLAY ──
- Show Trend Boxes: ON (Border Width: 1)
Bullish: Teal / Bearish: Maroon
- Show Fib Lines: ON (Width: 1, Style: Dashed, Color: Gray at 60% transp)
- Show Fib Labels: ON (Position: Right, Vertical: Center, Size: Small, Color: White)
- Show Retracement Boxes: ON (Color: Orange at 40% transp)
- Show Retracement Labels: ON (Position: Center, Vertical: Below, Size: Small, Color: Yellow)
- Max Trends Drawn: 50 (1–500)
── TABLE ──
- Table Position: Top Right
- Font Size: Small
VISUAL OUTPUT
-------------
1. Trend Boxes: Translucent coloured boxes spanning each completed swing leg.
2. Fib Lines & Labels: Dashed (or solid/dotted) lines at each Fibonacci level
with optional percentage labels on every completed swing.
3. Retracement Boxes: Overlay boxes on the counter-trend leg with a connecting
diagonal line, colour-coded by trend direction.
4. Retracement Labels: Labels on each retracement showing:
- Arrow direction (▲ = uptrend, ▼ = downtrend)
- Filtered swing number
- Deepest Fibonacci level reached
5. HTF Swing Boxes: Larger translucent boxes showing higher-timeframe swing
structure (blue = up, red = down).
6. Statistics Table: A table in one of four corners displaying:
- Level | Count | Percent for uptrends (teal header)
- Level | Count | Percent for downtrends (maroon header) Индикатор

Pvt Fibo S&R to Target 12Pvt Fibo S&R to Target 12 is an institutional-grade breakout and automated target management engine built completely on classical Daily/Weekly/Monthly Pivot Points and Fibonacci Support/Resistance (S/R) levels.
Instead of chasing lagging signals, this script monitors the heavy institutional liquidity pools yoked tightly to major horizontal key levels. By processing live price action through three selectable algorithmic breakout frameworks simultaneously, it provides non-repainting, highly optimized breakout signals coupled with an automated 2-tier take-profit sequence.
🎯 The 3 Multi-Mode Algorithmic Breakout Engines
To adapt to varying market environments, the script operates 3 distinct breakout styles (all active by default to maximize strategic flexibility):
Mode 1 (Volume & Candle Anatomy Expansion): Triggers only when the main pivot line is violated by a candle with significant volume (surpassing its 20-period SMA) and a tightly packed, dominant body ratio (Marubozu style). This mode filters out low-volume institutional retail traps (fakeouts).
Mode 2 (Direct Raw Momentum Breakout): Fires immediately upon a raw crossover/crossunder of the key horizontal line. It completely strips away filters to capitalize on sudden, news-driven, hyper-aggressive market expansions where speed is paramount.
Mode 3 (Safe-Zone Hold Confirmation): A strict trend-verification system designed for conservative execution. Rather than reacting to the initial breach, it tracks market absorption by requiring the price to successfully close and hold on the breakout side for X consecutive bars without slipping back across the line.
💰 Automated Target Lifecycle Management (Target 1-2)
The script is natively engineered with a stateful order sequence controller optimized for webhook routers like WunderTrading. It eliminates manual intervention by actively trailing the position's lifecycle:
The Entry: When any selected Mode condition is met, an entry signal (L1/L2/L3 or S1/S2/S3) prints visually on the chart and triggers the entry webhook message.
Target 1 (Partial Take-Profit): The exact moment the live price breaches the first major Fibonacci extension line (R1 for Longs, S1 for Shorts), a TARGET-1 alert fires. This allows automated bots to scale out partially or move stops to break-even.
Target 2 (Take-Profit & Position Liquidation): When the price strikes the primary institutional target line (R2 for Longs, S2 for Shorts), a TARGET-2 alert fires. Simultaneously, the internal position script state completely resets to zero, terminating the trade lifecycle securely without needing to wait for a lagging opposite signal.
🛠️ Key UI Parameters for Fine-Tuning
Pivot Calculation Period: Shift smoothly between D (Daily), W (Weekly), or M (Monthly) horizontal levels. Daily/Weekly lines are highly recommended for intraday timeframes.
Volume Multiplier: Increase this value (e.g., 1.8 or 2.0) to restrict Mode 1 signals only to massive, institutional-sized volume anomalies.
Min Candle Body Ratio (%): Filter out indecisive dojis or long-wick candles by demanding a solid, determined candle structure during breakout tests.
Safe-Zone Bar Count (X): Adjust the number of consecutive candle closes required for Mode 3 validation before entering.
⚡ Best Testing Environments & Timeframes
Top Performing Timeframes: * 15-Minute (15m) and 1-Hour (1h) charts provide the ultimate balance between asset noise reduction and massive intra-week trend capture.
5-Minute (5m) charts work excellent for scalpers, provided you raise the Volume Multiplier to counter micro-fakeouts.
Optimal Trading Assets: * Cryptocurrencies: High-momentum majors (BTC, ETH) that experience explosive expansion out of tight sideways consolidation ranges.
Indices & Commodities: NASDAQ (NAS100), S&P500, and GOLD (XAU/USD) due to their aggressive trend continuity when major daily key levels break.
Forex Major Pairs: EUR/USD, GBP/USD, and USD/JPY during high-liquidity New York and London session overlaps. Индикатор

Confluence Zone Engine [CZE]# Confluence Zone Engine
A structural analysis indicator that identifies support and resistance zones by clustering Anchored VWAPs and Anchored Volume Profile levels across the chart timeframe and up to three higher timeframes. Each zone is rated 1 to 5 stars based on how many independent sources cluster at the level and how diverse those sources are.
This is a structural analysis tool. It marks where multiple independent technical references agree at a price. It does not place trades or suggest entries, exits, targets, stops, or position sizes.
---
## What this script does
The engine runs a six-stage pipeline on every confirmed bar:
**Stage 1 — Pivot detection.** Detects pivot highs and pivot lows at Fibonacci-spaced lengths (3, 5, 8, 13, 21, 34, 55, 89). Each pivot becomes an "anchor" point. Default enabled tiers are 8, 21, and 34 — selected to give fast / medium / slow coverage without redundancy. The full Fibonacci set is configurable.
**Stage 2 — Per-anchor calculations.** For every anchor, the engine maintains:
- An Anchored VWAP (volume-weighted average price since the anchor bar)
- An Anchored Volume Profile, which produces a Point of Control (POC = most-traded price since anchor) and a Value Area (VAH and VAL = upper and lower edges of the 70% volume zone)
So a single pivot generates up to 4 contributor levels: AVWAP, POC, VAH, VAL.
**Stage 3 — Higher-timeframe replication.** The same pipeline (stages 1 and 2) re-runs on up to three configurable higher timeframes via non-repainting `request.security` calls. This produces a multi-timeframe view of structural anchors — pivots and AVWAPs from a 1H chart inform what the 5m engine treats as a higher-timeframe reference.
**Stage 4 — Cluster building.** All contributor levels from all enabled timeframes are collected. The cluster builder walks them in price order, merging any that fall within a configurable tolerance (default 0.08% of current price; preset-adjusted per asset class). A cluster with at least the minimum-count threshold becomes a candidate zone.
**Stage 5 — Star rating.** Each zone is rated 1 to 5 stars based on:
- Total contributor count
- Source-type diversity (how many of the 4 source categories — PH-AVWAPs, PL-AVWAPs, POCs, VAH/VAL — are present)
- HTF agreement (whether contributors from multiple timeframes align)
A "Premium" tier flag fires when top stars combine with HTF agreement.
**Stage 6 — State machine.** Each zone is tracked through a lifecycle:
- **Active** (forming, amber): the zone is currently accumulating contributors
- **Pending** (blue): contributor activity has paused; waiting for price to resolve the level
- **Resolved Support** (green), **Resistance** (red), or **Chop** (gray): determined by whether price moved decisively up, decisively down, or stayed range-bound after the zone activated
- **Tested** (dashed border): price entered the resolved zone but has not closed past the defending edge
- **Broken** (dashed orange + "Broken" label): price has closed past the defending edge
- **Flipped**: if a Broken state confirms over multiple closes past a threshold, the zone repaints to the opposite role (broken Resistance becomes Support, broken Support becomes Resistance)
---
## Why this indicator is original (not a simple mashup)
This is not "AVWAP indicator + Volume Profile indicator + multi-timeframe wrapper." Three design choices distinguish it from existing public indicators:
**1. Anchored at every Fibonacci pivot, not at a single user-selected point.** Standard AVWAP indicators require the user to manually click an anchor point. Standard Volume Profile indicators use either a fixed session or a single anchor. This engine automatically detects pivots at multiple Fibonacci lengths and runs an AVWAP + Volume Profile from each one. The number of active anchors at any time is typically 6 to 20, generating 24 to 80 contributor levels — far more than a manually-anchored tool can produce.
**2. Cross-timeframe clustering, not separate per-timeframe overlays.** The engine does not draw 5 separate AVWAPs from a 1H chart, plus 5 from a 4H, plus 5 from a daily. Instead, levels from all timeframes are collected into one pool and clustered in price space. A 1H AVWAP at 23,720 and a daily POC at 23,718 merge into a single zone marked as "two contributors from two timeframes." This produces structural information neither timeframe shows alone.
**3. Compositional bias from the contributor mix.** The cluster builder records *which type* of contributor formed each zone — pivot-high AVWAPs (trapped sellers' breakevens), pivot-low AVWAPs (trapped buyers' breakevens), POCs (acceptance), VAH or VAL (fair-value edges). The directional implication of each type is summed into a "compositional bias" score. A zone built mostly from PL-AVWAPs and VAL contributions leans support; one built from PH-AVWAPs and VAH contributions leans resistance. This is an analytical lens not present in standard S/R indicators, which generally treat all levels as direction-agnostic.
---
## Mashup justification — how the components work together
The four classes of technical analysis used (pivots, AVWAP, Volume Profile, multi-timeframe analysis) are not chosen arbitrarily. Each contributes a dimension the others do not, and the value comes from how they interact:
**Pivots provide the anchors.** Without pivots, AVWAP needs a manual anchor and Volume Profile needs an arbitrary session. Pivots at multiple Fibonacci lengths give the engine *automatic structural anchors* spanning timescales — short-term swings, intraday swings, session-level swings. The Fibonacci spacing (3, 5, 8, 13, 21, 34, 55, 89) ensures the anchors are non-redundant: each tier has a different bar requirement and catches different swings.
**AVWAP measures participant breakeven from each anchor.** This is the "where might trapped participants defend" dimension. An AVWAP from a pivot high is the volume-weighted breakeven for everyone who entered after that high (mostly net-short positions). An AVWAP from a pivot low is the breakeven for everyone who entered after that low (mostly net-long). When price returns to one of these AVWAPs, structurally those participants are at breakeven and have incentive to act.
**Volume Profile measures acceptance from each anchor.** This is the "what price has been most-accepted by volume" dimension. POC is the most-traded price; VAH/VAL are the edges of the 70%-volume range. AVWAP and POC measure different things — average price vs most-accepted price — and frequently disagree. When they *do* agree at a level, that's two independent signals saying "this price matters."
**Multi-timeframe replication tests for structural agreement.** A zone that exists only on the chart timeframe is one-timeframe noise. A zone where chart-TF contributors *agree with* higher-TF contributors at the same price is structural — the same level shows up no matter which timescale you measure from. The engine treats HTF agreement as a primary input to the star rating: HTF-aligned zones can earn an extra star (capped to prevent inflation).
**The clustering is where the value emerges.** Individually, none of these components produce reliable levels. AVWAP gets broken constantly. POC migrates. Pivot levels get violated. But when the engine sees that the 21-pivot AVWAP, the 34-pivot POC, the 8-pivot VAL, and a 1H AVWAP all land within 0.08% of each other at the same price, that's a confluence of independent references measuring different things — and that *coincidence* is what produces structural significance. The star rating quantifies how much agreement is present.
This is the mashup's purpose: not to combine indicators for their own sake, but to use convergence as a filter that turns individually noisy components into a rated structural signal.
---
## How to use the indicator
**Step 1: Apply to any chart timeframe.** All settings have sensible defaults. The asset-class preset (NSE Index Futures, NSE Stock, US Future, US ETF, US Stock, Commodity, Crypto, or Custom) auto-adjusts cluster tolerance and pivot defaults. Auto-selected higher timeframes scale with the chart — a 5m chart defaults to 15m/60m/240m HTFs, while a daily chart defaults to weekly/monthly HTFs.
**Step 2: Read the status panel (bottom-right).** This is the actionable summary:
- "Sup" row: nearest resolved Support below current price, with point distance
- "Res" row: nearest resolved Resistance above current price, with point distance
- "Top zone": the highest-rated zone overall
- "Data": indicator health (OK / Degraded / Critical) — if the underlying volume data is sparse, ratings are capped
**Step 3: Scan the chart for "Broken" labels.** Any zone in dashed orange with a "Broken" label is currently being violated. Watch for either recovery (border returns solid) or polarity flip confirmation (zone repaints to opposite role).
**Step 4: Find the active amber zone.** This is the current forming confluence. Look at the triangle shape: ▲ means the composition leans support, ▼ means it leans resistance, ◆ means neutral. The number next to the triangle is the star rating. A premium "★" prefix means HTF agreement is present.
**Step 5: Use the Major S/R lines as forward references.** Bold horizontal lines mark the top 2 strongest support levels below current price and top 2 strongest resistance levels above. Labels show price, stars, and distance.
**Step 6: Use the Range band as context.** The translucent aqua band marks the recent trading envelope (default last 50 bars). A narrow band means consolidation; a wide band means trending.
**Step 7: Hover any element for the full breakdown.** Every box, triangle, and line has a tooltip showing total contributors, type counts, HTF alignment, state, and history.
---
## How NOT to use the indicator
- **Do not treat the bias arrow as a trade signal.** It is a compositional description of contributors, not a directional forecast. A zone with a ▲ bias can still resolve as resistance.
- **Do not treat a "Broken" label as a trade trigger.** It tells you a known level is failing — not that you should enter a position in either direction.
- **Do not assume higher stars mean higher profit probability.** Stars measure the diversity and density of contributors, not historical performance or expected return.
- **Do not rely on it for low-volume instruments.** If the data-health badge shows "Degraded" or "Critical," the engine has capped ratings and may suppress zones entirely. This is a feature; the indicator is most accurate on liquid, volume-rich instruments (index futures, large-cap stocks, major crypto).
---
## How to read the star rating
Stars are a descriptive summary of confluence quality. They are not a probability of profit.
- 1 to 2 stars: minimum cluster; one or two source types. Background context.
- 3 stars: at least 5 contributors with 2 or more source types. Recurring intraday levels.
- 4 stars: at least 7 contributors with 3 or more source types, OR 3-star with HTF agreement.
- 5 stars: at least 10 contributors with all 4 source types present. Often boosted by HTF alignment.
By default, only 4-star and 5-star zones get triangle markers and qualify for Top-N or Major S/R lines. This is adjustable.
---
## Visual primitives
- **Confluence zones** — colored boxes marking each cluster. Boxes recolor as zones resolve. Border style indicates compromised state.
- **Triangle markers** — ▲ ▼ ◆ at each formation bar. Shape encodes direction. Color encodes lifecycle state.
- **Top-N S/R lines** — top 4 resolved zones by strength and recency project forward.
- **HTF confluence bands** — semi-transparent bands per higher timeframe (cyan, purple, orange).
- **Major S/R lines** — bold lines for top 2 supports below and top 2 resistances above current price.
- **Range band** — translucent band marking recent trading range with HI / LO labels.
- **Current price line** — thin dotted line at current price.
- **Status panel** — bottom-right summary.
---
## Technical notes
- Pine Script v6
- Non-repainting: all `request.security` calls use `barmerge.lookahead_off`
- Asset-class presets adjust cluster tolerance and pivot defaults
- Built-in data-integrity layer caps ratings when volume data is sparse or stale
- Seven alert conditions: new zone formed, high-quality (4 to 5 star) zone, HTF aligned, price entered support, price entered resistance, data health degraded, polarity flip
---
## Important risk disclosure
This indicator is provided for educational and informational purposes only and is not financial advice. Trading and investing involve substantial risk of loss, including the possible loss of all invested capital. The zones, ratings, bias shapes, and lines are descriptive summaries of structural confluence — they are not predictions of future price movement, indications of profitability, win rate, or expected return.
No backtested or hypothetical performance is claimed or implied. Past zones identified by the indicator are not indicative of future results.
You are solely responsible for any decisions you make. Consult a qualified, licensed financial advisor before trading. Past performance does not guarantee future results.
Индикатор

Индикатор

Индикатор
