MAs BB Lines_wt [WynTrader]MAs BB Lines --- Published : 2026-08-08
This indicator draws on the classical moving-average-and-Bollinger-Bands framework commonly taught by many specialist authors, to combine an 18-day Bollinger Band setting with a set of key moving averages (21, 50, 100, 200) to read trend direction, volatility, and potential support/resistance zones together. This script builds on that same general approach with a fully customizable, five-MA overlay and an added forward-projection layer.
Features:
📊 5 Independent Moving Averages
Each MA has its own length and type (SMA, EMA, RMA, VWMA, HMA), fully customizable to fit any trading style.
- MA1 (default: 8 EMA) — plotted as stepline for fast reaction visibility
- MA2 (default: 21 SMA), - MA3 (default: 50 SMA), - MA4 (default: 100 SMA) and - MA5 (default: 200 SMA)
📈 Bollinger Bands
Middle line 18-period, 2.0 deviation bands (basis, upper, lower) to frame volatility and price extremes around the trend structure.
🔮 Forward Projection Lines
Dashed projection lines extend from end of lines into future bars, based on each MA's recent slope (lookback-configurable). This gives traders a visual read on where each average is heading if current momentum persists.
- Lookback period: 3–10 bars (controls slope sensitivity)
- Forward projection length: 5–30 bars
- Projections can be toggled on/off
How to use it:
Watch for convergence or crossing of the moving averages and their projected paths — these often mark potential inflection points. Use the Bollinger Bands to gauge whether price is stretched relative to trend. Combine short-term (MA1) and long-term (MA5) MA slopes to confirm trend direction and strength.
Notes:
- Overlay indicator, works on any timeframe and instrument
- All moving average types and lengths are fully adjustable in settings
- Projection lines are visual guides based on recent slope, not predictive signals — always confirm with price action and other analysis
- Conceptual framework inspired by moving-average/Bollinger-Band methods commonly taught by several specialist authors and used by many professionals to identify support and resistance pivots. Indicator

Indicator

Ronaldo Bicycle Kick Orbit Break Reversal [ Viprasol ]Ronaldo Bicycle Kick — Orbit Break Reversal (Viprasol)
WHAT IT DOES (the idea)
Most reversal tools watch a single line. This one watches a region. It treats recent price structure as a set of confirmed swing points that "orbit" a structural centre of mass, and it trades the moment price escapes that orbit to the upside. Like a ball coiling around a centre and then leaving orbit — that break is the signal. The name is a sporting homage to a spectacular finish; the tool itself is pure geometry.
HOW IT DETECTS
1. Swings: a lightweight zigzag keeps the last several confirmed pivots. A pivot is only accepted after the required number of bars close to its right, so swings do not move once printed.
2. Orbit geometry: from the last K swings (default 6) it computes the geometric centroid — the mean bar position and mean price. It then measures the average (root-mean-square) distance those swings sit from the centroid price. That distance, scaled by "Orbit radius," becomes the orbit ring. A minimum radius floor (in ATR) filters out flat, meaningless rings.
3. Escape: the setup arms only when the orbit is valid. The signal fires on the first bar that CLOSES above the top of the orbit ring (centroid price + radius) having closed at or below it on the prior bar.
ENTRY / STOP / TARGET
- Entry: the close of the escape bar (long only).
- Stop: the lowest swing price inside the orbit, minus an ATR buffer.
- Target: Entry + R multiple x risk (default 2R), where risk = Entry - Stop.
Each trade draws an entry line plus filled TP and SL zones that extend forward bar by bar until price touches one of them, then freeze.
NON-REPAINTING
Signals are built from confirmed pivots and only evaluated on a confirmed (closed) bar. Nothing is placed on the developing bar, so a printed signal does not disappear or shift on later ticks. The dotted "live orbit" preview is a forward-looking sketch of the current geometry and is not a signal.
KEY FEATURES
- A real orbit ellipse is drawn around the centroid so you can see the ring being broken.
- Extend-until-hit TP/SL zones with a one-trade-at-a-time option.
- Optional hide-new-setup-while-in-trade to reduce clutter.
- Adjustable pivot width, swing count, orbit radius, ATR floor, R multiple, stop buffer, and a minimum-bars-between-signals gap.
INPUTS OVERVIEW
Swing pivot left/right bars; swings used for the orbit; minimum swings for validity; orbit radius multiplier; minimum orbit radius in ATR; ATR length; TP R multiple; SL ATR buffer; signal gap; one-trade toggle; visual colours and label offset.
HOW TO USE
1. Add to any liquid symbol and timeframe; it works on all.
2. Watch for the dotted orbit ring to form around recent structure.
3. Take note when a bar closes above the ring and the GOAL label prints.
4. Use the drawn entry, TP, and SL zones as a visual trade map; adjust the R multiple and stop buffer to your own plan.
5. Raise the pivot width or ATR floor on noisy, low-timeframe charts to demand cleaner structure.
LIMITATIONS (honest)
- This is a pattern and education tool, not a signal service or an autotrading system. It highlights a geometric condition; it does not predict outcomes.
- Long-only by design. It will not flag downside setups.
- In strong one-way trends the orbit ring can be escaped repeatedly; in choppy ranges valid orbits may be sparse. Context and discretion still matter.
- Requiring confirmed pivots means the orbit is defined slightly after a swing forms, which is the cost of non-repainting behaviour.
- Past behaviour of any pattern does not guarantee future results.
CREDITS
Built on public, well-known concepts: Average True Range (J. Welles Wilder) for volatility scaling, and standard pivot/zigzag swing detection. The orbit-centroid geometry and the escape logic are original Viprasol work. The "Bicycle Kick" name is an affectionate sporting homage and does not imply any endorsement or affiliation.
This script is an educational tool and is not financial advice. Trade your own plan and manage risk.
Original Viprasol work; no third-party Pine code reused.
Indicator

Indicator

Bolinger Bands Range RSI Oscillator [ChartPrime]🔶 OVERVIEW
Traditional oscillators live in a separate sub-window beneath your price chart, forcing you to constantly split your focus between market structure and momentum data. The BB Range RSI Oscillator solves this by projecting Relative Strength Index momentum directly onto an adaptive Bollinger Bands channel right on your main chart layout.
This indicator normalizes standard RSI readings and maps them directly into price coordinates, letting you track momentum extremes, zone expansions, and automated structural divergences directly over the candles.
🔶 HOW IT WORKS
The indicator executes its structural calculations through a multi-tier transformation pipeline:
Adaptive Channel Matrix: The engine computes a moving average basis and applies a standard deviation multiplier to project upper and lower outer boundaries, alongside half-deviation warning lines, framing the primary price canvas.
Normalized RSI Mapping: Instead of rendering a separate panel, raw RSI values are normalized on a standardized scale and mapped directly relative to the middle basis and band width, translating momentum oscillations into exact price-level coordinates.
Dynamic Transparency Engine: The core oscillator line features a dynamic fade factor based on its distance from the center, shifting opacities to visually emphasize when momentum is pushing toward outer band extremes.
Automated Pivot Divergence Logic: The script evaluates pivot points on the mapped oscillator coordinates against price highs and lows. It measures exact bar spacing intervals to flag regular and prime momentum divergences.
🔶 KEY FEATURES
On-Chart Core Oscillator: Plots a fluid momentum curve directly onto the price candles, complete with an optional smoothing signal line to track trend momentum changes.
Dynamic Zone Shading: Automatically fills the upper and lower channel boundaries with custom color fills when the oscillator breaks past half-deviation or outer band extremes.
Automated Divergence Callouts: Pins custom signal badges (+ Bull, Bull, Bear, + Bear) directly onto historical pivot points when structural momentum divergences are detected.
Customizable Palette & Layout: Full user control over band lengths, RSI lookbacks, divergence parameters, and accent color schemes to fit your preferred charting setup.
🔶 TRADING APPLICATIONS
Extreme Band Rejection Entries: When the core oscillator pushes outside the outer Bollinger Band boundaries and flashes zone shading, look for price action reversal confirmations to catch institutional exhaustion moves.
Momentum Divergence Reversals: Utilize the automated Bullish and Bearish divergence tags to spot hidden shifts in market pressure. A regular or prime divergence near outer bands often signals an impending trend reversal.
Signal Line Crossovers: Enable the signal line to track short-term momentum shifts relative to the core mapped oscillator, giving you clean cross-over execution triggers.
🔶 SETTINGS
Bollinger Bands Settings (Length / Multiplier): Controls the lookback window and standard deviation width of the primary channel boundaries.
RSI Oscillator Settings (Period Length / Signal Line): Adjusts the sensitivity of the underlying momentum engine and configures the optional signal line length and styling.
Divergence Settings (Pivot Lookbacks / Min-Max Bars): Fine-tunes the strictness and spacing constraints used by the pivot detection engine to filter out noise.
🔶 CONCLUSION
The BB Range RSI Oscillator unifies volatility bands and momentum oscillators into a single, cohesive on-chart tool. By mapping RSI directly to price structure, it gives you a clean, distraction-free environment for spotting momentum extremes and institutional divergence setups. Indicator

Regression Trend [MiesOnCharts]Regression Trend - Mies
What it does
This indicator fits a linear regression line to price over a rolling window and draws a corridor around it based on the statistical error of that fit. The corridor is what decides the trend state. As long as price stays inside it, nothing changes. When price closes outside one side, the whole thing flips color and a triangle marks the bar.
The result is a trend line that carries its own tolerance band with it, so you can see at a glance both where the fitted trend sits and how much room price has before the state changes.
How it works
A least squares regression is fitted across the lookback window. That gives the center line.
Around it, the script computes the standard error of the estimate, which is the typical distance between actual price and the fitted line. It comes from the correlation between price and time:
r is the correlation of the source with bar index over the window
residual variance is the price variance scaled by (1 - r²)
the standard error is the square root of that, adjusted for the degrees of freedom of the fit.
This is the part that makes the corridor behave differently from a standard deviation band. The width responds to how well price is actually tracking the trend, not just to raw volatility. A strong, clean trend produces a high correlation, small residuals, and a narrow corridor, so the indicator stays sensitive.
Choppy price that wanders around the line produces a weak fit, a wide corridor, and a much higher bar for triggering a state change. The indicator effectively demands more evidence in exactly the conditions where evidence is thin.
The bands sit at the center line plus and minus a multiple of that standard error. A close above the upper band turns the state bullish, a close below the lower band turns it bearish, and everything in between leaves the previous state untouched. That hysteresis is intentional. It is what stops the indicator from flipping every time price crosses its own mean.
On the chart
Regression line, green when the state is bullish, red when bearish, gray before the first breakout
Upper and lower standard error bands with a light fill between them, colored to match the current state Triangle below the bar when the state flips bullish Triangle above the bar when the state flips bearish.
Display controls to hide the fill, or the bands entirely, if you want a bare trend line
Two alert conditions, one for each direction
Settings
Source sets which series gets fitted. Close is the standard choice. HL2 or a smoothed input will give a calmer line and fewer flips.
Regression Window sets how many bars the fit covers. Shorter windows follow recent structure and react fast. Longer windows describe the broader trend and produce fewer, slower signals. This is the main setting for matching the tool to your timeframe.
SE Band Multiplier controls how far price has to move from the fitted line before the state changes. Lower values tighten the corridor and generate more signals. Higher values require a more decisive break and filter more noise, at the cost of entering later.
Display group toggles the bands and the fill, and adjusts band opacity.
How to use it
The most direct use is as a trend filter. Trade only in the direction the line is colored and treat the opposite flip as your exit or your cue to step aside.
The corridor itself gives you two readable things. Its width tells you how well price is respecting the trend, so a corridor that has narrowed over recent bars means the fit is tightening and the move is orderly. A corridor that has ballooned means the fit has broken down and the state you are looking at is stale. The center line works as a dynamic reference within an established regime, since a pullback toward it is price returning to its own fitted mean rather than to an arbitrary level.
It pairs well with a volume or momentum check. A corridor break tells you the move is statistically unusual relative to the current fit, but it says nothing about whether there is participation behind it.
Behavior worth understanding
The regression is recalculated on every bar, and the corridor plotted on each bar is that bar's own fit. This is a running envelope, not a fixed channel anchored to a pivot, so the bands will look wavier than a manually drawn regression channel. The reference moves with price, which is what keeps the state stable through a sustained run.
Signals are evaluated on the live bar, so a flip can appear and then vanish before the bar closes. Wait for bar close if you need signals that hold.
Limitations
Linear regression assumes price is moving in a straight line across the window, which is never fully true. The fit degrades at sharp reversals and around gaps, and the corridor is slow to acknowledge a turn right after a strong move because that extension is still inside the window. Treat this as a description of current trend structure, not a forecast.
Disclaimer
The indicator provided is not financial advice. Always conduct your own research and consider multiple factors before making trading decisions. Trade at your own risk. Indicator

Reversal Trap Probability Bands [BigBeluga]🔵 OVERVIEW
The Reversal Trap Probability Bands is an advanced technical indicator created by BigBeluga to identify and trade fakeout traps around market extremes. Traditional envelope or band indicators often fail because traders blindly enter breakouts that quickly reverse into whipsaw losses. In order to provide a solution to this problem, this indicator combines volatility-based envelope channels with a dynamic probability tracking engine, measuring historical RSI buckets to calculate real-time win probabilities for reversal traps.
The indicator aims to visualize institutional exhaustion and subsequent mean-reversion expansions. The core element of its calculation involves tracking baseline moving averages alongside outer volatility bounds defined as:
upper_band = basis + (multiplier * vola)
lower_band = basis - (multiplier * vola)
where basis is an exponential moving average of length envelope_len , and vola is the ATR volatility measure scaled by multiplier . Higher values of envelope_len and multiplier allow the indicator to filter out routine market noise and isolate major structural exhaustion points.
🔵 FEATURES
The system utilizes a multi-layered matrix structure to provide actionable market intelligence:
1 — Volatility Envelope & Basis Engine
envelope_len = input.int(55, "Envelope Smoothness") : Controls the responsiveness and smoothness of the central baseline.
upper_band & lower_band : Dynamic outer boundaries that shade gradient fills to visualize upper and lower market extremes.
2 — Reversal Trap Detection & RSI Probability Tracking
trap_window = input.int(10, "Trap Window (Candles)") : Defines the maximum candle count allowed outside the bands before invalidating a fakeout setup.
rsi_bucket = math.max(0, math.min(10, math.round(rsi / 10))) : Automatically categorizes momentum into distinct RSI tiers to calculate real-time win probability rates.
3 — Dynamic Target, Stop, & Signal Management
Bull_Stop = ta.lowest(low, 2) - atr & Bear_Stop = ta.highest(high, 2) + atr : Calculates volatility-adjusted safety padding for active trade management.
Signal Labels & Targets: Plots clear entry notifications displaying win probability percentages, along with dashed target and stop lines.
🔵 HOW TO USE
Apart from the basic visualization of volatility extremes, this tool can also act in alternative ways to support decision-making:
Identify Reversal Traps: Wait for price to break outside the upper or lower envelope boundaries and subsequently close back inside within the defined trap_window .
Evaluate Win Probability: Check the probability percentage displayed on the trap signal label (backed by historical RSI bucket tracking) before entering a trade.
Manage Risk with Stops and Targets: Use the projected dashed target lines (anchored to the basis line) and ATR-padded stop lines to execute and protect positions.
🔵 NOTES
Why this implementation is unique:
It moves beyond static band indicators by integrating a self-learning historical database that calculates live win probabilities based on momentum buckets.
The automated target and stop-loss line projection engine provides clear visual roadmaps for every triggered setup.
The script is fully optimized for Pine Script version 6, utilizing high-performance array tracking (`var int bull_total = array.new_int(11, 0)`) for smooth execution.
Note: Because the win probability engine evaluates historical trade performance dynamically in real time, initial signals on a freshly loaded chart may display "Tracking..." until sufficient sample data is recorded.
Indicator

3D Trend Vortex [BOSWaves]3D Trend Vortex - Slope-Adaptive Gradient Bands with Polyline 3D Extrusion and Zone Entry Signal Detection
Overview
3D Trend Vortex is a slope-driven trend band system that constructs a pair of eight-layer gradient bands positioned above and below price using ATR-scaled offsets from a configurable moving average baseline, where band width breathes inversely with slope magnitude, candle gradient intensity reflects normalized slope strength, and a polyline-based three-dimensional extrusion renders the outer and inner band edges as volumetric ribbon geometry that follows the bands across the configured display length.
Instead of relying on static symmetric bands or fixed volatility channels, the band width contracts when trend slope is strong and expands when slope is flat or weakening, producing a visual breathing effect that communicates momentum intensity through band geometry rather than through a separate indicator. The eight gradient fill layers within each band progress from near-transparent at the inner edge to full opacity at the outer edge, creating a visual depth effect that reinforces the three-dimensional extrusion rendered at the current bar.
This creates a trend framework where every visual layer simultaneously communicates the same underlying information from a different angle. The gradient bands reveal momentum intensity through their width. The candle gradient communicates slope conviction through brightness. The 3D extrusion at the band edges provides spatial depth cues that make the band structure immediately readable across varying zoom levels. Signal labels fire when price first enters either band after the cooldown period, identifying the specific bars where price has moved into the zone of interest defined by the ATR-offset band boundary.
Price is therefore tracked not just for its directional relationship to the basis MA but for its position within or outside a dynamically breathing gradient band system whose visual geometry encodes slope strength and momentum quality on every bar.
Conceptual Framework
3D Trend Vortex is founded on the principle that trend band visualization should communicate momentum quality through the geometric properties of the bands themselves rather than requiring separate momentum indicators, and that introducing three-dimensional spatial depth into the band rendering provides immediate structural legibility that flat two-dimensional bands cannot achieve regardless of color or transparency settings.
Traditional band indicators apply fixed widths or static volatility multiples that remain visually identical whether momentum is surging or stalling, requiring traders to consult separate oscillators for conviction context. This framework embeds conviction directly into band geometry through the breathing width mechanism, where strong slope produces tighter, more concentrated bands reflecting focused directional commitment and weak slope produces wider, more diffuse bands reflecting reduced momentum quality. The three-dimensional extrusion layer adds spatial depth cues that reinforce the structural separation between the supply zone above price and the demand zone below.
Three core principles guide the design:
Band width should adapt to slope magnitude, contracting during strong momentum and expanding during low-conviction conditions, encoding trend health directly into the geometric properties of the bands without requiring a separate momentum indicator.
The gradient fill system across eight layers within each band should provide visual depth that reinforces the three-dimensional extrusion, creating a consistent spatial reading between the flat fill and the extruded geometry at the current bar edge.
Signals should fire on first entry into band territory after the cooldown period rather than on crossover of a single line, capturing the structural significance of price reaching the offset zone while preventing signal clustering during extended band interactions.
This shifts trend band analysis from static channel monitoring into a momentum-adaptive visual system where band breathing, candle intensity, and three-dimensional geometry collectively communicate trend conviction across every bar of the display window.
Theoretical Foundation
The indicator combines configurable moving average baseline selection, ATR-based band offset and width calculation with slope-driven breathing modulation, eight-level gradient fill construction across inner-to-outer band subdivisions, polyline-based three-dimensional extrusion geometry using depth offset coordinates, and slope-normalized candle gradient coloring.
The basis MA is computed in the selected type over the configured length and the three-bar slope is measured as the difference between current and three-bar-lagged values. The slope magnitude is normalized against its highest value over an eighty-bar window, producing a 0-1 score that drives the breathing multiplier applied to the band width. ATR is smoothed over fifty bars to reduce sensitivity to individual volatility spikes, providing a stable scaling unit for both band offset and width calculations. The eight gradient fill layers divide the inner-to-outer band distance into equal steps with progressively increasing opacity, connecting smoothly to the polyline faces of the 3D extrusion that render the outer edge face, top face, and inner top face as separate filled polygon regions at configurable depth offsets.
Four internal systems operate in tandem:
Slope-Adaptive Band Engine : Calculates ATR-smoothed band offset and width, applies EMA smoothing to all four band edges, and modulates total band width by a breathing factor derived from normalized slope magnitude so that bands contract proportionally during high-momentum conditions.
Eight-Layer Gradient Fill System : Subdivides the inner-to-outer band width into eight equal steps and fills each interval with progressively decreasing transparency, producing a continuous opacity gradient from the near-transparent inner edge to the full-opacity outer edge across both the top and bottom bands.
Three-Dimensional Extrusion Engine : On the last bar, constructs polyline polygon arrays for the outer face, top face, and inner top face of each band by combining current bar coordinates with depth-offset coordinates at the configured bar and ATR depth, rendering six filled polyline regions that create the illusion of volumetric band geometry extending from the current bar edge into the chart space.
Zone Entry Signal System : Monitors price crossing into the top or bottom band on each bar, applying independent cooldown tracking for each side to prevent signal clustering during extended band interactions.
This design allows band geometry, candle coloring, and 3D extrusion to all derive from the same underlying slope and ATR measurements, ensuring visual consistency across every layer of the indicator.
How It Works
3D Trend Vortex evaluates price through a sequence of slope-aware band construction and visualization processes:
Basis MA Calculation : The selected moving average type is calculated over the configured length, providing the directional baseline from which all band positions and slope measurements are derived.
ATR Smoothing : Raw ATR over fourteen bars is smoothed with a fifty-bar SMA to produce a stable volatility unit that prevents individual spike bars from distorting band positioning across the display window.
Slope Measurement and Normalization : The three-bar change in basis MA is measured and its absolute value is normalized against the highest absolute slope over eighty bars, producing a 0-1 score reflecting how strong the current slope is relative to recent momentum history.
Breathing Width Calculation : The normalized slope score is scaled and subtracted from 1.0 to produce a breathing multiplier that reduces band width proportionally during high-slope conditions, causing bands to contract during strong momentum and expand during low-conviction flat conditions.
Band Edge Calculation and Smoothing : Inner and outer edges for both the top and bottom bands are calculated by adding and subtracting ATR-scaled offset and width values from the basis MA, then smoothed with the configured EMA length to prevent jagged edge movement.
Eight-Layer Gradient Fill Rendering : The inner-to-outer distance of each band is divided into eight equal steps and plot-fill pairs are rendered at each subdivision with transparency increasing from outer to inner, producing a smooth opacity gradient across the band depth.
Candle Gradient Coloring : The normalized slope score is power-transformed and mapped to a gradient from a dimmed version of the trend color at low slope to full saturation at high slope, coloring chart candles proportionally to current momentum conviction.
Zone Entry Detection : Price crossing into the top band from below or the bottom band from above is detected with independent cooldown tracking for each side. When entry is confirmed and cooldown is satisfied, a signal label is placed at the bar high or low respectively.
3D Extrusion Construction : On the last bar, polyline arrays are constructed for each of the six extruded faces using combinations of current and depth-offset bar indices and price coordinates, rendering the outer face, top face, and inner top face for both the top and bottom bands as filled polygon regions.
Together, these elements form a continuously updating slope-adaptive band system where gradient geometry, candle brightness, and three-dimensional extrusion simultaneously communicate trend direction, momentum conviction, and structural band positioning across the full display window.
Interpretation
3D Trend Vortex should be interpreted as a slope-driven momentum band system with spatial depth visualization and zone entry monitoring:
Bullish Trend State (Green) : Active when the basis MA slope is positive, with the bottom gradient band rendered in green and candles coloring green with intensity proportional to slope strength.
Bearish Trend State (Red) : Active when the basis MA slope is negative, with the top gradient band rendered in red and candles coloring red with intensity proportional to slope strength.
Band Width Dynamics : Narrow bands indicate strong slope momentum with high directional conviction. Wide bands indicate weak slope with reduced momentum quality. Monitoring band width evolution provides real-time conviction context without requiring a separate momentum oscillator.
Eight-Layer Gradient Fill : The opacity gradient from inner to outer edge provides visual depth within each band, with the near-transparent inner boundary representing the threshold where price enters the zone of interest and the fully opaque outer boundary representing the extreme of the ATR-scaled offset distance.
3D Extrusion : The three-dimensional polyline faces rendered at the current bar edge provide spatial depth cues that reinforce the structural separation between the top supply zone and bottom demand zone, making band positioning immediately readable across varying chart zoom levels.
▲ Buy Signals : Green upward triangles mark the first bar where price enters the bottom band after the cooldown period, identifying price reaching the lower ATR-offset zone of interest.
▼ Sell Signals : Red downward triangles mark the first bar where price enters the top band after the cooldown period, identifying price reaching the upper ATR-offset zone of interest.
Candle Gradient : Price candles brighten toward full trend color saturation as slope strengthens and dim toward a muted version of the trend color as slope weakens, providing bar-level momentum conviction readings directly on the candlestick display.
Band width dynamics, candle gradient intensity, signal zone entry, and 3D extrusion depth collectively provide more momentum and structural context than any element in isolation.
Signal Logic & Visual Cues
3D Trend Vortex presents two zone entry signal types with independent cooldown enforcement:
Buy Signal (▲) : Green triangle placed below the bar when price first closes below the bottom band inner edge after the configured cooldown period has elapsed since the previous buy signal, identifying price entry into the lower ATR-offset demand zone.
Sell Signal (▼) : Red triangle placed above the bar when price first closes above the top band inner edge after the configured cooldown period has elapsed since the previous sell signal, identifying price entry into the upper ATR-offset supply zone.
Independent per-side cooldown tracking prevents consecutive signals on the same side while allowing the opposite side to signal freely, ensuring that transitions between upper and lower zone interactions are captured without artificial suppression.
Alert generation covers buy and sell zone entry events for systematic monitoring workflows.
Strategy Integration
3D Trend Vortex fits within momentum-informed band interaction and zone-based directional approaches:
Band Width Conviction Reading : Use band width as a continuous momentum quality gauge. Entering a position during a narrow-band high-slope period indicates stronger directional conviction than entries during wide-band low-slope conditions where momentum quality is reduced.
Zone Entry Signal Framework : Use buy and sell signals as structural alerts that price has reached the ATR-offset zone of interest rather than as standalone entry triggers. Evaluate slope direction and band width at the signal bar to assess whether the zone entry occurs during supporting or deteriorating momentum conditions.
Candle Gradient Momentum Monitoring : Use the brightness of trend-colored candles as a bar-level momentum reading throughout the trend. Progressively brightening candles indicate strengthening slope. Dimming candles within an established trend suggest momentum deterioration before band width changes confirm it visually.
3D Extrusion Spatial Reference : Use the three-dimensional band faces at the current bar edge as a visual anchor for where the current supply and demand zones sit relative to price, with the depth extending into future chart space providing an intuitive structural reference for the zone boundaries.
Basis Type Selection : Use EMA for standard responsive trend tracking. Use HMA for lower-lag applications requiring faster slope detection with minimal smoothing delay. Use WMA for weighted recent-bar emphasis. Use SMA for a simpler unweighted baseline reference.
Multi-Timeframe Band Alignment : Apply higher-timeframe slope direction and band positioning as a directional bias filter, engaging with lower-timeframe zone entry signals only when they align with the established higher-timeframe momentum state.
Technical Implementation Details
Basis Engine : Configurable EMA, SMA, WMA, or HMA with slope measurement and normalization against eighty-bar highest absolute slope
Band Construction : Smoothed ATR offset and width with slope-derived breathing modulation across four band edges
Gradient System : Eight equal subdivisions between inner and outer band edges with plot-fill pairs at progressively increasing transparency
3D Extrusion : Polyline polygon arrays for outer face, top face, and inner top face of each band using depth-offset bar index and ATR height coordinates
Signal Logic : Zone entry detection with independent per-side cooldown bar tracking
Candle Coloring : Power-transformed slope normalization mapped to trend-color gradient
Performance Profile : 3D extrusion triggered only on last bar with full polyline rebuild and cleanup each render cycle, configurable display length cap for object management
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Intraday zone monitoring for scalping with shorter basis length and tighter band offset for responsive zone positioning on fast intraday momentum
15 - 60 min : Session-level momentum band tracking with balanced basis length and moderate offset for meaningful zone separation across typical intraday swings
4H - Daily : Swing-level momentum band analysis with longer basis length for sustained slope readings and wider offset reflecting larger price excursions from trend
Suggested Baseline Configuration:
Basis Length : 21
Basis Type : EMA
Band Offset (ATR×) : 3.0
Band Width (ATR×) : 0.9
Band Smoothing : 65
3D Display Length : 400
3D Depth (Bars) : 8
3D Height (ATR×) : 0.5
Show Signals : Enabled
Signal Cooldown : 20
Color Candles : Enabled (requires disabling original chart candles in chart settings)
These suggested parameters should be used as a baseline; their effectiveness depends on the instrument's volatility characteristics, typical ATR range, and preferred band sensitivity, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
Bands too far from price : Decrease Band Offset to bring the inner band edge closer to price, reducing the ATR distance required for price to reach the signal zone.
Bands too close to price : Increase Band Offset to push bands further from price, requiring more significant price extension before zone entry signals fire.
Band width breathing too pronounced : The breathing effect scales with slope normalization. On instruments with highly variable slope the breathing range may appear extreme. Reduce Band Width to compress the overall width range and make breathing less visually dramatic.
Bands too jagged or smooth : Adjust Band Smoothing to control EMA smoothing on band edges. Higher values produce smoother, more gradual band curves. Lower values produce more responsive edges that track price structure changes faster.
Too many signals : Increase Signal Cooldown to enforce greater bar separation between consecutive zone entry signals on the same side, focusing attention on less frequent but more structurally spaced entries.
3D extrusion too deep or shallow : Adjust 3D Depth (Bars) to change the horizontal extent of the extruded faces and 3D Height (ATR×) to change the vertical depth of the extrusion, calibrating the spatial effect to the chart's aspect ratio and zoom level.
3D extrusion covers too many or too few bars : Adjust 3D Display Length to control how many recent bars receive the polyline extrusion rendering, reducing for performance on slower systems or increasing to extend the visual depth effect further back into price history.
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
Trending markets with clear directional momentum where slope normalization produces meaningful band breathing dynamics and candle gradient provides reliable conviction context throughout the trend
Instruments with consistent ATR behavior where the volatility-scaled band offset positions zones at structurally meaningful distances from price across varying market conditions
Zone interaction strategies where price reaching the ATR-offset band boundary identifies structurally significant extension events worth monitoring for reversal or continuation behavior
Visualization-focused workflows where the three-dimensional band geometry provides spatial chart reading advantages that improve structural awareness relative to flat two-dimensional bands
Reduced Effectiveness:
Choppy, trendless markets where slope alternates rapidly in direction, causing frequent trend color flips and band breathing that produces no sustained directional momentum context
Extremely high-volatility instruments where ATR spikes push band offsets to distances so large that price rarely reaches the zone boundaries and signals become infrequent regardless of cooldown settings
Low-ATR instruments where the extrusion height and band width produce visually imperceptible geometry requiring significant parameter adjustment to produce meaningful spatial depth
Markets with highly irregular slope profiles where the eighty-bar normalization window consistently registers outlier slope readings that compress the breathing range for typical bars
Consolidation environments where flat slope produces maximum band width expansion and near-neutral candle coloring simultaneously, reducing the visual differentiation that makes momentum context readable
Integration Guidelines
Confluence : Combine with BOSWaves order flow tools, structural analysis, or momentum oscillators to validate zone entry signals with broader analytical context before acting on band boundary interactions
Band Breathing Awareness : Monitor band width evolution throughout established trends as a continuous slope health indicator. Progressively widening bands during a trend suggest slope is weakening and conviction is diminishing before price structure confirms the change.
Candle Gradient Divergence : Watch for price extending toward the outer band while candles are simultaneously dimming, indicating momentum deterioration during price extension that may precede reversal toward the basis MA.
3D Depth Calibration : Adjust 3D Depth and Height parameters until the extrusion provides clear spatial depth without obscuring price action. The extrusion is a visualization aid and should complement rather than dominate the chart reading experience.
State Discipline : Maintain directional bias aligned with current slope direction until slope reverses. Zone entry signals within the same trend direction represent extension events rather than reversal triggers and should be interpreted as monitoring alerts rather than directional change signals.
Disclaimer
3D Trend Vortex is a professional-grade slope-adaptive trend visualization and zone monitoring tool. It uses moving average slope normalization with ATR-scaled breathing band construction and polyline three-dimensional extrusion but does not predict future price movements. Results depend on market conditions, instrument momentum characteristics, parameter selection, and disciplined execution. BOSWaves recommends deploying this indicator within a broader analytical framework that incorporates order flow context, structural analysis, and comprehensive risk management. Indicator

NeuPortal Market Compass - Empirical Bands, Regime & IndicesNeuPortal Market Compass is a single overlay that instruments any symbol on any timeframe with three layers of context plus a readout dashboard, so you get the useful curves, the envelope, a forward band and the key indices from one indicator instead of stacking five.
WHAT IT DRAWS
1) Trend curves. EMA fast / mid / slow (20 / 50 / 200 by default) and an optional VWAP. The classic structure read at a glance.
2) Volatility envelope. A standard Bollinger band (20, 2 by default) for immediate context on how stretched price is right now.
3) Empirical forecast band. This is the part that is different. Instead of a sigma*sqrt(t) projection, it reads the distribution of the chart's OWN realised H-bar moves over the history window and takes quantiles from it: a core 50% zone (25th to 75th percentile), a wide 80% zone (10th to 90th) and the median, all projected forward H bars into empty space to the right of the last candle.
Why empirical rather than parametric: real markets have fat tails and volatility clustering, so a normal, independent-returns assumption misprices the interval - and it does so in different directions at different horizons. Reading the quantiles straight from history avoids that assumption entirely. The band is only as trustworthy as the sample behind it, so the dashboard prints the number of INDEPENDENT windows (history window / horizon), not the inflated overlapping count.
DASHBOARD (top-right, movable)
- Regime: trend direction from the EMAs, with strength gated by ADX
- RSI, ADX, ATR% - momentum, trend strength and volatility at a glance
- Median, Core 50% and Wide 80% band edges for the chosen horizon
- Band width as a percent of price - how much the market itself says it can move
- Independent windows behind the band - the honest sample size
HOW TO USE
Set the Horizon to how many bars ahead you care about and the History window to how much past data feeds the distribution. Watch coverage over time: across many bars, price should sit inside the 50% core about half the time and inside the 80% band about eighty percent of the time. A band that contains price far more often than that is padded; far less often is overconfident. Both are information.
SETTINGS
Toggle each layer independently (EMAs, VWAP, Bollinger, band, dashboard), set all lengths, recolour the zones, move the dashboard, and optionally tint the background Indicator

Futures Session TWAP + Bands - CFD ChartsAn anchored TWAP (time-weighted average price) with 1/2/3-sigma bands that
knows when the real market is actually open — built for CFD and cash-index
charts whose 24h quotes distort classic session averages.
What makes it original: a TWAP weighs every bar equally, so on a 24h CFD chart
the thin overnight bars count as much as the liquid session and drag the line
away from the number execution desks reference. This indicator pulls the
volume of the auto-detected futures contract and uses it as a SESSION GATE:
only bars where the future actually traded are counted. It also plots an
optional futures-volume VWAP on the same anchor, so the TWAP-vs-VWAP spread
becomes readable at a glance — that spread is the point of the pair.
How it works:
- TWAP = equal-weight average of the chart's price (hlc3 by default) over the
anchor period (session/week/month); bands from the time-weighted variance.
- Session gate (optional, on by default): bars without futures volume are
skipped, so the TWAP covers the real trading session. Only session/volume
information is borrowed from the future — the price stays this chart's
price, so the futures-vs-cash basis cannot distort the level.
- The futures contract is auto-detected from the chart symbol (DAX/GER40 ->
FDAX, NAS100 -> NQ, US30 -> YM, UK100 -> Z, US500 -> ES), or set manually.
- Optional "Daily anchor = futures trading day" resets at the futures day
change instead of CFD broker midnight, matching the sibling VWAP tool.
- A status label shows the active source, the gate state and the current
VWAP-minus-TWAP spread.
How to use it: the TWAP is the fair time-average of the session — the line an
evenly-sliced execution would achieve. Compare it with the futures-volume
VWAP: VWAP above TWAP means volume was concentrated above the time average
(participants paid up), VWAP below TWAP means volume traded below it. The two
lines glued together signals balanced rotation; a widening spread marks
one-sided participation. The 2/3-sigma bands frame statistically stretched
zones relative to the session mean. Check the status label once after loading
to confirm the futures feed is active.
*This script is part of a consistent set of open-source session, range and
volume tools — the companions are on my profile.* Indicator

Indicator

Average Top / Bottom ChannelsThis script is designed to simplify price action by creating an average top and average bottom channel around the market. Instead of focusing on every candle, wick, and short-term price fluctuation, the indicator calculates recent swing highs and swing lows, averages them, and displays a clean visual range where price is moving over time.
The upper line represents the average of recent price tops, while the lower line represents the average of recent price bottoms. The area between them acts like a simplified trend channel, helping identify whether price is moving higher, lower, sideways, or stretching outside its normal range.
My preferred way to use this script is to hide the regular price chart after adding the indicator. This removes visual noise from the candles and makes it easier to focus on the overall direction, structure, and trend behavior. After that, I adjust the settings to fit the market and timeframe I am viewing.
Lower sensitivity settings make the channel react faster to recent price movement, while higher sensitivity settings create a smoother channel for broader trend analysis. The goal is not to predict every candle, but to simplify the chart so the larger trend and average price range become easier to see. Indicator

Zero-Lag GARCH Bands | NAL1. Overview
Zero-Lag GARCH Bands | NAL is an adaptive volatility band indicator built from a Zero-Lag EMA baseline and an optimized GARCH-style volatility engine.
The indicator does not use a standard fixed-width channel. Instead, it estimates market variance through a recursive GARCH framework, smooths that volatility with a Zero-Lag EMA, and uses the result to create dynamic upper and lower bands around price structure.
The purpose of the indicator is to identify when price escapes a volatility-adjusted regime boundary, while allowing the band width to adapt to the underlying variance environment.
2. Calculation
The indicator starts by estimating volatility from lagged log returns. These returns are squared to create a variance component, which becomes the foundation of the GARCH model.
GARCH_LogReturn = math.log(close / close )
GARCH_SquaredLogReturn = math.pow(GARCH_LogReturn, 2.0)
GARCH_RealizedVariance = ta.sma(GARCH_SquaredLogReturn, GARCH_Lookback)
The script then searches through possible coefficient weights to find a beta/lambda value that better fits recent realized variance behavior. A second optimization loop is used to estimate gamma, which controls the long-run variance contribution.
These optimized coefficients are combined into a GARCH-style variance model using three components: long-run variance, recent shock variance, and lagged variance.
GARCH_Variance =
GARCH_Gamma * GARCH_LongRunVariance +
GARCH_Alpha * GARCH_SquaredLogReturn +
GARCH_Beta * GARCH_LaggedVariance
After the variance estimate is created, it is smoothed using a Zero-Lag EMA. This gives the volatility engine a faster response while still reducing noise.
GARCH_ProjectedVariance = f_zlema(GARCH_Variance, GARCH_SmoothLen)
GARCH_Volatility = math.sqrt(math.max(GARCH_ProjectedVariance, 0.0))
The baseline is also built with a Zero-Lag EMA, applied after a light EMA pre-smoothing step. This creates the central reference line for the band structure.
The final bands are created by scaling the Zero-Lag GARCH volatility against the selected source and band pressure setting. Higher band pressure creates a tighter band, while lower pressure allows the band structure to expand.
upperBand = baseline + (baseline_src / band_pressure) * GARCH_VolatilityMultiplier
lowerBand = baseline - (baseline_src / band_pressure) * GARCH_VolatilityMultiplier
A bullish state triggers when price closes above the upper band. A bearish state triggers when price closes below the lower band. When price remains inside the bands, the previous regime is held.
3. Key Features
Zero-Lag EMA baseline for reduced-lag price structure.
Optimized GARCH-style volatility engine.
Adaptive variance model using shock, lagged, and long-run components.
Zero-Lag smoothing applied to projected volatility.
Dynamic upper and lower volatility bands.
Band pressure control for adjusting channel tightness.
State-based candle coloring, band coloring, glow effect, and directional fills.
4. Use
Zero-Lag GARCH Bands is designed to identify when price begins escaping its volatility-adjusted structure. A close above the upper band reflects bullish expansion, while a close below the lower band reflects bearish expansion.
The GARCH engine gives the indicator a deeper volatility layer than a standard ATR or deviation channel. Instead of only measuring recent range, it models variance behavior and projects that into the band structure.
This indicator is best used as a specialized module within a complete strategy framework. Its role is to isolate volatility-adjusted regime expansion, where price is evaluated against a dynamic variance boundary rather than a static channel. The full value comes from how this volatility regime signal is integrated into a broader process for timing, structure, and execution.
Indicator

Conformal Reversion Bands Self-Calibrating CoverageConformal Reversion Bands — Self-Calibrating Coverage
What it is
Ordinary bands lie about themselves. A Bollinger "2σ" band or an ATR band asserts a coverage it does not deliver — real price isn't Gaussian, so the band that's supposed to contain 95% of bars might actually contain 88% or 98%, and that fraction drifts as volatility changes. The label and the chart disagree.
Conformal Reversion Bands fix this. You choose the coverage you want (e.g. 90%), and the band's half-width is a nonconformity quantile that is tracked online so the realised coverage actually converges to your target — and self-corrects when it drifts. The indicator then displays target vs realised coverage live, so you can see the guarantee holding instead of taking it on faith. A breach of a calibrated 95% band means something precise: price did what it does under about 5% of the time — a genuine rare excursion, and a mean-reversion (fade) candidate back toward fair value.
How it works (and why this specific method)
Centre — a fair-value line the bands revert to: session VWAP by default (auto-fallback to a robust rolling median on symbols without reliable volume), or EMA / median by choice.
Score — the absolute deviation of price from the centre. Its running quantile is the band half-width.
Online calibration — this uses the quantile tracker ("conformal P control") of Angelopoulos, Candès & Tibshirani (2023), with an optional error integrator ("PI control"). This is deliberately chosen over the older Adaptive Conformal Inference (ACI): ACI adapts the significance level and can occasionally produce infinite or null intervals; tracking the quantile on the scale of the scores cannot degenerate that way, so the bands stay finite and well-behaved on live charts. ACI is in fact a special case of the tracker.
Volatility-normalized scores (locally adaptive) — scores are normalized by a local volatility estimate before calibration (the Papadopoulos–Gammerman–Vovk normalized-nonconformity idea), so the band width breathes with volatility bar-by-bar. This targets conditional coverage — not too wide in calm tape, not too narrow in fast tape — instead of only a global average.
Decaying step size — the learning step shrinks as calibration matures (Angelopoulos–Barber–Bates) for tighter long-run coverage, floored so the bands never stop adapting to new regimes.
Self-check — a trailing window measures realised coverage for both bands and reports how closely it tracks target. That readout is the whole point: it makes the band's core claim verifiable on your own chart. Note the honest theoretical ceiling: exact conditional coverage is impossible distribution-free; normalization gets most of the practical way there at negligible cost.
Everything advances only on confirmed bars: the band shown on a bar is calibrated on scores up to the previous bar, then that bar is tested against it — no hindsight fitting.
How to use it
Add to any liquid symbol/timeframe; set the coverage you want for the inner and outer bands. Defaults suit index futures; change the price/volume sources in Data source for any other market.
Read the dashboard headline first: it states CALIBRATED / ADAPTING / WARMING in plain language, with a colour anyone can read at a glance. When the inner and outer rows show target and realised % matching (✓), the bands are provably doing their job.
Treat an outer-band breach as a statistically rare excursion — a fade-toward-centre candidate (optional close-back-inside confirmation).
Watch COMPRESSION: a low band-width percentile means the bands are unusually tight (a volatility squeeze — expansion often follows); a high percentile means unusually wide.
Divergences (price vs the band's own normalized deviation, or RSI — your choice) are drawn as lines on price for context.
The dashboard and the identity label are separate toggles; the price/volume sources, coverage targets and every window are adjustable. Works as an honest, self-calibrating replacement for Bollinger/Keltner/ATR bands anywhere you use deviation bands.
What makes it original
Almost nothing on PulseWire ships real conformal prediction, and — as far as the author is aware — nothing ships the modern quantile-tracker / PI-control variant with a live coverage readout that proves the band's claim on-chart. The contribution is bringing a 2023-frontier uncertainty-quantification method to price bands in a form a trader can verify at a glance, rather than a σ-multiplier that only pretends to a coverage level. The band-width compression read and the band-native divergence are natural, honest by-products of the same construction — context, not a signal service.
Concept credits
Conformal prediction — V. Vovk, A. Gammerman, G. Shafer. Normalized nonconformity — H. Papadopoulos, A. Gammerman, V. Vovk (2008). Adaptive Conformal Inference — I. Gibbs & E. Candès (2021). Quantile tracker / Conformal PID control — A. Angelopoulos, E. Candès & R. Tibshirani (2023). Decaying step — A. Angelopoulos, R. Barber, S. Bates (2024). VWAP — classical. Implementation and charting design are the author's own.
Important disclaimer
Research and education only. Not financial advice, not a signal service, not a guarantee of future results. Coverage is a statistical property of the band width — it is not a claim that fading breaches is profitable. The readout is descriptive of the past on the current chart, not a forward guarantee. Validate independently, apply realistic costs and slippage, and manage your own risk. Indicator

Indicator

Median Point of ControlMedian Point of Control calculates and displays the median OHLC4 price for customizable time periods, along with percentage-based upper and lower bands. It provides a statistical reference framework for identifying potential support, resistance, and mean-reversion zones.
What It Does
This indicator computes the median of all OHLC4 values within a defined period and plots three horizontal levels:
Median Line — The statistical middle price of the period
Upper Band — Median + user-defined percentage
Lower Band — Median - user-defined percentage
The current period's levels update dynamically as new bars form. Completed periods are preserved as historical reference lines.
Why Median Instead of Average?
The median is the "middle" value when all prices are sorted. Unlike the mean (average), the median is resistant to outliers — a single extreme wick or price spike won't distort the level. This makes it more representative of typical price action during the period.
Two Calculation Modes
Timeframe Mode Define periods using standard timeframes: 4H, Daily, Weekly, Monthly, etc. The indicator automatically detects when each period begins and ends.
Bars Mode Define periods by a fixed number of bars (e.g., every 50 bars, every 100 bars). Useful for non-time-based analysis or custom period lengths that don't align with standard timeframes.
Settings
Calculation Mode: Choose between Timeframe or Bars
Timeframe: Period length when using Timeframe mode
Bars: Number of bars per period when using Bars mode
Band Distance (%): Percentage offset for upper/lower bands from median
Line Colors: Customize colors for median, upper, and lower bands
Line Width: Thickness of the plotted lines
Historical Transparency: Opacity of completed period lines
Max Historical Periods: Number of past periods to display
How To Use
Identify the range: The upper and lower bands create a price envelope based on the period's median. When price approaches these levels, watch for reactions.
Mean reversion reference: The median line represents the "fair value" of the period. Price tends to oscillate around this level.
Breakout detection: If price breaks and holds beyond a band, it may signal trend continuation rather than reversion.
Multi-timeframe analysis: Use Daily median on intraday charts to see where price stands relative to the day's statistical center.
Important Notes
This indicator does not predict price direction. It provides statistical reference levels only.
The current period's median updates with each new bar — this is expected behavior, not repainting.
Historical period lines are fixed once their period closes.
For best results, use on liquid instruments (stocks, forex majors, major crypto pairs).
Indicator

Elaris Mean Reversion ProElaris Mean Reversion Pro
Elaris Mean Reversion Pro is a multi-factor mean reversion indicator designed to help traders identify situations where price has moved significantly away from its statistical mean and may be entering a potential reversion phase.
The indicator combines adaptive deviation bands, volatility measurements, momentum filters, market regime analysis, and optional higher-timeframe confirmation to provide a structured framework for analyzing stretched market conditions.
Unlike simple overbought and oversold tools, Elaris Mean Reversion Pro allows users to customize how extremes are measured through Z-Score, ATR-based, or hybrid deviation models while incorporating optional confirmation layers such as RSI, MFI, volume, ADX, and higher-timeframe trend filters.
Key Features
• Multiple mean calculation methods including EMA, SMA, RMA, WMA, VWMA, and HMA.
• Three deviation models:
* Z-Score Bands
* ATR Bands
* Hybrid Bands
• Mean reversion signal engine with multiple confirmation styles:
* Extreme Touch
* Mean Reclaim
* Candle Rejection
• Optional RSI and MFI extreme-condition filters.
• ADX-based market regime filter to help identify environments where mean reversion conditions may be more relevant.
• Optional volume and volatility filters.
• Higher-timeframe confirmation framework.
• Signal quality scoring system.
• Dynamic mean, deviation bands, and reversion zones.
• Built-in dashboard displaying:
* Market state
* Z-Score
* Distance from mean
* Momentum readings
* Regime status
* Higher-timeframe bias
• Alert conditions for:
* Long mean reversion signals
* Short mean reversion signals
* Upper extreme zones
* Lower extreme zones
How It Works
The indicator calculates a central mean and measures how far price has deviated from that mean using statistical or volatility-based methods.
When price reaches an extreme deviation zone, the indicator evaluates additional confirmation factors such as candle behavior, momentum conditions, volatility, volume, and trend regime before generating a signal.
Signals are intended to highlight potential mean reversion conditions and should be evaluated alongside the trader's own market analysis and risk management process.
Non-Repainting
This indicator uses confirmed bar logic and higher-timeframe requests with lookahead disabled. Signals are generated using closed-bar information and do not intentionally repaint historical signals.
Notes
Mean reversion techniques may behave differently across various market conditions. Strong directional trends, high-impact news events, and volatility expansions can influence market behavior and should always be considered when interpreting indicator outputs.
This tool is designed for market analysis and educational purposes only and does not constitute financial advice.
Indicator

Options Probabilistic Bounds [InferredSignals]█ OVERVIEW
Options Probabilistic Bounds (OPB) draws a forward price corridor on the daily chart — an upper and a lower band projected over a horizon you choose (1 to 20 trading days) at a confidence level you choose (default 95%).
In plain words: given how this stock has actually been moving, where could the CLOSING price realistically land over the next few days? The corridor is calibrated so that, at each horizon, roughly your chosen percentage of closes finish inside it.
It is built for option sellers — short puts in particular. The lower band is a statistically calibrated reference for where to place a strike. And because the corridor takes no view on direction, OPB adds something most volatility tools don't: a drift readout that tells you which side currently has the wind at its back, so you can see whether puts or calls are the safer leg to sell right now.
No option-chain data is used anywhere — no implied volatility, no greeks, no implied-vol skew. "Options" describes who the tool is for, not what it reads. OPB is a pure statistical model of the underlying's own price history.
█ WHAT MAKES IT ORIGINAL
• Per-symbol MAP-style calibration, entirely in Pine.
Parameters are fitted to each ticker by minimizing a penalized negative log-posterior — Student-t likelihood, Bayesian-style priors, and residual-moment penalties combined in one objective — searched multi-start and coarse-to-fine, with the winner chosen on residual quality, not likelihood alone. The result: less in-sample curve-fitting and a steadier calibration than a plain best-fit vol model.
• Two-component, leverage-aware GJR-GARCH variance.
A slow long-run level plus a faster mean-reverting short-run component, so a volatility shock decays over a few days instead of holding the corridor wide for weeks. Negative-return days get a specific leverage response — downside risk is modeled, not averaged away.
• Filtered historical tails with EVT extension.
The residual body is empirical (Filtered Historical Simulation); each tail is extended with a Generalized Pareto fit whose shape and scale are estimated in closed form by Probability-Weighted Moments (Hosking-Wallis) — more stable than method-of-moments or MLE on the small tail samples you actually get. The shape is floored at zero so equity tails are never assumed bounded, and with too few exceedances it falls back to empirical quantiles rather than overfitting noisy extremes.
• Data-driven downside asymmetry.
The downside leverage increment is routed fully to the lower band; the upper band receives only a data-driven semivariance fraction. The corridor widens below only as far as the symbol's own history justifies.
█ THE DRIFT READOUT — WHICH SIDE TO SELL
The bands are DRIFT-NEUTRAL by design: centered on today's close, never tilted up or down. Over 1–20 days, direction is effectively unestimable from price history — and a wrong directional bet would quietly under-reserve the downside, the worst place to be short a put. So the whole band width is spent on dispersion, none of it gambled on a direction the data can't support.
OPB still measures the recent drift and reports it as a small number next to σ, in :
• ↑ : favors puts — the stock has been drifting up, so the put leg has had a cushion.
• ↓ : favors calls — drifting down, the call leg has had the cushion.
• flat — no meaningful drift.
Practical read: it is usually safer to sell the leg the drift is moving AWAY from — sell puts into an uptrend, calls into a downtrend. The wind at your back.
In the backtest this shows up cleanly: on a strongly trending stock the drift-neutral bands breach the TREND side more often than the nominal rate, while the opposite side stays close to it. This is expected, not miscalibration — the corridor is honestly direction-agnostic, so the band width itself stays unbiased and the extra breaches on the trend side are pure drift. The takeaway matches the readout: the side you should be selling — the one the trend is moving away from — is the side that stays calibrated. One caveat: the drift readout is the RECENT past, never a forecast — a strong reading is often exactly where mean-reversion becomes most likely. The fat-tailed band remains the real safety net.
MU · daily · walk-forward, monthly recals. On this uptrend the trend side (Brch+) runs well above nominal while the put-sell side (Brch−) holds at/below its 2.5% target — the drift asymmetry described above, in numbers.
█ HOW TO USE IT
• Set a horizon (e.g. 5 days) and a confidence level (e.g. 95%).
• Read the upper/lower band at your horizon as a strike-placement reference.
• Glance at the drift readout to pick the safer leg — puts vs calls.
• Turn on the walk-forward backtest and check: Close-in ≈ your confidence level; Brch+ / Brch− near the per-side rate and reasonably balanced; NT dn = how often a lower-band strike was never touched over the whole path — the number that matters for assignment.
• Optional PIT diagnostic: D ≈ 1 well-sized, D < 1 too wide, D > 1 too narrow. Read h = 1 first (least affected by overlapping windows).
• Anchor mode D-1…D-5 freezes the corridor as it looked N days ago, calibrated only on data known then — handy to inspect how past corridors held.
█ SETTINGS
Defaults are robust and research-oriented: Horizon 5d · Confidence 95% · Calibration window 252d · Two-component variance ON · Leverage-asymmetric bands ON · Earnings-gap neutralization ON.
"Long-run half-life" sets how steady the long-run volatility baseline is — a higher value keeps it stiffer after a shock, which (with the two-component model on) reduces post-shock over-widening.
Every input ships with a plain-language tooltip. Daily timeframe only. Calibration runs on the last bar for performance; walk-forward recalibration is monthly, a Pine execution-time constraint.
█ WHAT IT IS NOT
• Not a directional forecast — the corridor is drift-neutral, centered on the anchor close.
• Not a joint path bound — confidence targets the close at each horizon separately; the chance of touching a band along the path is the separate No-Touch figure (see backtest).
• Not an option-pricing model — no implied volatility, greeks, or option-chain data.
• Not a guarantee — the backtest and PIT diagnostics are historical calibration evidence, not a promise of future coverage.
Full methodology, equations, and references are documented section by section in the source code. This is a research and educational tool, not investment advice.
Indicator

Keltner Channel ATR StretchKeltner Channel ATR Stretch is a Keltner Channel variant designed to show trend bias, price stretch, and volatility width in one compact view.
The script uses an EMA basis with ATR-scaled upper and lower bands. In addition to the channel itself, it normalizes the selected Source's distance from the EMA basis as Stretch, normalizes the EMA basis slope in ATR units as Bias, and ranks the current channel width against its recent min-max range as Width Rank.
The goal is not to create trade signals. The goal is to make the current chart state easier to read: whether price is inside the channel, moving with a trend bias, pulling back toward the basis, stretching beyond the outer band, reaching an extreme band, or returning inside the channel after an outside move.
Dashboard reading:
Bias shows the EMA basis direction normalized by ATR:
Bullish, Bearish, or Neutral.
Position shows where the selected Source is relative to the channel:
Trend Zone, Pullback, Upper Stretch, Lower Stretch, Extreme, or Inside.
Volatility shows the current channel width regime:
Quiet, Normal, or Expanded.
Stretch shows the distance from the EMA basis in outer-channel units.
A value near +1 means price is near the upper outer band.
A value near -1 means price is near the lower outer band.
Slope shows the EMA basis slope in ATR units.
Width Rank shows the current channel width relative to its recent min-max range.
It is a simple 0-100 rank of the current width inside its own recent range, not a statistical percentile.
How it works:
The basis is an EMA of the selected Source.
The outer bands are calculated as:
Basis plus or minus ATR multiplied by the ATR Multiplier.
The inner bands are a fractional zone inside the outer channel.
The optional extreme bands are a wider reference zone outside the outer channel.
Stretch is calculated as:
Source minus Basis, divided by the outer channel half-width.
Slope is calculated as:
Current EMA basis minus the basis from the selected lookback, divided by ATR.
Width Rank compares the current channel width to the lowest and highest channel width over the selected Width Rank Lookback.
Markers and alerts:
Upper stretch and lower stretch mark movement beyond the outer bands.
Upper extreme and lower extreme mark movement beyond the optional extreme band level.
Upper return inside and lower return inside mark when the selected Source moves back inside the outer channel after being outside it.
Trend bias changed marks a change in the ATR-normalized EMA basis direction.
Width regime changed marks a change between Quiet, Normal, and Expanded width states.
The Confirmed bars only setting is enabled by default. When it is enabled, markers and alerts evaluate only on closed bars. The dashboard reflects the current chart state, including the still-forming bar.
This is not a trading system. It is a visual analysis tool for reading channel position, trend bias, and volatility context. It does not provide trade instructions, entries, exits, or performance claims.
Limitations:
Keltner Channels are volatility-based bands and can expand or contract as ATR changes.
A stretch beyond a band does not necessarily mean price must reverse.
A quiet width regime does not guarantee expansion.
A bullish or bearish bias does not predict future direction.
Use this tool together with your own market context and risk management.
No financial advice.
This open-source script was written from scratch using Pine Script built-ins. No third-party Pine code was reused.
日本語補足:
Keltner Channel ATR Stretch は、EMAを中心にATR幅のチャネルを表示しながら、価格の伸び、EMAの傾き、チャネル幅の状態を同時に確認するためのインジケーターです。
右上のDashboardでは、Bias、Position、Volatilityを中心に、現在のチャート状態をすばやく確認できます。
Bias はATRで正規化したEMAの傾きです。
Position は価格がチャネル内、トレンドゾーン、押し目、上方向または下方向の伸び、極端な伸びのどこにあるかを示します。
Volatility はチャネル幅がQuiet、Normal、Expandedのどの状態にあるかを示します。
このスクリプトは売買システムではありません。
BUY/SELL、エントリー、利確、損切りを指示するものではなく、トレンド・行き過ぎ・ボラティリティの状態を読みやすくするための視覚補助ツールです。 Indicator

Volatility Forecast [EXCAVO]Forward Projection of the Bollinger Envelope with Adaptive Horizon and Slope Clamp
The Volatility Forecast takes the classical Bollinger Bands and
projects the basis and the bands forward by a configurable number of bars.
Slopes of the basis, standard deviation and ATR are estimated from linear
regression over a lookback window, then extrapolated through a smooth
curve into the right side of the chart. Small orange dots mark band
reclaim events on confirmed closed bars.
The forecast horizon adapts to the chart timeframe so the projection
stays meaningful at every TF, and a slope clamp prevents the bands from
ballooning into unrealistic territory after sharp regime shifts.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ HOW TO USE
Step 1 → Add the indicator. The current Bollinger Bands are
plotted on the chart and a dashed envelope extends to the
right with the projected basis and bands.
Step 2 → Read the projection. The projected upper and lower
bands show the most likely volatility envelope over the
next bars under the current trend and volatility regime.
Wider end = expansion expected; narrower end = compression.
Step 3 → Use the reclaim dots. A small orange dot below a bar
marks a confirmed bull band reclaim (price tagged the lower
band and pulled back inside). A dot above a bar marks a
bear reclaim. These are context, not entries.
Step 4 → Check the dashboard. The top right panel reads the
projection mode, current width vs its rolling average,
band state, and the last reclaim.
Step 5 → Combine with structure. The envelope pairs well with
trend and structure tools. A breakout that aligns with an
expanding projected envelope tends to continue; one against
a contracting envelope tends to fade.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ HOW IT CALCULATES
◆ Bollinger Bands
Basis is a simple moving average of the source over Length (default 20).
Standard deviation is computed over the same window. Bands are basis plus
or minus Multiplier times standard deviation (default 2.0). These are the
solid plotted lines on the chart.
◆ Linear Regression Slopes
For the projection, the algorithm estimates per-bar slopes from a linear
regression of the basis, the standard deviation, and the ATR over the
Slope Lookback window (default 40). Slope is taken as the difference
between the linreg value at offset 0 and offset 1 - the per-bar drift
the regression expects to continue.
◆ Slope Clamp
Each slope is then clamped to a safety bound so that the cumulative
projected displacement stays sensible. End to end, the projected basis
cannot drift more than two current band-widths, and the projected
standard deviation or ATR cannot grow more than 50% of its current value.
Sign of the slope is preserved so trend direction is intact, only the
magnitude is bounded. This keeps the projection meaningful after sharp
regime shifts.
◆ Forward Projection
Three modes turn slopes into a projected envelope across the forecast
horizon:
Linear extends basis and width on a straight line using the
current slope at every step.
Smooth Curve (default) eases from the current value toward a
dynamic endpoint via a smoothstep curve so the projection has a
natural arc instead of a hard linear extrapolation.
Adaptive Volatility drives the projected width with ATR slope
instead of standard-deviation slope. Useful when volatility is
regime-dependent and the ATR captures it better than stdev.
A projection floor at 50% ensures the envelope never collapses to a
single point on declining-volatility regimes.
◆ Auto Timeframe Forecast
Forecast Bars defaults to Auto, which picks the horizon from the chart
timeframe: 40 bars on 4h and below, 20 on Daily, 10 on Weekly, 6 on
Monthly+. Manual override is available for operators who want a fixed
bar count regardless of timeframe.
◆ Band Reclaim Markers
A bull reclaim fires when the prior bar's low touched the lower band,
the current bar's low has pulled back above the lower band, and the
close sits below the basis. A bear reclaim is symmetric on the upper
band. Cooldown of Length bars prevents same-direction stacking. The
optional Trend MA filter keeps bull marks only above the MA and bear
marks only below. By default markers fire only on confirmed closed bars
(no repaint); Real-time Markers can be enabled if intra-bar feedback is
preferred.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ WHAT MAKES IT DIFFERENT
◆ Adaptive Horizon
The forecast horizon scales with the chart timeframe. The projection
shows a comparable arc on intraday, daily, weekly and monthly without
manual tuning per chart.
◆ Slope Clamp Safety Net
Linear-regression slopes can overshoot after sharp moves or on long
horizons. The clamp caps the cumulative displacement so the projection
cannot grow into unrealistic ranges, regardless of the underlying slope.
◆ Three Projection Modes
Linear, Smooth Curve and Adaptive Volatility cover the common shapes a
volatility envelope can take. Smooth Curve uses smoothstep easing for
a natural arc; Adaptive Volatility ignores stdev drift and tracks ATR
instead.
◆ Confirmed Reclaim Markers
Small orange dots above or below the bar mark band reclaim events. They
fire on confirmed closed bars by default (no repaint), with an optional
real-time mode for operators who prefer intra-bar feedback. A trend-MA
filter keeps the bias clean.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ DASHBOARD
Real-time panel with the current state read:
Mode - Linear / Smooth Curve / Adaptive Volatility
Width vs Avg - current band width relative to its rolling average
Band State - where price sits in the bands (Above Upper / Below Lower / Upper Half / Lower Half)
Last Marker - direction and bars since the last band reclaim
Legend table explains every on-chart element. Both panels toggle in the
Dashboard settings.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ SETTINGS
Bollinger Bands
Source - close (price series used for basis and stdev)
Length - 20 (lookback for basis and stdev)
Multiplier - 2.0 (band width in stdev units)
Basis / Band / Fill Colors - default palette
Forecast Envelope
Forecast Bars Mode - Auto (adapts to chart TF) or Manual
Forecast Bars (Manual) - 40 (used when Mode = Manual)
Slope Lookback - 40 (linreg window for slope estimation)
Mode - Smooth Curve (Linear / Smooth Curve / Adaptive Volatility)
Projection Style / Width / Colors - dashed, default palette
Fill Projection - ON
Reclaim Markers
Show Markers - ON
Real-time Markers - OFF (no repaint by default; closed bars only)
Filter by Trend MA - ON
Trend MA Type - SMA (SMA / EMA / WMA / HMA)
Trend MA Length - 100
Marker Color - orange (#FF8C00)
Show Trend MA - OFF
Dashboard
Show Dashboard - ON
Dashboard Position - Top Right
Show Legend - ON
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ ALERTS
Two directional alertconditions are exposed:
Bull Band Reclaim - fires on a confirmed bull reclaim event
Bear Band Reclaim - fires on a confirmed bear reclaim event
Set the alert condition to "Once Per Bar Close" for clean, non-repainting
delivery. Trend-MA filter and cooldown apply to alerts the same way they
apply to the on-chart markers.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Best regards,
EXCAVO
Disclaimer
Trading involves significant risk. This indicator is a technical analysis
tool and does not constitute financial advice, investment recommendations,
or a guarantee of future results. Past indicator behavior does not
guarantee future performance. Always use proper risk management and your
own judgment.
Indicator

Aurora Trend Channels [Pineify]Aurora Trend Channels
A volatility-adjusted trend channel built around a Volume-Weighted Moving Average (VWMA) center and Average True Range (ATR) outer bands. Unlike standard Bollinger Bands — which expand with statistical price deviation — the outer bands here track true-range volatility, including gap moves, and the center responds to volume weight rather than giving every candle equal influence. The channel shifts color with trend direction, and breakout signals fire only when price exits the outer ATR envelope, filtering out the weak cross-center noise that produces most false signals in simpler systems.
Key Features
VWMA center line: high-volume candles steer the trend reference more than low-volume ones, aligning the basis with where real trading activity occurred
ATR-scaled bands: channel width expands during volatile sessions and contracts during quiet ones — the envelope automatically adapts to current market conditions
EMA post-smoothing: a second smoothing pass over the raw VWMA and ATR values removes single-bar spikes without adding significant lag, producing cleaner channel edges
Dynamic color coding: the entire channel flips between bullish green and bearish red in real time, giving an instant visual read on the current trend state
Split-zone fills: the upper half of the channel is shaded bullish, the lower half bearish, so you can immediately see where price sits within the structure
Outer-band breakout signals: BUY and SELL labels appear only when price crosses outside the ATR bands — a higher bar than a simple basis crossover
Alert conditions for both breakout directions, compatible with PulseWire's built-in alert system
How It Works
The calculation runs in two stages: building the channel, then smoothing it.
VWMA basis: Each bar's close is weighted by its volume over the Channel Length lookback. High-volume candles pull the moving average toward the prices at which the most trading happened — a demand-weighted trend reference rather than a simple time average.
ATR envelope: The Average True Range over the same lookback is multiplied by the Band Multiplier and added/subtracted from the VWMA. ATR accounts for gap moves that high-low range ignores, so the bands genuinely reflect the full volatility environment.
EMA smoothing: Both the raw VWMA and the raw band values are passed through an EMA of length Smoothing Factor . This second pass removes the jagged edges that appear when a single high-volatility bar distorts the ATR calculation, without requiring a longer primary lookback.
Trend coloring: A simple price-versus-basis comparison determines channel color on each bar. The VWMA already embeds volume context, so a bare close comparison is sufficient — no additional filter is needed.
Signal conditions: Buy signals trigger on crossover (close crosses above the upper band), sell signals on crossunder (close crosses below the lower band). Crossing the outer ATR band means price moved beyond the typical volatility range, not merely through the center — it takes more momentum to get there.
How the Components Work Together
The core design choice here is pairing a volume-sensitive center with a volatility-sensitive envelope. Either alone has a weakness: a VWMA reacts to where volume traded but does not adapt its width to current market conditions; ATR bands sized around a simple SMA treat every candle's price equally regardless of liquidity. Combining them gives a channel that is anchored to real trading activity on the vertical axis and calibrated to actual volatility on the horizontal axis.
The EMA smoothing layer serves a specific function that would be lost with a single longer lookback. A longer primary window reduces noise but also makes the channel slower to respond to trend changes. Post-smoothing via a short EMA removes the erratic single-bar edges while keeping the primary length aggressive enough to track trends in real time. The result is a channel that reacts quickly but does not telegraph every spike.
Because signals require a full close outside the outer band rather than a touch or intrabar breach, they are naturally scarce. On a daily chart using default settings, expect a few signals per month rather than a few per week — which means each one carries more weight but also that the indicator is not designed for high-frequency entries.
Trading Ideas and Insights
Use the buy signal as an initial breakout entry trigger, then use retests of the upper band as add-on levels on the assumption the band becomes dynamic support after a breakout. A failure to hold the band after retest may indicate the move is exhausting.
The channel fill colors work well as a trend filter for a separate entry system. If the channel is red, consider suppressing buy signals from another indicator until the channel flips green — a simple but effective regime filter.
On higher timeframes (daily, weekly), the VWMA center often acts as a mean-reversion target after extended moves. Price that runs far from the basis and then loses momentum may retrace toward it; this is not directly signaled, but visually obvious on the chart.
In ranging markets, price will oscillate between the bands without triggering outer-band breakouts. This is by design — the indicator is quiet in ranges and active in trending environments. If you see frequent small candles touching but not closing outside the bands, that is the market telling you conditions are not favorable for breakout trades.
Past patterns do not guarantee future results. All signals should be evaluated within the context of the broader market structure and combined with appropriate risk management.
Unique Aspects
VWMA as the trend center, not SMA or EMA — the volume weighting means the channel is anchored where liquidity was concentrated, not just where time passed
ATR bands instead of standard-deviation bands: the outer envelope reflects the full range including gaps, making it more robust on instruments with frequent overnight moves or news-driven spikes
Two-stage smoothing design: the primary length drives responsiveness, the post-smooth EMA removes erratic band edges — decoupling these two concerns rather than collapsing them into a single longer period
Breakout signals on outer band crosses only — no signals on basis crossovers, which substantially reduces noise on trending instruments
Split fill that shades upper and lower zones in separate colors, giving an intuitive sense of channel structure without relying solely on the band lines
How to Use
Add the indicator to any chart. It works on all timeframes and instruments, though it was designed primarily for trending markets on the daily and 4-hour charts.
Observe the channel color. Green indicates price is above the VWMA (bullish); red indicates below (bearish). Use this as a broad market context filter.
Watch for BUY labels (triangle below bar) when price closes above the upper band, and SELL labels (triangle above bar) when price closes below the lower band. These indicate breakouts beyond the typical ATR volatility range.
After a breakout signal, watch whether price holds the outer band on any pullback. A clean retest and bounce can serve as a secondary entry point.
To set alerts: right-click the indicator → Add Alert → select "Aurora Buy Alert" or "Aurora Sell Alert".
Customization
Channel Length (default: 20) — Controls both the VWMA lookback and the ATR period. Lower values (10–14) produce a fast, reactive channel suitable for intraday charts. Higher values (30–50) create a more stable channel that filters out shorter swing noise, better suited to daily or weekly context.
Band Multiplier (default: 2.0) — Scales the ATR to set band width. At 2.0 on most instruments, outer band crosses are relatively uncommon — perhaps a few per month on a daily chart. Reducing to 1.5 produces more frequent signals; increasing to 2.5 or 3.0 reserves signals for only the most decisive momentum moves.
Smoothing Factor (default: 4) — The EMA period applied after the primary calculation. Values of 1–3 produce crisper but more jagged band edges; values of 5–8 create visually cleaner bands with slightly more lag at band turns. Most users will not need to change this.
Bullish/Bearish/Basis colors — Adjust to match your chart theme or personal preference without affecting calculation.
Conclusion
Aurora Trend Channels targets the specific problem of defining when a price move is large enough to matter — not just trending, but trending beyond the normal noise range. The VWMA-plus-ATR construction ties the channel to both volume activity and realized volatility, giving it more market context than either component alone. It works best as part of a broader system: the channel for trend direction and breakout signals, combined with a secondary tool for entry timing and position sizing within the trend.
Indicator

Adaptive Trend Expansion Bands [BigBeluga]Adaptive Trend Expansion Bands is an advanced, volatility-scaled mathematical modeling terminal engineered for PulseWire. It operates as a dynamic trend-following corridor system that maps asset extension, mean-reversion horizons, and structural exhaustion thresholds across four distinct mathematical volatility tiers.
Rather than relying on static channels or fixed-percentage envelopes, this system uses an adaptive algorithmic architecture. It combines a selectable baseline smoothing core (such as an EMA or HMA) with standard Average True Range (ATR) step multipliers. This approach maps predictable, gradient-shaded risk corridors that expand and contract in perfect synchronization with real-time market volatility.
🔵 SYSTEM ARCHITECTURE & EXECUTING CORE ENGINES
1. Smooth Multi-Engine Core Baseline
Selectable Mathematical Foundations: The central anchor line runs your preferred moving average smoothing type ( SMA, EMA, WMA, or HMA ). This allows you to tailor the script to act as a responsive high-velocity scalp line or an institutional trend tracking system.
Volatility Expansion Envelopes: Spawns four upper and four lower risk bands symmetrically off the baseline. Driven by the asset's raw ATR Length , these bands act as a multi-layered support and resistance map, defining exactly where price action transitions from normal distribution into extreme variance.
2. Asymmetric Structural Trend Inversion Locking
Zone 3 Structural Threshold Flipped Tracking: The script utilizes a structural state machine that changes color parameters only when a candle successfully forces a crossover above the upper Zone 3 band ( Bullish Lock ) or a crossunder below the lower Zone 3 band ( Bearish Lock ).
Clean Workspace Overwrites: Once a trend direction is verified, the engine overwrites your primary layout candle bars with clear, customized hex-theme presets ( Bullish/Bearish Base Colors ) to maintain absolute structural awareness.
Dynamic Zone-Tier Mapping Labels: When a structural trend shift occurs, the system prints crisp zone indicators ( +1 to +4 or -1 to -4 ) directly in the background spaces to immediately define the volatility tiers.
3. High-Variance Exhaustion Spotting (Zone 4 Hits)
Counter-Trend Spike Identifiers: The terminal flags moments when an active trend experiences a sudden, high-velocity counter-trend surge into deep premium or discount territory ( Zone 4 Extreme Target Layers ).
Localized Inversion Candlestick Highlights: The exact candle that spikes into a Zone 4 level is instantly recolored with a high-visibility contrast override ( Zone 4 Hit Candle Color ). This provides immediate visual warning of exhaustion before any pullback begins.
Anti-Overlap Cooldown Guardrails: Built-in index buffer logic ( Zone 4 Label Bar Gap ) prevents the system from cluttering your workspace with consecutive text labels during high-velocity runs.
4. Automatic Order-Tracking Boxes & Escape Latches
Historical Low/High Sizing Brackets: The moment a Zone 4 anomaly is logged, the graphical engine automatically anchors a structural box tracking the recent 3-bar high/low territory.
Dynamic Trailing Tracker Dashed Lines: Extends crisp upper and lower horizontal tracker boundaries from the exhaustion point. These dashed lines track the consolidation range and remain active until the market breaches either boundary, triggering a directional arrow glyph ( ▲ or ▼ ) to mark the breakout.
🔵 SYSTEMATIC EXECUTION STRATEGIES & RISK INTERPRETATION
Counter-Trend Overextension Inversions: When an asset is structurally trading in a downtrend but experiences an aggressive squeeze that spikes into the upper Zone 4 envelope, it triggers a Zone 4 exhaustion print. This alerts you that buyers have pushed deep into an illiquid mathematical ceiling. Look for short-side setups as price targets a mean-reversion move back down toward the primary baseline.
Zone Range Breakdown Continuations: Monitor the horizontal dashed tracking lines spawned by a Zone 4 hit. If price action consolidates inside these boundaries and then prints a strong close outside the high/low bracket, look to trade the breakout in that direction, using the opposite dashed line as a hard risk invalidation level.
Trend Health Assessment via Gradient Fills: Use the layered background fills to gauge trend strength. Healthy, sustainable trends typically ride smoothly along the Zone 1 and Zone 2 channels. When price aggressively pierces into Zone 3 or Zone 4, it signals a climax state, warning you to tighten trailing protective lines or take profits before a mean-reversion event.
🔵 INTERFACE CONFIGURATION AND PARAMETERS
Core Mathematical Tuning: Easily adjust baseline types, lookback periods, and baseline multipliers to optimize the indicator for any asset class, volatility cycle, or chart time frame.
Exhaustion Label Cleanliness Filters: Customize the bar index gap parameters to keep your layout workspace clean and legible during highly volatile market conditions.
Visual Theme Customization Modifiers: Fully adjust color properties for bullish states, bearish states, and exhaustion candle overrides to blend seamlessly into your dark or light charting interface.
Transform your charting layout from flat geometric indicators into a highly responsive, volatility-scaled risk map with the Adaptive Trend Expansion Bands terminal. Indicator

Bollinger Band [scoopup]Overview
A Bollinger Bands–based indicator that shows trend direction (up/down) through the basis line color, displays band width (volatility) as a percentage, and marks the most recent meaningful lows (demand zones) on the weekly and daily timeframes as boxes. It lets you view statistical volatility and the real low zones where buying previously stepped in — all on a single chart.
Default settings are Length 21 and StdDev 1.618, based on the Fibonacci number (21) and the golden ratio (1.618).
Components
1. Bollinger Bands (Upper / Basis / Lower)
Defaults: Length 21, StdDev 1.618
Upper band, basis (middle), and lower band. The bands widen and narrow with volatility.
2. Basis Line Trend Color (Daily-based)
The color of the middle basis line indicates trend direction.
Logic: over a set lookback, it compares the cumulative size of the "close-to-lower" area (red) versus the "upper-to-close" area (green).
Red area dominant → uptrend → basis line GREEN
Green area dominant → downtrend → basis line RED
The longer the close stays near the lower band (larger red area), the more it is read as base-building before a move higher.
This color is always calculated from Daily data, regardless of the chart timeframe. Whether you view it on the 15m, 1h, or 4h chart, the daily trend color stays consistent.
3. Fill
Upper band ↔ close: semi-transparent green
Close ↔ lower band: semi-transparent red
Lets you quickly read where the close sits within the bands.
4. Band Width (%)
Formula: (Upper − Lower) / Basis × 100
Displays the current band width in a corner table as Band Width: X.XX%.
Lower = volatility contraction (squeeze) → often precedes a large move; higher = volatility expansion.
The Data Window also shows band width % and band width (price difference), including on historical bars.
5. Recent Lows
Weekly recent low = yellow box / Daily recent low = red box
Shows only the most recent pivot (swing) low that sits below the current close. (Lows above the close are skipped; if the latest low is above the close, the prior low is used instead.)
Box height spans the low ↔ the close at that point, and extends to the right to show a still-valid support/demand zone.
How to Read It
Basis green + close near the lower band → watch for a potential bounce after base-building.
Basis red + close near the upper band → watch for overextension/pullback risk.
Band Width % contracting (squeeze) → watch for an upcoming volatility expansion.
Recent low boxes (yellow/red) act as first support candidates on a pullback. A close below the box signals support failure.
Key Settings
Bollinger Bands: Source, Length (default 21), StdDev (default 1.618), Band Color / Width / Style
Basis Line: Show Basis, Basis Width, Ratio Length, Up / Down Color
Fill: Show Fill, Upper / Lower Fill Transparency
Band Width: Show Band Width %, Table Position, Text Size
Recent Lows: weekly/daily toggles, Pivot Length, Box Color
Tips
This is a supporting tool for reading trend direction + volatility + support zones together, not a standalone trade signal.
Reliability increases when the daily trend color and a recent low box line up in the same area.
Adjust StdDev and Ratio Length to fit each instrument's volatility.
Disclaimer
This indicator is for reference only and does not guarantee trading profits. All trading decisions and responsibility rest solely with the user. Indicator
