Adaptive MACD Regime, Volatility Bands & Conviction# Adaptive MACD — Regime, Volatility Bands & Conviction
## What this is
This is a single, self-contained momentum framework built around **one normalized MACD core**. Instead of plotting a raw MACD and leaving you to judge it, the script surrounds that core with the context a momentum reading needs to be usable: a market-regime filter, an adaptive length stage, a multi-timeframe agreement check, a volatility band, and a conviction score that combines them into one number. It runs on **any symbol and any timeframe** — the price source and every optional reference feed are selectable in Settings.
It is a study/indicator (not a strategy). It does not place orders and does not claim any performance.
---
## Why these components are combined (mashup rationale)
A plain MACD only answers "is momentum up or down right now." On its own it has two well-known weaknesses: it whipsaws during sideways markets, and its fixed 12/26/9 lengths are arbitrary for any given symbol or timeframe. Each module below exists to fix a specific one of those weaknesses, and they are deliberately chained so the output of one informs the next:
1. **Normalized MACD core (L1)** — the MACD histogram is converted to a rolling **z-score**, so a reading of "+2" means the same thing on a low-priced FX pair, a high-priced index, or a 1-minute vs daily chart. Raw MACD values are not comparable across instruments; the z-score is. This is what makes the rest of the framework symbol-agnostic.
2. **Regime filter (L2)** — efficiency ratio + ADX + a volatility-clustering measure classify the market as **Trend / Range / Volatile**. This is used to decide whether a momentum signal should be trusted: MACD crosses are reliable in trends and noisy in ranges, so the regime gates and reweights the core signal rather than treating every cross equally.
3. **Adaptive length stage (L3)** — a dominant-cycle estimate (Ehlers homodyne) retunes the fast/slow/signal lengths toward the market's measured rhythm, instead of a static 12/26/9. You can switch this to a volatility-driven mode or fall back to fixed lengths. This directly addresses the "arbitrary lengths" weakness.
4. **Multi-timeframe confluence (MTF)** — the same MACD logic is evaluated on four higher timeframes, confirmed on bar close so it does not repaint. A single-timeframe cross is weak; agreement across timeframes is the filter.
5. **Volatility band + fade (L4)** — a volume-weighted standard-deviation band around price flags stretched conditions and band-rejection ("fade") setups, used as a mean-reversion counterweight to the trend logic.
6. **Conviction + vetoes (CON)** — all of the above are blended into a single **0–100 conviction score** with hard vetoes (e.g. counter-regime, timeframe disagreement, volatility spike). This is the part that turns several separate readings into one decision so you are not eyeballing five panels.
7. **Risk framework (RISK)** — once there is a signal, it derives an ATR stop, R-multiple targets, and a position-size suggestion from your account equity and risk %. This is shown as thin Entry / Stop / TP1 / TP2 lines on price.
In short: **L1 makes momentum comparable, L2 decides if it can be trusted, L3 tunes it, MTF confirms it, L4 adds a reversion check, CON scores it, and RISK frames it.** None of the layers is decorative — remove any one and the others lose context.
---
## How to use it
1. Add it to any chart and timeframe. It plots in its own lower pane; the trade levels and dashboard overlay on price.
2. Read the **dashboard header**: it shows the current action (BUY / SELL / HOLD / WAIT / FLAT) and the entry/stop.
3. Check **VERDICT + conviction**: a higher score with no active vetoes is a stronger context. Vetoes are listed explicitly so you can see *why* something is blocked.
4. Use **REGIME** to set expectations — trend-following signals make more sense in a Trend regime; the Stretch/Fade rows matter more in Range.
5. The **Entry / Stop / TP1 / TP2 lines** on price show the framework's risk levels for the current signal only; previous trade lines are removed automatically.
6. Optional feeds (reference symbol, volatility index, open interest, cross-asset) are **blank by default** — add your own symbols if you want those confluence inputs, or leave them off. The script degrades gracefully and tells you in the FEEDS row which are live.
---
## Settings worth knowing
- **Price source** — the series the whole engine runs on. Defaults to close; works on any market.
- **Optional reference feeds** — all blank by default and entirely optional, so the script is not tied to any one market or exchange. Enter symbols relevant to your instrument if you want them.
- **Adaptive length driver** — Homodyne (cycle-adaptive), Volatility, or Fixed.
- **Risk & sizing** — account equity, risk %, ATR stop multiple, and value-per-move; the size output is a suggestion only.
- **Dashboard theme** — Auto/Dark/Light; Auto flips colors to stay readable on white or black backgrounds.
- **Name / symbol / timeframe label** — kept on by default so the chart always identifies what is plotted.
---
## What makes it original
It is not a wrapper around a built-in MACD. The core is rebuilt to accept a *series* length (so it can be retuned every bar), normalized to a cross-asset z-score, gated by an explicitly classified regime, and merged with multi-timeframe state into a single weighted conviction score with named vetoes. The volatility-band fade logic and the dominant-cycle length adaptation are integrated into that same score rather than shown as separate, disconnected studies.
---
## Notes and limitations
- Confirm-on-close is on by default to avoid repainting; intrabar values can still update until the bar closes.
- The optional "Call/Put strike" row is a convenience hint derived from price and your strike interval only — **no options-chain data is read and no option P&L is implied.**
- Higher-timeframe and reference-feed requests depend on your data subscription; if a feed is unavailable the script disables the dependent input and continues.
---
## Disclaimer
This script is provided for educational and informational purposes only. It is a technical study, not investment, financial, or trading advice, and not a solicitation to buy or sell any instrument. It does not guarantee any result. Markets involve risk, including loss of capital. Indicator signals, levels, and the position-size suggestion are illustrative and must not be relied on as the basis for any trade. Always do your own research and consider consulting a licensed financial professional before trading. The author accepts no liability for any loss arising from use of this script. Past behavior of any indicator is not indicative of future results.
Indicator

Adaptive Momentum Strength Score (AMSS)There is a specific kind of frustration that every serious trader knows.
The setup looks right. The candle closes with conviction. The oscillator confirms. You enter and the move immediately stalls, reverses, or dissolves into noise. Later you realize the volume was weak, volatility never truly expanded, or directional pressure had already started fading before the entry.
That frustration is not a discipline problem. It is an information problem.
Most momentum indicators measure one piece of the puzzle. RSI measures price velocity. Volume indicators measure participation. Bollinger Bands measure volatility state. Each tells part of the story. The Adaptive Momentum Strength Score was built on the conviction that momentum quality can only be evaluated meaningfully when several complementary market forces are read together, not after the fact, but simultaneously, on every bar.
The Core Framework
The purpose of the composite score is straightforward: to answer not just whether price is moving, but whether the move is supported by the conditions that tend to give momentum its staying power.
The score is normalized between 0 and 100 and built from three independent components. The first measures candle impulse relative to ATR not raw candle size, but how decisive the current bar is in the context of what normal looks like for this asset right now. The second measures volume participation by comparing current volume against its moving average, distinguishing genuine momentum expansion from the kind of low-participation drift that precedes failed breakouts far more often than it precedes continuation. The third measures volatility expansion through Bollinger Band width relative to its own average, detecting the transition from compression into expansion as a market begins releasing stored energy.
Each component is independently normalized before combining. By default, volume participation carries the greatest weight of the three — a deliberate choice reflecting the observation that genuine participation tends to be the most reliable differentiator between momentum that follows through and momentum that fades. Candle impulse and volatility expansion carry equal secondary weight, acknowledging that decisive price movement and volatility expansion both contribute meaningfully to momentum quality without either being treated as a primary condition on its own. All weights remain fully adjustable for traders who prefer a different emphasis across different assets or timeframes.
What separates this framework from most traditional oscillators is that momentum strength, directional pressure, market regime, momentum acceleration, and signal confirmation are kept as independent layers that work together while remaining individually interpretable. The goal is not to compress everything into a single binary output but to provide a structured view of how momentum is developing and whether broader conditions are genuinely supportive.
Adaptive Thresholds
A composite score is only as useful as the threshold that determines when it becomes meaningful.
The indicator supports two threshold modes. Fixed mode works cleanly in stable trending environments where volatility expression is consistent. Adaptive mode the recommended default calculates the threshold dynamically using rolling score averages and standard deviation scaling, then clamps it within a defined range. As market character shifts, the threshold recalibrates automatically rather than forcing traders to manually adjust a static level every time volatility conditions change.
The practical consequence is worth understanding directly. In a static-threshold oscillator, a compression phase floods the chart with false crossovers while a genuine expansion phase can produce delayed or missed signals. The adaptive threshold adjusts to both conditions without intervention. The active level is always displayed as the orange reference line, there is never ambiguity about where the signal boundary sits.
The score is additionally classified into Weak, Moderate, and Strong states relative to the active threshold, allowing momentum quality to be evaluated quickly without relying on raw numerical values alone.
Directional Pressure
The score measures momentum magnitude. Direction is handled through a completely separate layer.
Directional bias is established through a two-part confirmation test on every bar. Price must sit on the correct side of a short-period directional EMA, and the average ATR-normalized candle direction over the recent lookback must clear a pressure threshold, meaning a single extended wick or isolated candle cannot flip the directional label on its own. The result is a three-state classification that updates in real time: Bullish, Bearish, or Neutral. This label colors the score line and feeds directly into the signal confirmation logic.
Regime Classification
Not all momentum signals carry equal weight. A score crossover during an expanding market is a categorically different event from the same crossover inside a compressed, coiling environment and treating them identically is one of the more common ways momentum-based approaches produce inconsistent results.
The indicator measures the range of the score over a lookback window and classifies conditions into three states. Compressed means the score has been operating within a narrow band, the market is coiling, energy may be building, and momentum signals in this state generally exhibit lower follow-through and greater variability, although strong expansions can emerge from prolonged compression. Balanced reflects normal trending or ranging conditions. Expanding means the score range has broken above the expansion threshold the market is releasing energy, and momentum signals carry stronger continuation characteristics during this state.
Regime classification can be applied as a filter to triangle signals or used purely as context within the dashboard.
Momentum Velocity
Knowing where the score is tells you the current momentum level. Knowing how fast it is changing tells you something more useful, where momentum is likely heading before price makes it obvious.
The velocity engine calculates the rate of change of the score relative to its own standard deviation, producing a normalized reading that classifies momentum as Accelerating, Decelerating, or Flat. When the score is rising rapidly against its recent volatility baseline, conditions are classified as Accelerating. When the score is fading even if it remains above the threshold the label shifts to Decelerating, and the score line renders at reduced opacity as a visual signal that underlying momentum may be exhausting before price visibly reacts.
For traders who have held into momentum reversals that showed no obvious price-level warning, this layer provides an early internal warning signal within the indicator's architecture that conditions are beginning to shift.
Two Signal Tiers
The indicator produces signals on two distinct levels, and the distinction between them is worth understanding precisely.
Threshold dots appear whenever the score crosses the active threshold while directional pressure is already aligned. They are intentionally sensitive as early directional momentum awareness signals indicating that conditions are beginning to strengthen, even though the broader filter stack may not yet be confirmed. Experienced traders use them to shift attention and begin evaluating whether a fuller setup is developing.
Triangle signals are the fully confirmed output. A triangle only appears when the score crosses the threshold, directional pressure agrees, and every enabled filter in the active gate stack also confirms simultaneously. This is not a smoothed version of the dot signal. It is a categorically different signal type representing the convergence of multiple independent conditions at the same moment.
The separation is deliberate. Dots keep traders informed of developing momentum. Triangles reserve the strongest visual output for the moments that genuinely earn it.
The Signal Gate Stack
Before any triangle reaches the chart it passes through up to four independent gates, stackable in any combination.
The current-timeframe EMA filter blocks signals running counter to local trend structure. The higher-timeframe EMA filter adds a structural second opinion from a broader timeframe, 4-hour by default with an option to use only confirmed closed bars to avoid incomplete higher-timeframe calculations. The regime filter restricts signals during compressed conditions or limits them to expanding phases only. The cooldown gate enforces a minimum bar gap between consecutive signals, suppressing the cluster of repeat triggers that commonly fire around a single momentum event and dilute signal quality.
The dashboard always displays exactly which gates are active. Traders never need to guess why a triangle did or did not appear, the filter logic is visible at all times.
Reading the Indicator: A Practical Workflow
1. Assess market regime first . Check the Info Table before anything else. Compressed conditions mean the score has been coiling in a tight range crossovers here often require greater selectivity, as follow-through tends to be less reliable until expansion begins, and participation should be approached more selectively. Expanding conditions deserve closer attention, as momentum signals generally carry stronger continuation characteristics during these phases.
2. Verify directional alignment. Confirm that the score line color and the Direction label in the dashboard match your intended trade direction. A technically valid score crossover against prevailing directional pressure is a lower-quality setup by design.
3. Watch for the threshold dot on the score pane . A small circle plots on the score line the moment momentum crosses the active threshold while directional pressure is already aligned. This is your early awareness signal. It means conditions are beginning to strengthen, but the broader confirmation stack may not yet be complete. Use it to shift attention to the price chart, not necessarily to trigger execution.
4. Wait for the triangle on the price chart . The triangle is the confirmed execution signal. It only appears when the score has crossed the threshold, directional pressure agrees, and every enabled gate in your active filter stack has confirmed simultaneously. Depending on your settings, this may include EMA alignment, regime validation, and cooldown logic. No triangle means at least one required condition has not been met, regardless of how the score looks in the pane below.
5. Check momentum velocity before entry. An Accelerating label at the point of the triangle adds meaningful weight to the setup. A Decelerating label on an otherwise valid triangle is a caution not necessarily a reason to avoid the trade, but a reminder that momentum quality may be less aggressive, follow-through may develop more gradually, or reversal risk may be beginning to increase.
6. Manage the trade with velocity as context, not as a standalone exit signal . If the score remains above or near the threshold but the line has dimmed signaling Decelerating momentum the move may be losing force even while price continues in the same direction. This does not automatically invalidate the trade or imply immediate exit. Instead, use velocity as an additional layer of context alongside price structure, trend conditions, and your existing risk-management framework.
What This Indicator Is Designed For
The Adaptive Momentum Strength Score is not a standalone trading system and does not attempt to be one. It is a momentum context engine — a structured framework for evaluating whether the conditions behind a price move reflect genuine strength and participation or whether they represent the kind of isolated, low-quality momentum that tends to produce less reliable continuation.
Every design decision in this script traces back to a single conviction: durable edge in trading does not come from reacting faster to a single signal. It comes from reading multiple independent market forces simultaneously and acting only when they converge. That is what this indicator was built to do and that is the only thing it claims to do well.
My Scripts/Indicators/Systems are for educational purposes only! Indicator

Gravity Trend Levels [BOSWaves]Gravity Trend Levels - Acceleration-Derived Gravity Modeling with Adaptive Cloud Trail and Fail Level Projection
Overview
Gravity Trend Levels is a momentum acceleration-based trend system that models directional gravity through the normalized rate of change of an EMA-derived velocity measurement, where cloud thickness, trail distance, and trend state are continuously adapted based on whether gravitational pull is building, sustained, or decaying rather than through fixed volatility multipliers or static band thresholds.
Instead of relying on conventional moving average crossovers or ATR-scaled bands that treat all market conditions identically, trend state and cloud positioning are determined by measuring price acceleration relative to MAD-normalized volatility, converting that acceleration into a gravity score that decays exponentially when momentum diminishes and drives adaptive band interpolation between configurable tight and wide trail distances.
This creates a trend framework where the cloud reflects genuine momentum dynamics rather than arbitrary indicator levels. The cloud tightens and hugs price during high gravity periods when acceleration is strong and directional pull is confirmed, expands during gravity decay when momentum is weakening, and generates gravity fail levels at the precise price points where trend state changed, marking the exact locations where prior gravitational force collapsed and direction reversed.
Price is therefore evaluated against a cloud that continuously updates its distance from price based on measured acceleration dynamics, producing a trail that reflects the actual pull state of the current trend rather than applying a uniform band regardless of momentum conditions.
Conceptual Framework
Gravity Trend Levels is founded on the principle that trend confidence should be measured through the acceleration characteristics of price momentum rather than through price position relative to fixed indicators, and that the distance between price and its trailing cloud boundary should dynamically reflect whether momentum is actively pulling price in the trend direction or losing gravitational force.
Traditional trend-following tools apply consistent band distances regardless of whether momentum is surging or stalling, producing identical visual representations for high-conviction and deteriorating trend conditions. This framework replaces uniform band geometry with an acceleration-driven gravity model where band distance shrinks under strong gravitational pull and expands as gravity decays, communicating trend health through cloud behavior rather than requiring separate momentum indicators for context.
Three core principles guide the design:
Gravitational pull should be derived from normalized price acceleration rather than from price position alone, ensuring that cloud behavior reflects actual momentum intensity rather than the mere direction of a smoothed average.
Cloud thickness and trail distance should adapt continuously to the measured pull state, contracting during strong gravity and expanding during decay to provide a visual representation of trend conviction at all times.
Gravity fail levels should be projected from the precise price points where trend state changed, marking the locations where gravitational force reversed as permanent structural references for future price interaction.
This shifts trend analysis from static band monitoring into continuous gravitational force measurement where cloud dynamics communicate momentum state and fail levels preserve the structural evidence of prior gravity collapses.
Theoretical Foundation
The indicator combines EMA-based trend baseline construction, MAD volatility measurement, velocity and acceleration derivation from baseline rate of change, gravity scoring with exponential decay, and adaptive trail interpolation that maps pull strength to band distance.
The trend baseline is calculated as an EMA of close over the configured length, providing a smoothed directional reference. Velocity measures the change in baseline over the gravity lookback period, and acceleration measures the bar-to-bar change in velocity. Acceleration is normalized by MAD to produce a dimensionless score that reflects momentum change intensity relative to current volatility. When normalized acceleration exceeds the minimum threshold, gravity is set proportionally to the acceleration reading and capped at a maximum value. When acceleration falls below the threshold, gravity decays multiplicatively by the configured decay rate each bar. Pull converts gravity to a normalized 0-1 range that drives trail multiplier interpolation between the minimum tight distance and the maximum wide distance.
Four internal systems operate in tandem:
Gravity Detection Engine : Derives velocity from EMA baseline change over the gravity lookback, calculates acceleration as the bar-to-bar velocity change, normalizes against MAD, and updates the gravity state either by setting it proportional to current acceleration or applying exponential decay when acceleration subsides.
Adaptive Trail Construction : Converts gravity to a normalized pull value and interpolates the trail multiplier between the configured minimum and maximum settings, scaling MAD to produce upper and lower band distances from the baseline that tighten with strong pull and widen with decay.
Gravity Cloud System : Constructs a one-sided cloud positioned below price in uptrends and above price in downtrends, with cloud thickness scaling proportionally to current pull strength through a separate MAD-scaled thickness calculation that produces a visually dynamic pull indicator.
Gravity Fail Level Engine : On each trend state switch, projects a horizontal line from the flip bar's low for bullish flips and high for bearish flips, extending forward for the configured projection length to mark the price level where prior gravitational force collapsed and direction changed.
This design allows the cloud and trail to respond continuously to gravity dynamics while fail levels accumulate as a historical record of structural gravity collapses.
How It Works
Gravity Trend Levels evaluates price through a sequence of acceleration-aware and gravity-driven processes:
Baseline Calculation : EMA smoothing of close over the configured trend length produces the directional reference from which velocity and acceleration are derived.
MAD Volatility Measurement : Mean Absolute Deviation over the configured length provides the adaptive volatility unit that normalizes acceleration and scales all band and cloud distances.
Velocity Derivation : The difference between the current baseline and the baseline a configurable number of bars ago provides the velocity reading that captures the rate of directional change in the smoothed trend.
Acceleration Calculation : The bar-to-bar change in velocity produces the acceleration reading, which captures whether directional momentum is intensifying or diminishing.
Gravity State Update : Normalized acceleration above the minimum threshold sets gravity proportionally to the acceleration magnitude scaled by eight and capped at two. Below the threshold, gravity decays by multiplying by the configured decay rate each bar.
Pull Normalization : Gravity is divided by 1.5 and capped at one to produce a normalized pull value that maps the full gravity range to a 0-1 scale for trail interpolation.
Trail Multiplier Interpolation : The pull value interpolates between the maximum trail distance at zero pull and the minimum trail distance at full pull, producing a continuously adapting multiplier that scales MAD into upper and lower band distances.
Trend State Logic : Price crossing above the upper band triggers bullish state. Price crossing below the lower band triggers bearish state. State persists until the opposing band is breached.
Cloud Construction : The active cloud positions at the lower band in uptrends and upper band in downtrends, with an inner boundary offset by a pull-scaled thickness producing a two-edge cloud whose depth visually reflects current gravitational pull.
Gravity Fail Level Projection : On each trend switch, a horizontal line is projected from the flip bar at the bar's low for bullish flips and high for bearish flips, extending forward for the configured projection length as a structural fail reference.
Retest Diamond Detection : After the configured signal buffer period from the most recent flip, price touching the cloud inner edge triggers a retest diamond marker with a configurable minimum bar cooldown between consecutive signals on the same side.
Together, these elements form a continuously updating gravity-driven trend system where cloud dynamics reveal pull strength, fail levels mark structural collapse points, and retest diamonds identify price interactions with the inner cloud boundary throughout the trend.
Interpretation
Gravity Trend Levels should be interpreted as a momentum-gravity conviction system with dynamically adaptive cloud geometry and structural fail level mapping:
Bullish Trend State (Green) : Established when price closes above the upper adaptive band, with the gravity cloud positioned below price reflecting the upward gravitational pull state.
Bearish Trend State (Red) : Established when price closes below the lower adaptive band, with the gravity cloud positioned above price reflecting the downward gravitational pull state.
Gravity Cloud : The one-sided filled zone between the outer and inner cloud boundaries reflects current pull strength through its thickness. A thick cloud indicates strong gravitational pull with high trend conviction. A thin cloud indicates gravity decay and diminishing directional force.
Cloud Outer Edge : The primary structural boundary of the gravity cloud, positioned at the active adaptive band and colored fully in the trend direction, representing the outer limit of the gravitational field.
Cloud Inner Edge : The pull-scaled inner boundary of the cloud, representing the nearer edge of the gravitational zone and the threshold for retest diamond detection.
Gravity Fail Levels : Horizontal lines projected from trend flip bars at the flip bar's low for bullish flips and high for bearish flips, marking the exact price level where prior gravitational force collapsed. These levels persist as structural references for the configured projection length.
𝑩 Buy Signals : Green labels appearing below the bar when trend state switches from bearish to bullish, marking the gravity flip bar where upward pull has been established.
𝑺 Sell Signals : Red labels appearing above the bar when trend state switches from bullish to bearish, marking the gravity flip bar where downward pull has been established.
✦ Retest Diamonds : Small star diamonds plotted below bars during bullish retests and above bars during bearish retests when price touches the cloud inner edge after the signal buffer period, identifying interactions with the gravitational boundary during the trend.
Colored Candles : Optional bar coloring reflects current trend state direction, providing continuous directional context independent of cloud proximity or signal generation. Note: The original chart candles must be disabled in chart settings for the trend-colored candles to display properly.
Cloud thickness dynamics, fail level locations, and retest diamond positioning collectively provide more information than trend direction alone.
Signal Logic & Visual Cues
Gravity Trend Levels presents two primary trend transition signals alongside continuous cloud retest monitoring:
Buy Signal (𝑩) : Green label appears when trend state switches from bearish to bullish via upper band crossover, indicating gravitational pull has reversed to the upside and a fail level is projected from the flip bar's low.
Sell Signal (𝑺) : Red label appears when trend state switches from bullish to bearish via lower band crossunder, indicating gravitational pull has reversed to the downside and a fail level is projected from the flip bar's high.
Retest diamond detection provides continuous secondary monitoring, marking price touches of the cloud inner edge throughout the established trend after the signal buffer period with per-side cooldown enforcement.
Alert generation covers bullish and bearish gravity trend flips and any retest diamond occurrence for systematic monitoring workflows.
Strategy Integration
Gravity Trend Levels fits within momentum-informed and adaptive trend-following approaches:
Gravity Flip Entries : Use trend state switches as primary entry triggers where gravitational acceleration has driven price through the adaptive band, entering in the flip direction with the projected fail level providing an immediate structural reference for invalidation.
Cloud Thickness Conviction Reading : Monitor cloud thickness as a real-time gravity strength gauge. A thick, prominent cloud indicates strong active pull supporting the trend. A thin, contracting cloud warns of gravitational decay and warrants reduced confidence in trend continuation.
Fail Level Framework : Use gravity fail levels as structural references for subsequent price interaction, monitoring whether price respects or violates the level where prior gravity collapsed to assess the structural significance of the most recent trend change.
Retest Diamond Re-entry : Treat cloud inner edge retests after the signal buffer period as potential continuation opportunities within the established trend, using the diamond signal as a lower-risk re-entry reference relative to the initial flip signal.
Cloud Proximity Risk Management : Use the outer cloud edge as a dynamic trailing reference for position management, maintaining directional bias while price remains beyond the cloud and reassessing when price approaches or enters the gravitational zone.
Multi-Timeframe Gravity Alignment : Apply higher-timeframe gravity trend state as a directional bias filter, engaging with lower-timeframe flip signals only when they align with the established higher-timeframe gravitational direction.
Technical Implementation Details
Core Engine : EMA baseline with MAD volatility measurement for adaptive scaling
Gravity Model : Velocity from baseline rate of change, acceleration from velocity change, MAD normalization, proportional gravity setting with exponential decay
Adaptive Trail : Pull-normalized interpolation between configurable minimum and maximum MAD multipliers
Cloud Construction : One-sided pull-scaled thickness fill between outer and inner boundaries with EMA smoothing on both edges
Fail Levels : Flip-triggered horizontal line projection from bar extreme at configurable length and width
Retest System : Inner cloud edge proximity detection with signal buffer and per-side cooldown enforcement
Visualization : Gravity cloud fill, fail level lines, trend flip labels, retest diamond markers, and optional trend candle coloring
Performance Profile : Optimized for real-time execution across all timeframes with stateful gravity variable maintaining continuous decay between acceleration events
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Intraday gravity tracking for scalping with shorter trend length and gravity lookback for faster acceleration detection and responsive cloud behavior
15 - 60 min : Session-level trend identification with balanced gravity decay and moderate trail settings for reliable intraday directional framing
4H - Daily : Swing-level gravity trend mapping with longer trend length and higher decay rate for sustained gravitational pull persistence across multi-session moves
Suggested Baseline Configuration:
Trend Length : 14
Gravity Lookback : 19
Gravity Decay : 0.96
MAD Length : 24
Trail Min (Strong Pull) : 1.0
Trail Max (Weak Pull) : 1.0
Show Gravity Cloud : Enabled
Show Gravity Fail Levels : Enabled
Show Buy/Sell Signals : Enabled
Retest Diamonds : Enabled
Color Bars : 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 momentum characteristics, volatility behavior, and preferred signal frequency, so fine-tuning is expected for optimal performance.
Parameter Calibration Notes
Use the following adjustments to refine behavior without altering the core logic:
Cloud too wide throughout : Decrease Trail Max to reduce band distance during low gravity periods, bringing the cloud closer to price during momentum decay phases.
Cloud too tight throughout : Increase Trail Max to allow greater band expansion during gravity decay, producing a more visually prominent cloud separation during low-conviction conditions.
Gravity builds too slowly : Decrease Gravity Lookback toward 5 for a shorter velocity measurement window that captures acceleration shifts more rapidly, producing faster gravity activation on momentum changes.
Gravity activates too frequently : Increase Gravity Lookback to smooth the velocity measurement across more bars, requiring more sustained directional change before acceleration registers as gravitational pull.
Gravity decays too quickly : Increase Gravity Decay toward 0.99 to sustain gravitational pull longer between acceleration events, maintaining cloud contraction for more bars after acceleration subsides.
Gravity lingers too long : Decrease Gravity Decay toward 0.80 for faster pull dissipation, allowing the cloud to expand more quickly when momentum weakens and reducing lag between gravity collapse and visual cloud response.
Too many retest diamonds : Increase Retest Cooldown to enforce greater bar separation between consecutive diamond markers, or increase Signal Buffer Period to delay retest detection further from each flip event.
Adjustments should be incremental and evaluated across multiple session types rather than isolated market conditions.
Performance Characteristics
High Effectiveness:
Trending markets with clear momentum phases where gravitational acceleration builds and sustains across multiple bars, producing thick, persistent clouds that visually confirm directional pull throughout the move
Instruments with consistent volatility behavior where MAD normalization accurately calibrates acceleration significance and cloud distance across varying market conditions
Momentum continuation strategies where cloud retest diamonds identify lower-risk re-entry points within established gravity trends after the initial flip signal
Structural reference frameworks where gravity fail levels provide meaningful historical markers at the exact price points where prior directional momentum collapsed
Reduced Effectiveness:
Choppy, low-momentum markets where acceleration readings oscillate without sustained directional pull, producing frequent gravity flips and thin clouds that fail to establish meaningful directional framing
Extremely volatile environments where individual bar acceleration spikes generate momentary gravity readings that decay before producing sustained cloud contraction or reliable trend state persistence
News-driven or gap-heavy instruments where instantaneous momentum changes trigger gravity activation and immediate flip signals without the gradual acceleration buildup the model is designed to detect
Consolidation and sideways conditions where velocity and acceleration remain near zero, preventing meaningful gravity generation and causing the cloud to remain in its expanded low-pull state without directional conviction
Mean-reversion dominant markets where band crossovers trigger frequent state changes that repeatedly project fail levels without the subsequent directional follow-through that validates their structural significance
Integration Guidelines
Confluence : Combine with BOSWaves order flow tools, volume analysis, or structural indicators to validate gravity flip signals with participation context before committing to directional positions
Cloud Thickness Monitoring : Track cloud thickness evolution throughout the trend as an ongoing gravity health assessment. Consistently thick clouds support continuation confidence while progressive thinning signals approaching decay and warrants defensive position management.
Fail Level Awareness : Monitor price behavior when it returns to prior gravity fail levels. These levels mark the exact prices where directional force previously collapsed, making them structurally meaningful references for future support, resistance, or reversal reactions.
Decay Anticipation : Use cloud thinning as an early warning of approaching gravity decay before a formal flip signal is generated. Thinning during an extended trend suggests acceleration is subsiding and the probability of a state change is increasing.
State Discipline : Maintain directional bias aligned with current gravity trend state until a confirmed band crossover flip occurs. Cloud retests and fail level interactions within an established trend do not constitute state changes and should be interpreted as continuation context rather than reversal signals.
Disclaimer
Gravity Trend Levels is a professional-grade momentum acceleration and trend conviction analysis tool. It uses acceleration-derived gravity modeling with adaptive cloud construction and structural fail level projection 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, volume analysis, and comprehensive risk management. Indicator

[ A L P H A X ] ANCHOR Delta Volume Adaptive Entry EngineAlphaX ANCHOR — Liquidity-Anchored Trailing Stop System with Delta Volume Profile, Adaptive Band Scaling, HVN Confluence & 6-Layer Entry Engine
AlphaX ANCHOR is a professional-grade trend-following and entry precision system built around a proprietary four-band liquidity-anchored trailing stop engine that adapts to volatility in real time. Where conventional trailing stops use a fixed ATR distance and flip on any close beyond it, ANCHOR builds a structured four-layer band system that breathes with market conditions — tightening automatically during low-volatility squeeze phases and expanding during expansion phases — while simultaneously computing a delta-weighted volume profile anchored to the current trend segment. The result is a system that does three things simultaneously: tells you the trend direction with structural confidence, shows you exactly where the institutional volume is concentrated within the current move, and fires precision entries only when price returns to the outer anchor band within a qualifying 6-layer confluence environment. Designed for swing traders, position traders, and trend-following scalpers across crypto, forex, gold, and indices on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚓ The Anchor Trail Engine — How It Works
The core of AlphaX ANCHOR is the four-band liquidity-anchored trailing stop system — a structured set of concentric ATR bands that trail price in the trend direction, each band serving a distinct role in the trade management framework.
Band architecture:
Band 1 (Inner) — the closest band to price. Set at the base multiplier × ATR distance (default: 6.5×). Acts as the tightest stop reference — for aggressive traders who want minimal drawdown and are willing to accept more noise exits
Band 2 (Mid-Inner) — base + 1.0× ATR additional offset. The intermediate reference zone
Band 3 (Mid-Outer) — base + 2.0× ATR additional offset. Structural breathing room for normal pullbacks
Band 4 (Anchor — Outer) — base + 3.0× ATR additional offset. The primary trend invalidation level. A close beyond this band flips the trend. This is the band the confluence engine watches for retest entries
Trailing mechanics:
In a bull trend, all four bands trail price upward — ratcheting higher with every bar that closes higher, never moving down. The trail is one-directional: in a bull trend, bands can only move up; in a bear trend, bands can only move down. This ratchet behavior prevents the bands from widening on pullbacks — once a level is established, price must return all the way to Band 4 before a trend flip is triggered. This single property is what makes ANCHOR bands structurally superior to simple ATR trailing stops: they do not exit on noise, only on genuine structural breakdowns.
Trend flip logic:
A trend flip occurs when the source price closes beyond Band 4 — the outer anchor level. On the flip bar, all four bands immediately reset to the opposite side of price at their respective ATR distances. A ▲ ANCHOR BULL or BEAR ▼ ANCHOR label marks every flip on the chart, giving you clear visual confirmation of every structural trend change.
Heatmap visualization:
When the Trailing Stop Heatmap is enabled, the space between all four bands is filled with gradient color layers — progressively more opaque from Band 1 to Band 4. This creates an immediate visual depth map of the trailing stop structure: the closer price is to Band 4, the deeper into the "danger zone" the pullback has penetrated. At a glance, you can see whether a pullback is shallow (barely in the inner fill) or deep (approaching the outer anchor line) without reading a single number.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌊 Adaptive Band Scaling — Breathing With Volatility
Standard ATR trailing stops maintain a fixed multiplier regardless of whether the market is in a squeeze or an expansion phase. ANCHOR solves this with an adaptive scaling system that continuously adjusts the effective band multiplier based on current volatility context.
How it works:
The current ATR value is percentile-ranked over the last 100 bars using a percentrank function, producing a real-time volatility percentile reading. Additionally, the system monitors whether Bollinger Bands are compressed inside Keltner Channels — the squeeze condition.
Three scaling states:
Squeeze active (BB inside KC) — multiplier scales down to the Adaptive Min Scale (default: 0.85×). Bands tighten. During a squeeze, price movement is compressed and the natural pullback range is narrower — tighter bands correctly reflect this reduced volatility and avoid giving back gains unnecessarily when the market is coiling
High volatility (ATR in top 75th percentile) — multiplier scales up to the Adaptive Max Scale (default: 1.15×). Bands widen. During expansion phases, price swings are larger and a wider band correctly avoids being stopped out by normal volatility noise
Normal conditions — multiplier stays at 1.0× the base setting. No adjustment needed
Dashboard readout:
The current adaptive scale is displayed live on the dashboard as a multiplier value (e.g., 0.85x SQZ or 1.15x) in real time, so you always know whether the system is in tight, normal, or wide band mode.
Why adaptive scaling matters: A fixed 6.5× ATR trailing stop is too wide during a squeeze and too tight during a volatility spike. Adaptive scaling means ANCHOR is always correctly sized for the current market environment — without any manual adjustment from you.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Delta-Weighted Volume Profile — Anchored to the Trend Segment
The volume profile in AlphaX ANCHOR is not a standard fixed-range profile. It is a trend-segment-anchored profile — recomputed from the exact bar where the current trend began (the last Band 4 flip) to the current bar. Every time the trend flips, the profile resets and starts building fresh from the new trend origin.
What this means in practice: The profile always shows you the volume distribution of the current institutional delivery move — not an arbitrary date range, not the last N bars, but specifically the price levels where volume has concentrated since the institutional trend began. This is the most relevant possible volume profile for understanding the current trade's context.
Delta weighting:
When Delta-Weighted Volume is enabled (default: on), each bar's contribution to the volume profile is adjusted by the estimated directional bias of that candle:
In a bull trend — the bull volume estimate (close position within the high-low range × total volume) is used. Bullish candles contribute more weight to their price levels than bearish candles
In a bear trend — the bear volume estimate is used. Bearish candles carry more weight
This delta weighting creates a profile that reflects not just where volume occurred, but where directionally committed volume occurred — the levels where buyers (in a bull trend) or sellers (in a bear trend) were most active. These are the genuine institutional accumulation and distribution zones, not just high-activity noise zones.
Profile structure:
The profile is divided into a configurable number of rows (default: 30), each representing an equal price bin across the trend segment's high-low range. The width of each bar in the rendered profile is proportional to the volume in that bin relative to the maximum bin volume — the widest bar is always the highest-volume level.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📍 POC, Value Area & HVN Detection
Point of Control (POC):
The single price bin with the highest volume in the current trend segment. This is the price level where the most delta-weighted volume has traded since the trend began — the most liquid price in the current institutional move. Plotted as a solid purple line extending from the trend start to the right edge of the profile. The POC price is displayed live on the dashboard and is available as a take-profit target mode.
Value Area High (VAH) and Value Area Low (VAL):
The price range containing a configurable percentage of total segment volume (default: 70%). The value area represents the zone where the market spent 70% of its time and volume — the institutional fair value range for the current trend segment. VAH is plotted as a dashed yellow-green line; VAL as a dashed red line. These levels act as natural support and resistance within the trend — price frequently respects VAH and VAL on pullbacks before continuing in the trend direction.
High Volume Nodes (HVNs):
Local volume peaks within the profile — bins where volume is higher than both the bin immediately below and the bin immediately above. These are the institutional congregation zones — price levels where significant two-sided activity occurred. HVNs frequently act as magnets: price is attracted to them, and once reached, tends to spend time at them before continuing. Identified algorithmically across all bins, HVN levels are plotted as horizontal lines extending from the trend start, styled and colored by the configured settings. The highest-volume HVN receives a bold line and a price label.
HVN confluence scoring:
The confluence engine awards 1 point when either the current close or the outer Band 4 level is within a tolerance of ±0.35× ATR of any HVN level. An entry that fires at the anchor band while simultaneously sitting at an HVN level means you are buying or selling at a level where the most institutional volume has transacted — a genuinely high-conviction entry location.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚖ Trend Equilibrium — Premium/Discount Positioning
The Trend Equilibrium line is the midpoint between the highest high and the lowest low since the current trend began (the trendHigh and trendLow of the segment). Plotted as a purple dotted line directly on the chart.
This level serves as the dynamic premium/discount divider for the current trend segment:
Below equilibrium = discount — price is in the lower half of the trend segment range. For bull trends, this is the institutional accumulation zone — the preferred entry location for long positions
Above equilibrium = premium — price is in the upper half of the range. For bear trends, this is the institutional distribution zone — the preferred entry location for short positions
The Require PD Zone setting enforces that long signals only fire when price is in discount and short signals only fire when price is in premium. This one filter alone eliminates a substantial class of low-quality entries — those that occur when price has already extended far from the segment midpoint and the risk/reward is structurally poor.
Unlike a fixed-range PD calculation, this equilibrium adapts dynamically to the current trend segment — it is always the midpoint of this trend's range, making it the most contextually accurate premium/discount reference available.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧠 The 6-Layer Confluence Engine
Entry signals fire only when price touches the outer Band 4 anchor level within a qualifying 6-layer confluence environment. Each layer votes independently. The default minimum is 4 of 6.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 1 — Anchor Trend Direction
Awards 1 point when the ANCHOR system's current trend direction agrees with the signal. Bull signals require trend == 1; bear signals require trend == -1. This is also a hard positional requirement — the anchor touch condition itself requires a bull trend for longs (price touching Band 4 from above) and a bear trend for shorts (price touching Band 4 from below). The trend direction is therefore inherently confirmed by the signal trigger condition.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 2 — HTF Bias
Awards 1 point when the higher timeframe EMA structure (default: 60-minute, 21/55 EMAs) agrees with the signal direction. The HTF condition for ANCHOR is stricter than in other AlphaX systems: the HTF fast EMA must be above the slow EMA and the HTF close must be above the HTF fast EMA for a bull vote — requiring both EMA alignment and price confirmation on the higher timeframe simultaneously.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 3 — ADX Trend Strength
Awards 1 point when ADX meets the minimum threshold (default: 18). Confirms the market is in a genuine trending phase where Band 4 retests are likely to produce continuation moves rather than range reversals.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 4 — Volume Delta
Awards 1 point when the estimated volume delta (bull volume EMA minus bear volume EMA) agrees with the signal direction. Confirms that the institutional order flow pressure at the anchor touch is directionally consistent with the trend. A Band 4 touch with opposing volume delta is a warning sign — institutions may be distributing at the level, not accumulating.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 5 — Premium/Discount Zone
Awards 1 point when price is in the correct zone relative to the trend equilibrium level — discount for longs, premium for shorts. A Band 4 touch in the discount zone means you are entering at the outer structural boundary of the trend and the lower half of the segment range — the optimal dual positioning that maximizes risk/reward.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 6 — HVN Confluence
Awards 1 point when the current close or the Band 4 level is within ATR tolerance of any detected High Volume Node from the segment profile. This is the layer that bridges the trailing stop system and the volume profile — when a Band 4 retest coincides with an HVN, price is returning to the outer structural boundary precisely where the most institutional volume has traded. The convergence of structural (Band 4) and volumetric (HVN) confluence at the same price level is the highest-quality entry condition ANCHOR can detect.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷 Signal Firing Logic
An ANCHOR signal fires when all of the following are simultaneously true:
Price has touched Band 4 from the correct side — low within Band 4 tolerance for longs (bull trend), high within Band 4 tolerance for shorts (bear trend)
The close is back on the correct side of Band 4 — close above Band 4 for longs, close below for shorts (confirming the touch was a retest, not a breakdown)
Confluence score meets or exceeds the configured minimum (default: 4 of 6)
Session filter confirms active hours (when enabled)
Signal cooldown has elapsed since the last signal (default: 8 bars)
Show Entry Signals is enabled
Live confluence display:
A small label near the current Band 4 level on the last bar shows the live bull and bear scores in the format B 5/6 · S 2/6 — updating in real time so you can monitor the confluence state without looking at the dashboard.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Exit Guidance System
ANCHOR provides two live guidance levels plotted as dotted circles on the chart when a signal fires — not hard mechanical exits, but institutionally informed price targets for use in your own exit planning.
SL Guide:
The stop loss guide is anchored to a configurable band (default: Band 4 — the outer anchor). The SL band can be set to any of the four bands depending on your risk tolerance. Band 4 represents the structural invalidation level — the trend has flipped if price closes beyond it. Band 1 is the tightest option for aggressive stop placement.
TP Guide (three modes):
POC Target (default) — the take-profit guide points to the current segment POC. This is the most structurally meaningful target: in a bull trend, a Band 4 retest entry with a POC target means you are entering at the lowest point of the trend's volume structure and targeting the price where the most institutional activity occurred. The POC frequently acts as a magnet — price is drawn back to it after pullbacks
Opposite Band — the TP guide points to the trendHigh (bull) or trendLow (bear) of the current segment — the opposite extreme of the trend range. Maximum trend extension target
ATR Multiple — a fixed ATR distance from the entry close (default: 2.5×). Simple and consistent across all instruments and timeframes
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The real-time dashboard displays the complete internal state across four sections, updated on every bar.
TREND
Anchor Trend — current ANCHOR system trend direction: ▲ BULLISH or ▼ BEARISH. This is the primary trend state — the direction all long entries must align with
Adaptive — current adaptive scale multiplier (e.g., 0.85x SQZ, 1.00x, or 1.15x) with squeeze state flag. Tells you whether bands are currently tighter or wider than the base setting
PD Zone — current premium/discount position relative to the trend equilibrium: ◧ DISCOUNT, ◧ PREMIUM, or — EQ
FILTERS
HTF Bias — higher timeframe EMA alignment: ▲ BULL, ▼ BEAR, or — FLAT
ADX — live ADX value with ✓ or ✗ pass/fail
Vol Delta — current volume delta direction: ▲ BULL, ▼ BEAR, or —
Session — ✓ ACTIVE or ✗ OFF
VOLUME
POC — current Point of Control price level. Updated in real time as the profile builds
VAH / VAL — Value Area High and Value Area Low levels for the current trend segment
HVN Count — number of High Volume Nodes currently detected in the segment profile
CONFLUENCE
Bull Score — live 0–6 score. Background highlights yellow-green when threshold is met
Bear Score — live 0–6 score. Background highlights red when threshold is met
Anchor Band — the current Band 4 price level in real time — the exact price where the next retest entry would occur
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
Band 4 (Anchor — thick solid line) — the outer trailing stop and primary structural level. Yellow-green in bull trend, red in bear trend. The most important line on the chart
Band 3 (semi-transparent) — mid-outer reference, 2× ATR inside Band 4
Band 2 (more transparent) — mid-inner reference, 1× ATR inside Band 4
Band 1 (most transparent) — inner reference, base ATR distance from price
Heatmap fills — gradient color fills between all four bands. Deepening opacity toward Band 4 creates a visual depth map of trailing stop risk
Trend Equilibrium Line (purple dots) — the dynamic midpoint of the current trend segment's high-low range
▲ ANCHOR BULL / BEAR ▼ ANCHOR label — appears on every trend flip at the Band 4 flip price, marking each structural direction change
▲ Triangle (below bar) — long entry signal at Band 4 retest with confluence confirmed
▼ Triangle (above bar) — short entry signal at Band 4 retest with confluence confirmed
Live confluence label — B x/6 · S x/6 score label near the current Band 4 level on the last bar, updating in real time
Volume profile bars — delta-weighted horizontal bars rendered to the right of the current price, color-matched to trend direction, proportional to bin volume
POC line (purple solid) — the highest-volume level in the current trend segment
VAH line (yellow-green dashed) — Value Area High boundary
VAL line (red dashed) — Value Area Low boundary
HVN lines — horizontal lines at every local volume peak. The dominant HVN (highest volume) receives a bold line and price label
SL Guide (red dotted circles) — stop loss reference level at the configured anchor band
TP Guide (yellow-green dotted circles) — take-profit reference pointing to POC, opposite band extreme, or ATR target
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX ANCHOR — Step by Step
Step 1 — Establish Trend Context
Check the dashboard: what is the Anchor Trend? This is your trading direction — only take longs in ▲ BULLISH, only take shorts in ▼ BEARISH
Check HTF Bias — does the higher timeframe agree? A bull Anchor Trend with bull HTF Bias is the ideal setup condition
Check the Adaptive row — is the system in squeeze mode (0.85x SQZ)? If so, bands are tighter and a Band 4 touch is more likely. Expansion mode (1.15x) means wider bands and deeper pullbacks to reach Band 4
Note the POC and VAH/VAL levels on the dashboard and the chart. These are your key target and support/resistance levels within the current trend
Step 2 — Watch for Band 4 Approach
Monitor the heatmap — as price pulls back from the trend high, it moves progressively through the Band 1, 2, 3 fills. By the time price is deep in the Band 3 fill and approaching the solid Band 4 line, a retest touch is imminent
Check the live confluence label near Band 4. Is the bull score at or near the threshold? If so, a signal may fire on the next bar
Check the PD Zone row — is price in discount for a long entry? A Band 4 touch in discount zone is the optimal entry scenario
Step 3 — Enter on the ANCHOR Triangle
A ▲ triangle confirms the Band 4 touch with qualifying confluence. Enter on the close or next bar open
Note whether an HVN level is near the entry price — an HVN + Band 4 confluence entry is the highest-quality ANCHOR setup
The SL Guide dotted line shows your stop reference. The TP Guide shows the POC, opposite extreme, or ATR target depending on your mode setting
Step 4 — Manage with the Band Structure
As the trade moves in your favor, watch the bands ratchet upward (bull) with price — your trailing stop is automatically rising
The POC line is your primary profit target in POC Target mode. As price approaches the POC, consider scaling out
The VAH level (bull trend) acts as the next resistance after POC — if price clears VAH with momentum, the trade has potential to reach the trendHigh
If price pulls back into the Band 3 or Band 4 zone again without a trend flip, this is a secondary entry opportunity — the same confluence check applies
Step 5 — Trend Flip Exit
A close beyond Band 4 triggers a trend flip — the BEAR ▼ ANCHOR label appears, the bands invert, and the volume profile resets for the new trend segment
Exit the prior trend position on the flip bar or the following open
Wait for the new trend to establish and a Band 4 retest to develop in the new direction before re-entering
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
Trend flips are occurring rapidly — multiple ▲ / ▼ ANCHOR flip labels in quick succession indicate a choppy, oscillating market where the Band 4 trailing stop is being crossed repeatedly. The volume profile will be very short (few bars since last flip) and the POC will be meaningless. Wait for a trend to establish and sustain for at least 10–15 bars before looking for Band 4 retest entries
HTF Bias opposes the anchor trend — a bull ANCHOR trend with bear HTF Bias means the current timeframe is moving against the higher timeframe flow. Band 4 retest entries in this environment carry significantly reduced success rates
ADX ✗ on the dashboard — the market is not trending. ANCHOR is a trend-following system by design — Band 4 touches in ranging markets frequently result in immediate trend flips rather than continuations
HVN Count shows 0 — the volume profile has not yet built enough data to identify volume nodes. This typically occurs immediately after a fresh trend flip. Wait for the trend to develop more bar history before relying on HVN confluence
Adaptive shows 1.15x (expansion) and price is approaching Band 4 rapidly — high-volatility expansion phases can produce fast, aggressive moves to Band 4 and beyond. Reduce position size in expansion mode entries
Price is in premium for a bull entry or discount for a bear entry — the PD Zone filter will block these automatically when enabled, but if disabled, be aware that entries at the wrong side of equilibrium carry structurally poor risk/reward
The ideal ANCHOR setup condition:
Anchor Trend established for 15+ bars — sufficient history for meaningful volume profile
HTF Bias aligned with trend direction
ADX ✓ confirming a trending market
Adaptive at 1.0x or 0.85x (normal or squeeze — not expansion)
Price in discount (bull) or premium (bear)
Band 4 touch coincides with a visible HVN level
Confluence score at 5/6 or 6/6
When all these conditions align simultaneously, an ANCHOR entry is the closest to a textbook institutional continuation setup the system can produce.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
⚓ Four-band liquidity-anchored trailing stop — Band 1 through Band 4, each ATR offset apart, ratcheting in trend direction with a one-directional lock preventing widening on pullbacks
🌊 Adaptive band scaling — automatically tightens during squeeze phases and widens during high-volatility expansion. Scale multiplier displayed live on dashboard
🔥 Trailing stop heatmap — gradient opacity fills between all four bands creating a real-time visual depth map of pullback risk from shallow to deep
📊 Delta-weighted volume profile — anchored to the current trend segment from the last Band 4 flip, using directional volume weighting for institutional accuracy
📍 POC detection — highest-volume level in the current trend segment plotted live and available as a TP target mode
📐 Value Area High/Low — 70% volume concentration zone for the current trend segment, plotted as dynamic support/resistance levels
🔮 HVN detection — algorithmic local volume peak identification across all profile bins. Lines extend from the trend origin through the profile
⚖ Trend equilibrium — dynamic PD zone midpoint anchored to the current trend segment high and low, updating in real time as the segment expands
📡 HTF bias filter — dual-EMA + price confirmation from a configurable higher timeframe, stricter condition than standard EMA crossover
🧠 6-layer confluence gate — Anchor Trend, HTF Bias, ADX, Volume Delta, PD Zone, and HVN Confluence all scored independently on every bar
📊 Live confluence label on chart — B x/6 · S x/6 displayed near Band 4 in real time without requiring dashboard attention
🎯 Three TP target modes — POC Target (institutional magnet), Opposite Band (maximum trend extension), or ATR Multiple (fixed distance)
⚙ Configurable SL anchor band — choose Band 1 through Band 4 for stop placement based on your risk preference and trading style
🏷 Trend flip labels — ▲ ANCHOR BULL and BEAR ▼ ANCHOR labels mark every structural trend change on the chart
📊 18-row live dashboard — Trend, Filters, Volume, and Confluence sections updated in real time
🔔 6 alert conditions — bull/bear trend flips, long/short entries, and HVN + anchor confluence touches
🎨 Fully cohesive dual-tone color system — yellow-green for all bullish elements, red for all bearish, orange for squeeze, purple for VWAP/equilibrium/POC
⚙ Fully configurable — ATR length, base multiplier, adaptive scaling range, volume profile rows and width, value area percentage, HTF timeframe and EMA periods, ADX threshold, PD zone requirement, TP mode, SL band, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Anchor Trail Engine
ATR Length — lookback for the ATR calculation used in all band offsets (default: 14)
Source — price source for trailing stop calculations (default: close)
Band Offset (Base) — ATR multiplier for Band 1, the innermost band. Bands 2–4 add +1, +2, +3 automatically (default: 6.5)
Adaptive Band Scaling — toggles the volatility-adaptive multiplier adjustment
Adaptive Min Scale — multiplier floor applied during squeeze conditions (default: 0.85)
Adaptive Max Scale — multiplier ceiling applied during high-volatility expansion (default: 1.15)
Volume Profile
Show Volume Profile — toggle the rendered profile bars to the right of price
Profile Rows — number of price bins in the volume profile (default: 30)
Profile Width (Bars) — maximum horizontal width of the profile in bars (default: 40)
Delta-Weighted Volume — when on, weights each bar's contribution by directional candle bias
Show HVN Levels — toggle horizontal High Volume Node lines
HVN Line Style — Dotted / Solid / Dashed
HVN Line Width — thickness of HVN lines (default: 1)
Show Value Area (POC/VAH/VAL) — toggle POC, VAH, and VAL line plots
Value Area % — percentage of total volume used to define the value area boundaries (default: 70%)
Show Trend Equilibrium — toggle the dynamic segment midpoint line
Confluence & Entries
HTF Trend Filter — toggle the higher timeframe EMA bias requirement
HTF Timeframe — the higher timeframe for EMA calculations (default: 60-minute)
HTF Fast / Slow EMA — EMA periods on the higher timeframe (defaults: 21 / 55)
ADX Trend Filter — toggle the ADX minimum requirement
ADX Length — ADX calculation lookback (default: 14)
ADX Minimum — threshold below which signals are suppressed (default: 18)
Volume Delta Filter — toggle the volume delta directional requirement
Volume MA Length — EMA smoothing length for volume delta calculation (default: 14)
Require PD Zone — when on, longs require discount positioning, shorts require premium
Session Filter — toggle active hours restriction (default: off — ANCHOR is designed for all-session use on most instruments)
Active Session — configurable session window
Min Layers (of 6) — minimum confluence score to fire a signal (default: 4)
Signal Cooldown — minimum bars between consecutive signals (default: 8)
Show Entry Signals — toggle signal triangles on or off
Show Confluence Label — toggle the live B/S score label near Band 4
Exit Guidance
Show SL / TP Guides — toggle the guide level dotted circle plots
SL Anchor Band — which of the four bands to use as the stop loss reference (default: Band 4)
TP Target Mode — POC Target / Opposite Band / ATR Multiple
TP ATR Mult — ATR distance for the ATR Multiple TP mode (default: 2.5)
Display
Trailing Stop Heatmap — toggle the gradient opacity fills between bands
Trend Flip Labels — toggle the ▲ ANCHOR BULL / BEAR ▼ ANCHOR labels
Show Dashboard — toggle the full dashboard panel
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Colors
Bull / Bull Bright — yellow-green family for all bullish bands, fills, and labels
Bear / Bear Bright — red family for all bearish elements
Squeeze — orange for squeeze state indicators
Equilibrium — purple for the trend equilibrium line
POC Line — purple for the Point of Control
VAH / VAL Lines — yellow-green and red for value area boundaries
SL Guide / TP Guide — stop and target guide line colors
Bull / Bear Label Text — text color for confluence and flip labels
Dash Text / Dash BG / Dash Header / Dash Section / Dash Frame — full dashboard color control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (6 total)
Trend Alerts
Anchor Bull Flip — trend has anchored bullish. Band 4 closed above, all bands reset upward. Watch outer band for pullback entry development
Anchor Bear Flip — trend has anchored bearish. Band 4 closed below, all bands reset downward
Entry Alerts
Anchor Long Entry — Band 4 touched from above with confluence confirmed. Long signal fired
Anchor Short Entry — Band 4 touched from below with confluence confirmed. Short signal fired
HVN Confluence Alerts
HVN + Anchor Long Touch — price is touching the anchor band at or near a High Volume Node support zone. Pre-signal awareness alert
HVN + Anchor Short Touch — price is touching the anchor band at or near a High Volume Node resistance zone
All alert messages are formatted as const strings for clean webhook and notification platform integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument & Timeframe
The default configuration is optimized for XAUUSD, major forex pairs, crypto, and indices on M5–H1 . ANCHOR is uniquely versatile — the volume profile adapts to any trend length and the adaptive scaling handles any volatility regime:
Band Offset at 6.5× — wide enough to avoid noise exits on intraday timeframes while keeping the trail structurally relevant
HTF at 60-minute — provides meaningful context for M5–M15 intraday trading
Delta-Weighted Volume on — directional weighting produces the most institutionally relevant profile on all liquid instruments
Value Area at 70% — the standard institutional value area definition used by professional volume profile traders
Session filter off by default — ANCHOR is designed for continuous multi-session trading on most instruments
For other instruments or timeframes, adjust:
M1–M3 scalping — reduce Band Offset to 4.5–5.5, reduce ATR Length to 10, increase Profile Rows to 20 for faster profile builds
H4 / Daily swing trading — increase Band Offset to 8.0–10.0, set HTF to Weekly, reduce Profile Rows to 15–20 for cleaner node identification, increase TP ATR Mult to 4.0–5.0
Crypto (BTC, ETH) — increase Adaptive Max Scale to 1.25 to accommodate wider expansion swings, increase Band Offset to 7.5–8.5
Low-volatility forex pairs — reduce Band Offset to 5.5–6.0, reduce Adaptive Min Scale to 0.80 for tighter squeeze-phase bands
Tighter signal quality — raise Min Layers to 5/6, enable PD Zone requirement, raise ADX minimum to 22
More frequent signals — lower Min Layers to 3, disable HTF filter, disable PD Zone requirement
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
📈 Trend followers and swing traders — the four-band trailing stop with heatmap visualization is built specifically for riding extended directional moves with structural confidence, not second-guessing every pullback
📊 Volume profile traders — the delta-weighted, trend-anchored profile provides the most contextually relevant volume analysis available for any given trend segment
🥇 Gold (XAUUSD) and forex traders — default settings are tuned for these instruments. The adaptive band scaling handles XAUUSD's distinctive alternation between low-volatility coiling and high-velocity expansion
🎯 Pullback entry traders — ANCHOR is specifically designed to fire at the outer structural boundary of the trend (Band 4) rather than on breakouts or initial moves. Every entry is a pullback-to-structure trade at the institutional trailing stop level
📡 Multi-timeframe traders — the HTF bias filter and trend equilibrium system create a natural multi-timeframe framework within a single indicator
🧠 Traders who want volume context with every entry — the live POC, VAH/VAL, and HVN levels provide immediate institutional volume context for every trade without requiring a separate volume profile tool
🔥 Visual traders — the heatmap, gradient fills, trend flip labels, and volume profile create one of the richest single-indicator chart environments in the AlphaX suite. Everything needed for a complete trend trade is visible on the chart simultaneously
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. Band positions and trend state finalize on confirmed bars only
The volume profile is recomputed on every bar using the full trend segment history. On very long trend segments (hundreds of bars), this computation is resource-intensive. The max_bars_back is set to 5000 to accommodate extended trend segments. If you notice performance degradation on very low timeframes with long chart history, reduce Profile Rows or reduce the chart's visible bar count
The volume profile is rendered only on the last bar and redrawn on every real-time update. Historical bars show the band structure but not the profile rendering — the profile always reflects the current trend segment state
When a trend flip occurs, the volume profile resets completely. The first few bars after a flip will show a very short profile with minimal data — meaningful HVN confluence typically requires 15–20+ bars of trend history to develop
The adaptive scale is based on ATR percentrank over 100 bars. On instruments or timeframes with less than 100 bars of history, the percentrank may not be fully calibrated. This is a warm-up effect and resolves naturally as history accumulates
The session filter is off by default because ANCHOR is designed as a multi-session trend system. Unlike scalping systems that are most effective during active hours, ANCHOR band retests can occur at any time during a developing trend. Enable the session filter only if you specifically want to restrict entries to active trading hours on your instrument
The Trade Status section tracks position direction from signal to exit within the chart session — it does not connect to your broker or brokerage account
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Past performance of any signal type does not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who understand that the most powerful entries are not at the breakout — they are at the moment price returns to the structural anchor where institutions are waiting. Indicator

Generalized Fisher Transform [LB] Concept
The Generalized Fisher Transform extends John F. Ehlers' classic Fisher Transform (2002) by introducing an adjustable shape parameter that controls the sensitivity profile of the transformation. While the original Fisher Transform maps any normalized input to a near‑Gaussian output to highlight statistical extremes, this generalized version allows traders to emphasize central regions (shape < 1) or extreme tails (shape > 1) depending on their strategy.
Mathematical Foundation
The indicator first normalizes price to a bounded range using a rolling min‑max window of length N :
x = 2 × (P - L_min) / (H_max - L_min) - 1
A signed power is then applied with a shape factor p :
x_p = sign(x) × |x|^p
The generalized Fisher Transform is computed as :
F = 0.5 × ln( (1 + x_p) / (1 - x_p) )
When p = 1 , the formula reduces to the classic Fisher Transform. Values of p < 1 amplify sensitivity near zero (central price region), while p > 1 amplify sensitivity near the edges (extreme price region). The result is smoothed by an EMA for noise reduction.
What Problem Does It Solve ?
Classic oscillators such as RSI or Stochastic use fixed non‑linear mappings that cannot adapt to different market regimes or trader preferences. The classic Fisher Transform offers a single sensitivity profile. The Generalized Fisher Transform solves this by exposing the shape parameter p , giving traders direct control over where the indicator is most responsive — near the mean or near the extremes — without changing the underlying logic or introducing additional indicators.
How To Interpret
The indicator operates in two selectable modes :
Extremes Mode – the background turns red when Fisher exceeds the upper threshold (statistically overbought), and green when it drops below the lower threshold (statistically oversold). These zones suggest potential mean‑reversion.
Direction Mode – the background turns cyan when Fisher is above zero (bullish bias) and orange when below zero (bearish bias). This mode is suited for trend‑following or directional confirmation.
In both modes, the Fisher line crossing zero indicates a shift in the price distribution relative to its recent range.
Parameters
Source – price data used for the calculation (default: close).
Normalization Period – number of bars used to compute the rolling min‑max for the normalization.
Shape Factor – exponent applied to the normalized price before the Fisher transform. 1 = classic Fisher, < 1 = center‑sensitive, > 1 = tail‑sensitive.
Smoothing Period – EMA length applied to the raw Fisher output.
Coloration Mode – switches between "Extremes" (overbought/oversold highlighting) and "Direction" (bullish/bearish highlighting).
Upper Threshold – Fisher level above which the background turns red in Extremes mode.
Lower Threshold – Fisher level below which the background turns green in Extremes mode.
Reference
Ehlers J.F., "Using the Fisher Transform", Technical Analysis of Stocks & Commodities, Vol. 20, No. 11, pp. 40‑45, November 2002.
Ehlers J.F., "Cybernetic Analysis for Stocks and Futures", Chapter 4 – The Fisher Transform, John Wiley & Sons, 2004. Indicator

Hurst Fractal Regime Atlas [JOAT]Hurst Fractal Regime Atlas
Introduction
Hurst Fractal Regime Atlas estimates persistence and mean-reversion regimes using Hurst approximation, fractal dimension, variance ratio, phase coherence, and tension.
This open-source indicator is designed as a context tool, not a standalone trading system. It focuses on explaining the current market state with restrained visuals and confirmed-bar logic where signals are used.
Core Concepts
1. Hurst Approximation
Rescaled-range behavior estimates whether price is persistent, random-like, or mean-reverting.
2. Fractal Dimension
The Hurst estimate is converted into a roughness measure using dimension logic.
3. Multi-Horizon Coherence
Micro, meso, and macro Hurst readings are compared for agreement.
4. Adaptive Rails
ATR, volatility cluster, and Hurst distance expand or contract the fractal field.
fractalDimension = 2.0 - hurstBlend
Features
Hurst and fractal dimension estimates
Persistence, reversion, and mixed regimes
Coherence and tension scoring
Adaptive fractal rails
Breakout, mean, fade, and unstable events
Input Parameters
Fractal and short horizon windows
ATR length
Persistence and mean-reversion gates
Cooldown
Rails, candles, and HUD toggles
How to Use This Script
Use the HUD regime first. Persistence supports continuation interpretation; reversion supports fading extremes; high tension warns of disagreement.
Limitations
The script uses historical OHLCV data and cannot know future prices.
Signals and states can be late during fast reversals because confirmed-bar logic is used to reduce repainting.
Model outputs should be interpreted with market context, risk controls, and independent analysis.
No visual state should be treated as a certain trade outcome.
Originality Statement
HFA is original in combining Hurst approximation, variance ratio, coherence, tension, and adaptive rails.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any financial instrument. All calculations are derived from historical market data and may produce inaccurate readings in some market conditions. No indicator can predict future market behavior. Use proper risk management and independent judgment.
-Made with passion by jackofalltrades Indicator

Entropic Liquidity Manifold [JOAT]Entropic Liquidity Manifold
Introduction
Entropic Liquidity Manifold builds an adaptive POC-style liquidity mean using volume density, auction entropy, displacement, and release scoring.
This open-source indicator is designed as a context tool, not a standalone trading system. It focuses on explaining the current market state with restrained visuals and confirmed-bar logic where signals are used.
Core Concepts
1. Adaptive Manifold
The equilibrium updates faster when density and entropy rise.
2. Volume Density
Volume divided by bar range estimates participation concentration.
3. Auction Entropy
Close location identifies whether the auction is balanced or directional.
4. Absorption vs Release
High density with balance supports absorption, while displacement with direction supports release.
manifold := manifold + adaptiveAlpha * (hlc3 - manifold)
Features
Adaptive liquidity mean
Upper and lower shelves
Entropy trace
Absorption node markers
L+ and L- release labels
Input Parameters
Density and entropy memory
Release and absorption gates
Cooldown
Manifold, candle, and HUD toggles
HUD position selector
How to Use This Script
Use the manifold as an adaptive auction reference. Absorption nodes mark balance; L+ and L- mark confirmed directional release.
Limitations
The script uses historical OHLCV data and cannot know future prices.
Signals and states can be late during fast reversals because confirmed-bar logic is used to reduce repainting.
Model outputs should be interpreted with market context, risk controls, and independent analysis.
No visual state should be treated as a certain trade outcome.
Originality Statement
ELM is original in combining adaptive equilibrium, density, entropy, displacement, and release scoring.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any financial instrument. All calculations are derived from historical market data and may produce inaccurate readings in some market conditions. No indicator can predict future market behavior. Use proper risk management and independent judgment.
-Made with passion by jackofalltrades
Indicator

Adaptive Volatility Stop MTF# Adaptive Volatility Stop MTF (AVS MTF) — v1.2
**Open-source • Pine Script® v6 • Mozilla Public License 2.0**
---
## What this indicator does
AVS MTF is a multi-timeframe volatility-stop indicator. It runs four independent volatility-stop engines — one on the chart timeframe and one each on synthetically derived 3×, 5×, and 15× higher timeframes — and combines their directional states into a weighted bias score from −10 to +10.
Every stop adapts its ATR period and ATR multiplier in real time using the **Kaufman Efficiency Ratio (ER)**, so stops tighten in trending markets and widen in choppy ones.
Three additional integrated subsystems sit on top of the base engine:
- A **Hawkes self-exciting point process** that detects volatility clustering and proportionally raises the firing threshold during vol cascades
- A **data-integrity layer** that auto-detects asset class and flags degraded data (HEALTH = OK / Degraded / Critical)
- An **optional calibration tracker** that reports the engine's measured past hit rate per signal tier with Wilson 95% confidence intervals
The indicator does not predict future prices. It is a structured visualization tool for reading multi-timeframe trend agreement and volatility regime.
---
## Why this is a "mashup" — and why each component is necessary
This script combines four documented techniques:
1. **Volatility Stop** (Chande)
2. **Kaufman Efficiency Ratio**
3. **Multi-Timeframe Aggregation**
4. **Hawkes Self-Exciting Process**
Each component addresses a specific failure mode of the previous one. The integration is what makes the indicator useful:
**1. Volatility Stop (base layer)** — A trailing stop that ratchets in the trend direction by `ATR × multiplier`. By itself this is a classic indicator. Its weakness is well known: in choppy markets it flips constantly because ATR alone cannot tell whether price movement is directional or noise.
**2. Kaufman Efficiency Ratio (adaptation layer)** — ER = (net move) / (total path traveled), bounded in . High ER = trending; low ER = ranging. We use ER to adapt the volatility stop's ATR period (shorter in trends) AND ATR multiplier (tighter in trends). This addresses the choppy-flip problem of the bare volatility stop.
**3. Multi-Timeframe Aggregation (context layer)** — Adapting a single-TF stop is not enough. A "buy" signal on the chart TF means little if the dominant 15× TF is firmly bearish. We run the same adaptive engine on 4 timeframe tiers (Chart, 3×, 5×, 15×) and compute a weighted bias score where higher TFs carry more weight (1, 2, 3, 4). The score gates which signal tiers may fire.
**4. Hawkes Volatility-Cluster Detector (suppression layer)** — Even an adaptive, multi-TF stop fires false signals inside volatility cascades (news events, gap-and-go opens). A Hawkes process tracks an "intensity" that rises with each shock and decays each bar. When intensity / its own baseline exceeds a configurable multiple, the engine raises the bias-score floor required to fire new signals. The lift is proportional — at mild excess only marginal signals are held back; at severe excess only Major-tier flips can fire. A "vol+ / vol++ / vol+++" badge in the dashboard shows the current suppression level.
The combination is what's original here. None of these four components on its own solves the problems the other three address. AVS MTF chains them in a specific order so each layer compensates for the prior layer's weakness.
---
## How to use it
**Setup is minimal.** Add to chart, default settings work on intraday timeframes (5m, 15m, 1H) on liquid instruments (futures, large-cap equities, major crypto pairs).
**Read the dashboard top-down:**
- **SCORE** (−10 to +10): weighted MTF agreement. ≥ +4 = bullish bias, ≤ −4 = bearish.
- **BIAS**: text translation of the score (STRONG BULLISH / BULLISH BIAS / NEUTRAL / etc.).
- **REGIME**: TRENDING / DIRECTIONAL / CHOPPY / TRANSITION.
- **CONVERG**: how tightly the four stops cluster — HIGH = strong cross-TF agreement.
- **HEALTH**: OK / DGR / CRIT. Tooltip shows per-source detail. **Important: if HEALTH shows CRIT, the indicator is unreliable on this instrument.**
**Read the HTF Alignment Ribbon (top of chart):** four colored cells — Chart, 3×, 5×, 15× — showing each timeframe's directional state. When all four match color, you have full HTF alignment.
**Signal hierarchy (visual priority):**
- ▲ / ▼ **Filled label** (Major flip on 15× TF) — highest conviction
- ▲ / ▼ **Small triangle** (Trend flip on 5× TF) — strong
- ▲ / ▼ **Tiny triangle** (Scalp flip on 3× TF) — short-horizon
- ● **Circle** (pullback / band re-touch entry, opt-in display) — momentum continuation
- ✚ **Gold cross** (all higher TFs aligned simultaneously, opt-in display) — rare alignment event
**The Hawkes badge is your filter cue.** When you see `DGR vol++` in the regime row, the indicator is suppressing weak signals. You will see fewer Scalp/Trend signals during these periods. This is intentional — those are the periods where false flips cluster.
**The Calibration Panel (optional, off by default)** reports the engine's measured hit rate on past Trend and Major signals with Wilson 95% confidence intervals. The evaluation rule: a signal is counted as "hit" if price moves at least 0.5 × ATR in the signal direction within N bars (default 10). This is past-only descriptive data — **not a backtest, not a forward prediction, and it does not account for transaction costs, slippage, or execution.**
---
## What's in v1.2 (this version)
- **Flip Persistence Filter** — three modes (Off / Strict / Adaptive). Strict requires a 2-bar close hold beyond the new stop; Adaptive requires the flip-bar close to clear the prior stop by ≥ N × ATR (default 0.5×). Reduces wick-flip whiplash at HTF transitions. Default = Off (preserves v1.1 behavior).
- **Session-Opening Signal Filter** — suppresses Trend and Major flips during the first N bars of each intraday session (default 3 bars). Overnight gap bars contaminate ATR and produce spurious flips at the open. Affects intraday TFs only; ignored on daily/weekly. Default = Off.
- **Conviction-Strength Labels** — optional small label next to Trend and Major signals showing the bias score at firing time. Four modes (Auto / Minimal / Verbose / Off). Auto mode adapts size to chart TF and hides on ≤2-min charts where signals cluster densely. Drawing objects only — no plot-slot cost.
- **HTF Alignment Ribbon** — compact 4-cell horizontal strip showing the bull/bear state of every timeframe. Auto-places opposite the dashboard. Drawing object — no plot-slot cost.
- **Alert system reorganized** — the alert dialog now exposes the 10 most actionable conditions. All other event notifications fire automatically via `alert()` blocks. Set up an alert with condition **"Any alert() function call"** on this script to receive every event.
---
## Originality / what makes this different from existing public scripts
There are many volatility-stop indicators on PulseWire, and several multi-timeframe wrappers. AVS MTF differs in three specific ways:
1. **Independent ER adaptation per timeframe.** Most MTF wrappers compute a single ER on the chart TF and apply the same multiplier across timeframes. AVS MTF runs a separate ER calculation on each tier so adaptation is mathematically correct at every timeframe — the 15× TF doesn't get the chart TF's noise-window applied to it.
2. **Proportional Hawkes suppression integrated with the bias-score gate.** The Hawkes lift is added directly to the score-floor used by the signal-firing logic. This is not a binary "block signals during high volatility" filter — the suppression scales smoothly with measured volatility-cluster intensity.
3. **Asset-class-aware data integrity.** Auto-detects Equity / Futures / Index / FX / Crypto and adjusts which validation checks apply (e.g., the volume filter is auto-disabled on volumeless instruments like spot indices, where it would silently mis-fire).
---
## Settings worth knowing
- **Adaptive Mode** = "Both" (default): adapts both ATR period AND multiplier from ER. Set to "Off" for fixed-parameter behavior comparable to a classic volatility stop.
- **Fast/Slow ATR Bounds**: the range across which ER adaptation moves the ATR period. Wider = more dramatic adaptation.
- **Hawkes Max Score Lift**: how aggressive the volatility-cluster suppression is. Default 2.0 = at peak intensity, a signal needing |score| > 2 will need |score| > 4. Set to 0 to disable suppression while keeping the badge descriptive.
- **Flip Persistence Filter** (v1.2): Off / Strict / Adaptive. Use Strict on slow trending markets, Adaptive on faster-moving instruments.
- **Session-Opening Filter** (v1.2): Off by default. Turn on for markets with strong open-bar volatility (NSE, NYSE, etc.).
- **Conviction Labels** (v1.2): Auto by default. Adapts to chart TF automatically.
- **Calibration Panel**: OFF by default. Turn on to see past hit rates with Wilson 95% CIs.
---
## Important disclaimer
This indicator is provided for **educational and informational purposes only**. It does NOT constitute financial, investment, trading, or any other form of advice.
- Past performance of any signal does not guarantee future results.
- The calibration panel reports descriptive past-only outcomes using a fixed evaluation rule. It is NOT a backtest, NOT a forward prediction, and does NOT account for transaction costs, slippage, or execution.
- All trading involves substantial risk of loss.
- Use proper risk management including position sizing and stop-loss orders.
- The author is not a licensed financial advisor. Consult a qualified professional before making any financial decisions.
---
## License
Released under the Mozilla Public License 2.0 (PulseWire default open-source license).
---
## References
- Perry Kaufman — *Trading Systems and Methods* (Efficiency Ratio + KAMA framework)
- Alan Hawkes (1971) — *Spectra of some self-exciting and mutually exciting point processes*
- Edwin B. Wilson (1927) — *Probable inference, the law of succession, and statistical inference* (Wilson score interval)
Open-source — feedback, forks, and improvement suggestions welcome via the script comments.
Indicator

Nyx Transition Corridor [JOAT]Nyx Transition Corridor
Introduction
Nyx Transition Corridor is an open-source probabilistic regime corridor. It estimates whether the current bullish, bearish, or neutral state has recently tended to persist, then draws adaptive volatility corridors around price. The indicator is built for context, probability, and controlled visualization rather than aggressive signal clutter.
Core Concepts
1. Regime State
The script classifies each bar as bullish, bearish, or neutral using EMA alignment, adaptive basis location, and return behavior.
2. Rolling Transition Model
Recent state transitions are counted to estimate continuation probability for the current state.
pBullBull = math.sum(fromBull * toBull, transitionLen) / math.sum(fromBull, transitionLen)
3. Adaptive Basis
The basis reacts faster when price movement is efficient and slower when the market is choppy.
4. Probability Corridor
ATR, volatility rank, and continuation probability determine the corridor width. Outer rails identify stretched conditions.
5. Compact Execution Rails
Optional small rails mark educational entry, stop, and targets when a probability reclaim or continuation event occurs.
Features
Three-state regime model: Bull, bear, and neutral states
Transition probability: Rolling persistence estimate for current state
Adaptive basis: Efficiency-weighted smoothing
Volatility-ranked corridor: Bands expand and contract with market stress
Confirmed HTF filter: Optional higher-timeframe EMA uses confirmed previous HTF data
Compact trade rails: Smaller educational rails to reduce chart obstruction
Dashboard: Shows probabilities, spread, efficiency, volatility rank, and HTF state
Input Parameters
Adaptive basis length controls centerline memory
Transition memory controls probability stability
Continuation threshold controls signal selectivity
Rail settings control optional educational projections
How to Use This Indicator
Step 1: Read the regime
The dashboard shows whether the model is bullish, bearish, or neutral.
Step 2: Compare probabilities
Large spreads between bull and bear odds indicate clearer directional context.
Step 3: Use the corridor
The corridor shows where price is trading relative to the adaptive probability field.
Indicator Limitations
Transition probabilities are historical estimates, not forecasts
Neutral markets can persist even when price briefly crosses the basis
The optional rails are visual projections and not trading advice
Originality Statement
Nyx Transition Corridor combines a state-transition model, efficiency-adjusted basis, volatility-ranked width, confirmed HTF filtering, and compact execution visuals. Its purpose is to map probabilistic state context, not to duplicate a standard moving-average band.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Probability estimates are based on historical state transitions and do not predict future behavior.
-Made with passion by jackofalltrades
Indicator

Helix Regime Corridor [JOAT]Helix Regime Corridor
Introduction
Helix Regime Corridor is an open-source regime and entry-state indicator built around adaptive ATR bands, structural CHoCH events, regression context, transition memory, and risk rails. It is designed to show when price is moving under bullish control, bearish control, or a less decisive transition state.
The script solves the problem of treating every trend flip the same. It requires directional control, structure, volatility, and confluence scoring before marking a confirmed shift.
Core Concepts
1. Adaptive Regime Corridor
The central trend average and surrounding ATR bands adapt to current market volatility. The corridor shows whether price is operating above, below, or inside the active control area.
2. Confirmed Holds
The script can require price to hold beyond the corridor for a configurable number of bars. This helps reduce single-candle fakeouts.
3. CHoCH-Assisted Structure
Pivot highs and lows identify structural change. Bullish or bearish CHoCH events can support a new regime shift when price breaks prior structure.
4. Regression Context
An optional regression field provides broader directional context and helps identify whether the active shift is aligned with the recent linear price path.
5. Transition Memory
The script tracks transition behavior over a configurable memory window. This adds a probability-style context layer without claiming certainty.
Features
Adaptive ATR corridor: Volatility-adjusted bands frame bullish and bearish control.
Regime shift detection: Identifies confirmed changes into bullish or bearish control.
CHoCH structure: Optional structure-assisted entries using pivot confirmation.
Confluence scoring: Signals require score alignment rather than a single moving-average cross.
Risk rails: Entry, stop, TP1, TP2, and TP3 references can be drawn for confirmed shifts.
Candle tinting: Bars can be colored by current state.
Optional regression channel: Adds broader context when desired.
HUD: Shows regime, score, transition, ADX/ATR, regression, structure, and bias.
Alerts: Long shift, short shift, bull regime, bear regime, bullish CHoCH, and bearish CHoCH.
Input Parameters
Core: Operating Preset, Adaptive Average Length, ATR Length, ATR Band Multiplier, Confirmed Hold Bars.
Structure and Signals: Pivot Left, Pivot Right, Regression Context Length, Transition Memory, Directional Strength Length, Minimum Shift Score, Allow CHoCH-Assisted Entries, Signal Cooldown Bars.
Risk and Visuals: Structure Stop Lookback, Stop ATR Buffer, TP1 R, TP2 R, TP3 R, Rail Projection Bars, Adaptive Bands, Trend Cloud, Regression Channel, Candle Tint, Pivot Marks, HUD.
How to Use This Indicator
Step 1: Read the regime
Use the corridor and dashboard to identify whether price is under bullish control, bearish control, or a weaker transitional state.
Step 2: Wait for score confirmation
Long and short shifts are only marked when the configured confluence score is reached.
Step 3: Compare structure
CHoCH events help explain whether a shift is supported by structural change or only by band behavior.
Indicator Limitations
Pivot structure confirms after the required right-side bars complete.
Adaptive bands can lag sharp reversals because they are volatility-based.
Transition memory summarizes recent behavior; it does not forecast future price.
Risk rails do not account for spread, slippage, or order execution.
Originality Statement
Helix Regime Corridor is original in its combination of adaptive ATR control bands, hold confirmation, CHoCH structure, regression context, transition memory, confluence scoring, and risk rails. The components are combined to classify regime and produce cleaner shift states rather than simply plotting a trend band.
Disclaimer
This script is for educational and informational use only. It is not financial advice and does not recommend any trade. Trend and regime models can fail in ranges, news events, and abnormal volatility. Always manage risk independently.
Made with passion by jackofalltrades
Indicator

Volatility Trail [EXCAVO]ATR Percentile Rank Painted as a Semi-Transparent Wave Beneath Every Candle
The Volatility Trail takes the four-state volatility regime classification
from the standard ATR-percentile model and renders it directly on the price
chart as a semi-transparent wave hanging under each candle. The wave reads at
a glance: blue under the candles means quiet markets, orange means heating up,
red means volatility extremes. No separate indicator pane is required.
This is not a basic ATR oscillator. The ATR is normalised against its own
historical distribution, smoothed, and classified into four bounded regimes
(Low / Normal / Elevated / Extreme) with adjustable thresholds. The on-chart
trail is the same engine as the standard Volatility Percentile indicator,
just drawn where you actually read price.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ HOW TO USE
Step 1 → Add the indicator. A coloured wave appears beneath every
candle as soon as enough history is available for the percentile
lookback to be meaningful (default 200 bars).
Step 2 → Read the wave colour:
- Blue = Low volatility (compression, mean-reversion regime)
- Grey = Normal volatility
- Orange = Elevated volatility (trend regime)
- Red = Extreme volatility (top decile, exhaustion risk)
Step 3 → Watch transitions. A switch from blue to orange flags a
breakout out of compression. A switch from red back to orange
flags a release from extreme volatility - often the right side
of a spike. The floating state badge to the right of the last
candle shows the current regime name at a glance.
Step 4 → Check the dashboard. State, raw percentile, ATR, ATR / Price,
and Vol Trend show the current regime numerically. Use these to
size positions and pick filters that depend on volatility.
Step 5 → Combine with structure. The trail is a context tool, not a
directional one - it tells you HOW volatile the market is, not
WHICH way it will move. Pair it with your own setup criteria.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ HOW IT CALCULATES
◆ ATR Percentile Rank
The base measure is Average True Range over the user-set length (default 14).
For every bar the current ATR is ranked against its own values over the
Lookback Period (default 200): percentile = 100 x rank / N. A value of 90
means current volatility is higher than 90 percent of bars in the lookback
window. This normalisation makes the reading comparable across instruments
and timeframes - 90th-percentile vol on BTC and on EURUSD are both rare even
though their absolute ATRs differ by orders of magnitude.
◆ Smoothing
The raw percentile is smoothed with a short SMA (default 3) to reduce single-
bar noise. Smoothing = 1 disables this step.
◆ Four-State Classification
The smoothed percentile is bucketed into four regimes:
- Low = below Low / Normal boundary (default 25)
- Normal = between Low / Normal and Normal / Elevated (default 25 to 60)
- Elevated = between Normal / Elevated and Elevated / Extreme (default 60 to 80)
- Extreme = at or above Elevated / Extreme (default 80)
All three boundaries are user-adjustable.
◆ Candle-Anchored Downward Wave
A semi-transparent band hangs directly under each candle. The upper edge
is the bar's low, lightly EMA-smoothed so single-bar wick spikes do not
poke through the ribbon. The lower edge drops below by an ATR-scaled
distance: drop = ATR x (1 + percentile x Wave Distance Scale). At calm
regimes the wave is a thin sliver under price; at volatile extremes it
extends well below. The colour is the active state colour, and the
opacity within each state band is gradient (see next item).
◆ Within-Band Opacity Gradient
The wave colour is the state colour (blue / grey / orange / red), but the
opacity is not flat across each state - it ramps from Min Opacity at the
LOWER edge of the band (regime just entered) to Max Opacity at the UPPER
edge (peak of the regime, about to graduate to the next state). So a fresh
red band that just crossed into Extreme is light red, while a red band at
percentile 95 is a deep saturated red. The same gradient applies inside
the Low / Normal / Elevated bands. This lets you read at a glance whether
the current regime is just beginning, peaking, or about to fade into the
next state - approach and exhaustion are separately readable inside every
band.
◆ Vol Trend
ATR is compared to its 20-bar SMA. Above 1.05x SMA = RISING, below 0.95x =
FALLING, else STABLE. Shown on the dashboard as a quick second-derivative
read of the regime.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ WHAT MAKES IT DIFFERENT
◆ Wave Lives On The Price Chart
Most volatility indicators occupy a separate pane and force the eye to jump
between price action and the oscillator. The wave overlays the same regime
information directly on the candles, so price and volatility are read
together in one view.
◆ Adaptive Across Instruments
Percentile-rank normalisation removes the absolute ATR units. A BTC chart
and a EURUSD chart use the same scale (0 to 100), so the same thresholds
work everywhere without manual tuning.
◆ Four Bounded Regimes Instead Of A Raw Line
A raw ATR plot tells you very little until you have a feel for what is
"normal" on that instrument. The four-state classification answers the
question directly - quiet, normal, elevated, or extreme - using
user-adjustable boundaries.
◆ Within-Band Opacity Gradient
Inside each state band the wave opacity ramps from light (just-entered
regime) to saturated (regime at its peak). A fresh red band reads as
pale red; a deep mature Extreme reads as a saturated red. Approach and
exhaustion are separately readable inside every regime, not just on
state transitions.
◆ Premium Visual Polish
A thin rim-light line follows the upper edge of the wave for definition,
and a contrast-aware state badge floats next to the last candle showing
the current regime name. The badge text colour is picked automatically
by the perceived luminance of the background so the label stays readable
on any state colour.
◆ Optional Bar Coloring And Background
For users who want the regime even more visible, bar-coloring and
background-highlight toggles tint the candles or the chart background with
the active state colour. Both default off so the wave stays as the primary
visual.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ DASHBOARD
Real-time panel (top right) with the current regime readout:
State - LOW / NORMAL / ELEVATED / EXTREME
Percentile - the smoothed ATR percentile (0 to 100)
ATR - raw Average True Range
ATR / Price - ATR as a percentage of close (instrument-independent)
Vol Trend - RISING / STABLE / FALLING based on ATR vs its 20-bar SMA
Lookback - the bar count used for the percentile rank
Legend table (bottom left) explains every colour. Both panels toggle in the
Dashboard settings.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ SETTINGS
Engine
ATR Length - 14 (period for the Average True Range)
Lookback Period - 200 (historical bars used for the percentile rank)
Smoothing - 3 (SMA length applied to the raw percentile; 1 disables it)
State Thresholds
Low / Normal - 25 (boundary between Low and Normal regimes)
Normal / Elevated - 60 (boundary between Normal and Elevated)
Elevated / Extreme - 80 (boundary between Elevated and Extreme)
Visualization
Low Vol Color - blue
Extreme Vol Color - red
Elevated Vol Color - orange
Wave Top Smoothing - 3 (EMA length applied to the wave top; 1 = raw bar low with sharp peaks, 3 to 5 rounds off single-bar spikes while staying tight to price)
Wave Distance Scale - 0.025 (controls how far the wave drops below each candle as volatility rises; drop = ATR x (1 + percentile x scale); default keeps drops modest - approximately 1 ATR at Low regime, 3.5 ATR at Extreme)
Min Opacity - 25 (wave opacity at the LOWER edge of every state band - just-entered regime; very transparent)
Max Opacity - 55 (wave opacity at the UPPER edge of every state band - peak of the regime; visible but kept semi-transparent so the candles stay readable)
Wave Top Highlight - ON (thin rim-light line along the upper edge of the wave; adds definition and a premium glow)
Right-edge State Label - ON (floating badge next to the last candle showing the current state name in the state color)
Bar Coloring - OFF (when ON, also tints the candles with the state color)
Background Highlight - OFF (when ON, tints the chart background)
Dashboard
Show Dashboard - ON
Dashboard Position - Top Right
Show Legend - ON
Alerts
JSON Alerts - OFF (when ON, emits a structured JSON payload via alert())
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ ALERTS
Extreme Volatility - state just transitioned into Extreme
Elevated Volatility - state just transitioned into Elevated
Normal Volatility - state just transitioned into Normal
Low Volatility - state just transitioned into Low
With JSON Alerts ON, the alert() call emits a structured payload with
ticker, state, percentile, atr_pct, price, timeframe, and indicator fields -
use "Any alert() function call" as the PulseWire alert event to receive
every state change as JSON on one alert.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
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

Regime Execution Strategy [JOAT]Regime Execution Strategy
Introduction
Regime Execution Strategy is an open-source PulseWire strategy that integrates adaptive forecast context, extreme-channel state, trend pressure, relative volume, and EMA structure into a single rule-based execution model. The strategy is designed to be realistic, non-repainting, and readable rather than curve-fit to one symbol.
The problem it solves is trade filtering. A single signal source can trigger too often in poor conditions. Regime Execution Strategy requires multiple independent votes before entries are allowed, then uses ATR-based stop and target logic for consistent risk framing.
Core Concepts
1. Adaptive Forecast Bias
The strategy estimates a dynamic mean and band structure. Price above or below the adaptive mean contributes to directional bias.
2. Extreme Channel Bias
Persistent upper and lower channel levels define a midpoint and directional state. The channel contributes a second independent vote.
3. Pressure and Structure Gate
Momentum, pullback location, and fast/slow EMA structure contribute to the regime score. A minimum vote count and relative-volume filter are required before entry.
longSignal = barstate.isconfirmed and bullVotes >= voteThreshold and bullRegime and (longBreakout or longReclaim)
4. ATR-Based Risk Management
Stops and targets are derived from ATR and position average price. The strategy also includes max drawdown and max intraday filled order risk controls.
Features
Integrated regime detection: Forecast, channel, pressure, and EMA structure combine into a regime score
Multi-vote entry logic: Entries require several independent components to align
More active defaults: Default RVOL and regime thresholds are permissive enough to participate across many timeframes
ATR stop and target: Risk is framed with volatility-adjusted exits
Bias-flip exits: Positions can close when the opposing regime gains enough votes
Risk controls: Max drawdown and max intraday filled orders are included
Overlay visuals: Forecast bands and adaptive channel context can be displayed on chart
Top-right dashboard: Regime, score, pressure, RVOL, votes, position, band width, and setup
Alerts: Long and short setup events
Input Parameters
Forecast:
Source, Forgetting Factor, Regression Horizon, Band Multiplier, ATR Blend, and Rebase Interval
Regime:
Fast EMA and Slow EMA: Trend structure references
Pressure Length: Momentum and pullback window
Pressure Threshold: Minimum pressure vote threshold
Min RVOL: Participation filter
Min Votes: Minimum number of aligned components for entries
Risk:
Stop ATR: Stop distance multiplier
Target ATR: Target distance multiplier
Max Drawdown %: Strategy risk halt setting
Max Intraday Filled Orders: Limits daily trade frequency
How to Use This Strategy
Step 1: Read the dashboard regime before judging entries.
Step 2: Use votes and pressure to understand why a setup qualified.
Step 3: Review stop and target settings for the symbol and timeframe being tested.
Step 4: Evaluate results across multiple markets and date ranges, not one optimized window.
Strategy Limitations
This strategy is not optimized for a specific symbol or timeframe
More active defaults can increase trade count and also increase exposure to choppy periods
Backtest fills are simulated by PulseWire and may not match live execution
All entry signals use confirmed-bar logic, so entries can occur after the intrabar move has begun
Strategy performance should be evaluated with realistic commission, slippage, and position sizing
Originality Statement
Regime Execution Strategy is original in its integration of adaptive forecast bias, extreme-channel state, pressure voting, relative volume gating, EMA structure, ATR exits, and dashboard reporting into one open-source strategy. It does not copy third-party source code.
Disclaimer
This open-source strategy is for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any instrument. Backtested results do not predict future performance. Trading involves substantial risk, and users are responsible for their own risk management.
-Made with passion by jackofalltrades
Strategy

Extreme Reversal Channel [JOAT]Extreme Reversal Channel
Introduction
Extreme Reversal Channel is an open-source adaptive channel that tracks persistent upper and lower extremes, gradually resets stale levels, and marks confirmed reversal conditions when price rejects a fresh extreme through the channel midpoint.
The problem it solves is stale channel context. Fixed lookback channels can jump abruptly as old bars roll out. Extreme Reversal Channel uses persistent state and controlled interpolation, creating smoother structural boundaries while still adapting to current price.
Core Concepts
1. Persistent Extreme Tracking
The upper channel updates when a new high exceeds the current upper core. The lower channel updates when a new low breaks the current lower core.
2. Counter-Based Reset
If no new extreme appears after the selected reset length, the stale level interpolates toward current price using the reset alpha setting.
upperCore := upperCore * (1.0 - alpha) + high * alpha
lowerCore := lowerCore * (1.0 - alpha) + low * alpha
3. Midpoint Reversal Confirmation
A bullish reversal requires a fresh lower extreme and a confirmed close back above the midpoint. A bearish reversal requires a fresh upper extreme and a confirmed close back below the midpoint.
4. Channel vs Trail Mode
Channel mode shows the upper, lower, and midpoint. Trail mode shows a single adaptive trailing reference derived from the current trend state.
Features
Adaptive upper/lower extremes: Persistent channel boundaries that update with new highs/lows
Reset interpolation: Stale levels drift toward current price instead of disappearing abruptly
Midpoint reversal logic: Reversal labels require closed-bar confirmation
Gradient channel fills: Upper and lower channel regions are lightly shaded
Optional trail mode: Converts the channel into a single adaptive stop reference
Top-right dashboard: Trend, mode, width, price position, reset age, and signal state
Alerts: Confirmed bullish and bearish reversal events
Input Parameters
Channel:
Reset Length: Bars allowed before an untouched extreme resets
Reset Alpha: Interpolation speed toward current price
Body Filter: Minimum candle body quality for reversal labels
Trailing Mode: Switches from full channel to trail display
How to Use This Indicator
Step 1: Use the channel boundaries as adaptive structural extremes.
Step 2: Watch for midpoint rejections after fresh extremes.
Step 3: Use trail mode when you want a simpler directional reference.
Step 4: Read price position and channel width in the dashboard before interpreting a reversal.
Indicator Limitations
Reversal labels can be early in strong breakout conditions
Very narrow channels require caution because small moves can cross the midpoint easily
The channel is adaptive context, not a complete trade system
Signals are confirmed on closed bars and do not use future references
Originality Statement
Extreme Reversal Channel is original in its combination of persistent extreme tracking, reset interpolation, midpoint rejection logic, optional trail mode, and compact dashboard output. It does not copy third-party source code.
Disclaimer
This open-source indicator is provided for educational and informational purposes only. It is not financial advice. Market conditions can invalidate reversal context, and risk management remains essential.
-Made with passion by jackofalltrades
Indicator

Adaptive Trend Intelligence + SMC + RVOL + ML - FloAlgoThis indicator combines an Adaptive SuperTrend with Smart Money Concepts (SMC) market structure, Relative Volume (RVOL) filtering, and an online Machine Learning model to produce high-confidence trend-following signals.
How It Works
Adaptive SuperTrend — A SuperTrend band whose ATR multiplier scales automatically based on the short/long volatility ratio. In quiet markets the band tightens; in expansions it widens. An optional noise filter requires price to hold on the new side for N bars before a flip is accepted, eliminating whipsaws.
SMC Market Structure Engine — Uses a Stochastic Momentum Oscillator to detect overbought/oversold pivots and build an alternating High/Low swing chain. From those swings it tracks Dow-Theory labels (HH, HL, LH, LL), draws a zigzag, plots S/R zones, and detects BOS (Break of Structure) when price closes beyond the previous major swing confirming trend continuation, and CHoCH (Change of Character) when price closes beyond the prior opposing major swing signaling a trend flip. Both events require an established trend direction and fire only against the correct structural level, preventing false signals on internal corrections.
RVOL Filter — Computes directional buy/sell volume from candle structure and ranks it against a rolling percentile. Signals are suppressed unless the directional volume percentile clears a configurable threshold, keeping entries to high-participation moves only.
Online ML Model — A logistic regression model with L2 regularisation trained incrementally on every confirmed SuperTrend flip. It learns 17 features per signal including candle shape, volume, momentum, ATR slope, RSI, Bollinger position, RVOL, and SMC bias, then resolves each trade when the next flip occurs. Probability is displayed in the info table and can gate signals via a minimum confidence threshold.
Visual Elements
SuperTrend line with bull/bear fill
▲ / ▼ signal arrows and labels
BOS / CHoCH labels at structure breaks
HH / HL / LH / LL Dow labels at each pivot
Zigzag lines connecting momentum pivots
S/R zone boxes, colour-coded and fading on break
Info table showing Signal, Trend, ML Confidence, RVOL, Momentum, Volatility, Quality, MS Bias, and last Structure event
Key Settings
ATR Length — lookback for ATR calculation
ATR Multiplier — base band width
Adaptive Multiplier — auto-scales multiplier with volatility ratio
Noise Filter (bars) — bars price must hold before flip is confirmed
RVOL Lookback — rolling window for volume percentile ranking
RVOL Min Percentile % — minimum directional volume percentile to allow a signal
Min ML Probability % — minimum ML model confidence to allow a signal
Stochastic Length — sensitivity of the momentum pivot oscillator
Overbought / Oversold — stochastic zone thresholds for pivot detection
Filter Signals by MS — gate signals to align with SMC trend direction
Max S/R Zones per Side — maximum supply/demand boxes kept on chart
Indicator

Adaptive Forecast Bands [JOAT]Adaptive Forecast Bands
Introduction
Adaptive Forecast Bands is an open-source adaptive regression and mean-reversion framework. It estimates a live fair-value path from price, wraps that path in volatility-aware bands, and marks confirmed re-entry conditions only after the bar closes.
The problem this indicator solves is context around stretched price. A static moving average band can lag badly when volatility changes. Adaptive Forecast Bands uses a recursive regression engine, a live model error estimate, and an ATR blend so the envelope expands and contracts with current market behavior.
Core Concepts
1. Adaptive Regression Mean
The centerline is built from a persistent two-parameter regression state. The script uses normalized local time so the model does not depend on raw bar index growth over long histories.
forecastMean = beta0 + beta1 * xNorm
forecastErr = source - forecastMean
2. Error-Based Confidence Bands
Band width is derived from the model's exponentially weighted error plus an ATR component. This keeps the band reactive to both forecast error and realized volatility.
3. Confirmed Re-Entry Signals
The script arms a long or short setup when price reaches an outer band. A signal only prints when price confirms a re-entry back through the relevant band on `barstate.isconfirmed`.
4. Forecast Guide Lines
The right-edge guide projects the current regression slope forward for visual context. It is a guide, not a prediction, and is redrawn on the last bar to avoid object clutter.
Features
Adaptive fair-value line: Recursive regression centerline based on current price behavior
Volatility-aware envelope: Error variance and ATR combine to form dynamic upper/lower bands
Confirmed long/short labels: Re-entry signals use closed-bar logic
Right-edge forecast guide: Dashed and dotted guide lines show current slope context
Top-right dashboard: Bias, confidence, band width, slope, guide state, and signal state
Alert conditions: Long and short confirmed re-entry events
Input Parameters
Model:
Source: Price source used by the model
Forgetting Factor: How quickly the model adapts to new price information
Regression Horizon: Normalization horizon for the regression slope
Band Multiplier: Multiplier applied to model error
ATR Blend: Extra realized-volatility padding in the band width
Rebase Interval: Periodic reset to keep the adaptive model stable
How to Use This Indicator
Step 1: Use the centerline as an adaptive fair-value reference.
Step 2: Treat outer-band touches as stretched conditions, not immediate entries.
Step 3: Wait for confirmed re-entry labels when enabled.
Step 4: Read the dashboard confidence and slope before interpreting the signal.
Indicator Limitations
The right-edge guide is a visualization of current model slope, not a forecast guarantee
Mean-reversion signals can underperform during strong directional trends
The model periodically rebases by design to reduce long-history numerical drift
Signals are confirmed on closed bars and can appear after the intrabar extreme occurred
Originality Statement
Adaptive Forecast Bands is an original JOAT implementation combining normalized recursive regression, error-based confidence bands, ATR blending, confirmed re-entry logic, and a compact interpretive dashboard. It does not copy third-party source code.
Disclaimer
This open-source indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to buy or sell any financial instrument. Trading involves risk, and historical behavior does not ensure future results. Always use proper risk management.
-Made with passion by jackofalltrades
Indicator

