Golden Range Zones | Rainbow MatrixGENERAL OVERVIEW
Golden Range Zones is a nested prior-range projection tool. At every reset boundary it freezes the just-closed period's high and low as the inner Band lines, then scans backward to find the nearest earlier extremes that price has NOT yet broken — the outer Oscillation lines. The gap between each Band and its Oscillation is filled with a golden Fibonacci zone, giving an immediate map of where price has prior structural precedent above and below the current range.
The goal is to answer one question at a glance: where are the levels that actually matter right now, and how much room is there before price reaches them? Instead of a single prior-day high/low pair, you get a nested structure — the recent range bracketed by the closest unbroken historic extremes — with the space between them measured in Fibonacci proportion. Every line is derived from real completed-period extremes, not approximated from the current bar.
The indicator works on crypto and futures (24h session reset) and on stocks (custom trading-hours window with timezone), computes the range from in-session data only, and never repaints its frozen levels.
WHAT IS THE THEORY BEHIND THIS INDICATOR?
Prior high/low levels are among the most watched references in trading — but most tools draw only the single most recent pair (yesterday's high and low) and stop there. That tells you the edges of the last range. It does not tell you what lies beyond those edges: the next level up that price failed to break, or the next level down that has held historically.
Price does not react in a vacuum at the edge of yesterday's range. When it breaks above the recent high, the relevant question becomes "what is the nearest overhead level that has actually rejected price before?" — because that unbroken prior extreme is where the next reaction is statistically more likely. Golden Range Zones formalizes this: it brackets the recent range with the nearest UNBROKEN prior extremes on each side, found by scanning completed periods backward until it locates the first one whose high exceeded (or low undercut) the current range.
The space between the recent edge (Band) and the nearest unbroken extreme (Oscillation) is then divided in Fibonacci proportion — the zone where price travels between "left the recent range" and "reached the next historic wall." Reading that space as a graded golden zone, rather than two bare lines, turns the gap into a structured probability map: the deeper price pushes into the zone, the closer it sits to the level that has rejected it before.
Where no prior breaching extreme exists — price at an all-time high or low, a young asset, a very high reset period — the tool does not go blank. It projects a conservative Oscillation from the Band by 25% of the period range and flags it distinctly, so the structure is always present even at historic extremes.
GOLDEN RANGE ZONES FEATURES
The indicator includes these main components:
◇ Nested Prior-Range Engine (Band + backward-scan Oscillation)
◇ Golden Fibonacci Zones (dual-sided, mirrored)
◇ Extreme-Event Fallback Projection
◇ Black Swan Extension (liquidation-sweep zone)
◇ Session / Custom Trading-Hours Anchoring
◇ Zone-Size % Read-out
◇ Multilingual interface (5 languages) and full visual customization
NESTED PRIOR-RANGE ENGINE
🔹 What It Does
Freezes four static horizontal lines at each reset. The Band lines are the just-closed period's high and low (the inner pair). The Oscillation lines are the nearest prior period extremes that lie beyond that range (the outer pair).
🔹 Method
At each reset, the just-closed period's high and low are pushed to a rolling history of completed-period extremes and frozen as the Band lines. The engine then scans that history backward from the most recent period: the first earlier period whose high exceeds the Band high becomes the Oscillation high; the first whose low undercuts the Band low becomes the Oscillation low. The two sides resolve independently and can sit at very different look-back distances — the overhead wall might be four periods back while the floor below is two hundred periods back. Because both sides are bracketed by real extremes that the recent range did not breach, the structure is always ordered: Oscillation high ≥ Band high ≥ Band low ≥ Oscillation low.
🔹 No-Repaint
Every value comes from closed periods. Once frozen at the reset, the lines do not repaint for the duration of the period.
GOLDEN FIBONACCI ZONES
🔹 What It Does
The gap between each Band (inner) and its Oscillation (outer) is filled with a rainbow Fibonacci zone — the area where price travels from the recent range edge toward the nearest unbroken historic level.
🔹 Method
On each side the axis runs from the Band (ratio 0) to the Oscillation (ratio 1.0). The zone is divided into bands whose widths follow a Fibonacci 1:1:2:3:5:8 distribution, so the sub-bands grow as they approach the outer extreme — the area nearest the historic wall is the widest, where reaction is most likely. The palette runs aqua at the inner edge through to red at the outer edge, mirrored on the upper and lower sides. The space between the two Band lines stays clean, keeping the current trading range visually uncluttered.
EXTREME-EVENT FALLBACK
🔹 What It Does
When the backward scan finds no prior period that breached the Band on a side — price at a historic extreme, a young instrument, or a very high reset period — the Oscillation on that side is projected rather than left blank.
🔹 Method
The orphan side's Oscillation is placed at 25% of the period range beyond the Band, and the line is rendered with a distinct purple accent so it reads clearly as a conservative projection, not a historic level. Only the side without a real prior breach uses the fallback; the other side keeps its true extreme. The tool therefore always presents a complete structure, even in uncharted price territory.
BLACK SWAN EXTENSION
🔹 What It Does
An optional zone projected beyond the Oscillation — the area where price often wicks past a level to sweep liquidity before reacting.
🔹 Why It Matters
Levels are rarely respected to the tick. Price frequently overshoots a key extreme, triggering stops and liquidating leveraged positions, then reverses. The Black Swan extension marks that overshoot band explicitly, so an aggressive wick beyond the Oscillation reads as a potential liquidation sweep rather than a clean breakout.
SESSION / CUSTOM TRADING-HOURS ANCHORING
🔹 What It Does
The reset that defines each period can follow the instrument's native session (ideal for 24h crypto and futures) or a custom trading-hours window in a chosen timezone (ideal for stocks).
🔹 Method
In Session mode the period resets on the symbol's session boundary at the chosen reset timeframe (default Daily). In Custom Hours mode you set an open–close window and a timezone; the running high and low then accumulate from in-session bars only, discarding after-hours movement, and the period rolls over at the window open. This makes the Band represent the true regular-session range for stocks, not a figure distorted by thin extended-hours activity.
ZONE-SIZE % READ-OUT
🔹 What It Does
Three dashed vertical markers, drawn a configurable number of candles past the block, each span one zone and report its size as a percentage of current price.
🔹 The Three Zones
◇ Sell zone (green): Oscillation high → Band high — the room above the recent range.
◇ Neutral zone (gray): Band high → Band low — the recent range itself.
◇ Buy zone (red): Band low → Oscillation low — the room below the recent range.
Reading each zone as a % of price lets you size targets and risk against the structural levels directly.
HOW TO USE
This indicator is not a signal generator. It is a structural map: it shows the recent range, the nearest unbroken extremes that bracket it, and the graded space between them.
🔹 Setup
Set the chart timeframe below the reset period (for example a 15m chart with a Daily reset). For 24h markets leave Reset Mode on Session. For stocks, switch to Custom Hours and set the regular-session window and timezone. If the chart timeframe is at or above the reset period, the projection hides and a guard note appears.
🔹 Reading the Structure
◇ The two Band lines are the just-closed period's range — the immediate edges.
◇ The two Oscillation lines are the nearest prior levels the range has not broken — the next structural walls.
◇ The golden zone between each Band and Oscillation is where price has prior reaction precedent; the Fibonacci-weighted bands widen toward the outer wall.
🔹 Tactical Reading
◇ Price holding inside the Bands — trading within the recent range; no structural test yet.
◇ Price entering a golden zone — travelling toward the nearest unbroken extreme; the deeper it pushes, the closer the historic level.
◇ Price wicking into the Black Swan extension — possible liquidity sweep beyond the level; watch for rejection.
◇ A purple-accented Oscillation — no real prior breach on that side; the level is a conservative projection, treat with lower confidence.
INPUTS EXPLAINED
🔹 System Language
Display language for the panel and labels. Options: English (default), Português, Español, Русский, 中文 (Chinese).
🔹 Reset Period / Reset Mode
The period boundary that defines each range. Session (auto) for 24h markets; Custom Hours (with trading window + timezone) for stocks.
🔹 Lines
Visibility and width for the Band and Oscillation strokes.
🔹 Rainbow Style
Golden-zone visibility and transparency.
🔹 Black Swan / Aqua
The outer liquidation-sweep extension and the inner breathing-room line.
🔹 Extreme Event
Enables the 25%-range fallback projection when no prior breach exists.
🔹 Zone % Lines
The three zone-size verticals and their candle offset from the block.
🔹 Info Panel
Visibility, position, and font size.
IMPORTANT NOTES
Golden Range Zones works on any chart timeframe below the reset period. It is built for instruments with reliable price data across many periods, since the backward scan may look back far to find an unbroken extreme — on very short history the fallback projection covers the gap. In Custom Hours mode the range reflects in-session bars only.
The frozen levels do not repaint within a period; they recompute at the next reset, like an anchored tool. The Fibonacci 1:1:2:3:5:8 zone distribution is part of the canonical Rainbow Matrix design grammar, shared across the portfolio for consistent readability.
Pine Script v6. Open-source under Mozilla Public License 2.0.
UNIQUENESS
Golden Range Zones is unique in how it brackets the recent range. Most prior-range tools draw a single high/low pair; this one finds the nearest UNBROKEN prior extremes on each side via a backward scan through completed-period history, producing a nested structure rather than two bare lines. The space between the recent edge and the nearest unbroken extreme is then divided in Fibonacci 1:1:2:3:5:8 proportion, so the graded zone widens toward the historic wall where reaction is most likely — turning the gap into a structured probability map rather than empty space between two lines. An extreme-event fallback keeps the structure intact at all-time highs and lows by projecting a conservative level instead of going blank, and a Black Swan extension models the liquidation-sweep overshoot beyond each extreme. Session or custom trading-hours anchoring lets the same engine serve 24h crypto and regular-session stocks correctly, computing the range from in-session bars only. The combination of backward-scan nested ranges, Fibonacci-weighted golden zones, conservative fallback projection, and session-aware anchoring produces a structural read of prior-range context that single-pair high/low tools cannot provide. Indicator

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. Indicator

AutoPivot Levels with Alerts [ChartWhizzperer] – Dynamic EditionAuto-Pivot Levels 4 methods with alerts – Dynamic Edition
Now with
- Live Mode
- 4 Pivot Methods
- 7 Session Types (5m, 15m, 30m, Hourly, Daily, Weekly, Monthly)
- PineConnector-Ready Alerts!
Free, Open Source, Pine Script v6-compliant.
NEW: Live Mode (Ultra-Dynamic, Repainting) – Switchable in UI!
Instantly switch between Classic (session-based, repaint-free) and Live (rolling window, real-time, repainting) using the simple checkbox in the settings!
Live Mode recalculates all pivots on every tick/bar, using the current high/low/close for the chosen session (5m, 15m, 30m, hourly, daily, weekly, monthly).
Perfect for:
- Scalping and high-frequency trading
- Real-time bot/automation setups (PineConnector-ready)
- Fast-moving or breakout markets
Classic Mode: For traditional, stable levels based on confirmed session data – ideal for backtesting and trading history.
Four Calculation Methods (Choose What Fits YOU)
1. Classic
Standard pivot calculation.
Based on previous session’s High, Low, Close.
Simple, proven, and suitable for any asset.
2. Fibonacci
Projects levels using Fibonacci ratios of the prior session’s range.
Great for traders who want to align pivots with fib retracements and extensions.
3. Camarilla
Uses unique multipliers for support/resistance, focusing on mean reversion and volatility.
Popular among futures and forex day traders.
4. Woodie
Puts extra weight on previous Close for more responsive pivots.
Often used in trending or choppy conditions.
Switch methods anytime in the UI – the script recalculates instantly and keeps your chart clean!
Level-Specific Alerts – PineConnector Ready!
Dedicated alert for EVERY level and direction (Up/Down):
Pivot (P), R1, R2, R3, S1, S2, S3
No configuration hassle:
All alerts are pre-defined in the PulseWire Alert Panel and work across all session types (5m → monthly).
Machine-readable message format:
PIVOT=R1 DIR=UP SYMBOL={{ticker}} PRICE={{close}}
Direct plug-and-play with PineConnector, webhooks, Discord, Telegram, bots, and other automation tools.
Never miss a breakout, reversal, or key support/resistance touch!
Powerful Customization & Performance
- Session selection: 5m, 15m, 30m, Hourly, Daily, Weekly, Monthly (choose what suits your trading style).
- Show/hide any level (Pivot, R1–R3, S1–S3) for minimal chart clutter.
- Color selection for each level to match your theme or highlight key pivots.
- Auto-cleanup: Old lines and labels are cleared on every recalculation or session change for maximum performance and visual clarity.
- Zero runtime errors: Strict Pine Script v6 practices for stability.
How To Use – Quick Start
1) Add the indicator to your PulseWire chart.
2) Pick your calculation method (Classic, Fibonacci, Camarilla, Woodie).
3) Set session type (5m, 15m, 30m, Hourly, Daily, Weekly, Monthly).
4) Switch between Classic and Live Mode with a single click in settings.
5) Customize your levels (on/off, colors).
6) Open the Alert Panel, select any pre-configured alert (e.g. "R2 Cross Down"), and go live!
7) Connect with PineConnector or any webhook system instantly using the pre-formatted alert messages.
Who Is It For?
- Active scalpers & bot traders: Live Mode + PineConnector-ready alerts = instant, automated reactions.
- Swing and position traders: Use Classic Mode for stable, repaint-free levels.
- Strategy developers: Seamless integration into automated and manual trading workflows.
License & Community
Open Source, Non-Commercial:
Free for personal & educational use under CC BY-NC-SA 4.0.
Feedback, bug reports & ideas:
Drop a comment, or contact me for feature requests.
Trade smart. Trade dynamic. Unlock the true power of pivots – with ChartWhizzperer! Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator
