Adaptive Sharpe Regime [forexobroker]Adaptive Sharpe Regime computes a rolling Sharpe ratio of bar returns and sorts the result into directional regime tiers, then times entries with a reclaim-EMA cross. The unique angle is a Newey-West lag-1 autocovariance correction that stops serial correlation in returns from artificially inflating the Sharpe, making the regime read self-normalising and comparable across instruments and timeframes.
🔶 ALGORITHM
1. Compute per-bar returns (log returns by default, or simple returns) and their rolling mean and variance over the Sharpe window.
2. Estimate the lag-1 autocovariance of demeaned returns over the same window.
3. Apply the Newey-West correction: corrected variance = variance + 2 x autocovariance, then take the square root for the corrected volatility.
4. Sharpe = mean return / corrected volatility (guarded against zero volatility).
5. Sort the Sharpe into five regime tiers using the Strong and Mild thresholds: strong+ (+2), mild+ (+1), flat (0), mild- (-1), strong- (-2). The tier sign is the directional bias.
6. With a bias set, a close crossover (long) or crossunder (short) of the reclaim EMA times the actual entry. Signals respect an optional strong-only filter, a bar cooldown, position-lock, and bar-close confirmation. Non-repainting.
🔶 SIGNAL LOGIC
- Buy: in-session AND tier is tradable AND bias = +1 AND close crosses over the reclaim EMA AND position not already long AND cooldown elapsed AND barstate.isconfirmed (then position locks long).
- Sell: in-session AND tier is tradable AND bias = -1 AND close crosses under the reclaim EMA AND position not already short AND cooldown elapsed AND barstate.isconfirmed (then position locks short).
- Only fires when the Sharpe tier is tradable (mild or stronger; strong-only if "Require Strong Tier" is on).
🔶 INPUTS
- Sharpe group: window length over which returns and Sharpe are measured; default Sharpe Window 40.
- Returns mode: log vs simple returns toggle; default Log Returns on.
- Newey-West: toggle the lag-1 autocovariance variance inflation; default on.
- Regime tiers: Strong and Mild absolute-Sharpe thresholds; default Strong Sharpe 0.8.
- Mild threshold: lower band for the mild tier; default Mild Sharpe 0.2.
- Volatility reference: ATR length used for the dashboard reference; default ATR Length 14.
- Signal Logic group: entry reclaim EMA, strong-only filter, cooldown; default Entry Reclaim EMA 9.
- Cooldown: minimum bars between signals; default Cooldown Bars 5.
- Filters group: optional session restriction and session window; default Restrict to Session off.
- Visual group: dashboard, 3-layer glow, reclaim EMA, buy/sell colors, dashboard background.
🔶 ALERTS
ASH Buy, ASH Sell, ASH Any Signal, ASH Strong Plus, ASH Strong Minus, ASH Bias Bull, ASH Bias Bear, ASH EMA Up, ASH EMA Down, ASH Sharpe Zero, ASH Tier Change, ASH Armed, ASH Webhook JSON.
🔶 LIMITATIONS
- The Sharpe ratio needs a full window of returns to stabilise, so the first Sharpe Window bars are warm-up and tiers should not be trusted there.
- The Newey-West correction only addresses lag-1 serial correlation; higher-order autocorrelation is not modelled and the corrected variance is clamped to a small positive floor.
- Regime tiers are statistical classifications, not forecasts; a strong tier describes recent risk-adjusted drift, not future returns.
- Default thresholds are tuned for liquid instruments; thin or gappy symbols can produce unstable Sharpe values.
- Entries confirm on bar close, so the reclaim-EMA cross is acknowledged with one-bar lag versus intrabar price.
Indicator

Indicator

TASC 2026.06 One Percent A Week - Adaptive█ OVERVIEW
This script implements a variant of Dion Kurczek's "High-Probability Weekly Trading Strategy For TQQQ" concept, as presented in his article "Part 2: Variations and Community Enhancements" in the June 2026 edition of the TASC Traders' Tips . In the article, the author explores multiple possible revisions to the original strategy. In this publication, we've adapted the final revision presented in the article: the "Adaptive Weekly Momentum Exit" model.
█ BACKGROUND
The One Percent a Week strategy was recently introduced in the March 2026 publication . It utilizes the 3x leverage and volatility of TQQQ to attempt to capture 1% weekly profit from reactive moves made early in the week. The system was designed with simple, strict trading rules to prevent overtrading and control drawdown. Although this was the goal, the system left room for improvements to the base concept.
The original system used the following mechanics:
Enter a trade after a 1% dip from the Monday open.
Set an initial profit target of 1% for the open trade.
If the trade's drawdown is 0.5% or greater, create a short limit order to fill at the entry price.
Close the trade at the end of the week, regardless of profit or loss.
The version discussed in this article overhauls most of these mechanics. It preserves the same premise of striving for 1% average weekly returns, but aims to minimize drawdowns and allow for conditionally higher profit targets by introducing the following improvements:
Entry on Monday open : The strategy enters a trade at the open of each Monday rather than waiting for a 1% dip, increasing market exposure.
Dynamic profit target : The initial profit target for each trade is 7%. Depending on the trade performance during the Monday session, the target increases by 1.1%, decreases to 2.5%, or remains unchanged.
Momentum-weakness exit : If the trade's performance is strong on Monday and begins to weaken on Tuesday, the system places a market order to exit the trade to avoid potential increased losses.
Hard stop-loss : Each trade has a fixed 1.5% stop-loss order to prevent trades from further deterioration.
█ THE RULES
The rules of the "Adaptive Weekly Momentum Exit" model discussed in the article differ significantly from those in the original strategy. The rules for this version are as follows:
Enter a new trade at Monday's open.
Set a fixed stop-loss order at 1.5% below the entry price.
Set an initial take-profit order at 7% above the entry price.
Check the trade's performance at the end of Monday. If the trade is still open and the profit is greater than 0.3%, multiply the take-profit price by 1.011 to allow a potential profit of 8.177%. If the open profit is currently zero or negative, reduce the target to 2.5%.
At the end of Tuesday, check for a momentum-based exit condition. If the return was above a specified threshold on Monday (2% by default) but fails to meet a separate threshold on Tuesday (3% by default), indicating a loss of momentum, place an order to close the position early.
If the position is open at the end of the week, close it immediately.
▌Properties
Position Sizing : Sizing is 10% of equity, the same as in the article.
Commissions : Commission value is set to $0. Most major US brokers charge $0 commission on stocks and ETF trades, including leveraged ETFs such as TQQQ.
Slippage : Slippage is not discussed in the article and likewise has not been included in this strategy.
Note:
This script enables "Recalculate after order is filled" by default, allowing the strategy to update trades and orders on the same bar to match the intended mechanics discussed in the article. Using this setting by default results in a warning in the strategy report because it can cause lookahead bias in some scripts. However, this script does not leak future price data into the past to control its orders or logic.
█ DISPLAY
Similar to the strategy published for Part 1, this script plots lines to visualize the levels that it uses for order execution:
Entry price : The blue line plots the entry price for the position, which is placed at Monday's opening price.
-1.5% Hard stop : The red dashed line is the level at which the 1.5% fixed stop loss is placed.
Profit target : The solid green line shows the profit target.
█ INPUTS
"Monday %" and "Tuesday %" : These thresholds adjust the parameters of the loss-of-momentum exit. An early exit occurs if trade's return percentage as of Monday is greater than the "Monday %" value, and the current percentage on Tuesday is less than the "Tuesday %" value. The default percentages are the specific values referenced in the article.
Strategy

Indicator

NEWS [Ordinary Trader]# NEWS
NEWS by Ordinary Trader marks high-impact USD economic news events on your chart — CPI, NFP, FOMC, PCE, GDP, and the rest of the red-folder calendar — both past and upcoming.
Part of the Ordinary Trader family alongside **EMAs**, **FVGs**, **KEY LEVELS**, **ZONES**, and **STRATEGY (LITE / PRO)**. The methodology calls for standing aside during high-impact news; this indicator makes those events impossible to miss.
## Visuals
Each event produces a **full-height vertical column** at the exact event time, plus a **small triangle marker** in a thin pane below the chart. Hover the marker for event name, day, date, and time in your selected timezone.
~3 months of historical events stay visible. ~1 week of upcoming events floats in the projected area to the right of your latest candle.
## Tiers + Filters
Events auto-classify into 4 tiers, each with its own colour:
- **Tier 1** — CPI, NFP, FOMC Rate Decision, PCE, GDP
- **Tier 2** — FOMC Minutes, Retail Sales, ISM PMI, PPI
- **Tier 3** — ADP, Consumer Confidence, Michigan, JOLTS, Initial Jobless Claims, Durable Goods
- **Uncategorised** — everything else (default OFF)
Hybrid filtering: tier master toggles + per-event toggles.
## Alerts (optional)
Pre-event PulseWire alerts fire N minutes before each visible event (default 30). Same filters apply. One-time setup: enable in indicator settings + add a PulseWire alert with condition `Any alert() function call`.
## Timezone
10 options (ET / CT / PT / UTC / UK / CET / Tokyo / HK / Singapore / Sydney) for tooltips and alerts. DST automatic.
## Notes
- USD events only; non-USD on the roadmap.
- Built on the Forex Factory data feed maintained by **@toodegrees** via Pine Seeds. The visual layer, tier classification, filter UI, and alerts are original work.
- License: Mozilla Public License 2.0. Free to use. Indicator

Put Credit Spread Combined Price Tracker📊 Description
The Put Credit Spread Combined Price Tracker is an advanced options visualization and risk assessment workspace designed specifically for multi-position credit spread sellers. Instead of guessing your proximity to risk, this indicator maps your mathematical break-even thresholds directly onto your live asset candle chart while maintaining a real-time Black-Scholes Options Pricing Matrix Dashboard.
This tool is ideal for tracking individual or nested index options structures (such as SPX, NDX, or RUT) where precision risk boundary management is critical.
________________________________________
⚙️ How to Set Up Your Spreads
1. Add to Chart: Load the indicator on your target ticker (e.g., SPX).
2. Open Settings: Click the gear icon on the indicator name to open the configuration menu.
3. Configure Your Engine:
o Keep Enable Automated Volatility checked to let the script automatically extract a continuous historical volatility proxy, or uncheck it to key in your broker's implied volatility (IV %) reading manually.
4. Input Your Positions (Supports up to 4 Parallel Trades):
o Check the Box to enable a specific spread position.
o Short/Long Put Strike: Key in your exact leg boundaries.
o Premium Received: Enter the net premium collected per spread block (e.g., 5.00 for a $500 credit).
o Contracts Quantity: Enter your position size.
o Start/Exp Date: Key in your precise calendar execution parameters. The indicator automatically bounds the line drawings to your trade's specific lifecycle window.
________________________________________
📉 Reading the Chart Visuals
• Dashed Break-Even Lines: The script removes clutter by stripping out raw strike lines. Instead, it plots the absolute net financial break-even floor for each position (Short Strike - Premium Collected). If the market candles drop below this dashed line at expiration, the position enters a net loss state.
• Right-End Anchored Labels: Each active position features a dedicated text flag pinned directly to the right margin of your screen, letting you instantly match a specific break-even line to its designated position entry.
________________________________________
🧮 Understanding the Dashboard Table (Bottom-Right)
The tracking matrix evaluates your positions dynamically using a full Black-Scholes Options Pricing model loop on every price tick:
• Strikes (S/L): Displays your structured position boundaries for quick auditing.
• Current Mark: Shows what the option spread is worth right now in the open market before expiry, modeling continuous time decay (\(\theta \)) and underlying spot movements.
• Live Open P&L: Replicates your broker's dashboard. It dynamically updates using (Net Credit - Current Mark Value) * 100 * Qty. Cells turn Green for an open profit and Red for an open loss.
• Position Delta: Displays your aggregate Greeks exposure. Since put credit spreads are directionally bullish, this value will calculate as a net positive number.
• Current IV: Shows the exact annualized volatility proxy percentage fueling your options pricing calculations.
• Days Left: Counts down the exact localized time window remaining before contract expiration.
________________________________________
Indicator