Meridian Stochastic Regime Suite [JOAT]Meridian Stochastic Regime Suite
Introduction
Meridian Stochastic Regime Suite is an open-source adaptive oscillator built for traders who want more context than a standard stochastic line can provide. The script combines a centered stochastic engine, an adaptive response model, and a regime profile so the oscillator changes character as the market shifts between trend, compression, expansion, and balance.
The problem Meridian solves is signal quality. Standard oscillators often look clean, but they do not explain whether momentum is occurring inside a compressed market, an expanding breakout phase, or a stable trend. Meridian adds that context directly into the oscillator architecture so the same reading can be interpreted differently depending on the active regime profile.
Core Concepts
1. Centered stochastic architecture
Price is pre-smoothed first, then converted into a stochastic reading that is centered around 50 so directional pressure is easy to interpret:
smoothHigh = ta.ema(high, priceSmoothLen)
smoothLow = ta.ema(low, priceSmoothLen)
smoothClose = ta.ema(close, priceSmoothLen)
rawStoch = 100.0 * (smoothClose - ta.lowest(smoothLow, stochLen)) / stochRange
2. Adaptive response engine
The main oscillator does not use static smoothing alone. Its response speed and gain expand or contract based on the regime profile:
gainBias = gainBase + trendScore * 0.38 + expansionScore * 0.18 - compressionScore * 0.12
speedBias = responseBase + trendScore * 0.08 + expansionScore * 0.04
adaptiveOsc := adaptiveOsc + speedBias * (adaptiveSeed - adaptiveOsc )
This helps the oscillator respond differently in directional and compressed conditions.
3. Embedded regime scoring
Meridian computes four internal state scores:
Trend
Compression
Expansion
Balance
Those scores are derived from ATR behavior, path efficiency, and slope strength, then normalized into a regime profile shown in the dashboard.
4. Spread and signal layer
The script compares the adaptive oscillator to a slower signal line and visualizes the spread around the neutral axis. This gives a direct view of acceleration versus drag.
5. Institutional oscillator panel
The panel uses restrained zones, layered fills, and a top-right dashboard instead of loud markers. The result stays readable while still carrying multiple analytical dimensions.
Features
Centered stochastic core: Keeps the oscillator readable around a neutral midpoint
Adaptive response model: Gain and speed shift with the internal regime profile
Four-state regime map: Trend, Compression, Expansion, and Balance
Fast line and signal line: Shows momentum acceleration versus stabilization
Spread shading: Highlights when the adaptive oscillator is separating from the signal line
Regime dashboard: Displays state, confidence, adaptive reading, signal reading, and regime profile shares
Confirmed-bar flips: Internal state transitions are tracked on closed bars
Non-repainting design: Uses only current-timeframe data and no future references
Input Parameters
Stochastic Core:
Price Pre-Smoothing
Stochastic Length
Fast Smoothing
Adaptive Signal Smoothing
Regime Filter:
Regime Window
ATR Window
Base Oscillator Gain
Base Response Speed
Visual Output:
Show Adaptive Zones
Show Centered Fast Line
How to Use This Indicator
Step 1: Start with the regime
Read the dashboard first. Trend and Expansion regimes support directional interpretation. Compression and Balance call for more caution.
Step 2: Watch adaptive versus signal spread
When the adaptive line separates cleanly from the signal line, momentum is strengthening. When the spread compresses, the move is losing urgency.
Step 3: Use the centered fast line as timing context
The fast line helps show whether short-term momentum is leading or lagging the adaptive engine.
Step 4: Avoid isolated readings
Meridian is strongest when used alongside a structure or value-based tool rather than as a standalone trade trigger.
Indicator Limitations
Like all oscillators, Meridian can remain elevated or depressed during strong directional trends
Compression states may delay re-acceleration readings until volatility expands again
The regime profile is descriptive, not predictive
Originality Statement
Meridian Stochastic Regime Suite is original in how it embeds a four-state regime profile directly into the adaptive behavior of a centered stochastic engine. It is published because:
The oscillator response changes with internal market-state measurements instead of using only fixed smoothing
The script surfaces trend, compression, expansion, and balance as percentages inside the same panel
The panel and dashboard design turn regime context into an interpretable momentum framework rather than a generic stochastic clone
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice or a recommendation to trade. Oscillator readings can remain extreme for extended periods, and regime classifications can shift as conditions evolve. Always use independent judgment and proper risk management.
Indicator

Opening Auction Ledger [JOAT]Opening Auction Ledger
Introduction
Opening Auction Ledger is an open-source session framework built to standardize how the opening range is measured, locked, evaluated, and managed throughout the day.
The indicator is designed around a simple institutional question:
Once the opening auction is complete, is price accepting away from it or failing back into it?
The script answers that by combining:
session-specific opening range capture
high-low or body-based range construction
breakout qualification
relative volume confirmation
objective extension ladders
session profile rendering
adaptive continuation trail management
historical breakout tracking in a dashboard
This makes the opening range usable as more than a static box.
It becomes a complete session ledger.
Core Concepts
1. Opening Range Capture
The script builds the opening range only during the specified session window and then locks that range when the session ends.
This preserves a fixed reference for the rest of the day.
2. Source Flexibility
Users can define the opening range using raw highs and lows or candle bodies.
This changes how strict the opening auction frame is and can make the indicator more stable on noisy instruments.
3. Qualified Breakout Detection
Breaks are not accepted simply because price crosses a range boundary.
The script can require a minimum displacement beyond the range and, optionally, a relative-volume lift compared with recent activity.
4. Objective Laddering
Once a breakout is confirmed, the script projects three extension objectives above and below the opening range using multiples of the locked range size.
5. Continuation Management
An adaptive ATR trail follows the accepted breakout so continuation quality can be monitored after the initial move is underway.
Features
Configurable opening session: user-defined session window and timezone
Opening range lock: session range freezes after the auction ends
Body or high-low source mode: choose the structure used to build the range
Relative-volume breakout filter: optional confirmation prevents weaker breaks from being counted
Minimum displacement filter: breakout must exceed a configurable fraction of the locked range
Extension ladder: three upside and three downside objectives
Session profile: profile-style rendering of activity inside the opening auction
Continuation trail: adaptive ATR trail tracks accepted move quality
Historical outcome counters: dashboard tracks breakout counts and objective hit rates
Institutional dashboard: top-right summary of session state, range size, direction, and objective performance
Input Parameters
Opening Auction
Opening Range Session
Session Days
Timezone
Range Source
Minimum Break % Of Range
Require Relative Volume Lift
Relative Volume Threshold
Extension Ladder
Show Extension Ladder
Objective One
Objective Two
Objective Three
Show Price Labels
Auction Profile
Show Session Profile
Profile Rows
Profile Width Bars
Profile Offset Bars
Continuation Management
Show Adaptive Continuation Trail
Trail ATR Length
Trail ATR Multiplier
Display
Range Fill Transparency
Shade Session State
Dashboard Position
Dashboard Size
How to Use This Indicator
Step 1: Wait for the Range to Lock
Do not treat the opening range as final until the configured auction window is complete.
Before that point, the frame is still forming.
Step 2: Measure the Quality of the First Break
The first breakout matters most when it clears the minimum displacement rule and is supported by the configured relative-volume threshold.
Step 3: Use the Ladder as an Objective Map
The projected targets are not predictions.
They are structured expansion references derived from the opening range itself.
Step 4: Follow the Trail for Acceptance
The continuation trail helps determine whether price is still accepting away from the opening auction or beginning to fail back toward it.
Step 5: Review the Dashboard Statistics
The dashboard can help users understand how often objective ladders are being reached under the current settings and instrument behavior.
Indicator Limitations
The usefulness of the opening range depends heavily on the selected session and market traded
Relative-volume logic is chart-volume based and depends on the instrument's available volume series
Very narrow opening ranges can create closely spaced objectives in low-volatility sessions
A qualified breakout can still fail quickly in event-driven or thin-liquidity conditions
Originality Statement
Opening Auction Ledger extends the classic opening-range idea into a broader session framework by combining range locking, breakout qualification, objective ladders, profile context, continuation management, and outcome tracking in a single open-source script.
Disclaimer
This indicator is provided for educational and informational purposes only.
It is not investment advice and does not guarantee that any breakout or target sequence will succeed.
All calculations are based on historical chart data and should be interpreted with appropriate risk management and independent analysis.
Indicator

Crown Structure Ledger [JOAT]Crown Structure Ledger
Introduction
Crown Structure Ledger is an open-source market structure ledger built to classify price through three structural horizons at the same time: short-term, intermediate-term, and primary-term.
Instead of reducing structure to a single swing model, this script maintains separate rails for each horizon so users can see where local repricing, intermediate repricing, and larger campaign structure are currently positioned.
The indicator is designed to solve a common chart-reading problem:
Traders often know price is moving, but they do not know whether the move is merely a short-term impulse inside a larger range, an intermediate continuation, or a genuine primary expansion.
Crown Structure Ledger addresses that by combining:
confirmed pivot structure
active break state tracking
adaptive ATR corridors
EMA trend context
volume-pressure bias scoring
state-based candle coloring
forward structure projection
a top-right institutional dashboard
The output is intentionally visual but restrained.
Instead of cluttering the chart with excessive markers, the script emphasizes live structural rails, shaded corridors, confirmed state transitions, and a dashboard that summarizes the current condition of each structural layer.
Core Concepts
1. Three-Horizon Structure Mapping
The script confirms three separate pivot systems using different left/right lengths.
This creates a short-term layer for local impulse, an intermediate layer for swing control, and a primary layer for broader directional structure.
Each confirmed pivot updates its own active rail instead of overwriting the other layers.
2. Confirmed Break Logic
Break states are only recognized on confirmed bars.
This means the script does not react to intrabar spikes through a level.
A structural state changes only when price closes through a live rail beyond a small corridor allowance.
3. Adaptive Structure Corridors
Every rail is wrapped in an ATR-based corridor.
When adaptive depth is enabled, the corridor expands or contracts according to volatility conditions so the structure model stays usable across slow and fast environments.
4. Pressure-Weighted Bias
The indicator includes a directional pressure score based on up-volume versus down-volume across a configurable window.
That pressure score is combined with EMA orientation and structure state to create a bias color system rather than a binary trend flag.
5. Forward Projection
Current structural rails can be extended forward so the user can see where the next important structural interaction is likely to occur without manually drawing continuation levels.
Features
Three structure horizons: short, intermediate, and primary rails tracked independently
Adaptive structure corridors: live ATR-based zones around active rails
Confirmed structural transitions: break states only update on confirmed bars
Break labels: optional state labels appear when a new structural expansion or compression is confirmed
EMA trend filter: fast and slow EMA alignment supports the structure interpretation
Volume-pressure bias model: directional pressure is estimated from relative up-volume and down-volume
Bias cloud: optional background cloud reflects broader directional control
Candle coloring: bars can be colored from bearish to bullish using a gradient-like bias response
Forward corridor projection: active rails can extend to the right edge of the chart
Institutional dashboard: top-right summary of structure state, bias, pressure, and live rail context
Input Parameters
Structure Engine
Short Pivot Length
Intermediate Pivot Length
Primary Pivot Length
Structure Corridor ATR
Adaptive Corridor Depth
ATR Length
Bias Filter
Fast EMA
Slow EMA
Pressure Window
Color Candles
Show Structure Cloud
Show Structure Rails
Show Break Labels
Visual System
Show Short Term
Show Intermediate Term
Show Primary Term
Show Forward Corridor
Forward Corridor Bars
Dashboard Position
Dashboard Size
How to Use This Indicator
Step 1: Read the Three States Separately
Start by checking whether short-term, intermediate-term, and primary-term structure agree.
When all three align, the chart is in a cleaner directional condition.
When they diverge, the market is often transitioning or rotating.
Step 2: Watch the Active Rails
The live rails mark the current structural boundaries that still matter.
These are the levels price must reclaim or lose to produce a confirmed structural update.
Step 3: Use the Corridors, Not Just the Line
The corridor around a rail is intentional.
It helps avoid overreacting to shallow level breaches in noisy conditions.
Step 4: Read the Bias Cloud and Candle Tone Together
If candle color, pressure bias, and the structure cloud all point in the same direction, the chart context is stronger than a single rail break by itself.
Step 5: Use the Dashboard as a Summary, Not a Shortcut
The dashboard is there to reduce scanning time.
It is best used as a summary of what the rails are already showing visually.
Indicator Limitations
Pivot-based structure confirms after the configured right-side bars complete, so signals are intentionally delayed for non-repainting behavior
Very aggressive settings can make the short-term layer overly sensitive on low-quality markets
In prolonged compression, structure may appear stable while directional follow-through remains weak
The indicator explains current structure; it does not guarantee continuation after a break
Originality Statement
Crown Structure Ledger is built around a layered structure ledger rather than a single swing map.
Its distinguishing value comes from maintaining three live structure horizons with adaptive corridors, pressure-aware bias scoring, forward projection, and a dashboard that keeps the chart readable while still exposing the full state of the engine.
Disclaimer
This indicator is provided for educational and informational purposes only.
It is not financial advice and should not be treated as a recommendation to buy or sell any financial instrument.
All structural readings are derived from historical price and volume data and can fail in abnormal market conditions.
Always use independent judgment and risk management.
Indicator

Vesper Divergence Cascade [JOAT]Vesper Divergence Cascade
Introduction
Vesper Divergence Cascade is an open-source divergence and response-structure overlay built around RSI pivots and a smoothed T3 ribbon. It detects regular and hidden bullish or bearish divergence, then maps the likely response area with projected zones, corridors, and target guides directly on the chart.
The problem this script solves is incomplete divergence analysis. Many divergence tools draw a line and stop there. That leaves the user without context about whether the move is aligned with local structure, whether the divergence developed in an overbought or oversold condition, and where price might respond if the divergence matters. Vesper Divergence Cascade adds that missing structure.
Core Concepts
1. Pivot-Based Divergence Detection
Confirmed price pivots are stored alongside the RSI value that existed at the pivot bar. This allows the script to compare current and prior pivot pairs without relying on unstable future references. Regular and hidden divergence types are evaluated independently on both highs and lows.
2. Ribbon Context Filter
The T3 ribbon acts as a directional and location filter. Divergence can optionally require price to be extended beyond the ribbon in the direction of the stretch before the event is accepted.
3. Response Zones And Corridors
When a divergence confirms, the script can project a response zone, midpoint line, reaction corridor, and target line forward from the pivot area. This turns divergence from a simple signal marker into a structured response map.
4. Signal Quality Context
The script uses RSI delta, ATR-normalized price displacement, cooldown logic, and optional overbought or oversold context to grade whether a divergence is meaningful enough to display.
Features
Regular bullish and bearish divergence: Reversal-oriented pivot disagreement
Hidden bullish and bearish divergence: Continuation-oriented pivot disagreement
T3 ribbon filter: Smoothed directional context layer
Reaction envelopes: Premium and discount response bands around ribbon center
Response zones: Forward areas projected from the active divergence
Reaction corridors: Larger projected path zones for follow-through context
Target lines: Simple objective guides derived from ATR structure
Signal labels: On-chart labels with response type and quality readout
Pivot dots and reset markers: Optional event markers for visibility
Dashboard: Displays RSI, zone state, ribbon state, cooldown, and active signal
Confirmed pivots only: Divergence prints only after pivot confirmation
Input Parameters
RSI Core And Divergence:
RSI source and length
Overbought and oversold levels
Pivot length and divergence window
Regular and hidden divergence toggles
Quality And Display:
Signal cooldown
Minimum RSI delta
Minimum ATR move
Extreme-condition requirement
Ribbon-filter requirement
Ribbon, pivot dots, dashboard, response zone, signal label, and reaction corridor toggles
How to Use This Indicator
Step 1: Identify whether the latest signal is regular or hidden, because they imply different response behavior.
Step 2: Check whether the signal formed in overbought or oversold context and whether the ribbon was supportive.
Step 3: Use the response zone and corridor as a framework for how price may react rather than as a guaranteed destination.
Step 4: Use reset markers to track whether momentum is rebalancing after the divergence.
Step 5: Prefer divergence that forms after visible extension, not in flat neutral conditions.
Indicator Limitations
Pivot confirmation introduces intentional delay because divergence is only known after the pivot is confirmed
Divergence can persist or fail completely during strong trends
Hidden divergence is continuation-oriented and should not be interpreted the same way as regular divergence
Projected zones and targets are analytical guides, not forecasts
Originality Statement
Vesper Divergence Cascade is original in how it combines pivot-stored RSI divergence, a T3 ribbon context filter, response envelopes, projected zones, and reaction corridors inside one divergence workflow. The script is designed to explain what kind of divergence formed, where it formed, and how price may structurally respond afterward.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Divergence is a contextual tool and can fail repeatedly during persistent trends, so all use should include independent analysis and risk management.
-Made with passion by jackofalltrades
Indicator

Obsidian Regime Ribbon [JOAT]Obsidian Regime Ribbon
Introduction
Obsidian Regime Ribbon is an open-source trend-state and execution-context overlay built to classify directional conditions before a trader applies any separate entry model. Instead of using a single moving average or one oscillator threshold, it combines an adaptive range filter, efficiency ratio, ADX strength, choppiness, momentum confirmation, higher-timeframe bias, and EMA alignment into one chart layer.
The problem this script solves is regime confusion. Traders often apply trend-continuation logic in compression or try fading price while directional participation is still strong. Obsidian Regime Ribbon provides a structured state model with a filtered regime line, layered expansion bands, reclaim signals, stretch tags, execution rails, and a compact dashboard so the user can read whether price is trending cleanly, overextending, or losing sponsorship.
Core Concepts
1. Adaptive Range Filter
The central filter line is not a static moving average. It uses ATR distance and an efficiency-ratio-driven multiplier so the filter widens during noisy conditions and tightens when price movement becomes more directional.
2. Multi-Factor Regime Gate
ADX checks directional strength, choppiness checks compression, momentum confirms directional pressure, higher-timeframe EMA bias provides external context, and EMA spread measures local alignment. These conditions feed a scorecard so the user can separate weak drift from stronger directional structure.
3. Expansion And Reclaim Framework
Four ATR-derived bands are projected above and below the regime filter. Confirmed regime shifts create labeled accumulation or distribution windows. Pullback reclaim signals print only after price revisits the regime line and closes back through it on a confirmed bar.
4. Execution Rails
Confirmed shifts and reclaim events create forward execution rails and zones directly on the chart. In bullish conditions they behave as demand rails, and in bearish conditions they behave as supply rails.
Features
Adaptive regime filter: ATR-based directional filter with efficiency-ratio adaptation
Layered regime bands: Four expansion bands above and below the filter
EMA structure cloud: Fast and slow structure means with directional fill
Confirmed regime shift labels: Bullish and bearish shifts print only after confirmation
Reclaim signals: Diamond markers when price reclaims the regime line
Execution rails: Demand and supply rails with right-edge price labels
Stretch tags: Labels when price reaches extreme premium or discount relative to the filter
Expansion markers: Additional markers when price pushes through secondary band thresholds
State-based candle coloring: Candle tint changes with regime and score strength
Dashboard: State, conviction, age, ER, ADX, chop, stretch, HTF alignment, and shift counts
Confirmed-bar logic: Regime changes and reclaim signals are designed for confirmed bars only
Input Parameters
Engine:
Range Length and Range Multiplier control the core filter sensitivity
Efficiency Length controls how quickly adaptation reacts to directional efficiency
Base Confirm Bars controls how many bars are required before a regime shift is locked
Stretch Threshold defines when a move is considered overextended in ATR terms
Filters And Display:
ADX, choppiness, momentum, and higher-timeframe controls define the regime gate
Regime band, filter line, candle color, dashboard, execution zone, and stretch tag toggles
How to Use This Indicator
Step 1: Read the current regime from the dashboard and candle state first.
Step 2: Use the conviction score to decide whether the trend is fully structured or transitional.
Step 3: Watch regime shift labels to identify when directional control changes.
Step 4: Use reclaim diamonds and execution rails as retracement reference instead of chasing outer-band extensions.
Step 5: Treat stretch tags as caution zones where reward-to-risk may deteriorate.
Indicator Limitations
Adaptive filters can still lag the first bar of a sharp reversal because confirmation is intentionally delayed
Higher-timeframe alignment can temporarily disagree with local price rotation during early reversals
Stretch conditions do not guarantee reversal; they only identify extended distance from the filter
This script is a context overlay, not a complete trading system by itself
Originality Statement
Obsidian Regime Ribbon is original in the way it combines an adaptive range-state engine, multi-factor regime gate, expansion-band framework, reclaim signals, and forward execution rails into one integrated context overlay. The purpose is not to merge unrelated tools, but to build a single decision layer that explains trend state, extension, and pullback quality together.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Regime, reclaim, and stretch conditions are derived from historical price behavior and do not guarantee future outcomes. Always use independent analysis and risk management.
-Made with passion by jackofalltrades
Indicator

Indicator

Adaptive Squeeze Memory [PhenLabs]🚀 #66 Adaptive Squeeze Memory
📌 Overview
Adaptive Squeeze Memory turns a standard public-domain BB/KC squeeze into a clear “what happened after similar squeezes?” dashboard. Instead of forcing traders to decode a complex probability model, ASM gives a simple setup read first: Long Breakout Watch, Short Breakdown Watch, Lean Long, Lean Short, Two-Way Volatility, or Building Memory.
Behind that simple read, ASM compares the current squeeze event against prior confirmed squeezes with similar volatility, RSI, and volume conditions, then projects the historical distribution of forward returns as a cone.
This is an original public-concept interpretation built from standard market primitives: Bollinger Band width, Keltner Channel width, ATR, RSI, volume ratio, Euclidean similarity scoring, and nearest-rank percentiles. It does not copy, clone, reproduce, deobfuscate, or attempt to recreate any commercial squeeze, memory, or prediction product.
📊 What Makes It Different
Most squeeze tools answer one question: “Is price compressed?” Adaptive Squeeze Memory asks a sharper and more tradable question: “When the market has compressed like this before, did the forward memory favor an upside breakout, a downside breakdown, or volatility expansion without a clean directional edge?”
The result is a cleaner PulseWire experience: a plain-English memory dashboard for fast interpretation, plus a projected return cone for traders who want the deeper statistical context.
🚀 Core Features
✅ Public-domain BB/KC squeeze detection using Bollinger Band width versus Keltner Channel width
✅ Similarity memory engine using normalized ATR, RSI, and volume ratio
✅ Configurable nearest-match count for comparing the current squeeze against prior events
✅ 1-bar, 3-bar, 5-bar, and 10-bar forward return distributions
✅ Median projection plus optional 25th/75th and 10th/90th percentile bands
✅ Memory Dashboard with setup state, median edge, likely range, bullish probability, score, matches, and next-step guidance
✅ Memory Bias Score from -100 to +100 for fast data-window scanning
✅ Long Breakout Watch and Short Breakdown Watch markers for stronger memory skews
✅ Confirmed-bar only logic with no request.security() and no lookahead
✅ Capped projection-line arrays for stable long-chart performance
🔧 Settings
Squeeze Memory Lookback
Default: 252
Range: 50–2000
Description: Maximum number of mature prior squeeze events retained for similarity matching.
Similarity Match Count
Default: 10
Range: 3–50
Description: Number of closest historical squeeze events used to build the probability cone.
Cone Projection Bars
Default: 10
Range: 10–50
Description: Forward visual projection window. The statistical anchors are 1, 3, 5, and 10 bars.
BB Length / BB Multiplier
Default: 20 / 2.0
Range: Length 5–200, Multiplier 0.5–5.0
Description: Bollinger Band settings used to measure compression.
KC Length / KC Multiplier
Default: 20 / 1.5
Range: Length 5–200, Multiplier 0.5–5.0
Description: Keltner Channel settings used as the volatility envelope comparison.
ATR Length
Default: 14
Range: 2–200
Description: ATR input for the normalized volatility feature.
RSI Length
Default: 14
Range: 2–200
Description: RSI input for the momentum-position feature.
Volume MA Length
Default: 50
Range: 5–300
Description: Moving average baseline for the relative volume feature.
Similarity Weight: ATR / RSI / Volume
Default: 1.0 / 1.0 / 1.0
Range: 0.0–5.0
Description: Controls how strongly each feature influences the Euclidean distance score.
Bull Cone Color / Bear Cone Color
Default: Lime / Red
Range: Any PulseWire color
Description: Sets the projection color based on whether the 10-bar median return is positive or negative.
Show Percentile Bands
Default: On
Range: On/Off
Description: Toggles the inner 25th/75th percentile and outer 10th/90th percentile cone paths.
Show Memory Dashboard
Default: On
Range: On/Off
Description: Displays the simplified readout so users do not need to interpret the full cone manually.
Median Edge Threshold %
Default: 0.20
Range: 0.05–5.0
Description: Minimum median 10-bar edge required before ASM can classify a strong directional watch.
Directional Probability Threshold %
Default: 55
Range: 50–80
Description: Minimum matched-outcome probability required before ASM classifies a strong long or short watch.
🔥 How It Works
1. Detect compression
• ASM compares Bollinger Band width against Keltner Channel width.
• A squeeze event fires only when compression begins on a confirmed bar.
2. Capture the squeeze fingerprint
• Each confirmed squeeze stores normalized ATR, RSI, and relative volume.
• Events are stored in flat parallel arrays for Pine v6 compatibility.
3. Let history mature naturally
• Forward returns are filled only after the 1st, 3rd, 5th, and 10th future bars have actually printed.
• No future data is read early, and no request.security() calls are used.
4. Match the current event to memory
• The current squeeze is compared against mature prior squeezes.
• Weighted Euclidean distance ranks the most similar historical events.
• The closest N matches form the statistical sample.
5. Convert the distribution into a simple read
• Long Breakout Watch appears when the median edge and bullish outcome probability both clear their thresholds.
• Short Breakdown Watch appears when the median edge and bearish outcome probability both clear their thresholds.
• Lean Long and Lean Short appear when the sample has directional skew but not enough strength for a full watch.
• Two-Way Volatility appears when the historical memory favors expansion but not a clean direction.
6. Project the probability cone
• ASM computes nearest-rank percentiles of the matched forward returns.
• Median, 25th/75th, and 10th/90th percentile paths are drawn forward from the current squeeze bar.
🎨 Visual Guide
• Solid path: median projected forward return
• Dashed paths: 25th and 75th percentile range
• Dotted paths: 10th and 90th percentile range
• Column plot: latest 10-bar median memory edge
• Dashboard: plain-English setup state, range, bullish probability, score, matches, and next-step guidance
• LONG / SHORT markers: stronger confirmed directional memory events
• Yellow marker: confirmed squeeze-memory event
📖 Best Used For
Adaptive Squeeze Memory is designed for traders who want context around volatility compression. It is especially useful for crypto, indices, liquid equities, and FX pairs where squeeze events repeat often enough to build a meaningful memory sample.
✅ Notes
• Pine Script v6 indicator
• Separate pane output
• Confirmed-bar only
• No external data
• No request.security()
• No lookahead
• No commercial/proprietary logic
⚠️ Limitations
ASM is a statistical context tool, not a prediction engine. Percentile cones summarize what similar prior squeezes did; they do not guarantee what the current squeeze will do. Early charts or rare symbols may have too few mature matches for a useful cone until enough events accumulate. Indicator

Uptrick: Adaptive Momentum BandsIntroduction
Adaptive Momentum Bands is an overlay indicator that combines an Adaptive Moving Average baseline with dynamically scaled ATR bands to define trend state, generate entry signals, and provide a real-time market context dashboard. Unlike static band systems that apply a fixed multiplier regardless of market conditions, this indicator continuously adjusts its band width and baseline responsiveness based on how directional price movement currently is. The result is a system that tightens during trending phases and loosens during choppy conditions automatically, without requiring manual parameter changes.
The core philosophy behind this tool is that a single fixed lookback or multiplier will inevitably either over-signal in noise or under-signal in trends. By anchoring both the baseline speed and the band expansion to a live Efficiency Ratio calculation, the indicator adapts its behavior to the market it is analyzing rather than forcing the market into a fixed model.
Originality
The baseline is not a standard EMA or KAMA. It is a multi-stage adaptive construction: an Adaptive Moving Average driven by a per-bar Efficiency Ratio smoothing coefficient is passed through two additional EMA layers to produce a stable, low-lag midline. This midline is then used as the reference point for asymmetric ATR bands that apply independent upper and lower multipliers, each of which is further scaled by a volatility ratio comparing short-term ATR to its longer-term normalized average. This means the bands breathe with volatility in real time. The trend state uses a latching mechanism: the indicator never enters a neutral zone. Once price closes above the upper band it locks to bullish, once it closes below the lower band it locks to bearish, and it holds that state until the opposite condition is met. This produces clean, decisive, non-flickering bias coloring across candles, bands, midline, and labels.
Features
Adaptive baseline engine using an Efficiency Ratio-driven smoothing coefficient that automatically speeds up during directional moves and slows down during chop
Multi-stage midline construction combining an AMA layer with two EMA passes for a smooth, responsive center reference
Asymmetric upper and lower band multipliers allowing independent control over how loose or tight each side of the channel is
Volatility ratio scaling that expands the bands during high-volatility regimes and contracts them during low-volatility periods, using a ratio of short-term ATR to its normalized average
Three display modes: Bands mode showing the full channel with gradient fill, Midline Only mode for a clean ribbon overlay, and Trail mode that switches the visible line to the active support or resistance side
Bands:
Trail:
Midline:
Latching trend state that is always bullish or bearish with no neutral zone, toggling only on confirmed band crossovers
Colored candles, wick coloring, and candle borders all driven by the live trend state
Signal labels on trend flips with configurable anchor point (High/Low, Midline, or Bands), ATR-based label offset control, and four label size options
Status dashboard table displaying: current trend bias, bars held in the current state, Efficiency Ratio percentage with color-coded thresholds, band width as a percentage of midline, price distance from midline as a percentage, smoothed ATR value, 1-bar ROC, 5-bar ROC, 20-bar ROC, and the active upper and lower multiplier values
Independent alert conditions for bullish and bearish transitions, triggering only on the first confirmed bar of a new state
Inputs
Base Length: Controls the period used in the internal EMA pass over the AMA layer. Shorter values produce a faster and more reactive midline.
ATR Length: Sets the lookback for the ATR calculation used in band construction. Shorter values make bands more responsive to recent volatility spikes.
Band Smoothing: Applies EMA smoothing to both the ATR value and the final band plots. Higher values produce smoother, less reactive bands.
Upper Band Multiplier: Determines how far the upper band sits above the midline as a multiple of the smoothed ATR. Higher values reduce the frequency of bullish signals.
Lower Band Multiplier: Determines how far the lower band sits below the midline as a multiple of the smoothed ATR. Higher values reduce the frequency of bearish signals.
Efficiency Period: The lookback used to calculate the Efficiency Ratio. This controls how quickly the adaptive baseline reacts to changes in trend quality.
Fast EMA and Slow EMA: Define the fast and slow smoothing constants used in the adaptive speed calculation. The indicator interpolates between these two speeds based on the current Efficiency Ratio.
Display Mode: Selects between Bands, Midline Only, and Trail rendering modes.
Fill Opacity: Controls the transparency of the band fill.
Bull and Bear Colour: Fully customizable primary colors used for all trend-state visuals.
Show Labels, Label Anchor, Offset Multiplier, Label Size: Controls for the flip signal labels.
Show Table, Position, Text Size: Controls for the status dashboard.
How to Use
Apply the indicator to any chart and timeframe. The colored candles will immediately show the current trend bias. When the system is in bullish state, the bands and midline render in the bullish color. When bearish, they switch to the bearish color. A 𝓛𝓸𝓷𝓰 label marks each new bullish flip and a 𝓢𝓱𝓸𝓻𝓽 label marks each new bearish flip.
Use the Efficiency Ratio row in the status table to gauge how much to trust the current signal. A reading above 60 indicates a strong trend where band-based signals are more reliable. Readings below 35 indicate a choppy environment where signals should be treated with more caution. The band width percentage and distance from midline rows help assess whether price is extended or near the center of the range. ROC rows provide quick momentum context across three timeframes.
For tighter and more frequent signals, reduce the band multipliers. For wider and less frequent signals, increase them. The asymmetric design means you can independently adjust sensitivity to bullish and bearish entries.
Conclusion
Adaptive Momentum Bands provides a self-calibrating trend framework that eliminates the need to manually switch parameters across assets or timeframes. The combination of adaptive baseline speed, volatility-scaled asymmetric bands, a latching trend state, and a live metrics table gives traders a complete picture of current market structure in a single overlay tool.
Disclaimer
This indicator is for informational and educational purposes only and does not constitute financial advice. Past performance of any signals produced by this tool does not guarantee future results. All trading involves risk. Use this tool as one input among many and always apply your own risk management. Indicator