Helios Volatility Atlas [JOAT]Helios Volatility Atlas
Introduction
Helios Volatility Atlas is an open-source regime and volatility mapping indicator. It combines an adaptive baseline, DMI/ADX trend strength, volatility scoring, VWAP sigma bands, premium/discount structure, squeeze detection, retest zones, right-side level rails, and a top-right dashboard.
The problem Helios addresses is market context. A trend signal means something different in compression than it does during expansion. A retest means something different near discount than it does at an outer volatility channel. Helios brings those layers into one chart so users can interpret price action with regime, volatility, and location in view.
Core Concepts
1. Adaptive Baseline
The baseline blends an EMA-style trend component with an efficiency-ratio adaptive component. When price moves efficiently, the adaptive side reacts more. During choppy movement, the baseline becomes slower and more stable.
2. Volatility Score
ATR is compared against its own moving average and standard deviation. The result is normalized into a 0-100 volatility score so the dashboard can distinguish low, moderate, and high volatility states.
3. Institutional Channels
Helios draws a channel around a mean using ATR-based distances. Inner channels describe normal volatility, while outer pockets mark more extended price areas where reversion or continuation context may matter.
4. Squeeze and Expansion State
The squeeze model compares a Bollinger-style width against a Keltner-style width. When compression releases, the chart highlights a transition from low-energy conditions into expansion.
5. Retest Zones and Rails
Confirmed retests can create projected zones. Right-side rails label important live references such as baseline, VWAP, channels, premium/discount levels, and previous day levels.
Features
Adaptive baseline: Blends trend-following and efficiency-aware smoothing
Volatility score: Converts ATR expansion/compression into a dashboard value
Trend cloud: Fills the space between baseline and VWAP
VWAP sigma bands: Shows price stretch around VWAP
Premium/discount map: Uses a rolling anchor range with equilibrium, discount, and premium levels
Squeeze detection: Highlights compression and release states
Retest zones: Projects confirmed bullish and bearish retest areas
Right-side rails: Labels baseline, VWAP, channels, premium/discount, and day levels
Theme presets: Includes Helios, Consensus Aqua, Sentinel Neon, and Cobalt Risk color families
Top-right dashboard: Shows regime, bias, volatility, squeeze, channel, VWAP sigma, price state, and key levels
Input Parameters
Core Engine:
Adaptive Baseline Length
Efficiency Lookback
ATR Length
ADX / DMI Length
Volatility Window
Volatility System:
Channel Memory
Base Channel ATR Multiple
Outer Channel ATR Multiple
Squeeze Length
Squeeze BB and KC multipliers
Display:
Show Trend Cloud
Show VWAP Sigma Bands
Show Retest Zones
Show Right-Side Level Rails
Theme Preset
Dashboard Text Size
How to Use This Indicator
Step 1: Read the regime
The dashboard classifies the current state as bullish, bearish, expansion, or range.
Step 2: Check volatility
Use the volatility score and squeeze row to decide whether the market is compressed or expanding.
Step 3: Compare price to VWAP and channels
VWAP sigma and ATR channels show whether price is near value, stretched, or reverting from an outer area.
Step 4: Use retest zones as context
Retest zones mark recent confirmed reactions. They are contextual levels, not automatic entries.
Indicator Limitations
Adaptive baselines can lag during sudden reversals
Squeeze release does not define direction by itself
Retest zones can fail in strong momentum conditions
Higher volatility symbols may require adjusted ATR/channel settings
Originality Statement
Helios Volatility Atlas combines adaptive trend state, DMI/ADX confirmation, ATR volatility scoring, VWAP sigma distance, squeeze detection, premium/discount location, projected retest zones, and right-edge rails into a single open-source Pine v6 regime atlas. The components are designed to work as one context engine, not as a loose mashup.
Disclaimer
This script is for educational and informational use only. It is not financial advice and does not predict future price direction. Use independent analysis and risk management.
-Made with passion by jackofalltrades
Indicator

OTHERS/USDT.D Z-Score | Astral Vision OTHERS/USDT.D Z-Score | Astral Vision 🌠💠
This indicator constructs a ratio between the OTHERS market cap dominance and USDT dominance, then applies Z-Score normalization in log space to measure how statistically extreme the current positioning of altcoin capital relative to stablecoin dry powder is compared to its own history.
OTHERS dominance tracks the combined market cap share of all cryptocurrencies excluding Bitcoin, Ethereum, and the top few large caps, making it a direct proxy for altcoin season conditions. USDT dominance measures the share of total crypto market cap held in Tether, which rises when capital exits risk assets into stablecoins and falls when stablecoin capital is deployed into crypto assets.
Calculation ⚙️
The ratio is computed as OTHERS dominance divided by USDT dominance on a daily timeframe. A high ratio means altcoin capital is large relative to stablecoin reserves, indicating that available dry powder has been deployed and the altcoin market is extended. A low ratio means stablecoin dominance is high relative to altcoin exposure, indicating that capital has retreated to safety and dry powder is accumulating.
The natural logarithm of this ratio is then taken before all subsequent calculations. Working in log space normalizes the exponential growth of both series across different market cycles, ensuring that a ratio change from 2 to 4 is treated as equivalent in magnitude to a change from 4 to 8, which is the correct treatment for proportional dominance relationships.
A simple moving average and standard deviation are computed over the configurable Z-Score lookback window, producing the Z-Score as: (log ratio minus mean) / standard deviation. This expresses the current ratio in units of standard deviations above or below its own historical average, making readings directly comparable across cycles regardless of the absolute dominance levels involved.
In Trend mode, an EMA of configurable length is applied to the Z-Score itself, functioning as a signal line. When the Z-Score is above its EMA, the momentum of the ratio is positive and altcoin conditions are improving relative to stablecoin reserves; when below, the momentum is negative.
Plots 📊
Z-Score oscillator colored by mode and regime
Two upper threshold lines marking statistically elevated altcoin exposure (Extremes mode)
Two lower threshold lines marking statistically depressed altcoin exposure (Extremes mode)
Fill highlights when Z-Score enters the outer extreme zones
Zero baseline
EMA signal line (Trend mode)
Background color on the price chart when Z-Score enters the outer extreme zones (Extremes mode)
Candle coloring on the price chart reflecting current regime in both modes
Inputs 🎛️
Visualization: Extremes or Trend
Z-Score Lookback: normalization window for mean and standard deviation
Upper Z 1 and Upper Z 2: configurable inner and outer upper threshold levels
Lower Z 1 and Lower Z 2: configurable inner and outer lower threshold levels
EMA Length: smoothing period for the trend signal line (Trend mode)
Colors 🎨
5 Astral Vision presets + custom override. Default: Futura.
Purpose 🎯
Standard altcoin season indicators use fixed dominance thresholds or simple moving average crossovers on raw dominance values, which are not statistically normalized and behave differently across cycles as the total crypto market cap grows. This indicator normalizes the ratio in log space over a long rolling window, making a Z-Score of +2.0 in 2021 and a Z-Score of +2.0 in 2024 carry equivalent statistical weight despite the absolute dominance percentages being different. The dual threshold system further separates moderate elevated conditions from statistically severe ones, allowing a more nuanced reading than a single overbought/oversold line can provide.
Disclaimer ⭕️
This indicator is for informational and educational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always do your own research before making investment decisions. Indicator

Bitcoin vs VUG/VTV Rolling Ratio Analysis | Astral Vision Bitcoin vs VUG/VTV Rolling Ratio Analysis | Astral Vision 🌠💠
This indicator measures the relative momentum of Bitcoin against the VUG/VTV ratio, which is the price of Vanguard's Growth ETF divided by Vanguard's Value ETF. This ratio is one of the most direct and liquid expressions of the growth-versus-value rotation dynamic in institutional equity markets: when VUG outperforms VTV the ratio rises, signaling that markets are rewarding high-multiple, long-duration assets; when VTV outperforms, the ratio falls, signaling a rotation toward defensive, cash-flow-heavy assets typically associated with tightening liquidity or rising rates.
Bitcoin is itself a long-duration, high-beta asset with structural similarities to growth equities: it tends to expand during the same liquidity-driven environments that favor VUG over VTV, and contract during the same risk-off environments that favor VTV over VUG. Tracking the VUG/VTV ratio alongside Bitcoin's own momentum reveals whether the macro environment is confirming or diverging from Bitcoin's price action, which historically has been a more reliable framework for identifying regime shifts than price-only signals.
The indicator operates in three modes.
Average Valuation mode averages the normalized momentum of Bitcoin and the VUG/VTV ratio into a single composite score, comparing it against configurable overbought and oversold percentile thresholds to identify when both are simultaneously extended or depressed.
Average Trend mode compares the composite score against its own midpoint to determine whether aggregate momentum is in its upper or lower historical half.
Double Signal mode plots Bitcoin and the VUG/VTV ratio momentum separately on the same normalized scale, making divergences between the two directly visible.
This is a cross-asset macro momentum and rotation indicator suited for swing trading and position trading on daily timeframes , functioning as a regime filter that connects Bitcoin's price action to one of the most closely watched equity style rotation signals in institutional markets.
How it differs from standard relative strength tools
A standard BTC/VUG ratio chart divides prices directly, producing a series with no statistical normalization and no connection to VTV. This indicator uses percentage returns normalized over a rolling window, making readings statistically consistent across different periods, and compares Bitcoin not against a single equity ETF but against the growth-value spread, which is a second-order signal capturing the macro liquidity regime rather than a single sector's performance. The three-mode architecture further distinguishes it from a simple ratio overlay by providing composite valuation, trend, and component-level views within a single indicator.
Plots 📊
Averaged normalized momentum oscillator with overbought and oversold threshold lines (Average Valuation mode)
Averaged normalized momentum with fill against the 50 midline (Average Trend mode)
Bitcoin and VUG/VTV normalized momentum plotted separately (Double Signal mode)
Overbought and oversold threshold lines (Average Valuation and Double Signal modes)
50 midline reference
Background color on the price chart when average enters extreme zones (Average Valuation mode)
Candle coloring on the price chart reflecting current regime in all three modes
Inputs 🎛️
Mode: Average Valuation, Average Trend, or Double Signal
Normalization Period: rolling window for the min-max normalization of returns
Lookback Period: return calculation window for both Bitcoin and the VUG/VTV ratio
Overbought Threshold: upper percentile level for extreme zone detection
Oversold Threshold: lower percentile level for extreme zone detection
Transparency: opacity of the background color highlight
Colors 🎨
5 Astral Vision presets + custom override. Default: Paradiso.
Disclaimer ⭕️
This indicator is for informational and educational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always do your own research before making investment decisions. Indicator

Tactical Atlas [DAFE]Tactical Atlas : A Multi-Dimensional Regime & Phase Space Visualizer
This is not an indicator. This is a tactical map of the market's current state. It synthesizes multiple dimensions of data—trend, momentum, volatility, and stress—into a single, observable point in a four-quadrant phase space, providing an unparalleled, at-a-glance view of the market's true character.
█ CHAPTER 1: THE PHILOSOPHY - FROM CLUTTER TO CLARITY
The modern trader is drowning in data. We stack our charts with RSI, MACD, ADX, and Bollinger Bands, creating a cluttered screen of conflicting signals. We are then forced to perform a complex, subjective mental synthesis to answer the most fundamental question: " What is the market actually doing right now? " Is it a healthy trend, an exhausted trend, a low-volatility compression, or a nascent recovery? Answering this requires juggling multiple concepts simultaneously.
The Tactical Atlas was engineered to solve this problem of information overload. It is a powerful data visualization engine built on a simple premise: a picture is worth a thousand indicators. It takes a suite of underlying metrics that quantify the market's key characteristics and maps them into a single, intuitive, two-dimensional "phase space." The position and trajectory of a single point within this space provides a complete, synthesized, and immediate understanding of the market's regime.
This tool is not about adding another line to your chart; it's about replacing a dozen. It is a system for achieving profound contextual awareness, allowing you to see the market's state, its evolution over time, and its alignment across multiple timeframes, all within a single, elegant visual interface.
█ CHAPTER 2: THE CORE INNOVATIONS - ORIGINALITY & USEFULNESS
The Tactical Atlas is not a "mashup" of existing indicators. It is a novel framework for data synthesis and visualization, built upon a suite of proprietary and established analytical concepts.
The Phase Space Architecture: This is the core innovation. Instead of displaying multiple oscillators in separate panes, the Atlas maps different dimensions of market data onto the X and Y axes of a scatter plot. The result is a single "point" whose coordinates (x, y) represent the synthesized state of the market. Its position and movement provide a rich, holistic view that is impossible to achieve with standard indicators.
Three Distinct Analytical Modes: The Atlas is not one map, but three. You can instantly switch between different "lenses" to view the market's state from different perspectives, each answering a different critical question:
Phase Space: Maps Trend Strength (X-axis) vs. Momentum (Y-axis). Answers: "Is this a strong trend with momentum, or is it an exhausted trend?"
Stress Orbit: Maps Volatility Rank (X-axis) vs. Market Stress (Y-axis). Answers: "Is this a calm, low-volatility environment, or a high-stress, fearful one?"
Permission Field: Maps Directional Bias (X-axis) vs. a proprietary Permission Score (Y-axis). Answers: "Does the market have the underlying conditions (permission) to support a sustained directional move?"
The Four Quadrant Regime Model: The phase space is divided into four distinct, named quadrants: RECOVERY, EXPANSION, COMPRESSION, and EXHAUSTION . The position of the point within these quadrants provides an immediate, human-readable classification of the market's character, allowing you to instantly align your strategy with the current environment.
Multi-Timeframe "Ghost" Points: A revolutionary approach to multi-timeframe analysis. The Atlas calculates the state of the market on up to three higher timeframes and projects them as semi-transparent "ghost" points into the same phase space. This allows you to see, at a glance, if the current timeframe's regime is in alignment or conflict with the macro trend, without ever leaving your chart.
The Velocity Vector: The system doesn't just show you where the market is in phase space; it shows you where it's going. A dynamic arrow is drawn from the current point, indicating the direction and magnitude of its recent travel through the space. A point moving rapidly from Compression towards Expansion is a powerful leading signal of an impending breakout.
█ VISUALS - HOW TO READ THE ATLAS
Every visual element is a data-rich component designed for rapid, intuitive interpretation.
The Scatter Plot (The Map)
The Quadrant Fields: The four colored quadrants that define the map. Each is labeled and has a distinct meaning. Your primary goal is to identify which quadrant the market currently occupies.
The Gridlines: These faint lines mark the 25%, 50%, and 75% levels on both the X and Y axes, providing a clear visual reference for the strength of each component. The central intersection is the "neutral" point.
The Trail: A multi-colored line that shows the historical path of the market's state over the last N bars. It allows you to see the journey the market took to arrive at its current position. A smooth, directional trail indicates a healthy, evolving regime. A tangled, chaotic trail indicates indecision.
The Current Point (The Comet): This is you. It is the most important point on the map, representing the market's state on the most recent bar. It is rendered with a multi-layered, pulsating glow to make it the clear focal point. Its color is determined by the quadrant it is in.
The Velocity Vector: An arrow drawn from the current point, indicating its recent direction of travel through the phase space. This is a critical leading indicator, showing you the "momentum of the regime."
The MTF Ghost Points (◆): These are the semi-transparent, diamond-shaped markers. Each ghost represents the position of a higher timeframe (e.g., 1H, 4H, Daily) within the same coordinate space.
Alignment: If the ghost points are clustered near the current point, it signals strong multi-timeframe confluence.
Divergence: If the current point is in the "Expansion" quadrant but the Daily ghost point is deep in the "Exhaustion" quadrant, it's a powerful warning of a potential macro reversal.
DASHBOARD (THE LEGEND)
Current Quadrant: A clear, color-coded readout of the market's current regime.
MTF Quadrants: Displays the regime classification for each of your selected higher timeframes, allowing for quick confirmation of alignment.
Axis Info: Explicitly tells you what the X and Y axes currently represent based on your selected "Visualization Mode."
Confluence & Stress: Provides the numerical score for MTF alignment and the calculated "Stress Score."
Earnings Block: For equity traders, this section automatically pulls and displays the latest earnings data (Actual vs. Estimate) and the resulting surprise percentage.
How To Read Guide: A built-in legend that provides a quick reference for interpreting the various visual elements.
█ THE THREE ATLASES - A DEEP DIVE INTO THE MODES
MODE 1: PHASE SPACE (The Classic)
X-Axis: Trend Strength. A composite score derived from ADX, price position relative to a long-term MA, and the alignment of multiple EMAs. It measures the existence and quality of a directional trend. A value of 100 is a powerful, unambiguous trend.
Y-Axis: Momentum. A composite score derived from RSI, ROC, and Stochastic RSI. It measures the velocity and acceleration of price.
This mode answers: Is this a strong trend backed by momentum (Expansion), or is the momentum dying while the trend is still high (Exhaustion)? Is momentum starting to build from a low-trend base (Recovery)?
MODE 2: STRESS ORBIT (The Risk Gauge)
X-Axis: Volatility Rank. Measures the current ATR relative to its historical range over a long lookback. A value of 100 means volatility is at a multi-month high.
Y-Axis: Market Stress. A proprietary score that blends Volatility Rank with Bollinger Band Width and a penalty for a lack of trend strength. It quantifies "unproductive" or "fearful" volatility.
This mode answers: Is this a low-volatility, calm environment (Compression), or a high-stress, dangerous one (Exhaustion)? Is volatility starting to expand in a productive way (Expansion)?
MODE 3: PERMISSION FIELD (The Go/No-Go)
X-Axis: Directional Bias. A composite score of momentum oscillators, all pointing in the same direction. It measures the short-term directional pressure.
Y-Axis: Permission Score. A proprietary score that asks if the underlying market conditions have "permission" to trend. It rewards low volatility, rewards existing trend strength, and rewards momentum.
This mode answers: We have a strong directional bias, but do we have the low-volatility, high-trend-strength "permission" needed for a successful breakout (Expansion)? Or is the directional bias occurring in a high-volatility, low-trend environment where it's likely to fail (Exhaustion)?
█ DEVELOPMENT PHILOSOPHY
The Tactical Atlas was born from a need to escape the "tyranny of the single indicator." It is a tool for systems thinking. It is built on the belief that a market's true character cannot be understood by looking at any single metric in isolation, but by observing the interplay and relationships between multiple dimensions of data. By transforming this complex, multi-dimensional state into a simple, intuitive visual, we empower traders to make faster, more accurate, and more contextually-aware decisions. This is not just data visualization; it is the visualization of understanding.
█ DISCLAIMER AND BEST PRACTICES
THIS IS A CONTEXTUAL TOOL, NOT A SIGNAL GENERATOR: The Tactical Atlas is designed to provide you with a deep understanding of the market regime. Use this understanding to select the appropriate strategy (e.g., trend-following in Expansion, mean-reversion in Compression).
RISK MANAGEMENT IS PARAMOUNT: All trading involves substantial risk.
CONFLUENCE IS KEY: The most powerful insights come from confluence. A move of the current point into the Expansion quadrant is a good sign. That same move, while the higher timeframe "ghost points" are also in or moving towards Expansion, is an A++ signal that a major, multi-timeframe move is underway.
STUDY THE TRAJECTORY: Do not just look at where the point is. Look at the trail. Where did it come from? How fast is it moving? The history and velocity of the point are often more important than its current location.
— Dskyz, Trade with insight. Trade with anticipation. (Don't follow the trend, be the trend) Indicator

Daily Bias Liquidity Profiler [MarkitTick]💡 This advanced analytical framework is engineered to decode market structure, track liquidity sweeps, and map volatility profiles on an intraday basis. Built natively for the sophisticated Pine Script version 6 environment, this indicator transcends basic charting by aggregating Previous Day metrics, session-specific liquidity pools, Fair Value Gap (FVG) confluences, and probabilistic bias models into a single, cohesive visual interface. It is designed for quantitative and algorithmic traders who require a deep understanding of market mechanics, offering unparalleled insight into where resting liquidity is likely positioned and how daily volatility is structured based on pure statistical variance.
✨ Originality and Utility
● Comprehensive Architectural Design
Most standard technical indicators focus on a single mathematical transformation, such as moving averages or simple momentum oscillators. The originality of this profiler lies in its multi-faceted approach, unifying advanced price action concepts that typically require multiple separate scripts. By leveraging Pine Script version 6 User-Defined Types (UDTs), the script maintains an incredibly lightweight footprint while calculating complex, interconnected market states without degrading chart performance.
● Algorithmic Session Tracking
The utility of the indicator is profoundly evident in its automated handling of time-based liquidity. Rather than manually drawing boxes around the Asian and London sessions, the script dynamically profiles these periods. It treats their boundaries not as mere historical artifacts, but as active, magnetic liquidity pools that drive future price action.
● Real-Time Bias Computation
This tool introduces a dynamic probability engine that continuously evaluates the likelihood of price sweeping the Previous Day High or Previous Day Low based on current opening momentum and accumulated volatility. This gives traders a statistical edge in determining their daily directional bias without relying on subjective chart patterns.
🔬 Methodology and Concepts
● Daily Range Profiling
At the core of the script's methodology is the Daily Profile engine. It systematically captures the Previous Day High, Previous Day Low, and Previous Day Close. These levels represent the absolute boundaries of yesterday's value area. The script calculates the total range of the previous day to establish a baseline for current-day expectations and statistical deviation limits.
● Session Liquidity Engineering
The script defines distinct macro-economic windows, specifically targeting the Asian and London trading sessions.
Asian Session Consolidation: Often characterized by tight ranges, the Asian session builds resting liquidity above its highs and below its lows. The algorithm tracks these exact price levels dynamically.
London Session Expansion: The script monitors the London open for initial expansion moves that frequently sweep the liquidity accumulated during the Asian session, triggering internal alerts when these specific thresholds are pierced.
● Fair Value Gap (FVG) Confluence
Market imbalances are identified through a precise Fair Value Gap detection algorithm. The script does not just highlight every random gap on the chart; it specifically looks for FVG formations that align with the directional bias and occur in proximity to session sweeps. This creates a high-probability confluence signal, indicating that the market is rapidly moving to rebalance price delivery.
● Advanced Volatility Metrics
Volatility is not measured through standard lagging indicators. Instead, the script utilizes an Average Daily Range (ADR) calculation. It dynamically tracks the percentage of the ADR that has been fulfilled during the current day. By calculating how many bars it typically takes to reach standard deviation milestones of the ADR, the script provides a predictive model for intraday exhaustion.
● Dynamic Bias Scoring Engine
The indicator calculates a running score to determine the daily bias. It awards positive and negative weights based on several factors: the location of the current price relative to the daily open, whether a session liquidity sweep has occurred, the presence of FVG confluences, and the proximity to the Previous Day's extremes. This score is translated into a probability percentage for sweeping either the high or the low.
🎨 Visual Guide
● Liquidity Zones and Range Boxes
Session Boxes: Distinct, shaded rectangular regions drawn over the chart to encapsulate the high and low bounds of the Asian and London sessions. These boxes visually isolate the accumulation phases.
Range Zone Boxes: Projected areas above and below the current price action representing high-probability reversal or expansion targets based on the ADR calculations.
● Structural Lines
Previous Day Boundaries: Solid, distinct horizontal lines marking the exact price levels of the Previous Day High and Previous Day Low.
Midlines: Subtler horizontal lines traversing the center of the calculated range zones to indicate equilibrium levels where price action may stall or pivot.
● Dynamic Labels and Alerts
Sweep Labels: Textual annotations that appear exactly when price pierces a session boundary or previous day extreme, explicitly confirming a liquidity sweep.
Bias State Text: A dedicated label displaying the current statistical bias, updating dynamically as volatility metrics shift throughout the trading day.
📖 How to Use
● Establishing Directional Bias
Begin your analysis by referencing the Bias State metric displayed on the chart. If the script calculates a high probability of sweeping the Previous Day High, prioritize bullish setups. Conversely, a high probability for the Previous Day Low dictates a bearish posture. Do not fight the algorithmic bias without significant contradicting evidence from higher timeframes.
● Executing the Sweep and Reverse
Monitor the Asian and London session boxes. A prime setup occurs when price aggressively breaks outside a session box and immediately faces strong rejection. This false breakout is the trigger for a mean-reversion trade targeting the opposite side of the session range. Look for the script's sweep labels to confirm the level has been compromised.
● Filtering with Volatility
Consult the Volatility Metrics before entering a trade. If the current daily range has already fulfilled a high percentage of the Average Daily Range (ADR), the probability of further directional expansion diminishes. In such cases, avoid breakout trades and look for exhaustion reversals at the projected Range Zone extremes.
● Utilizing FVG Confluence
When a sweep occurs, wait for the algorithm to highlight a valid Fair Value Gap in the opposite direction of the sweep. Enter the market on the retracement into this FVG, placing stop losses just beyond the sweep extreme for optimal risk-to-reward ratios.
⚙️ Inputs and Settings
● Time and Session Configuration
Asia Session Hours: Allows the user to precisely define the start and end times of the Asian session based on their specific exchange and timezone.
London Session Hours: Configurable inputs to match the precise opening and closing dynamics of the European market.
● Volatility Parameters
ADR Lookback Length: The historical window (number of days) used to calculate the Average Daily Range. A shorter lookback makes the indicator more responsive to recent volatility spikes, while a longer lookback provides a smoother, more stable expected range.
● Visual Toggles
Show Session Boxes: A boolean toggle to enable or disable the shaded background for trading sessions, allowing for a cleaner chart if only the boundary lines are desired.
Show Sweep Labels: Allows users to turn off the text annotations for liquidity sweeps to reduce visual clutter during highly volatile, choppy market conditions.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Auction Market Theory and Liquidity
The foundational logic of this script is deeply rooted in Auction Market Theory. Financial markets operate as a continuous dual-auction process, seeking areas of high liquidity to facilitate trade execution for large-scale participants. The script mathematically models this by isolating session highs and lows, recognizing them as high-density zones for stop-loss orders and breakout triggers.
● Statistical Variance and Range Forecasting
The Volatility Metrics engine relies on historical variance. By computing the Average Daily Range over a predefined dataset, the script applies a simplified standard deviation model to predict the expected boundaries of the current day. This creates a probabilistic bell curve of expected price distribution, where the extremes of the ADR represent the tails of the distribution curve, indicating areas of high mean-reversion probability.
● Microstructural Order Flow Imbalances
The Fair Value Gap (FVG) detection logic is an algorithmic representation of order flow imbalance. In academic market microstructure, when price moves with extreme velocity, it creates a void in the bid-ask spread where only one side of the market was effectively matched. The script mathematically identifies these structural inefficiencies, utilizing them as high-probability zones for future price retracements, as the market naturally seeks to re-auction these inefficiently traded areas.
● Probabilistic Modeling
The bias engine utilizes a rudimentary form of multi-factor linear weighting. By assigning specific values to isolated market events (e.g., crossing the open price, sweeping a specific session), the model computes a composite score. This deterministic approach strips away emotional trading by replacing it with a quantifiable metric that guides directional expectations.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Indicator

Fractional CUSUM Regime Filter [Jamallo]🔹 Intro
The Fractional CUSUM Regime Filter is a quantitative trend and volatility channel indicator designed to identify structural market regimes with high stability. Unlike traditional filters that suffer from lag or whipsaw signals, this indicator applies a dual-layered preprocessor combining Lopez de Prado’s Fixed-Window Fractional Differentiation (FFD) with a classic Cumulative Sum (CUSUM) statistical trigger.
🔹 Break down
Fractional Differentiation (FFD) : Stationarizes pricing input while retaining long-term historical memory (controlled by the "d" parameter).
Classic CUSUM Filter : Accumulates deviations from a rolling baseline relative to current volatility. When cumulative deviation exceeds the threshold multiplier (h), a new regime change is triggered, and the baseline steps dynamically to the new price level.
Vol-Adjusted Percentile Bands : Linear interpolation percentiles of price deviation relative to the stepped baseline. The distances are "locked" and only update on CUSUM regime triggers to prevent wobbly bands.
🔹 Visual Guide: Indicator Anatomy
Here we have the structure of the indicator, including the CUSUM baseline, the 68% inner percentile band, and the 95% outer percentile band.
How to use: Mean Reversion (Pullbacks to the Mean)
The channel boundaries represent statistical extremes. When the price is pushed outside the bands, it is mathematically overextended and highly likely to revert back to the CUSUM baseline.
Long Setup (Pullbacks in Bullish Trend): During a green CUSUM uptrend, watch for price to pull back to the lower bands ("micro pullback") and enter as it heads back up to the baseline mean.
Short Setup (Pullbacks in Bearish Trend): During a red CUSUM downtrend, watch for price to rally into the upper bands ("micro pullback") and enter as it reverts down to the baseline mean.
🔹 How to use: Trend Following & Risk Management
The indicator is designed to capture sustained macro trends while providing clear risk parameters.
Entering on Breakthroughs : Enter when the BUY/SELL signal flags appear (indicating a new CUSUM regime shift).
Stop Loss Placement : Place stop loss orders just below the opposite outer band or below the stepped baseline.
Letting Winners Run : Ride the trend as long as the CUSUM baseline maintains its colored regime state (Green for Long, Red for Short).
🔹 Settings Parameters
d (0.01 - 0.99) : Differentiation order. Lower values retain more historical memory; higher values approach first-difference.
CUSUM Drift & Threshold : Controls baseline sensitivity to regime changes.
Percentile Lookback & Targets : Set the statistical width of the inner and outer boundaries.
Indicator

Indicator

D/K Strength + Smart Money AccumulationA multi-component momentum and accumulation oscillator adapted from the Wenhua/TDX (Chinese trading platforms) community formula "多空力度 + 主力吸筹 文华专用 稳定版".
— LINES PLOTTED —
• Long Strength (green)
A double-smoothed stochastic momentum on a 27-bar window, using the formula 3*SMA(stoch,5,1) - 2*SMA(SMA(stoch,5,1),3,1). Rising from low levels signals strengthening demand. Readings above 90 indicate extended bullish momentum.
• Short Strength (red)
Distance of close from the 55-bar high, normalized to 0–100. Persistent readings above the 44 midline reflect bearish pressure; values near 100 mean price is at a 55-bar low.
• Smart Money Accumulation (yellow)
A volume-free proxy detecting potential accumulation at the 30-bar low. Spikes above zero — especially appearing after a downtrend — are interpreted as buying pressure from larger participants.
— REFERENCE LEVELS —
0 = zero axis
44 = mid-line (long/short pressure boundary)
90 = overbought / overextended threshold
— HIDDEN DEBUG OUTPUTS (toggle in Settings → Style) —
J — classic KDJ J line (3K - 2D)
A65 — KD crossover marker (60 on bullish cross, 0 otherwise)
A151/A152 — deep oversold / overbought flags
Anquan — safety zone value
— TECHNICAL NOTE —
The original formula uses a recursive weighted average:
SMA(X, N, M) = (M*X + (N-M)*prev) / N
which is NOT equivalent to Pine's ta.sma. This implementation faithfully replicates the recursive form via inline state variables, preserving the original signal shape. All divisions are guarded against zero denominators.
— SUGGESTED USE —
• Long bias: Long Strength crossing above Short Strength while Accumulation spikes above zero.
• Short bias: Long Strength rolling over from 90 with Short Strength rising through the midline.
• Works on equities, futures and crypto. Best results on daily and 4-hour timeframes; usable on intraday with parameter awareness.
• Pair with the companion "Protection Price" overlay indicator for entry and stop reference.
A faithful Pine v6 port of the original community formula. Author of the original formula unknown. Indicator

Trend Energy Divergence [JOAT]Trend Energy Divergence
Introduction
TED Trend Energy Divergence is an open-source oscillator that measures trend energy from EMA spread, linear-regression slope, projected support/resistance pressure, confirmed structure, and pivot divergence.
The indicator is built for trend-quality context. It shows whether the current move has internal energy, whether structure agrees with that energy, and whether confirmed divergence is appearing against it.
Core Concepts
1. Normalized EMA Spread
Fast and slow EMA spread is normalized by ATR so the oscillator adapts across symbols and timeframes.
2. Slope Pressure
Linear-regression slope contributes directional pressure to the energy model.
3. Projected Support and Resistance
Confirmed pivots build simple projected support and resistance references. Closing beyond those projections adds break pressure.
4. Confirmed Divergence
Pivot highs and lows are compared with oscillator values at the pivot offset to identify bullish or bearish divergence.
5. Energy Signal Line
Trend energy is smoothed and compared with a signal line to show positive or negative shifts.
Features
ATR-normalized energy: Adapts the oscillator to volatility
EMA and slope model: Blends trend spread and regression pressure
Structure-aware pressure: Adds support/resistance break pressure
Confirmed divergence: Uses confirmed pivots and offset oscillator values
Regime dashboard: Shows trend, expansion, or balance context
Projected levels: Displays pane-level support and resistance projections
Alerts: Includes bull shift, bear shift, and divergence confirmations
Input Parameters
Trend Engine:
Fast EMA
Slow EMA
Signal Smoothing
Energy Smoothing
ATR Length
Slope Length
Structure:
Pivot Left and Pivot Right
Structure Lookback
ADX/DMI Trend Threshold
How to Use
Step 1: Read the oscillator relative to the zero line and signal line.
Step 2: Treat upper/lower confirmation bands as higher-conviction energy zones.
Step 3: Watch divergence states as early warnings that the current move may be losing quality.
Step 4: Use the dashboard to confirm whether the environment is Trend, Expansion, or Balance.
Limitations
Divergence confirms after pivots confirm, so it is intentionally delayed
Oscillators can remain extended during strong trends
Projected support/resistance is model-based, not a guaranteed reaction point
The indicator is not a complete trade management system
Originality Statement
TED is an original JOAT oscillator combining ATR-normalized trend spread, slope, projected structure pressure, and confirmed divergence into one Pine Script v6 energy model.
Disclaimer
This script is for educational and informational purposes only. It is not financial advice and does not guarantee future results. Trading involves risk, and users should apply their own risk management.
Made with passion by jackofalltrades
Indicator

Plasma Flow [LunqFX]Plasma Flow is a VWAP-based market regime and signal engine designed to help traders answer one question before taking any trade:
Is the market actually tradable right now?
Most VWAP tools only show where price is relative to fair value. Plasma Flow goes further by measuring how price is behaving around VWAP through four live dimensions: velocity, pressure, turbulence, and multi-timeframe flow bias.
The goal is simple:
filter out noisy conditions, highlight cleaner environments, and rank signals by quality instead of printing entries everywhere.
WHAT THIS INDICATOR DOES
Plasma Flow builds a dynamic VWAP structure with inner and outer statistical bands, then evaluates the market through a regime model.
It shows:
• Regime — whether the market is in Laminar Flow, Expansion, Contraction, Breakout, or Consolidation
• Velocity — how fast VWAP is moving relative to current volatility
• Pressure — how far price is stretched from VWAP
• Turbulence — whether the market is calm enough to trust signals
• Flow Bias — whether current and higher timeframes agree on direction
• Signal Quality — a simple 1 to 5 score for each setup
• Next Target — the nearest projected band level from current price
This makes Plasma Flow useful both as a standalone decision tool and as a market-condition filter for existing strategies.
💡 WHAT IS VWAP AND WHY IT MATTERS
VWAP stands for Volume Weighted Average Price. It is the
average price that all buyers and sellers have paid over a
period of time, weighted by how much volume traded at each
price. Banks, hedge funds and institutional traders use VWAP
as their primary benchmark.
Here is why this matters for you:
When price is far above VWAP, institutions look to sell.
When price is far below VWAP, institutions look to buy.
This creates a gravitational pull — price tends to return
to VWAP after stretching too far in either direction.
Plasma Flow measures exactly how far price has stretched,
whether the stretch is real or just noise, and whether
conditions favor a snap-back entry right now.
📏 WHAT IS σ (SIGMA) — EXPLAINED SIMPLY
Sigma (σ) is a measure of distance from average, adjusted
for how volatile the market currently is.
Think of it like this:
On a calm day, if price moves $10 away from VWAP that might
be extreme. On a volatile day, $10 is nothing — price does
that every 5 minutes. Sigma automatically adjusts for this.
1.0σ = price is moderately stretched from VWAP
2.0σ = price is significantly stretched — reversal zone
3.0σ = price is at an extreme — statistically rare
The outer bands on the chart are drawn at ±1.5σ and ±2.8σ.
When price touches the 1.5σ band, that is your entry trigger.
When price reaches 2.8σ, that is your hard stop and extreme
take-profit zone. No guessing required — the math does it.
🌊 THE 5 MARKET REGIMES — WHAT EACH MEANS
The Regime banner is the first thing to check every time
you open a chart. Here is what each state means in plain
English and what to do in each one:
LAMINAR FLOW — 🟢 Best conditions
The market is moving smoothly and predictably. Price is
trending cleanly without random spikes and reversals.
Institutional flow is dominant — retail noise is low.
What to do: This is when you trade. All signals that fire
in LAMINAR FLOW have the highest probability. Watch for
signal labels and check the Quality Score. LAMINAR + ★★★
or above is your ideal setup.
EXPANSION — 🟡 Momentum building
Price is accelerating away from VWAP. Momentum is building
and the market is starting to trend. This can precede a
breakout or a sharp reversal when it runs out of energy.
What to do: Do not fight the move. If a LONG signal fires
during EXPANSION, it is a trend-continuation play.
If you are already in a trade, hold and trail your stop.
CONTRACTION — 🟠 Energy compressing
Price is pulling back toward VWAP after a stretch. Momentum
is slowing. This is the mean-reversion sweet spot — price
returning from an extreme to its fair value.
What to do: Watch carefully. This is often when the best
reversal signals appear. A SHORT signal during CONTRACTION
after a high-sigma stretch is a high-quality mean-reversion
trade. Check pressure reading — if it is HIGH or EXTREME,
the snap-back is likely strong.
BREAKOUT — 🔴 High volatility, be careful
Price has broken outside the normal bands and volatility
is spiking. This can be a genuine trend start or a stop-hunt
followed by reversal. Either way — unpredictable.
What to do: No new entries. If you are in a trade already,
tighten your stop or take partial profits immediately.
Wait for the regime to stabilize back to LAMINAR before
looking for new entries. Chasing breakouts is where most
retail traders lose money.
CONSOLIDATION — ⚫ No edge, no trade
Price is stuck in a tight range around VWAP. There is no
clear direction and no momentum. Both buyers and sellers
are balanced — nobody is winning. Signals that fire here
have low follow-through and are not worth trading.
What to do: Close the chart and find another instrument.
There is no edge here. Trading consolidation is paying
spread and swap for random outcomes.
🌀 WHAT IS TURBULENCE — THE MOST IMPORTANT NUMBER
Turbulence is the single most important reading in the panel.
Think of it exactly like weather turbulence on a flight.
When turbulence is low — the flight is smooth, you can
walk around the cabin, everything is predictable.
When turbulence is high — even experienced pilots tell
everyone to sit down and buckle up, because they cannot
predict what comes next.
Markets work the same way.
Turbulence measures how erratic current price movement is
compared to the past 50 bars of normal behavior. It compares
right-now volatility to the average volatility baseline.
CALM (below 0.8) — The market is in smooth, predictable flow.
Price movements follow logic. This is when signals fire and
when trades have the highest probability of working.
MIXED (0.8 to 1.3) — Some noise present. Signals still appear
but reduce your position size. Not ideal but tradeable with
caution.
CHAOTIC (above 1.3) — The market is erratic and unpredictable.
No signals fire in this state regardless of what price does.
This is by design — these are exactly the conditions where
indicator-based trading fails and accounts get damaged.
This gating system alone — suppressing all signals when
turbulence is too high — is what separates Plasma Flow
from 90% of indicators on PulseWire that generate signals
regardless of market conditions.
⚡ VELOCITY — IS MOMENTUM REAL OR FAKE?
Standard momentum indicators measure raw price speed.
The problem is that a 50-pip move on a calm Tuesday is
very different from a 50-pip move during NFP news.
Raw speed without context is meaningless.
Plasma Flow measures velocity as price speed divided by
current market noise. This means you are always seeing
momentum relative to what is normal for right now,
not what was normal 3 months ago.
CRASH — Price is collapsing extremely fast relative to
current volatility. A powerful move with real force behind it.
Mean-reversion coming.
FALLING / DOWN — Bearish momentum of varying strength.
FLAT — No meaningful direction. Market is resting.
UP / RISING — Bullish momentum building.
SURGE — Price is spiking extremely fast. Same logic as CRASH
but in reverse — a powerful move that often exhausts itself.
When VELOCITY shows CRASH or SURGE at the same time as
PRESSURE shows HIGH or EXTREME, you have the most powerful
mean-reversion setups the indicator produces.
🔭 WHY 3 TIMEFRAMES INSTEAD OF ONE
Here is a common trap: you are trading on the 15-minute
chart and see a perfect LONG signal. But on the 1-hour chart,
price is in a clear downtrend. You enter long — and price
drops straight through your stop loss.
Your lower timeframe signal was technically correct.
The higher timeframe context invalidated it completely.
Plasma Flow solves this by computing VWAP velocity
independently on three timeframes simultaneously — your
current chart, plus two higher timeframes (default H1 and H4).
It then shows you in the panel whether all three are pointing
in the same direction.
3/3 — Full alignment. All timeframes agree.
Highest conviction entries. Size up.
2/3 — Partial alignment. Two out of three agree.
Acceptable entry. Standard size.
1/3 — Conflicting signals. Timeframes disagree.
Skip the trade entirely. The market has no clear direction.
This multi-timeframe filter alone prevents a large percentage
of the false entries that kill most trading strategies.
⭐ QUALITY SCORE — YOUR POSITION SIZING GUIDE
Every signal gets a score from 1 to 5 stars. Think of this
as a confidence rating that tells you how much to risk.
★☆☆☆☆ POOR
Only one condition was met. This signal has no edge above
random chance. Do not trade it. Use it only for practice
or study.
★★☆☆☆ WEAK
Minimum threshold reached. Two conditions aligned.
If you trade it, use half your normal position size
and tighter stop. Acceptable for scalpers only.
★★★☆☆ GOOD
Three conditions aligned. This is a genuine signal with
real statistical backing. Standard entry with your
normal risk per trade.
★★★★☆ STRONG
Four conditions aligned. Everything is working together —
pressure, turbulence, and timeframe alignment are all
confirming. This is a high-conviction entry.
Consider sizing up 1.5x your standard risk.
★★★★★ PERFECT
All conditions simultaneously optimal. Extreme pressure,
very clean turbulence, full 3/3 timeframe alignment and
combined condition bonus all triggered at once.
This happens rarely — when it does, it tends to be
the highest quality trade of the week or month.
📋 HOW TO TRADE WITH PLASMA FLOW
Step-by-step — from chart open to trade close
STEP 1 — Open the chart and check REGIME first.
Look at the colored banner at the top of the panel.
LAMINAR FLOW = green light. Anything else = caution or skip.
STEP 2 — Check TURBULENCE.
CALM only for full-size entries. MIXED = half size max.
CHAOTIC = close the chart and find another instrument today.
STEP 3 — Check FLOW BIAS.
Look at the three timeframe arrows. Need 2/3 minimum.
If the arrows conflict (one up, two down or vice versa),
wait for alignment before looking for entries.
STEP 4 — Wait for a signal label on the chart.
▲ LONG appears below price in green.
▼ SHORT appears above price in red.
The label shows star rating and sigma reading.
STEP 5 — Read the sigma on the label.
This tells you how stretched price is right now.
-1.58σ on a LONG means price is 1.58 standard deviations
below VWAP — a meaningful stretch with reversal potential.
Higher absolute value = stronger mean-reversion setup.
STEP 6 — Confirm Quality Score is ★★★ or above.
Below ★★★ = skip or paper trade only.
★★★ to ★★★★★ = real entry with appropriate size.
STEP 7 — Set your stop loss.
For swing trades: just beyond the outer band (2.8σ level).
For scalps and day trades: just beyond the inner band
(1.5σ level on the other side of VWAP).
STEP 8 — Use NEXT TGT as take-profit reference.
The panel shows the nearest VWAP band from current price
with percentage distance. This is your first target.
At minimum take 50% off at NEXT TGT and trail the rest.
STEP 9 — Monitor REGIME while in the trade.
If regime switches to TURBULENT or BREAKOUT after entry,
exit the trade immediately regardless of P&L.
The market conditions that validated your entry no longer
exist. Do not wait for price to confirm — get out.
⚙️ SETTINGS EXPLAINED FOR BEGINNERS
VWAP Window — default 50
This is how many bars are used to calculate the average.
Smaller number = faster, more signals, more noise.
Larger number = slower, fewer but cleaner signals.
Day traders on M15: try 20-30.
Swing traders on H4: try 80-100.
Start with default 50 and only change after you understand
how the indicator behaves on your instrument.
Inner Band σ — default 1.5
This is the trigger line for signals. At 1.5 sigma,
price is moderately stretched — enough to have a reversal
edge but not so extreme that you are always waiting.
Increase to 2.0 if you only want to trade very stretched
extremes. Decrease to 1.2 for more frequent signals.
Outer Band σ — default 2.8
This is the extreme zone. Price reaching here is statistically
rare — less than 5% of the time. Use this as your hard stop
reference and maximum stretch target.
Cooldown Bars — default 5
After a signal fires, no new signal can appear for this
many bars. This prevents the indicator from giving you
3 signals in a row on the same price level.
On M15 increase to 10. On H1 keep at 5.
Reversal Filter — default ON
Requires a real reversal candle (pin bar or engulfing)
for the signal to appear. This removes the majority of
false entries. Keep it ON unless you know what you are doing.
TF 2 and TF 3 — default H1 and H4
The two higher timeframes used for confluence calculation.
For crypto day trading try H4 and D1.
For M5 scalping try M15 and H1.
The default H1 and H4 works well for most forex instruments.
🌍 WHAT MARKETS AND TIMEFRAMES
Plasma Flow works on any liquid market with volume data:
Forex majors and minors — EURUSD, GBPUSD, USDJPY,
AUDUSD, USDCAD, EURGBP and all crosses
Crypto — BTCUSD, ETHUSD, SOLUSD and all major pairs
on Binance, Coinbase, Bybit
Commodities — XAUUSD (Gold), XAGUSD (Silver), USOIL, UKOIL
Indices — SPX500, NAS100, DAX40, FTSE100, NIKKEI
Stocks — Any US or EU stock with meaningful daily volume
Best timeframes by trading style:
Scalping → M5, M15 (set TF2=M15, TF3=H1)
Day trading → M15, H1 (default settings)
Swing trade → H4, D1 (set TF2=D1, TF3=W1, Window=80)
⚠️ RISK DISCLAIMER
Plasma Flow is an analytical tool designed to support
your trading decisions. It does not guarantee profitable
trades. All financial markets carry significant risk of
loss, including your entire account balance.
Use proper position sizing on every trade. Never risk
more than 1-2% of your account on a single signal.
Backtest thoroughly on your specific instrument and
timeframe before using real money. Past signal accuracy
does not guarantee future performance.
Trading is risky. Use this tool as part of a complete
trading plan that includes risk management rules you
follow every single time without exception.
Indicator

Apex Volatility Flow [Pineify]Apex Volatility Flow ATR Chandelier Oscillator
Apex Volatility Flow converts ATR-based Chandelier behavior into a normalized 0-100 oscillator. It tracks flow above or below 50, and marks ATR contraction when volatility falls below a longer baseline.
Key Features
Chandelier-style direction logic using extremes and ATR distance.
Bullish/bearish oscillator coloring around the 50-line bias filter.
Squeeze dots and alerts for compression and flow crosses.
How It Works
The script begins with Average True Range . A long reference uses recent highs minus ATR times the multiplier, while a short reference uses recent lows plus ATR times the multiplier. The anchors blend close-based and wick extremes to reduce one-bar distortion.
A close above the short reference is bullish; a close below the long reference is bearish.
The active level is tracked, then its range resets when direction changes.
The active level is normalized, smoothed with an SMA, and compared with 50.
A squeeze appears when ATR is below 80% of a longer ATR baseline.
How the Components Work Together
The Chandelier logic supplies trend context, while the oscillator scale helps compare charts. Squeeze dots stay separate because compression can break either way; read them with flow crosses, 50-line retests, and price structure.
Trading Ideas and Insights
Bullish continuation may be worth studying when flow holds above 50 and compression releases.
Bearish crosses below 50 can whipsaw in strong uptrends; follow-through matters.
During extended squeezes, confirm direction with structure, volume, or higher-timeframe trend.
Unique Aspects
It turns Chandelier-style stops into a compact oscillator instead of a price overlay.
Normalization resets on direction changes, avoiding stale values from the prior move.
How to Use
Add the indicator to a liquid market and timeframe.
Use 50 as the main bullish/bearish flow reference.
Treat squeeze dots as compression context, not standalone entries.
Use the built-in alert conditions for crosses or squeeze events.
Customization
Volatility Length (default: 22) - Controls ATR and anchors. Higher values smooth but react later.
ATR Multiplier (default: 3.0) - Sets stop distance. Higher values reduce flips but delay regime changes.
Oscillator Smoothing (default: 4) - Smooths the output. Higher values reduce noise but add lag.
Colors - Adjust bullish, bearish, and squeeze marker colors.
Conclusion
Apex Volatility Flow is for traders who want ATR and Chandelier-style context in one oscillator pane. It can help organize flow bias and compression, but should be combined with structure and risk management. It uses no higher-timeframe security calls; live-bar values may still change before close.
Indicator

Edo Bands FusionEdo Bands Fusion — Coordinated Volatility and Structure Reading with Bollinger Bands, Donchian Channels and Percentile Band Width on a Single Coordinated Overlay
Before opening a trade, three questions need to be answered: where is price relative to its statistical mean, where is price relative to the extremes of the recent range, and at what point of the volatility cycle is the asset. Each one has a classical indicator that answers it well — Bollinger Bands for the first, Donchian Channels for the second and a band-width reading for the third — but stacking three independent indicators on a single chart produces a noisy plot, three different color schemes and a panel that nobody reads in time.
Edo Bands Fusion was built to solve that. It fuses the three readings on a single coordinated overlay, paints all of them with the dominant state's color so the regime is identifiable at a glance, and condenses the full numeric reading into a compact 2×6 panel. The result is a complete framing of the market state on a single chart layer, with a single color scheme and a single reading flow.
WHAT THE INDICATOR DOES
Three classical layers, one coordinated state machine. The Bollinger layer measures statistical dispersion: how far price has moved from its mean in standard deviation terms. The Donchian layer measures absolute extremes: whether price has made a new high or low relative to the last N candles. The volatility percentile layer measures relative volatility: where current band width sits inside its own 252-bar history. Each layer answers one of the three questions, and a six-state classifier combines them into a single label — Squeeze, Expansion Up, Expansion Down, Trend Up, Trend Down or Range — that drives every color, marker and panel cell on the chart.
The three layers are deliberately independent of each other. Bollinger reacts to standard-deviation distance from the mean; Donchian only changes when a new absolute extreme prints; the percentile layer only updates when band width moves relative to its own history. When they coincide, the reading is robust. When they diverge — a Donchian breakout without statistical overheating in Bollinger, for example — that decoupling is itself a high-quality structural signal, and the indicator surfaces it.
THE THREE LAYERS
Bollinger Bands — statistical envelope.
20-period basis line plus upper and lower bands at 2 standard deviations of close (defaults configurable). The basis is plotted with width 2; bands are plotted with width 1 and a colored fill at 85% opacity by default. The fill is the key visual element of the indicator: its color updates bar by bar according to the dominant state, so the current regime is identifiable from a single glance at the chart without needing to read the panel. Green in Trend Up, red in Trend Down, neutral gray in Range, bluish in Squeeze.
Donchian Channels — range envelope.
Maximum and minimum of the last 20 candles by default, plotted as stepped lines (linebr style) that only change when a new extreme appears. Two computation modes are available. Body mode (default) uses max(open, close) and min(open, close), ignoring wicks — it produces a cleaner envelope and more structural breakouts, less sensitive to noise from individual wicks. Wick mode is classical and reacts to high/low directly, useful in assets where wicks are operationally relevant (actual stop levels, liquidity grabs). The upper Donchian is drawn in faded bear-red, the lower in faded bull-green, and an optional gray middle line is available as dynamic-stop reference.
Volatility Percentile (BBWP-style) — relative volatility.
The current relative width of the Bollinger Bands —(upper − lower) / basis × 100— is ranked through a percentile_rank function over the last 252 periods. The result is a value between 0 and 100 that is directly comparable across assets: a Volatility % of 10 means the same thing in NBIS as in BTC as in EURUSD — the market is in the bottom 10% of its own volatility history. Below the squeeze threshold (default 20%) the chart background is painted in faint blue. Above the expansion threshold (default 80%) the asset is in active volatility expansion.
STATE CLASSIFICATION
Each bar is classified into one of six states following a strict priority hierarchy:
— Squeeze — Volatility % below the squeeze threshold. Takes priority over every other state.
— Expansion Up — Close exceeds the upper Donchian of the previous period.
— Expansion Down — Close falls below the lower Donchian of the previous period.
— Trend Up — Price above the Bollinger basis AND basis with positive slope versus 5 bars ago.
— Trend Down — Price below the Bollinger basis AND basis with negative slope versus 5 bars ago.
— Range — None of the above. Default state when no clear direction is present.
This hierarchy gives Squeeze the highest weight (compression overrides everything because it is the most actionable structural state) and gives Donchian breakouts priority over Bollinger-only readings — when price has both crossed Bollinger and broken Donchian, the more structurally meaningful event is the Donchian breakout. The state machine drives the band color, the chart background, the panel and the alerts simultaneously.
DONCHIAN BREAKOUT MARKERS
Green triangles below the candle on the first bullish breakout, red triangles above the candle on the first bearish breakout. The "first" qualifier is deliberate: only the bar in which the close first exceeds the Donchian extreme is marked, not the following bars while the breakout persists. This avoids clusters of consecutive markers during sustained trends and keeps the chart clean. Breakout markers can be toggled on or off; they are enabled by default.
Operationally, breakout markers are confirmations of regime change, not entry signals per se. The decision to trade them depends on context — direction of the asset on higher timeframes, structure and duration of the prior range, behavior of the breakout candle itself.
INFORMATION PANEL
A compact 2-column, 6-row table on a configurable corner of the chart. Six rows that condense the full reading of the indicator:
— EDO BANDS FUSION — Header.
— State — Current state with its associated color.
— Volatility % — Current percentile rank of band width. 0% = lowest in history, 100% = highest.
— BB %B — Percentage position of price inside the Bollinger Bands. 0% at the lower band, 50% at the basis, 100% at the upper band.
— Donchian % — Percentage position of price inside the Donchian Channel.
— Squeeze — Counter of consecutive bars in squeeze state. Shows "—" when no compression is active.
The panel is positionable in all four corners (Top Right by default), has two sizes (Small / Medium) and switches automatically between Dark and Light themes to match the chart background.
ALERTS
Six predefined alerts cover the indicator's full event surface:
— Squeeze Started — Volatility % crosses below the squeeze threshold for the first time after a period of higher volatility.
— Squeeze Released — Volatility % recovers the normal zone after a period in squeeze. Often precedes a wide move.
— Donchian Breakout Up — First close above the upper Donchian of the previous period.
— Donchian Breakout Down — First close below the lower Donchian of the previous period.
— Price Crossed BB Upper — Price crosses the upper Bollinger band. Significant statistical deviation to the upside.
— Price Crossed BB Lower — Price crosses the lower Bollinger band. Significant statistical deviation to the downside.
The most profitable alerts in practice tend to be Squeeze Released and the two Donchian Breakout. Squeeze Started is useful as a pre-warning to prepare a trading plan. The two Bollinger cross alerts can be noisy in highly volatile assets — combining them with a higher-timeframe filter reduces false positives.
HOW TO READ IT
Four readings stacked on a single chart, with a recommended order.
1 — Read the band color first.
Color tells you the state in a fraction of a second. Green for Trend Up or Expansion Up, red for the bearish counterparts, gray for Range, blue for Squeeze. The fill is the most efficient input the indicator produces and the basis of every other reading.
2 — Read the background for compression.
If the background is bluish, the asset is in squeeze. Compression periods compress information and almost always release into wide moves. The Squeeze counter in the panel tells you how long the compression has lasted — long squeezes tend to release more decisively than short ones.
3 — Read the Donchian envelope for breakouts.
Stepped red and green lines mark the extremes of the last 20 candles. A close outside one of them — green triangle below, red triangle above — flags a structural change. Combined with squeeze, this becomes the cleanest setup the indicator produces.
4 — Use the panel for context.
BB %B tells you where price is inside the Bollinger Bands; Donchian % tells you where it is inside the Donchian range. Both are 0–100 readings comparable across assets. When BB %B is at 100 but Donchian % is at 80, price is statistically extended but has not yet made a new structural high — a momentum warning without a confirmed breakout.
COMMON PATTERNS
— Squeeze → Expansion.
A series of bars in Squeeze state (Volatility % < 20%, bluish background, narrow bands, growing Squeeze counter) followed by an abrupt change to Expansion Up or Expansion Down with its Donchian marker. The cleanest setup the indicator produces. Works especially well on 4H and Daily charts where compression collects more information.
— Persistent trend.
Price stays consistently above (or below) the Bollinger basis for many consecutive bars, Volatility % stays in the normal zone (40–70%) and price never touches the opposite extreme. Healthy trend that does not require immediate action — wait for the first Range bar to evaluate exhaustion.
— Bollinger extreme without Donchian breakout.
Close breaks the upper Bollinger band but stays inside the Donchian range. Strong impulse that has not yet generated a new absolute high — momentum warning, not entry signal. Wait for Donchian confirmation.
— Donchian breakout without Bollinger extreme.
Close exceeds the upper Donchian but Bollinger does not show statistical overextension. Clean structural breakout — new range high without overheating relative to the mean. Usually a higher-quality setup than breakouts with overextension.
CONFIGURATION
Full input customization grouped in seven blocks:
— Bollinger Bands: BB Length (20), StdDev Multiplier (2.0), Source (close), Show Bollinger Bands.
— Donchian Channels: Donchian Length (20), Mode (Body / Wick), Show Donchian Channels, Show Donchian Basis.
— Volatility State: Volatility Lookback (252), Squeeze Threshold (20%), Expansion Threshold (80%), Highlight Squeeze Background.
— Style: Bull Color, Bear Color, Neutral / Squeeze Color, BB Fill Opacity (85), Theme (Dark / Light).
— Markers: Show Donchian Breakout Markers.
— Panel: Show Panel, Position (Top Right / Top Left / Bottom Right / Bottom Left), Size (Small / Medium).
Defaults follow classical conventions (Bollinger 20/2, Donchian 20, BBWP 252) and are calibrated to work without tuning across stocks, crypto, forex, indices and futures.
OPEN SOURCE
Edo Bands Fusion is published as a free-access indicator within the Edolab Markets ecosystem. The full Pine Script v6 is publicly accessible on PulseWire for study, adaptation and integration into any workflow. Part of the Edolab Markets free tools ecosystem alongside Edo SuperTrend Core, Edo RSI Dual, Edo Sentiment Map, Edo TRIX Core Cross and more available on PulseWire.
This indicator is a technical analysis tool for educational and informational purposes only. It does not generate automatic buy or sell signals and should not be considered financial advice. Trading financial markets involves significant risk of capital loss. Past performance does not guarantee future results. Always use proper risk management.
Indicator

AlphaTrend Momentum Matrix [MarkitTick]💡 The AlphaTrend Momentum Matrix is an advanced, comprehensive trend-following architecture designed to dynamically track market momentum, manage dynamic trade states, and seamlessly bridge the gap between technical charting and automated execution. Far from a simple overlay, this script acts as a multi-layered analytical suite. It evaluates primary trend direction using volatility and volume-weighted money flow, filters out market noise with a custom state-matrix, and projects actionable higher-timeframe data onto the active chart. Furthermore, it incorporates an internal mathematical framework capable of dynamically calculating strict risk-to-reward targets and dispatching meticulously formatted JSON payloads for external webhook execution.
✨ Originality and Utility
● The Momentum Matrix Advantage
While traditional trend indicators rigidly lock onto moving averages or standard price bands, the AlphaTrend Momentum Matrix thrives on market dynamism. Its true utility lies in its multifaceted approach to trend validation. It introduces an exclusive "ATR Breakout Override" system—a custom logic module that forces a trend recalibration if an explosive price movement severely disrupts the standard deviation envelope, regardless of standard trailing conditions. This ensures the indicator remains highly responsive to sudden, high-impact market events without waiting for lagging conditions to catch up.
● Automated Payload and State Management
A standout feature of this tool is its embedded Trade State system. It does not merely paint a signal on the chart; it internalizes the exact entry price, computes a precise stop-loss based on the active AlphaTrend baseline, and mathematically projects a 1:2 risk-to-reward Take Profit target. This localized tracking seamlessly interfaces with the built-in Alert Engine, dynamically injecting these critical metrics into formatted JSON templates ready for third-party automated execution systems.
🔬 Methodology and Concepts
● AlphaTrend Core Engine
The primary directional engine relies on the interplay between the Average True Range (ATR) and the Money Flow Index (MFI). A trailing upper band (Support) and lower band (Resistance) are calculated using a user-defined ATR coefficient. The script interrogates the 14-period MFI; if the MFI reads above 50, indicating positive money flow momentum, the algorithm biases toward the Support band, updating it only when the price makes higher lows. Conversely, an MFI below 50 shifts the bias to the Resistance band.
● Breakout Override Protocol
To counteract the inherent lag of volume-weighted smoothing, the indicator employs a momentum breakout scanner. By measuring the absolute distance between the previous two closing prices and comparing it against the prior ATR multiplied by a sensitivity factor, the script can definitively detect volatility shocks. If a shock occurs concurrently with a directional price cross over the active AlphaTrend line, the system immediately forces a directional shift, bypassing the standard MFI requirements.
● Signal Filtering and Matrix Constraints
Raw signal crossovers are notoriously noisy during consolidation. To mitigate whipsaw trades, this script implements a continuous loop counter (the K and O matrices). It tracks the consecutive bars since the last primary buy or sell condition. A signal is only declared "valid" if it successfully breaks the historical sequence of the opposing trend counter, ensuring that localized micro-fluctuations do not trigger premature trade entries.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Volatility and the Average True Range
Developed by J. Welles Wilder Jr. in 1978, the Average True Range is a foundational pillar of this indicator. The ATR scientifically quantifies absolute market volatility by decomposing the entire range of an asset's periodic price action, factoring in gaps and limit moves. By applying a multiplier to the ATR, this script establishes a statistically significant standard deviation envelope, distinguishing between normal market "breathing" and definitive structural shifts.
● Volume-Weighted Momentum via Money Flow Index
The MFI, created by Gene Quigley and Colin Dysart, represents an evolution of the Relative Strength Index (RSI). From an academic standpoint, the MFI incorporates volume into its momentum calculation, producing a more robust metric of buying and selling pressure. It uses the Typical Price (High + Low + Close / 3) multiplied by volume to calculate raw money flow. The 50-level threshold serves as the equilibrium point; sustaining above this level empirically signifies net accumulation, providing the mathematical justification for the indicator's bullish bias.
● Algorithmic State Machines
The signal filtering mechanism and the internal Trade State tracker are practical applications of Finite State Machines (FSM) commonly used in quantitative algorithmic design. The script holds memory of its current operational state (Long, Short, Neutral) and refuses state transitions unless specifically validated mathematical conditions (boolean logic gates) are met, significantly reducing error rates inherent in purely reactive, memory-less indicators.
● Repainting and Lookahead Warning
This script utilizes the request component to pull Higher Timeframe (HTF) context into the primary chart. Crucially, it employs the barmerge.lookahead_on parameter. While this creates a visually perfect, non-lagging representation of higher timeframe trends when analyzing historical data, it introduces lookahead bias. Traders must understand that historical HTF visuals and signals may appear with perfect precision on past bars, but real-time execution will lack this future data context, potentially resulting in different localized behavior in live markets.
🎨 Visual Guide
● The AlphaTrend Trailing Line
Up Trend (Bullish): A bold, solid step-line tracking below the price, rendered in a distinctive golden-yellow (#F0D080).
Down Trend (Bearish): A bold, solid step-line tracking above the price, colored in a deep crimson (#7A2010).
● The Cloud Fill
Dynamic Channel: A semi-transparent shaded area connecting the active AlphaTrend line to a central Cloud Reference Line (a smoothing of the typical price). This cloud visually represents the buffer zone of the current trend.
Color Coding: The cloud dynamically changes color to match the dominant trend (Gold for bullish, Crimson for bearish), allowing for rapid peripheral analysis of market conditions.
● Price Action Overrides
Colored Candles: The bodies and wicks of the actual price candles are uniformly colored to reflect the AlphaTrend matrix state, instantly identifying periods of alignment or divergence.
● Execution Elements
Signal Labels: Distinct "BUY" and "SELL" textual shapes appear precisely on the chart at the moment the state matrix validates a trend shift.
HTF Stepline: When enabled, a secondary, smoothed step-line appears to show the overarching macro trend, colored accordingly to dictate the broader market regime.
📖 How to Use
● Trend Riding and Context
The most effective way to utilize this tool is to align the primary chart timeframe with the HTF AlphaTrend line. If the HTF line is Gold, you should strictly look for "BUY" signals generated by the primary indicator to trade in the direction of the macro trend, ignoring temporary bearish signals as minor pullbacks.
● Momentum Breakout Confirmation
When you observe a sudden color change accompanied by an unusually large price bar, this is often the Breakout Override triggering. These scenarios represent high-momentum events. Instead of waiting for a retest, aggressive traders may use these specific signals to capture immediate volatility expansions, placing their stop-loss strictly on the opposite side of the newly formed AlphaTrend line.
● Automating Your Strategy
For quantitative traders, the indicator handles the heavy lifting of trade logic. Ensure you configure the exact JSON payload strings required by your third-party execution platform (like 3Commas, PineConnector, etc.) in the settings. The indicator will autonomously calculate your risk/reward parameters upon every valid signal and fire a perfectly formatted JSON alert.
⚙️ Inputs and Settings
• ⚙️ Core Calculations
ATR Multiplier: Defines the sensitivity of the trailing line. Lower values (e.g., 0.5) track price closely for scalping; higher values (e.g., 2.0) provide wide breathing room for swing trades.
ATR & MFI Lookback Period: The standard window (default 14) for calculating both volatility and volume momentum.
Display Signals: Toggles the visibility of the "BUY" and "SELL" chart labels.
• 🛡️ Breakout Override
Enable ATR Breakout Override: Turns the momentum-shock detection system on or off.
Breakout Sensitivity: Determines how large a price jump must be (relative to the ATR) to force a trend change. Lower values trigger more aggressively.
• 🕐 Higher Timeframe
Show HTF AlphaTrend: Projects the higher timeframe data onto the current chart.
HTF Timeframe: The specific macro timeframe to monitor (e.g., Daily "D" when trading on the 1-Hour chart).
• ☁️ Cloud Fill
Show Cloud Fill: Toggles the visual buffer zone on the chart.
Cloud Reference Length: Adjusts the smoothing period of the central reference line.
Color Candles: Enables or disables the overriding of standard chart candle colors based on trend direction.
• 🔌 Webhook Execution Config
Payload Actions: Four distinct text fields where you can define the exact syntax your external bot requires for entering longs, entering shorts, closing longs, and closing shorts. These values are automatically injected into the dynamic JSON alert string.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

ATR Exceedance Probability Model [LuxAlgo]The Volatility Exceedance Probability Model (VEPM) indicator is a comprehensive statistical tool designed to quantify the significance of volatility spikes, determine the likelihood of trend continuation, and categorize market environments into specific regimes.
🔶 USAGE
The indicator provides a multi-layered view of volatility, allowing traders to distinguish between standard market noise and statistically significant "exceedance" events.
🔹 Oscillator Interpretation
The main oscillator plots the current exceedance frequency (the rate at which price or range breaches ATR-based thresholds) against a long-term baseline.
Bullish/Significant Glow: When the Z-Score of the frequency exceeds the sensitivity threshold, the oscillator glows green, indicating a high-probability volatility expansion.
Bearish/Normal Glow: When the frequency falls below the baseline, the oscillator shifts toward red, signaling a contraction in volatility.
Frequency Delta: The area between the current frequency and baseline frequency is filled to highlight the momentum of volatility expansion or exhaustion.
🔹 Chart Visuals & Regimes
The script overlays information directly on the price action to provide context:
ATR Bands: Dynamic bands based on the Average True Range act as the "exceedance" barrier.
Regime Boxes: The indicator automatically identifies "Quiet," "Normal," and "High Vol" regimes. These are visualized as colored boxes (defaulting to High Vol) to show the duration and range of specific volatility climates.
Significance Dots: Circles appear at the top of the chart to mark bars that have breached the volatility threshold.
🔹 Dashboard Metrics
A real-time dashboard provides quantitative data:
Exceedance Freq: The percentage of bars in the short-term window that breached the ATR levels.
Serial Break Prob: The historical probability that a breach will be followed by another breach (continuation).
Clustering Edge: The statistical advantage of volatility clustering; a positive value suggests that volatility is currently feeding on itself.
🔶 DETAILS
The VEPM operates on the principle that volatility is not constant but "clusters" in time. It uses the following logic to derive its metrics:
Exceedance Detection: It calculates whether the current price range (True Range) or price levels (High/Low) exceed a user-defined ATR multiplier.
Statistical Z-Score: By comparing the current frequency of these breaches to a long-term baseline (200 bars by default), the model calculates a Z-Score to determine if the current activity is statistically "abnormal."
Continuation Probability: The model looks back at previous breaches and calculates how often they resulted in immediate follow-through, providing a "Serial Break" percentage.
🔶 SETTINGS
🔹 Core Settings
ATR Length: The lookback period used for the Average True Range calculation.
ATR Multiplier: The threshold used to define what constitutes a "breach" or exceedance.
Breach Detection Method: Choose between comparing the bar's total range to ATR or checking if price levels exceed the previous bar's bands.
🔹 Statistical Windows
Short-Term Window: The period used to calculate the current exceedance frequency.
Baseline Window: The long-term period used to establish the "normal" mean of volatility frequency.
Z-Score Sensitivity: Determines the threshold for identifying statistically significant volatility spikes.
🔹 Visuals
Show ATR Bands: Toggles the visibility of the ATR-based levels on the chart.
Bands Mode: Determines if bands are offset from a central basis (SMA/EMA) or from the bar's High/Low.
Regime Box Options: Toggles background boxes for Quiet, Normal, or High Volatility regimes.
🔹 Dashboard
Dashboard: Enables or disables the on-screen information table.
Position/Size: Controls the location and scale of the dashboard UI.
Indicator

MSL Trend FollowMSL Trend Follow is a market-structure trend-following indicator designed to help traders identify when price may be shifting from one directional phase to another, and then follow that phase using an ATR-based trailing stop.
The indicator combines two core ideas:
1. Market structure break logic
2. Adaptive ATR trailing stop management
Instead of plotting a large number of separate signals, MSL Trend Follow focuses on a cleaner workflow: detect a structural trend change, display the direction, and then provide a dynamic trailing stop line that follows the active trend.
How it works
The script identifies confirmed swing highs and swing lows using a pivot-based structure model. When price closes above the most recent confirmed swing high, the indicator marks a potential bullish trend shift. When price closes below the most recent confirmed swing low, it marks a potential bearish trend shift.
After a trend signal appears, the indicator plots an ATR-based trailing stop:
- In an uptrend, the green trailing stop line is plotted below price.
- In a downtrend, the red trailing stop line is plotted above price.
The trailing stop uses a ratchet mechanism. During an uptrend, the stop can only move upward. During a downtrend, the stop can only move downward. This helps the line follow the active trend without constantly moving back and forth with every minor price fluctuation.
What makes it useful
MSL Trend Follow is not designed to predict every candle or call every market turn. Its purpose is to give traders a structured way to read trend direction and manage the active phase after a structural breakout.
The indicator may help traders answer three practical questions:
- Has price shifted above or below an important structural level?
- Is the current trend phase still active?
- How far is price from the current trailing stop?
The chart output is intentionally simple:
- Green Trend signal: bullish structure shift
- Red Trend signal: bearish structure shift
- Green line: bullish trailing stop
- Red line: bearish trailing stop
- Dashboard: current trend state, signal age, and distance to stop
Dashboard
The dashboard gives a compact view of the current state:
Trend
Shows the current directional state:
UP, DOWN, or NEUTRAL.
Signal Age
Shows how many bars have passed since the most recent trend signal. A small number means the signal is relatively fresh. A larger number means the trend phase has already been active for a longer period.
To Stop
Shows the current distance between price and the trailing stop as a percentage. This helps traders understand how much room price has before reaching the active stop line.
How to use it
A bullish scenario appears when the indicator prints a green Trend signal and starts plotting a green trailing stop below price. This means price has broken above the latest confirmed structural high and the indicator has shifted into an upward trend state.
A bearish scenario appears when the indicator prints a red Trend signal and starts plotting a red trailing stop above price. This means price has broken below the latest confirmed structural low and the indicator has shifted into a downward trend state.
The trailing stop can be used as a visual reference for trend continuation or trend invalidation. As long as price respects the active trailing stop, the current trend phase remains structurally intact according to the indicator logic. If price moves through the trailing stop area, the current trend phase may be weakening or ending.
Suggested interpretation
Stronger bullish context:
- Trend state is UP
- Price remains above the green trailing stop
- The green stop line continues to move upward
- The signal is not extremely old
- The broader market context supports upward continuation
Stronger bearish context:
- Trend state is DOWN
- Price remains below the red trailing stop
- The red stop line continues to move downward
- The signal is not extremely old
- The broader market context supports downward continuation
Weaker or more cautious context:
- Price is very close to the trailing stop
- The signal is very old
- Market is moving sideways
- Price repeatedly crosses back and forth around structural levels
- Higher-timeframe direction conflicts with the current signal
Settings
Pivot Length
Controls how major or minor the detected structure points are. Lower values make the indicator more reactive, but may create more noise. Higher values focus on larger structural swings and may produce fewer signals.
Min Bars Between Signals
Adds a minimum bar distance between trend signals. This can help reduce rapid flip-flopping in choppy markets.
ATR Length
Controls the ATR calculation used for the trailing stop.
ATR Multiplier
Controls how far the trailing stop sits from price. A higher multiplier creates a wider stop and fewer stop-outs. A lower multiplier creates a tighter stop and faster reaction.
Signal Offset ATR
Controls how far the signal label is placed from the trailing stop line. This is a visual setting only and does not change the signal logic.
Best use cases
MSL Trend Follow is best suited for traders who want a clean trend-following tool based on market structure and dynamic stop tracking. It can be used on different markets, including stocks, crypto, forex, indices, and commodities, but the settings should be adjusted to the asset and timeframe.
Suggested timeframes:
- H1 for more active trading
- H4 for intraday and short swing context
- D1 for broader swing trend structure
The indicator is not intended to be used as a standalone trading system. It should be combined with broader market context, support and resistance, volatility conditions, risk management, and the trader’s own trading plan.
Important notes
This indicator does not guarantee future performance.
It does not predict the market.
It does not replace risk management.
It is designed for market analysis and educational use.
All signals should be interpreted in context. A trend signal shows that a structural condition has been met according to the indicator logic, not that a trade must be opened automatically.
Markets can remain volatile, choppy, or unpredictable, and any technical tool can produce false signals. 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
