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

Adaptive S/R Box Zones with Dynamic Stop Loss & EMA FilterTitle: Adaptive S/R Box Zones with Dynamic Stop Loss & EMA Filter
Description:
This indicator is an advanced tool designed to automatically identify key Support and Resistance (S/R) levels by blending momentum, volatility, and structural pivot points. The core objective of the script is to visualize asymmetric risk zones (Stop Loss zones) and filter out false breakouts using an integrated EMA momentum filter.
How it works:
S/R Detection Logic: Levels are not derived from simple highs and lows. The script utilizes a sophisticated algorithm that dynamically combines the RSI (Relative Strength Index) to spot extreme overbought/oversold conditions, a HMA-based CMO (Chande Momentum Oscillator) for momentum confirmation, and historical Close Pivots.
Asymmetric SL Zones (Boxes): Instead of standard symmetric lines that often distort spatial risk, the indicator renders dynamic box shapes. The height of these zones automatically adapts to the market's current volatility using the ATR (Average True Range).
The Resistance Zone expands asymmetrically upward from the level, offering a clear visual map for placing Stop Losses on Short setups.
The Support Zone expands asymmetrically downward from the level, defining the logical Stop Loss area for Long setups.
EMA Momentum Filter & Trigger: The script features an optional EMA crossover filter. When enabled, the detection of a new S/R zone acts as a dynamic "setup alert", while the actual BUY or SELL signal triggers only when the price breaks through the EMA line, confirming directional momentum.
Key Features & Inputs:
Zone Height (ATR Multiplier): Controls the thickness of the risk zones based on market volatility.
S/R Timeframe: Multi-timeframe (MTF) functionality to plot higher time frame levels onto your current chart.
Signal Trigger Mode: Toggle between On Candle Close and After Candle Close (waits for the candle to seal to prevent repainting).
EMA Filter Toggle: Can be fully deactivated if you prefer to receive raw signals immediately upon the formation of S/R levels. Индикатор

Apex Turn v4APEX TURN v4: Kalman Snapback with Fee Gate, Trend Guard and Fair Value Take Profit
Apex Turn is a mean reversion tool that hunts exhausted moves and trades the snap back to fair value. It was designed for crypto perpetual futures but works on any liquid market.
HOW IT WORKS
The script runs an adaptive Kalman filter on log price to estimate fair value, drawn as the orange line. The gap between price and fair value is normalized into a z score over a rolling window. When the z score stretches beyond the entry threshold (2.8 by default) and then hooks back toward the mean while still deeply stretched, the engine looks to trade against the extreme. Longs trigger at washed out lows and shorts trigger at blow off highs.
THREE GATES PROTECT EVERY SIGNAL
Gate one is the chop filter. The Kaufman Efficiency Ratio must confirm a ranging market before any mean reversion entry is allowed.
Gate two is the fee gate. The script projects the reward from current price to fair value, converts your maker and taker fees into R units based on the stop distance, and blocks any signal that would not cover all fees plus a minimum net gain of 0.35R. Blocked signals print as small gray crosses so you can see exactly what fees would have eaten.
Gate three is the strong trend guard. Fair value drift is measured in ATR per bar. When drift is strong, counter trend signals are suppressed until the market prints a release event: a momentum divergence on the z score, volume absorption at the extreme, or both together depending on the mode you select. Trend blocked signals print as orange squares and release events print as aqua diamonds.
EXITS
On entry the script freezes the current fair value as the take profit target, plotted in green, and places the stop in red at 1.5 ATR from entry. The default exit mode assumes you rest a reduce only limit order at the target so your winning exit pays the lower maker fee. Mean touch and overshoot exit modes are also included in the settings. A time stop closes stale positions after 45 bars.
ADAPTIVE ATR
The ATR length is anchored to real time rather than a fixed bar count. It always measures roughly 112 minutes of volatility, so stops, targets and fee math stay consistent whether you chart 30 seconds or 4 hours.
ALERTS
Four webhook ready alerts are included. Entry alerts carry the close price, the stop, the frozen take profit and the projected net R, so an automated system can place the full bracket the moment a position is born. Exit alerts fire for stop, target and time stop events.
SUGGESTED USE
Developed and tested for the 8 minute chart on liquid perpetual pairs. The 30 minute and 1 hour charts also suit the logic well. Timeframes under 5 minutes are not recommended because trading fees consume most of the edge there. Set the maker and taker fee inputs to match your own exchange tier before trusting the fee gate.
Signals are evaluated at bar close and do not repaint. Nothing in this script is financial advice and past behavior in testing does not guarantee future results. Always size positions responsibly and manage your own risk. Индикатор

Trend Health [FEELS]A trend rarely dies suddenly. It fades first: the move gets inefficient and counter-trend candles grow heavier. Trend Health paints that fading straight onto a supertrend-style ATR trail, and tightens the stop while it happens.
The band is saturated green or red while the trend is strong. As health decays the color drains toward amber, an amber dot prints where the dying starts, and the trail contracts under price so a weak trend exits earlier than a fixed stop would.
QUICK START
Add it to a chart and read the color. Bright band: trend intact, trail at full width. Fading band: trend losing quality, stop contracting. Amber band: dying trend, elevated flip risk. Scroll the history: most flips carry an amber warning dot some bars before them. The strip along the bottom compresses the full health history into one regime line, and the label at the right edge shows direction, state and the current health score.
HOW IT WORKS
Two layers: a health score, and a trail that consumes it.
Health score, computed every bar over the Health lookback window:
1. Directional efficiency. Kaufman efficiency ratio (net move divided by the sum of absolute bar-to-bar moves), zeroed when the net move points against the active trend, normalized so a reading of 0.5 counts as fully efficient.
2. Momentum side. RSI distance from the 50 line in the direction of the trend, scaled over 25 points.
3. Impulse asymmetry. Candle bodies printed with the trend versus against it over the window. When counter-trend bodies grow, this component decays before price structure breaks.
These three form the core score (weights 0.45 / 0.30 / 0.25). The displayed health adds a fourth read, the distance between price and the trail in ATR units, at 25 percent weight. The score is EMA-smoothed and resets on every flip.
The trail is a ratchet ATR stop built from scratch. Base width is ATR times the multiplier. With Adaptive tightening on, the effective multiplier is scaled by the core score, so a healthy trend trails at full width while a dying trend gets a progressively tighter stop. The distance component is excluded from the core on purpose, otherwise tightening would lower the score and tighten further in a loop. Toggle it off and you get a classic fixed-width trail; the health engine then only drives the color.
HOW TO USE
- Color is the instruction. Enter or hold on a saturated band, tighten manually or stand aside on amber.
- The dying alert fires when health crosses under the threshold while the trend is still running. On past data many flips were preceded by exactly this transition. Treat it as a condition read, not a forecast.
- Four alerts: flip up, flip down, trend dying, trend recovered.
- Designed on 4H to 1W. Works on any symbol and timeframe; on low timeframes expect more flips, especially in ranges with adaptive mode on.
PARAMETERS
- ATR length / ATR multiplier: trail geometry at full health.
- Adaptive tightening: health-driven contraction of the trail, on by default.
- Health lookback: window for the efficiency, momentum and asymmetry reads.
- Health smoothing: EMA on the raw score.
- Dying threshold: below this level the trend counts as dying; drives the amber floor, the warning dot, the label and the alert.
- Display toggles: trend fill, bar coloring, flip markers, dying warnings, health ribbon, status label.
- Sizing: marker size, label size and trail width are adjustable.
NOTES
- The trail state confirms at bar close. On the live bar the level and color can update until close.
- Health describes the present condition of the trend. It does not predict future prices.
- A dying warning is a condition mark, not an exit signal: health can recover and the trend can resume. Sharp reversals can flip a trend straight from high health without any warning printed.
- Adaptive mode trades later giveback for earlier exits, so in choppy ranges it flips more often than a fixed trail. That is the design, not a defect.
ORIGINALITY
The ratchet ATR trail is a classic public-domain concept reimplemented from scratch. What is original here is the three-component health model, the gradient mapping of that score onto the trail, bars and ribbon, and the feedback of the score into the stop width itself, which makes the flip points measurably different from a standard fixed-factor trail. RSI and the efficiency ratio are not displayed as separate indicators; they exist only as inputs to one scoring model. This is a single system, not a mashup. Индикатор

Ulcer Index Baseline Deviation - Z Columns & PercentileThis indicator compares Peter Martin's Ulcer Index against its own long-term baseline, then shows the result through two scale-free readouts, so that readings carry the same meaning across different symbols.
The Ulcer Index (Martin and McCann, 1989) measures the depth and duration of percentage drawdowns from prior highs, in other words how painful it has been to hold a position. Unlike standard deviation, it looks only at the downside. Martin read the index against its own long-term average: pain rising above its normal range signals elevated downside risk.
The script computes the Ulcer Index over a rolling window (default 50 daily bars), subtracts its long-term EMA (default 200 bars, roughly one year on a daily chart) to obtain the deviation, then presents that deviation in two ways over the same 200-bar window. The columns are a robust z-score, built from the median and the median absolute deviation with the usual 1.4826 consistency factor, so column height reads in standard-deviation equivalents and keeps resolving even while new records are being set. Column color follows the sign of the z-score: red when the deviation sits above its trailing median, teal when below. The orange line is a percentile rank scaled to zero-to-one: 0.5 means today's deviation sits at the trailing median, 1 means it is the record of the window.
How to read it: tall red columns with the orange line pinned near 1 mark a genuine extreme. Tall columns with the line in mid-range mean a large move that is routine for this symbol. A pinned line above modest columns means a normally calm symbol breaking its own record at ordinary size. Columns are persistent and will stay one color for weeks inside a drawdown regime. Note that the color flip only approximates the true baseline crossover: the deviation series is right-skewed, its trailing median sits slightly below zero, so the flip typically leads the crossover by a few bars. For the exact regime, chart the raw Ulcer Index against its EMA.
Notes and limits: both readouts are normalized to each symbol's own history, so they compare rarity and relative size, not absolute drawdown. To compare absolute pain across symbols, chart the raw Ulcer Index instead. Use identical settings on every symbol you compare, and allow several hundred bars of history for warm-up. The deviation, z-score, and percentile layers are an original extension, not part of Martin's published work, so validate behavior against historical drawdowns you recognize. This is a risk-regime gauge, not a buy or sell signal generator, and nothing here is investment advice. Индикатор

Индикатор

Bitcoin Power Law Corridor (Santostasi)This macro indicator plots the Bitcoin Power Law Corridor, based on the renowned mathematical model popularized by astrophysicist Giovanni Santostasi and researcher HC Burger. Unlike traditional financial models that rely on human assumptions (like the failed Stock-to-Flow model), the Power Law is a scientific theory based on organic network growth, similar to structures found in physics and biology.
Bitcoin does not grow exponentially forever; instead, it follows a sub-exponential growth curve with diminishing relative returns but massive absolute gains. This script tracks that exact path and resolves a common limitation in TradingView by using advanced time-based trendlines to project the bands into the empty future canvas.
How the Math Works
The indicator calculates the fair value of Bitcoin using the time elapsed since the Genesis Block (January 3, 2009) raised to a specific power (exponent n ≈ 5.845).
This growth pattern mimics two fundamental natural laws:
1. Kleiber's Law (Biology): Demonstrates that as living organisms grow larger, their energy efficiency increases scalingly. Similarly, the Bitcoin network becomes more robust and stable as it grows.
2. Urban Scaling Laws (Cities): Cities like Rome or New York grow organically according to a power law. Because millions of people freely choose to interact within them, they compound over centuries without a single point of failure. Bitcoin's price chart directly mirrors this organic network density.
The Three Structural Bands
On a Logarithmic scale, this indicator displays three vital structural milestones:
Blue Line (Fair Value): The mathematical median and fundamental fair price of Bitcoin based on Metcalfe's Law (network effects) and global adoption.
Green Dashed Line (The Floor): The ultimate macro defense line (calculated around the P10 percentile). Historically, Bitcoin has never closed a weekly candle below this hard floor. It serves as the ultimate long-term accumulation zone.
Red Dashed Line (The Ceiling): The overextension/bubble band. When price approaches this line, the market is historically overextended (e.g., 2013 and 2017) and highly risky.
Key Features of this Script
Future Projection: Standard TradingView lines stop at the current live bar. This script bypasses that limitation using line.new segments, allowing you to drag the chart to the left and view the exact mathematical support and resistance targets for 2028, 2034, and beyond.
Fully Customizable: You can tweak the Genesis date, change the power law exponent, or adjust the log-offsets for the floor and ceiling bands in the settings menu.
CRITICAL INSTRUCTION
This indicator MUST be viewed on a Logarithmic Scale (LOG) .
Click the 'LOG' button in the bottom-right corner of your TradingView chart.
On a standard linear scale, the bands will be completely distorted and unusable.
Best viewed on the Daily (1D) or Wekely (1W) timeframe. Индикатор

Stop Loss - structuur + ATR-bufferThis indicator helps you avoid getting stopped out by a few pips when price sweeps an obvious level. Instead of placing your stop exactly at the last swing low/high — where liquidity sits — it calculates a stop level with a volatility-based buffer:
Stop = last confirmed swing low/high ± (ATR × multiplier + extra pips)
The chart shows the swing level (dotted line), the buffered stop level for longs and shorts (solid lines), and a label with the exact stop price, buffer size, and distance in pips — use that distance for your position sizing.
Settings:
Swing sensitivity — how many candles left/right must confirm a swing. Higher = only major swings, lower = minor swings closer to price.
ATR period / multiplier — the buffer scales with volatility, so it automatically widens on volatile pairs and higher timeframes.
Extra pips — fixed margin for spread (stops are triggered on bid/ask, not the mid-price your chart shows).
Note: the default settings are a starting point, not a recommendation. Backtest on your own trades: measure how far wicks typically pierce your swing levels relative to ATR, and set the multiplier accordingly. A wider stop means a smaller position at the same risk percentage — never more risk. If the buffered stop breaks your minimum R:R, skip the trade instead of tightening the stop. Индикатор

Индикатор

Cardwell Range Analyze [MarkitTick]💡 A comprehensive, all-in-one technical analysis suite designed to decode market regimes, identify high-probability momentum shifts, and automate risk management visualization. Built upon the foundation of Andrew Cardwell's advanced Relative Strength Index (RSI) theories, this tool transcends traditional oscillator analysis. Rather than relying on static overbought and oversold thresholds, it dynamically tracks regime shifts by observing where momentum consolidates. When combined with trend confirmation, volatility-based targets, and directional movement filters, it provides a holistic view of the market state directly on your chart.
✨ Originality and Utility
Most traders utilize momentum oscillators in a vacuum, searching for mean-reversion signals at arbitrary boundaries. The utility of this script lies in its departure from that static approach. It introduces a multifaceted evaluation system that cross-references momentum bands with structural trend data. By integrating a Higher Timeframe (HTF) directional filter and an Average Directional Index (ADX) volatility threshold, it systematically filters out market noise and chop.
Its originality shines through the automated Trade Tools suite. Upon detecting a valid regime shift, the indicator instantly projects Average True Range (ATR) based Stop Loss and Take Profit levels, complete with risk-to-reward zoning. This allows traders to visually assess the mathematical viability of a setup before execution. The inclusion of a real-time diagnostic dashboard further elevates its utility, offering a heads-up display of all underlying metrics without cluttering the primary price action.
🔬 Methodology and Concepts
● Cardwell RSI Framework
Traditional RSI theory dictates that an asset is overbought at 70 and oversold at 30. However, the foundational concept here relies on range shifts. In a robust uptrend, RSI rarely reaches 30; instead, it finds support around 40 and can push up to 80. Conversely, in a downtrend, RSI encounters resistance around 60 and can fall to 20. This script mathematically codifies these ranges.
● Regime Confirmation
A raw regime is identified when the price resides on the correct side of the Trend Moving Average (SMA) while the RSI operates within the corresponding Cardwell range. To eliminate premature signals, a confirmation threshold requires the market to sustain this raw state for a consecutive number of bars.
● Structural and Volatility Filtering
To ensure signals align with macro momentum, the script queries a higher timeframe's trend state using non-repainting historical referencing. Additionally, the ADX is calculated to measure the absolute strength of the current trend. If the ADX falls below the minimum threshold, the market is deemed sideways, and signals are suppressed.
● Dynamic Risk Mapping
Once a validated signal fires, the script calculates dynamic price levels based on current market volatility (ATR). The Stop Loss is mapped at a fractional multiplier against the entry, while Take Profit levels are projected at linear multiples, mapping out a structured trade lifecycle.
🎨 Visual Guide
● Heatmap Candles
The standard price candles are dynamically recolored to reflect the prevailing market regime.
Teal Candles: Indicate a confirmed Bullish Regime.
Red Candles: Indicate a confirmed Bearish Regime.
Gray Candles: Indicate a Neutral state where conditions are mixed.
Black Wicks/Borders: Maintain visual clarity regardless of the body color.
● Trade Levels and Zones
When a signal triggers, specific horizontal projections appear on the chart:
Entry Line: A dashed blue line representing the closing price of the signal bar.
Stop Loss (SL) Line: A solid red line marking the invalidation point.
Take Profit (TP1, TP2, TP3) Lines: Dashed teal lines marking incremental profit targets.
Risk Fill: A translucent red background shading the area between the Entry and the Stop Loss.
Reward Fill: A translucent teal background shading the area between the Entry and the highest Take Profit.
● Dashboard
A specialized table anchored to the chart corner providing real-time data:
Regime: Displays current state (BULLISH, BEARISH, or NEUTRAL) in respective colors.
RSI Value: A visual progress bar measuring current RSI against a 100-scale, color-coded by intensity.
Trend & Ranges: Explicit text readouts of the current MA trend direction and defined RSI boundaries.
ADX Strength: A progress bar indicating the conviction of the trend.
📌 Note : the best way to resolve visual overlap is to navigate to the Object Tree and drag the indicator above the main chart layer, or simply hide the native candles in your chart settings.
📖 How to Use
● Interpreting Regimes
Monitor the color of the candles. A transition from Gray to Teal suggests a bullish momentum shift aligning with the underlying trend. This is your primary directional bias. You should generally look for buying opportunities when candles are Teal and selling opportunities when they are Red.
● Acting on Signals
When all conditions (Cardwell Range, Trend MA, HTF Trend, and ADX Chop Filter) align, a BUY or SELL label will populate below or above the price. These represent active momentum shifts.
● Managing Risk
Do not trade blindly on signals. Upon a signal firing, visually inspect the red Risk Zone versus the teal Reward Zone. Ensure the projected Stop Loss aligns with logical market structure (like a recent swing low or high). Use the progressive TP1, TP2, and TP3 lines to scale out of positions as the market moves in your favor.
● Monitoring the Dashboard
Keep an eye on the ADX Strength bar in the dashboard. If the bar is predominantly empty and red, the market is consolidating. Wait for the ADX bar to fill and turn orange or green before expecting strong follow-through on any signals.
⚙️ Inputs and Settings
• Core Settings
RSI Length: The lookback period for momentum calculation (default 14).
Trend MA Length: The lookback period for the primary structural trend baseline (default 50).
• Filters
Bull/Bear Ranges: The upper and lower bounds for the Cardwell RSI shifts.
Regime Confirm Bars: The consecutive number of bars required to validate a new regime.
Use HTF Confirmation: Toggles the higher timeframe trend filter.
HTF Timeframe: Select the specific higher timeframe to query (e.g., 240 for 4-hour).
Use Chop Filter: Toggles the ADX volatility requirement.
ADX Min Strength: The threshold value ADX must exceed to allow signals.
• Trade Tools
ATR Length: The lookback period for volatility modeling.
SL/TP Multipliers: Fractional inputs to dictate how wide the Stop Loss and Profit Targets are projected relative to the ATR.
• Alerts
Action Strings: Customizable JSON payload strings for integrating with third-party automated execution platforms via webhooks.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
This indicator synthesizes three foundational pillars of quantitative market analysis: momentum distribution, structural mean, and volatility modeling.
First, it deconstructs the Relative Strength Index, initially formulated by J. Welles Wilder Jr. in 1978. Wilder mathematically defined momentum as the ratio of average gains to average losses. However, the Cardwell extension incorporated into this script addresses a fundamental flaw in Wilder's fixed bounding by applying regime-dependent probability distributions. In a positively skewed asset (uptrend), the probability mass of the RSI shifts upward, meaning a reading of 40 represents a statistically significant mean-reversion point (oversold) rather than 30.
Second, the script applies directional movement theory via the Average Directional Index (ADX). The ADX smooths the differences between the positive and negative directional indicators (+DI and -DI) to isolate the scalar strength of the trend vector, devoid of direction. By requiring a minimum ADX threshold, the algorithm mathematically enforces a non-stationary environment, filtering out random walk (white noise) conditions where momentum signals carry no statistical edge.
Finally, the projection of trade levels utilizes the Average True Range (ATR). ATR is a rigorous measure of the variance in asset prices, accounting for opening gaps and limit moves. By mapping target boundaries as functional multiples of ATR, the script ensures that standard deviation and local market dispersion strictly govern risk parameters, adapting dynamically to expanding or contracting market distributions.
⚠️ 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. We 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. Индикатор

Structural Layer 2: Execution State EngineThe Structural Layer 2: Execution State Engine is a first-principles market classifier that strips away lagging indicators to analyze the raw relationship between price velocity and volume.
Built from scratch using rolling mathematical Z-scores, this indicator measures real-time market effort versus result. It compares current price spread (velocity) and external exchange volume against their structural baselines, grouping price action into four distinct "Execution States."
By categorizing every bar based on standard deviations from the mean, it visually highlights whether a move is backed by true conviction, being absorbed by larger players, or simply drifting on thin liquidity.
🚦 The 4 Execution States (Color Coded)
This indicator paints your chart’s bars to reveal the underlying market state (optimized for white backgrounds):
🔵 Blue (State A - Breakout Momentum): High Velocity + High Volume. True directional conviction. Price is covering significant distance backed by heavy participation.
🟠 Orange (State B - Institutional Absorption): Low Velocity + High Volume. High effort, low result. Heavy volume is entering the market, but the price isn't moving. This signals potential absorption, accumulation, or distribution by larger participants.
🟣 Purple (State D - Fragile Vacuum): High Velocity + Low Volume. Fast price movement on thin air. These are low-liquidity vacuum moves that are structurally fragile and often prone to mean reversion.
⚪ Light Gray (State C - No-Trade Drift): Low Velocity + Low Volume. The baseline noise. No significant volume and no significant price movement. Generally a chop or no-trade zone.
⚙️ Key Features
External Volume Routing: Fetch volume directly from major exchanges (default: Binance/Coinbase SOLUSD) to bypass localized data gaps and get a truer read on market participation.
Math from First Principles: Relies strictly on raw math (rolling means, variance, and Z-scores) instead of wrapped, smoothed TA functions that introduce lag.
Customizable Lookback: Adjust the structural lookback window (default: 48 hours) to tune the engine to your preferred timeframe and volatility baseline.
How to Use:
Use the bar colors to dictate your execution style. Ride momentum on Blue bars, look for reversals or traps on Orange bars, be cautious of fake-outs on Purple bars, and protect your capital from chop on Gray bars. Индикатор

Sheabot Relative Volume and RangeDisplay a combined table showing relative volume and relative range (also known as Daily True Range vs Average True Range) on all timeframes. The table rows change colors based on the relative volume and relative range values. The values and colors can be configured.
These indicators are combined together for a more efficient display in the same location. These indicators also commonly move together. A low relative volume will also likely have a low relative range. A high relative volume may accompany the price breaking out past the average range and a relative range over 100%. The relative range can also help set price targets. If the relative range is less than 100%, then the stock has not yet moved to its average range.
These concepts are used and inspired by the great @ripster47 .
Relative Volume
Table displays current volume, average volume, and relative volume as a percent of current volume / average volume over the timeframe.
When the timeframe is 1D or less, then the current volume is the volume for the day so far, and the average volume is calculated over the past bar length days.
When the timeframe is greater than 1D, then the current volume is the volume for the week/month/year so far, and the average volume is calculated over the past bar length weeks/months/years.
High Percent: Default is 100. Relative volume below this is considered low and the table row is colored grey. Relative volume above this is considered high and the table row is colored yellow.
Unusual Percent. Default is 200. Relative volume above this is considered unusual and the table row is colored green.
Relative Range
Table displays daily true range (DTR), average true range (ATR), and relative range as a percent of DTR / ATR over the timeframe.
When the timeframe is 1D or less, then the daily true range is the difference between the high and low price since open, and the average true range is calculated over the past bar length days.
When the timeframe is greater than 1D, then the daily true range is the difference between the high and low price for the past week/month/year, and the average true range is calculated over the past bar length weeks/months/years.
Normal Percent: Default is 50. Relative range below this is considered low and the table row is colored grey. Relative range above this is considered normal and the table row is colored yellow.
High Percent. Default is 90. Relative range above this is considered high and the table row is colored red.
Индикатор

Liquidity Trail Matrix [WillyAlgoTrader]📊 Liquidity Trail Matrix (LTM) is an overlay trend-following system that combines a four-band proportional ATR trailing stack, a 5-factor retest quality score (0–100), a non-repainting higher-timeframe bias filter, a range-distributed volume profile of the current trend segment (POC / Value Area / HVN / LVN), and a full trade engine with wick-anchored stops, three R-multiple targets, break-even automation and honest session statistics — all in one indicator.
The core insight: a single trailing stop line gives you a binary answer — "in trend" or "flipped". But price interacts with the liquidity zone around the trail in layers: shallow pullbacks, deep sweeps, and full reversals all look different. LTM replaces the single line with a graded four-band matrix, scores every pullback-and-reclaim by depth, candle quality, volume, higher-timeframe alignment and trend maturity, and overlays where volume actually accumulated during the current trend leg — so you can see whether a retest is landing on real acceptance (HVN / POC) or falling into a volume vacuum (LVN).
Works on all markets (crypto, forex, stocks, indices, commodities) and all timeframes. On zero-volume symbols the profile automatically switches to a range-weighted proxy.
🧩 WHY THESE COMPONENTS WORK TOGETHER
A trailing stop alone tells you the trend direction but nothing about entry quality — every touch of the line looks the same. A volume profile alone shows you where volume traded but has no concept of trend regime or entry timing. A retest signal alone fires on any bounce, whether it happens in a mature trend with higher-timeframe support or in the dying bars of an exhausted move. Used separately, these tools leave you guessing.
LTM chains them into one pipeline:
ATR band stack → trend flip detection → pullback depth measurement → 5-factor quality scoring → HTF bias confirmation → trade engine (entry / SL / TP / BE) → segment volume profile context → session outcome tracking
The band stack defines the trend and, critically, grades how deep each pullback penetrates (Band 1 = shallow, Band 4 = extreme). That depth becomes the largest single component of the retest score. The score is then adjusted by the reclaim candle's close location, relative volume, trend age, and the higher-timeframe EMA-50 bias — five independent dimensions that a plain trailing stop cannot see. Every confirmed signal is handed to the trade engine, which places a structure-aware stop, three risk-multiple targets and manages break-even. Meanwhile the volume profile is rebuilt from the exact flip bar of the current trend, so POC, Value Area and LVN levels always describe this leg — telling you whether your entry sits on volume acceptance or in a vacuum. Finally, every closed trade feeds the on-chart statistics, so the dashboard shows how this exact configuration has behaved on this exact chart.
Remove any link and the chain breaks: without band depth there is no meaningful score; without the score every bounce is a signal; without the segment-anchored profile the volume context is stale; without the trade engine the signals have no defined risk; without stats you never learn whether the settings fit the instrument.
🔍 WHAT MAKES IT ORIGINAL
1️⃣ Proportional four-band trail geometry — spacing that scales with width.
Most multi-line trails use fixed offsets (base, base+1, base+2 ATR). LTM computes every band as a proportion of the base multiplier:
Band K distance = base × (1 + K_offset × step), giving four multipliers:
— m1 = base
— m2 = base × (1 + step)
— m3 = base × (1 + 2 × step)
— m4 = base × (1 + 3 × step)
With the default Balanced preset (base 4.0, step 0.25) that yields 4.0 / 5.0 / 6.0 / 7.0 ATR. Because spacing is proportional, the geometry of the stack stays visually and behaviorally consistent whether you run tight Scalping bands (2.5 × ATR, step 0.20) or wide Deep Trend bands (6.0 × ATR, step 0.30). Each band ratchets independently (max-lock in uptrends, min-lock in downtrends) and never loosens.
Why this matters: fixed +1/+2/+3 offsets make the stack proportionally "fat" at small base values and "thin" at large ones — proportional spacing keeps pullback depth grading meaningful at any width.
2️⃣ Selectable flip depth — you choose which band defines a reversal.
The trend flips only when price closes beyond a user-chosen band from the previous bar: Fast (Band 2), Balanced (Band 3, default) or Deep (Band 4). Comparing against the previous bar's band value prevents same-bar feedback between the flip and the band update. A warm-up guard (max(3 × ATR length, 60) bars) suppresses all signals until the ATR stack is statistically stable.
Why this matters: flip sensitivity becomes an explicit, single-purpose setting instead of an accidental side effect of band width.
3️⃣ 5-factor retest quality score (0–100) — every signal explains itself.
When price touches any band and then reclaims Band 1 with a directional candle inside the retest window (default 8 bars), LTM computes:
— 📐 Pullback depth (max 25) : Band 2 touch = 25, Band 3 = 18, Band 1 = 15, Band 4 = 10. The maximum touched depth during the pending window is used. Note the deliberate non-linearity: Band 2 scores highest — deep enough to reset liquidity, not deep enough to threaten the trend. Band 4 sweeps score lowest because they often precede full reversals.
— 🕯️ Reclaim candle (max 20) : close location value CLV = (close − low) / (high − low) for longs (mirrored for shorts). CLV > 0.7 → 20 points, > 0.5 → 12, else 5. A reclaim that closes near its extreme shows commitment.
— 📊 Volume (max 20) : current volume vs. the previous bar's 20-period SMA — the spike must not dampen itself by inflating its own average. Volume > 1.2 × baseline → 20, > 1.0 × → 12, else 5. Symbols without volume data receive a neutral 12.
— 🧭 HTF bias (max 20) : aligned with the higher-timeframe EMA-50 direction → 20, no HTF data → 10, against bias → 0.
— ⏳ Trend age (max 15) : 10–150 bars into the trend → 15 (mature, established), under 10 bars → 8 (unproven), over 150 → 5 (aging).
Signals print only when the total meets the Min Retest Score (default 80) and the shared anti-whipsaw cooldown (default 5 bars, deliberately shared across both directions) has elapsed. Every diamond label shows the score, and its tooltip breaks down all five components — no black-box signals.
4️⃣ Non-repainting higher-timeframe bias.
HTF bias compares the higher timeframe's previous closed bar close against its EMA-50, requested with confirmed-bar indexing so the value never changes retroactively. Bias is a soft score component (0/10/20 points), not a hard filter — counter-bias signals can still print if the other four factors are strong enough.
5️⃣ Segment volume profile — range-distributed, anchored to the live trend leg.
The profile is rebuilt on the last bar from the exact flip bar of the current trend (capped by Max Profile Bars, default 500) — no arbitrary lookback padding. Accumulation is range-distributed: each bar's volume is split across every price bin its high–low range overlaps, weighted by overlap fraction:
bin_volume += bar_volume × overlap(bin, bar_range) / (bar_high − bar_low)
This shows where volume actually traded, not where bars happened to close. From the histogram LTM derives:
— 🟡 POC — the highest-volume bin of the segment, drawn with price and volume label. The strongest magnet / defense level of this leg.
— 📦 Value Area (70%) — expanded symmetrically from POC by always adding the larger neighboring bin until 70% of segment volume is enclosed. VAH / VAL edges act as dynamic S/R.
— 📈 HVN — local volume peaks ≥ 0.55 × POC volume (configurable): acceptance shelves where price tends to stall.
— 🕳️ LVN — local troughs ≤ 0.30 × POC volume inside the Value Area (configurable): volume vacuums that price tends to travel through quickly. Each LVN is labeled and feeds a dedicated break alert.
On symbols with no volume feed (forex, some CFDs) the engine substitutes a true-range proxy per bar, so the profile stays structurally meaningful instead of failing.
6️⃣ Trade engine with strict signal-trade parity.
Every confirmed signal (scored retest or trend flip) acts, with unambiguous rules:
— flat → open a position in the signal direction
— opposite position → reverse (close and enter the new direction on the same bar)
— same-direction position → ignored (no pyramiding, no stop tampering)
There are exactly four closure paths: SL hit, break-even stop-out, TP3 touch, or reversal by an opposite signal. Hit detection uses three safety guards: an entry-bar guard (SL/TP are never evaluated on the entry bar itself), a pessimistic same-bar rule (if a bar touches both SL and a TP, the SL wins — statistics never get the benefit of the doubt), and a break-even latency rule (a stop moved to break-even mid-bar cannot trigger on that same bar — the engine checks against the bar-start stop value).
7️⃣ Wick-anchored stop-loss mode.
Two SL modes at entry:
— Wick-Anchored (default) : SL = signal bar's wick extreme ± 0.25 × ATR buffer, with a minimum distance of 0.5 × ATR enforced. The stop hides behind the structure that produced the signal instead of floating at an arbitrary distance.
— ATR : classic fixed SL Multiplier × ATR from entry.
TP1 / TP2 / TP3 are pure risk multiples of the actual SL distance (defaults 1R / 2R / 3R), so the reward structure automatically adapts to how much room the stop needed. Four risk presets (Conservative 2.5 × ATR SL, TP 1/2/4R; Balanced 1.5, TP 1/2/3R; Aggressive 1.0, TP 1.5/2.5/4R; Scalping 0.8, TP 0.8/1.5/2R) plus full Custom control. Optional break-even moves the stop to entry after TP1.
8️⃣ Honest session statistics with a fixed win definition.
A closed trade counts as a win only if TP1 was touched before closure — including break-even stop-outs after TP1 (you banked at least 1R or protected the position). Everything else is a loss, including reversals that never reached TP1. The dashboard shows closed trades, W/L, win rate with a ▰▱ gauge, and a "Form" strip of the last 10 outcomes. Stats are session-scoped and reset on chart reload — this is transparent live tracking of the current settings on the current chart, not a backtest report.
9️⃣ Trend P&L tracker and theme-aware visual system.
An optional floating label follows price in real time and shows the directional % move since the current trend flip (a falling bear trend shows positive %), anchored by a dotted baseline at the trend start price. The label turns red when the trend is under water. The entire visual layer — band transparencies, heatmap fills, dashboard, profile, SL/TP palette — has separate Dark and Light calibrations (Auto-detected from the chart background), because bright hues that look right on dark charts wash out on white ones. TP lines recolor to solid teal with a ✓ when touched; the SL line dims and the entry label annotates "→ SL (BE)" when break-even activates. SL/TP lines persist after the trade closes as a visual record until the next entry replaces them.
⚙️ HOW IT WORKS — CALCULATION FLOW
Step 1 — Band geometry: The preset (or Custom inputs) resolves the base multiplier and proportional step; four multipliers m1–m4 are derived and multiplied by ATR (default length 13).
Step 2 — Ratcheting trail: In an uptrend each band only rises (max-lock); in a downtrend only falls (min-lock). On a flip the whole stack re-seeds on the opposite side of price.
Step 3 — Flip detection: A close beyond the previous bar's value of the chosen flip band (2/3/4) reverses the trend state. Flip labels print on confirmed bars after the warm-up period.
Step 4 — Pullback tracking: Any touch of Band 1–4 against the trend arms a pending retest with its maximum depth, valid for the retest window; pendings decay each bar and are voided on a flip.
Step 5 — Reclaim and scoring: A directional close back beyond Band 1 triggers scoring: depth (25) + candle (20) + volume (20) + HTF bias (20) + trend age (15). Score ≥ threshold and cooldown elapsed → confirmed signal on bar close.
Step 6 — Trade engine: The signal opens or reverses a position; SL is placed (wick-anchored or ATR), TP1–TP3 are projected as risk multiples; break-even, TP recolors and the four closure paths are managed bar by bar with pessimistic resolution.
Step 7 — Segment profile: On the last bar the profile is rebuilt from the flip bar: range-distributed accumulation → POC → 70% Value Area expansion → HVN/LVN detection → drawing.
Step 8 — Reporting: The dashboard updates trend state, signal state, profile levels, live trade card and session statistics; alerts fire on bar close in within-bar chronological order (management → closures → reversal → entries → info).
📖 HOW TO USE
🎯 Quick start:
1. Add the indicator to your chart and pick a Band Width Preset: Scalping for 1–15M, Balanced for most timeframes, Deep Trend for D–W position trading.
2. Set the Higher Timeframe Bias one or two steps above your chart (e.g. 1H while trading 15M).
3. Choose a Risk Preset that matches your style, or leave Balanced.
4. Watch the dashboard: Trend + HTF Bias aligned means you only consider signals in that direction with full conviction; the retest diamonds do the timing.
5. After 15–20 closed trades, read the Stats section and tune Min Retest Score up (fewer, cleaner signals) or down (more signals) for your instrument.
👁️ Reading the chart:
— 🟢 / 🔴 Band stack + heatmap = the liquidity trail zone; the deeper the fill, the closer price is to a trend flip.
— ◆ diamond with a number = confirmed scored retest entry (the number is the 0–100 quality score; hover the tooltip for the full component breakdown).
— ▲ / ▼ FLIP = confirmed trend reversal through the chosen flip band.
— Long ▲ / Short ▼ = trade entry taken by the engine on a flip (printed when there is no retest diamond on the same bar, so every entry is visibly marked).
— ENTRY / SL / TP1–TP3 lines = the live trade card; TP lines turn solid teal with ✓ when touched; a dimmed SL with "→ SL (BE)" on the entry label means the stop sits at break-even.
— 🟡 POC line = highest-volume price of the current trend leg; dashed VAH/VAL = Value Area edges; LVN labels = volume vacuums inside the Value Area.
— ▲ +X.XX% floating label (optional) = real-time directional P&L of the current trend since the flip.
📊 Dashboard fields:
— Trend / Age : direction of the band stack and bars since the last flip.
— HTF Bias : higher-timeframe EMA-50 direction (soft score component).
— Signal : current engine position — LONG, SHORT or Wait.
— Last signal : most recent event, its score, and bars elapsed.
— POC / VA High / VA Low : live segment profile levels.
— Entry / SL / TP1–TP3 / R:R / SL Dist % : the open trade card ("BE @" marks a break-even stop; ✓ marks touched targets); collapses to one row when flat.
— Trades / W-L / Win rate / Form : session statistics; ▰ = win, ▱ = loss, newest on the right.
🔧 Tuning guide:
— Too many weak signals: raise Min Retest Score toward 85–90, or increase Signal Cooldown.
— Too few signals: lower Min Retest Score toward 55–65, or widen the Retest Window to 10.
— Whipsaw flips on a choppy symbol: switch Flip Band to Deep (Band 4) or move to the Deep Trend preset.
— Flips lag too far behind on fast moves: Flip Band → Fast (Band 2) or the Scalping preset.
— Stops feel too tight / too wide: switch SL Mode between Wick-Anchored and ATR, or change the Risk Preset; on volatile symbols prefer Conservative.
— Profile looks coarse on long trends: raise Profile Rows to 50+ and Max Profile Bars toward 800.
— Counter-trend retests keep printing: set an explicit Higher Timeframe Bias — counter-bias signals lose 20 points and rarely clear a high threshold.
⚙️ KEY SETTINGS
⚙️ Trend Engine:
— Band Width Preset (default Balanced): Scalping 2.5 × ATR / step 0.20, Balanced 4.0 / 0.25, Deep Trend 6.0 / 0.30, or Custom.
— Base Multiplier (default 5.0) and Band Spacing (default 0.25): manual geometry, active in Custom preset only.
— ATR Length (default 13): lookback for band-width ATR.
— Source (default close): price series for trailing and flips.
— Flip Band (default Balanced / Band 3): which band a close must breach to flip the trend.
— Higher Timeframe Bias (default empty = chart TF): HTF for EMA-50 bias scoring.
🎯 Signals:
— Min Retest Score (default 80): 0–100 quality threshold for retest diamonds.
— Retest Window (default 8 bars): how long a band touch stays armed for a reclaim.
— Signal Cooldown (default 5 bars): minimum spacing between signals, shared across directions.
📦 Volume Profile:
— Show Segment Volume Profile (on), Profile Rows (30), Profile Width (34 bars), Max Profile Bars (500).
— Show POC (on), Show Value Area 70% (on), Show HVN / LVN Levels (on), Profile Label Size (Small).
🛡️ Risk Management:
— Risk Preset (default Balanced): Conservative / Balanced / Aggressive / Scalping / Custom.
— SL Mode (default Wick-Anchored): structure-aware wick stop vs. fixed ATR distance.
— ATR Length (Risk) (14), SL Multiplier (1.5), TP1 / TP2 / TP3 Multipliers (1.0 / 2.0 / 3.0 × risk) — Custom preset.
— Break-Even After TP1 (on): stop moves to entry once TP1 is touched.
— Show SL/TP Lines / Labels / % Distance and per-line style controls (Entry dotted, SL solid, TP dashed by default).
🎨 Visual:
— Theme (Auto / Dark / Light), Show Trail Bands , Show Band Heatmap Fill , Show Retest Signals , Show Flip Labels , Show Trend P&L Tracker (off by default), label size controls, watermark toggle, Bull / Bear color pickers.
📊 Dashboard:
— Show Dashboard (on), position (5 anchors), font size, and independent toggles for the Market, Profile, Trade and Stats sections.
🔧 Advanced:
— HVN Threshold (default 0.55 × POC volume): minimum relative volume for an acceptance node.
— LVN Threshold (default 0.30 × POC volume): maximum relative volume for a vacuum node.
🔔 ALERTS
— 🟢 LONG ENTRY / 🔴 SHORT ENTRY — ticker, timeframe, price, signal score, SL, TP1–TP3, R:R. Plain text or JSON webhook format ({"action":"buy"...}) for bot integrations.
— 🎯 TP1 / TP2 / TP3 HIT — target touches with prices (optional).
— 🛡️ BREAK-EVEN — stop moved to entry after TP1 (optional).
— 🛑 SL HIT / BE STOP-OUT — stop-loss trigger with direction, entry and stop prices; a distinct BE variant when the stop was at break-even.
— 🔄 REVERSAL — position reversed by an opposite signal, with the closed trade's outcome (after / before TP1).
— ▲ / ▼ TREND FLIP — informational flips that did not open or reverse a trade.
— ⚡ LVN BREAK — a close crossing a Low Volume Node of the live segment profile (price entering a volume vacuum often accelerates).
All alerts fire once per bar close. Alerts are ordered by within-bar chronology: trade management → closures → reversal → new entries → informational.
⚠️ IMPORTANT NOTES
— 🚫 No repainting. All signals, entries and alerts are confirmed on bar close (barstate.isconfirmed). The trend flip compares against the previous bar's band value. The HTF bias uses the higher timeframe's previous closed bar, so its value never changes retroactively. A warm-up guard suppresses signals for the first max(3 × ATR length, 60) bars.
— 📐 The segment volume profile is a live construct. It is redrawn on the last bar for the current trend leg and evolves as the leg grows — this is by design (it describes the present segment), and historical profile states are not preserved.
— 📊 Session statistics reset on chart reload. They are transparent live tracking of the current settings on the current symbol and timeframe — not a backtest, and past performance does not guarantee future results.
— ⚖️ Same-bar ambiguity is resolved pessimistically. If one bar touches both a stop and a target, the stop wins in the statistics. Intrabar sequence cannot be known from OHLC data, so the engine never gives itself the benefit of the doubt.
— 🕳️ Zero-volume symbols use a range-weighted proxy for the profile, and the volume score component defaults to a neutral value — profile shapes on such symbols reflect price dwell time, not traded volume.
— 🛠️ This is an analysis and trade-planning tool, not an automated trading bot. It detects trend state, scores retests, projects stops and targets, and tracks outcomes — trade decisions remain yours.
— 🌐 Works on all markets and timeframes. Индикатор

Median Gaussian Trend | NAL1. Overview
Median Gaussian Trend | NAL is an adaptive trend-band indicator built from a median price baseline, Gaussian smoothing, and Gaussian-weighted volatility bands.
The indicator is designed to filter raw price movement into a smoother directional structure. Instead of using a simple moving average or standard deviation channel, it first compresses price through a median calculation, then applies Gaussian smoothing to create a cleaner baseline. Around that baseline, it builds adaptive upper and lower bands using Gaussian-weighted deviation.
The result is a robust, smooth trend regime tool that identifies when price breaks outside its filtered volatility structure.
2. Calculation
The indicator starts by calculating a median of the selected source. This helps reduce noise by focusing on the central value of recent price action instead of reacting directly to every candle.
That median value is then passed through a Gaussian filter. The Gaussian filter gives more structured weighting to the lookback window, producing a smoother baseline while still preserving directional movement.
The indicator then calculates a Gaussian-weighted deviation around the smoothed median baseline. This creates a custom volatility measurement that is more aligned with the filtered baseline rather than raw price alone.
The upper and lower bands are then built around the Gaussian-smoothed median. The script allows separate upper and lower multipliers, which lets the band structure be asymmetric if needed.
upper = median_base + sd_range * sd_mul
lower = median_base - sd_range * sd_mulb
A bullish state triggers when price closes above the upper band. A bearish state triggers when price closes below the lower band. When price remains inside the bands, the previous regime is held.
3. Key Features
Median-based price filtering.
Gaussian-smoothed baseline.
Gaussian-weighted volatility deviation.
Adaptive upper and lower trend bands.
Separate upper and lower band multipliers.
State-based candle coloring, band coloring, glow effect, and directional fills.
4. Use
Median Gaussian Trend is designed to identify when price escapes its smoothed median-volatility structure. A close above the upper band reflects bullish expansion, while a close below the lower band reflects bearish expansion.
The median component helps reduce noisy price behavior, while the Gaussian smoothing and deviation engine create a more refined trend envelope. This makes the indicator useful for reading directional structure without relying on a raw moving average channel.
This indicator is best used as a specialized module within a complete strategy framework. Its role is to isolate a filtered volatility-trend layer of price behavior, where the real value comes from how the signal is integrated into a broader process for regime, timing, and execution.
Индикатор

Volatility Halo | NAL1. Overview
Volatility Halo | NAL is an adaptive volatility band indicator built from a Zero-Lag EMA baseline, ATR band structure, and a recursive GARCH-style volatility regime multiplier.
The indicator does not use fixed-width bands. Instead, it starts with ATR-based bands and then adjusts their width using a projected volatility regime model. This allows the bands to respond differently when market volatility is expanding, contracting, or stabilizing.
2. Calculation
The indicator starts by calculating a Zero-Lag EMA baseline from the selected source. This baseline acts as the central trend reference, helping reduce lag compared to a standard EMA while still keeping the structure smooth.
float baseline = f_zlema(src, baseline_len)
float ATR_Value = ta.atr(ATR_Len)
The ATR value is then multiplied by the user-defined ATR multiple. This forms the base volatility distance used for the upper and lower bands.
The more advanced part of the indicator is the recursive GARCH-style regime multiplier. It begins by calculating log returns and converting them into shock variance. A long-run variance estimate is then built from recent shock variance.
GARCH_LogReturn = close > 0.0 and close > 0.0 ? math.log(close / close ) : 0.0
GARCH_ShockVariance = math.pow(GARCH_LogReturn, 2.0)
GARCH_LongRunVariance = ta.ema(GARCH_ShockVariance, GARCH_LongRunLen)
The model recursively updates conditional variance using three components: recent shock variance, long-run variance, and previous conditional variance. When adaptive coefficients are enabled, the script searches for coefficient weights that better fit recent variance behavior.
GARCH_ConditionalVariance :=
GARCH_Gamma * GARCH_LongRunVariance +
GARCH_Alpha * GARCH_ShockVariance +
GARCH_Beta * GARCH_PreviousConditionalVariance
The conditional variance is then projected and converted into a volatility estimate. This volatility is compared against its own regime baseline to create a volatility regime multiplier. The multiplier is clamped between a minimum and maximum value, preventing the bands from becoming too narrow or too wide.
GARCH_Volatility = math.sqrt(math.max(GARCH_ProjectedVariance, 0.0))
GARCH_RegimeMultiplierRaw = GARCH_Volatility / GARCH_RegimeBase
GARCH_RegimeMultiplier = f_clamp(GARCH_RegimeMultiplierSmooth, GARCH_MinMult, GARCH_MaxMult)
The final band width is created by combining ATR with the GARCH regime multiplier. The upper and lower bands are placed around the Zero-Lag EMA baseline.
hybridBandWidth = ATR_Value * ATR_Mult * GARCH_RegimeMultiplier
upperBand = baseline + hybridBandWidth
lowerBand = baseline - hybridBandWidth
A bullish state triggers when price closes above the upper band. A bearish state triggers when price closes below the lower band. When price remains inside the bands, the previous state is held.
3. Key Features
Zero-Lag EMA baseline for reduced-lag trend structure.
ATR-based volatility bands.
Recursive GARCH-style conditional variance model.
Adaptive volatility regime multiplier.
Bands expand or contract based on projected volatility conditions.
State-based candle coloring, band coloring, glow effect, and regime fills.
4. Use
Volatility Halo is designed to identify moments where price begins escaping its volatility-adjusted structure. A close above the upper band reflects bullish expansion, while a close below the lower band reflects bearish expansion.
The adaptive volatility engine allows the bands to shift with the underlying market environment, making the signal more responsive to changes in pressure and regime.
This indicator is best used as a specialized module within a complete strategy framework. Its real strength appears when it is combined with a broader process for reading market behavior, timing, and risk. The full edge comes from how the signal is integrated, not from the signal existing in isolation.
Индикатор

Индикатор

Technical 4x4 MatrixTechnical 4x4 Matrix:
Can Rethinking Common Sense Bring New Insights?
Description:
Does reviewing existing common sense bring new insights? The "Technical 4x4 Matrix" challenges the traditional way we view technical analysis. Instead of stacking endless line charts or reading boring data tables, this indicator reimagines 16 classic technical indicators (RSI, MACD, Bollinger Bands, etc.) by projecting them onto a unified, 4x4 analog meter interface directly on your chart.
By standardizing completely different mathematical models into a single visual language, we can uncover hidden confluences and macro alignments that isolated indicators often miss.
To make this matrix function, the script performs heavy data normalization and correlation calculations behind the scenes. Here is why these calculations are used and what they actually output:
1. Data Normalization Engine (The Analog Meters)
Why it's used: You cannot simply average an RSI (measured 0 to 100) with a MACD (absolute price differences). To create a unified "Average Flow," every indicator must be converted to a uniform scale.
The Calculation: The script uses a custom normalization formula:
Normalized Value = (Current Value - Min Value) / (Max Value - Min Value)
Actual Output Value: Regardless of the indicator's native scale, the output value for every single meter is strictly constrained between 0.0 (Absolute Cold/Oversold) and 1.0 (Absolute Hot/Overbought). For example, a neutral RSI of 50 outputs exactly 0.5.
2. Master HUD Crosshair (Macro Correlation)
Why it's used: To determine if the current micro price action is actually aligned with the macro trend, rather than just reacting to short-term noise.
The Calculation:
First, it creates a ratio: Macro Ratio = SMA(Close, 250) / SMA(Close, 1)
Next, it calculates the correlation between the closing price and this ratio over 20 periods, scaling it for the HUD's Y-Axis:
Y-Axis Ratio = (Correlation + 1.0) / 2.0
Actual Output Value: The raw correlation ranges from -1.0 to 1.0. After scaling, the final Y-Axis output is a coordinate between 0.0 and 1.0. The X-Axis is the simple average of all active 0.0 to 1.0 normalized indicators. If the crosshair intersects at (0.8, 0.8), it outputs a mathematically backed signal of strong macro and micro bullish alignment.
16 togglable indicators rendered as square analog meters with dynamic needle tracking and LED status lights.
Garbage Collection: Efficient array clearing prevents memory leaks and visual ghosting.
Master Crosshair: A central HUD that tracks the aggregated flow of all 16 indicators (X-axis) against macro-trend correlation (Y-axis).
Индикатор

Tomukas Elite SMCTomukas Elite SMC is a premium Smart Money Concepts strategy designed to focus on high-probability institutional setups instead of frequent signals.
The strategy combines three core concepts into a single trading framework:
Liquidity Sweeps
Market Structure Shift (MSS/BOS)
Fair Value Gap (FVG) Retracement
Rather than chasing price, the strategy waits for liquidity to be taken, confirms a genuine shift in market structure, and enters only after price retraces into an imbalance. This approach aims to filter out low-quality trades and improve overall consistency.
Key Features
Non-repainting signals
Higher-timeframe trend confirmation
Liquidity sweep detection
MSS/BOS confirmation using candle closes
Automatic Fair Value Gap detection
Session filter (London & New York)
ATR volatility filter
Built-in risk management
Break-even automation after TP1
Runner management for extended trends
Strategy Tester compatible
The strategy is designed for traders who value patience and precision over constant market participation. By waiting for multiple confirmations to align, it seeks to reduce false entries while maintaining favorable risk-to-reward opportunities.
Best suited for: Gold (XAUUSD), major Forex pairs, and indices on lower timeframes such as 1M, 3M, and 5M.
As with any trading strategy, no setup guarantees profits. Proper risk management, disciplined execution, and thorough testing are essential before using it with live capital. Стратегия

Индикатор

Eugen Liquidity Compass - Helle Daily Macro Risk SignalsDer Eugen Liquiditäts-Kompass ist ein makrobasierter Liquiditäts- und Risikoindikator für Aktien, ETFs, Indizes, Kryptowährungen und andere Risikoassets.
Der Indikator analysiert zentrale Markt- und Liquiditätstreiber wie US Net Liquidity, DXY, reale US-Renditen, High-Yield-Spreads, NFCI, VIX/MOVE, USDJPY und einen frei wählbaren Benchmark wie SPY, QQQ oder BTC.
Ziel ist es, das übergeordnete Marktregime sichtbar zu machen:
Risk-On
Neutral
Risk-Off
Der Indikator berechnet einen Score von 0 bis 10:
8–10: Stark Risk-On
6–8: Risk-On
4–6: Neutral
2–4: Risk-Off
0–2: Stark Risk-Off
Die US Net Liquidity wird berechnet als:
Fed Balance Sheet - Treasury General Account - Reverse Repo
Der Indikator nutzt mehrere Impulse über 4, 8 und 13 Wochen, um kurzfristige und mittelfristige Liquiditätstrends zu erkennen.
Empfohlenes Timeframe:
Der Indikator ist primär für den Daily Chart entwickelt.
Beste Nutzung: 1D.
Auch möglich: Weekly für strategische Regimeanalyse.
Nicht empfohlen: Intraday-Scalping oder Minutencharts.
Signale:
STRONG LONG: sehr positives Risk-On-Umfeld
LONG: Long-Bias erlaubt
WEAK LONG: Long möglich, aber mit Makro-Gegenwind
EXIT: Risiko reduzieren
HARD EXIT: starkes Stresssignal
CARRY STRESS: mögliches USDJPY/Yen-Carry-Unwinding
Duration Stress:
Duration Stress bedeutet: DXY und reale US-Renditen sind gleichzeitig negativ für Risikoassets. Das ist besonders relevant für QQQ, Software, Halbleiter, Bitcoin, Krypto und hoch bewertete Wachstumsaktien.
Der Indikator ist kein reines Kauf-/Verkaufssystem, sondern ein Makro-Filter. Er sollte mit Chartanalyse, Risikomanagement und eigener Marktanalyse kombiniert werden.
Dieser Indikator dient nur zu Research- und Analysezwecken und stellt keine Anlageberatung, Kaufempfehlung oder Verkaufsempfehlung dar. Märkte können sich schnell verändern, und makroökonomische Daten können verzögert oder revidiert werden.
Dies ist keine Anlageberatung, sondern eine Research-Einschätzung auf Basis der verfügbaren Daten und Annahmen. Индикатор

[ A L P H A X ] MAGNET - Liquidity Magnet EngineAlphaX MAGNET — Liquidity Magnet Engine: Hybrid Pool Detection, Sweep State Machine, Delayed Reclaim Entries, Absorption Pins, FVG Confluence & Weighted Scoring System
AlphaX MAGNET is a professional-grade liquidity-based trading system built around a single foundational observation: price is magnetically attracted to liquidity pools. Buy-side liquidity sitting above Equal Highs and sell-side liquidity sitting below Equal Lows are not random price levels — they are concentrations of institutional stop orders and pending market orders that price is consistently drawn toward before major directional moves begin. MAGNET detects these pools with a dual-method engine (pivot cluster analysis combined with Equal High/Equal Low range scanning), tracks every sweep event through a dedicated state machine, and fires precision entries through four distinct setup types — same-bar sweep and reclaim, delayed post-sweep reclaim, absorption pin bar, and FVG-liquidity overlap — scored through a weighted 9-point confluence system that rewards quality setup combinations over arbitrary filter accumulation. Unlike systems that suppress signals through cascading hard blocks, MAGNET is built on the philosophy that quality comes from the combination of setup type and confluence score, not from eliminating signal opportunities through excessive gating. Designed for active traders across crypto, forex, gold, and indices on any timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💧 The Liquidity Pool Concept — Why Price Is Magnetic
Retail traders place stop losses at technically logical locations — just below swing lows (buy stops become sell orders when triggered, providing sell-side liquidity or SSL) and just above swing highs (sell stops become buy orders when triggered, providing buy-side liquidity or BSL). These clusters are not secrets. Institutional participants, who need massive liquidity to fill their position sizes, deliberately engineer price moves toward these clusters — hunting the stops to generate the counterparty order flow they need.
This creates a recurring, exploitable pattern:
SSL pools below significant lows are swept — price dips below to trigger sell stops, filling institutional buy orders
The sweep reverses sharply as the institutional position is filled and price moves in the intended direction
BSL pools above significant highs are swept — price spikes above to trigger buy stops, filling institutional sell orders
The spike reverses as the selling position is filled
MAGNET is built to detect these pools before the sweep, identify the sweep the moment it occurs, and provide structured entry signals at the precise points where the institutional reversal is most likely to begin. The word "magnet" captures the system's core thesis: liquidity pools are not just price levels to avoid — they are targets that price is attracted to, and the moment after the sweep is the highest-probability institutional entry available.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 The Hybrid Pool Detection Engine
MAGNET identifies liquidity pools using two independent methods running simultaneously, then combines their outputs to determine the single most relevant BSL and SSL level at any moment.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Method 1 — Pivot Cluster Analysis
The first engine detects fractal swing highs and lows using a configurable pivot length (default: 5 bars each side) and tracks clusters of pivots near the same price level. Rather than marking every single pivot as a liquidity level, MAGNET uses a weighted averaging approach:
When a new pivot forms near an existing pivot level (within 1.5× the ATR pool tolerance), the two pivots are merged — the new cluster level is the weighted average of both, and the touch count increments. When a new pivot forms far from the existing cluster, a new level is established.
A pivot cluster only becomes an active liquidity pool when its touch count meets the minimum threshold (default: 2 pivot touches) and its age exceeds the minimum pool age (default: 3 bars). These two conditions ensure the pool represents genuine accumulated stop orders rather than a single swing point that may not yet have attracted meaningful liquidity.
Why pivot clustering matters: A level touched twice or more has drawn retail traders to place stops at it on multiple occasions. Each time price revisits without breaking, more stops accumulate just beyond it. The cluster represents not a single trader's stop but a compounding concentration of stop orders — the largest and most powerful liquidity pools in the market.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Method 2 — Equal High / Equal Low (EQH/EQL) Range Scanning
The second engine scans the entire lookback window (default: 40 bars) to find the highest high and lowest low in the range, then counts how many bars within that window came within the ATR pool tolerance of those extremes. When the touch count meets the minimum EQ touch threshold (default: 2 touches), the extreme qualifies as a genuine Equal High (BSL pool) or Equal Low (SSL pool).
Why EQH/EQL scanning is powerful: The highest level in a range with multiple near-touches is the quintessential Equal Highs pattern — the most widely recognized institutional liquidity target in smart money trading. Every time price approaches but fails to break through the level, another wave of retail traders places buy stops above it "in case it breaks." The more touches, the denser the liquidity cluster above. The EQL range scan identifies these levels objectively and in real time without requiring manual identification.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Pool Selection Logic
From both methods, MAGNET selects the single most relevant active BSL and SSL level at any moment. When both methods have identified a valid pool of the same type, the closer one to the current price is selected — the near-term liquidity target takes precedence over a more distant one. The active pools are displayed on the dashboard as exact prices and plotted as dashed lines extending forward on the chart.
Magnet Above / Magnet Below: The active BSL (if above current price) is displayed as MAGNET ABOVE — the level price is currently being drawn toward on the upside. The active SSL (if below price) is MAGNET BELOW — the downside liquidity target. These two levels are also used as the take-profit targets when TP at Opposing Magnet is enabled, with the opposing pool being the natural delivery target after a sweep reversal.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ The Sweep State Machine — Separating Sweeps from Entries
One of MAGNET's most important architectural decisions is the separation of the sweep detection from the entry signal. Many liquidity-based systems fire entries on the sweep bar itself — which frequently catches false sweeps, wicks that briefly cross the pool but are part of a larger continuation move, and cascade waterfall bars that are not genuine reversals.
MAGNET uses a dedicated sweep state machine that tracks every sweep event independently from the entry logic:
Sweep detection:
An SSL sweep is detected when the current bar's low extends below the active SSL pool by more than the minimum sweep depth (default: 0.10× ATR). A BSL sweep is detected when the high extends above the active BSL by more than the minimum depth. Both are registered in memory with the bar index and the exact pool level that was swept.
Sweep window tracking:
After a sweep is registered, the system tracks how many bars have elapsed since the sweep. The configurable reclaim window (default: 8 bars) defines how long a sweep remains "fresh" for delayed reclaim entry qualification. The dashboard's SWEEP WINDOW row displays the active sweep state in real time — "SSL 2b ago" means an SSL sweep occurred 2 bars ago and the reclaim window is still open.
Cascade block (same-bar only):
A "cascade" bar is a strong, large-body continuation bar in the trend direction — close below open, body above 0.45× ATR, closing below the structure EMA and 50 EMA (bear cascade). When a sweep coincides with a cascade bar on the same bar , the same-bar sweep entry (Setup A) is blocked — entering against a waterfall candle in the same bar is the highest-risk stop-hunt entry scenario. Critically, this block only applies to same-bar entries — the cascade does not prevent the delayed reclaim entries (Setup B) that fire on subsequent bars once the cascade has resolved.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏷 Four Setup Types — Quality Through Combination
MAGNET's philosophy explicitly rejects quality-through-suppression. Rather than applying increasingly aggressive filters that block more and more signals, MAGNET provides four distinct setup types of varying quality, grades them A or B, scores them through the weighted confluence engine, and lets the score threshold determine which signals reach the chart. Each setup type captures a different institutional entry scenario.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup A — SSL/BSL Sweep + Same-Bar Reclaim (Grade A, Primary)
The highest-conviction single-bar pattern. Fires when the sweep and the reclaim occur within the same bar — the classic stop-hunt candle.
Long conditions (SSL sweep + reclaim):
Current bar's low extends below the active SSL pool by more than the minimum sweep depth
The bar closes back above the SSL pool — the sweep was rejected within the same candle
A qualifying bull trigger candle is present — close above open, body at least 0.22× ATR, and the close-to-low distance exceeds 50% of total range (strong rejection wick)
The bar is not a cascade/waterfall bar — the same-bar cascade block applies
The institutional sequence: Price spikes below the SSL, triggering retail sell stops and filling institutional buy orders. Buyers immediately overwhelm the sell-stop flow and drive price back above the level within the same bar. This same-bar recovery is the clearest possible sign of genuine institutional absorption — they bought the stop-triggered selling and bid price back up in a single candle.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup B — Delayed SSL/BSL Reclaim (Grade A, Primary)
The most powerful setup type for catching genuine post-sweep reversals. Fires in the 1 to N bars following a sweep event — capturing entries that miss the same-bar candle.
Long conditions (delayed SSL reclaim):
A qualifying SSL sweep occurred within the reclaim window (1 to 8 bars ago — the current bar is not the sweep bar)
The current bar's low is within ATR tolerance of the swept SSL level — price has returned to test the swept level
The current bar closes above the swept level — reclaiming it from below
A qualifying bull trigger candle confirms the reclaim with body and wick requirements
Why delayed reclaim is the highest-quality setup: Many genuine institutional sweep-and-reversal sequences do not complete in a single bar. After the sweep candle, price may consolidate below the swept level for 1–3 bars as retail traders interpret the sweep as a genuine breakdown and add to short positions. This consolidation below the swept level creates the highest-quality delayed reclaim entry — buying precisely as the "trapped shorts" below the swept level begin to be squeezed on the reclaim. Entries here have the swept level as a natural structural reference for the stop, the opposing BSL pool as a natural target, and the maximum available momentum from both the original sweep exhaustion and the trapped short squeeze.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup C — SSL/BSL Absorption Pin (Grade B, Secondary)
A volume-confirmed pin bar at the pool zone — institutional absorption without a full sweep event.
Long conditions (SSL absorption):
Price is at or near the active SSL zone (within ATR pool tolerance)
A pin bar forms — lower wick exceeds 42% of the bar range, body is less than 38% of range, bar closes bullish
Volume is spiking above the configured volume threshold (default: 1.05× average) — confirming institutional activity at the zone
The bar closes above the SSL level — the absorption is from the buy side
The absorption scenario: Not every institutional accumulation at a liquidity pool involves a dramatic sweep. Sometimes institutions absorb all available sell-side liquidity at the SSL boundary without price needing to fully breach the level — the large volume at the pin bar low represents the same buying activity, just without the stop-triggering violation. The combination of the pin bar rejection shape and the volume spike at the zone is the visual and volumetric evidence of this absorption.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Setup D — FVG + SSL/BSL Magnet Confluence (Grade B, Secondary)
The institutional structure overlap entry — a Fair Value Gap forming directly at the liquidity pool level.
Long conditions (FVG + SSL magnet):
A bullish Fair Value Gap is present on the current bar — the current bar's low is above the high of the bar two bars ago, creating a gap in the price structure
The FVG zone (between the current bar's low and the two-bars-ago high) overlaps with the active SSL pool level within ATR tolerance
A qualifying bull trigger candle confirms
The FVG-liquidity overlap concept: When a bullish FVG coincides with an SSL pool level, two independent institutional frameworks are pointing to the same price zone simultaneously. The FVG represents an imbalance in order flow that price will fill. The SSL pool represents a liquidity concentration that price is magnetically drawn toward. When they overlap at the same level, the zone has double-layer institutional significance — it is both an unfilled order imbalance and a liquidity pool, making it the highest-value structural level available at that moment.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Weighted Confluence Scoring — Quality Through Combination
MAGNET uses a weighted scoring system where primary setups (A and B — sweep and reclaim) count for 2 points while secondary setups (C and D — absorption and FVG) count for 1 point. The remaining 7 points come from confluence quality layers. The default minimum threshold is 5 points.
Score structure (maximum: 9 points):
Setup Type (2 points for primary, 1 for secondary) — the foundational quality weighting. A sweep or delayed reclaim inherently carries more institutional evidence than an absorption or FVG overlap
Active Pool Valid (1 point) — the SSL (for bull) or BSL (for bear) pool is currently active and qualified. Signals without a valid pool cannot score this point — there is no institutional liquidity reference without a qualified pool
HTF Bias Alignment (1 point) — the higher timeframe EMA structure agrees with the signal direction. Unlike most AlphaX systems where HTF is a hard block, MAGNET treats HTF as a soft confluence layer — counter-HTF trades can still fire if other confluence is sufficient. This reflects the reality that sweep-and-reclaim sequences frequently work counter-HTF precisely because institutions are sweeping retail positions that were trading with the HTF trend
Volume Layer (1 point) — current bar volume meets or exceeds the volume spike threshold. Confirms institutional participation on the signal bar
Structural Bias (1 point) — price is above the Structure EMA or RSI is above 45 for longs (close > structure EMA or RSI > 45); price below EMA or RSI < 55 for shorts. This dual condition accepts both trend-aligned and momentum-recovering entries
RSI Exhaustion (1 point) — RSI below 38 for longs with a recent SSL sweep, or RSI above 62 for shorts with a recent BSL sweep. This bonus point rewards entries where the RSI is genuinely oversold or overbought at the sweep level — the classic exhaustion reversal condition that historically produces the sharpest recoveries
Non-Chop Market (1 point) — Choppiness Index below the configured threshold (default: 65). Also enforced as a hard gate — unlike the HTF, extreme chop does block all signals regardless of score
At Pool Zone (1 point) — the current bar is within the pool tolerance of the active SSL (bull) or BSL (bear) zone. Rewards entries that are precisely positioned at the institutional level
Score examples:
A primary sweep reclaim (2 points) with valid pool, HTF alignment, volume, structural bias, and non-chop market reaches 7/9 — a high-conviction signal. A secondary FVG entry (1 point) with valid pool, volume, structural bias, and non-chop but no HTF alignment reaches 5/9 — the minimum threshold. The scoring naturally produces a gradient of signal quality without hard-blocking any combination.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Magnet-Anchored Stop Loss and Target
Stop Loss Placement:
For bull signals, the stop is placed at the minimum of the current bar's low and the swept SSL level (using the stored sweep level from the state machine when a sweep occurred), minus the configured ATR buffer (default: 1.0× ATR). For bear signals, the maximum of the bar's high and the swept BSL level plus the ATR buffer.
This produces stops anchored to the structural invalidation point — the level that proves the institutional thesis wrong. A bull stop below the swept SSL means: if price closes below the sweep level after the reclaim, the sweep thesis has failed and institutions are not actually buying at this level.
Take Profit — Opposing Magnet (default: on):
When TP at Opposing Magnet is enabled, the take profit target is automatically set to the opposing liquidity pool — the BSL pool above price for long entries, the SSL pool below for shorts. This is the single most powerful TP mechanic available for liquidity-based trading: after a sweep of the SSL, the natural delivery target is the opposing BSL pool, because institutions who bought the SSL sweep will deliver price toward the next concentration of liquidity above. The magnet-to-magnet target represents the true institutional delivery destination.
When no opposing magnet is available (pool not yet qualified), the fallback is a configurable R-multiple target (default: 2.5R).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Live Dashboard
The 17-row real-time dashboard displays the complete internal state across five sections.
LIQUIDITY
BSL (EQH) — the active buy-side liquidity pool price. The current institutional overhead target. Red dashed line on chart with BSL · EQH label
SSL (EQL) — the active sell-side liquidity pool price. The current institutional downside target. Yellow-green dashed line with SSL · EQL label
Magnet Above — the BSL pool when it is above current price — the upside delivery target
Magnet Below — the SSL pool when below current price — the downside delivery target
SWEEP STATE
Sweep Window — live sweep state: "SSL 2b ago" when within the reclaim window, "BSL 3b ago" for BSL sweeps, or — IDLE when no recent sweep is active. This is the critical pre-signal awareness row — when it shows an active sweep state, Setup B entries are monitoring for the reclaim
SETUPS
Long Setup — the currently active long setup type: SWEEP, RECLAIM, ABSORB, FVG, or — when none is active
Short Setup — the currently active short setup type
FILTERS
HTF Bias — ▲ BULL, ▼ BEAR, or — FLAT. Soft confluence layer for scoring
Chop Index — live Choppiness Index value. Orange when above the block threshold — the only hard filter in MAGNET
CONFLUENCE
Bull / Bear — live scores displayed as "x / y" with a ▲ or ▼ arrow when either score meets the minimum threshold
Playbook — the current actionable state: LONG A, SHORT A, LONG B, SHORT B when a signal just fired; WATCH RECLAIM ▲ or ▼ during active sweep windows; WATCH MAGNETS when pools are defined but no active sweep
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Chart Visual System
BSL Pool Line (red dashed) — the active buy-side liquidity level with "BSL · EQH" label extending to the right. Redrawn on the last bar to reflect the current pool state
SSL Pool Line (yellow-green dashed) — the active sell-side liquidity level with "SSL · EQL" label
▲ Large Triangle (below bar, yellow-green) — Grade A long signal. SSL sweep or delayed reclaim with qualifying confluence
▲ Small Triangle (below bar, dim yellow-green) — Grade B long signal. Absorption pin or FVG magnet setup
▼ Large Triangle (above bar, red) — Grade A short signal
▼ Small Triangle (above bar, dim red) — Grade B short signal
● Sweep Circles (optional, orange) — appear above (BSL sweep) or below (SSL sweep) the bar when a sweep event is detected. Off by default — sweeps are tracked internally regardless of marker visibility
SL Guide (red dotted circles) — sweep-anchored stop loss below or above the pool level
TP Guide (yellow-green dotted circles) — opposing magnet target or R-multiple fallback
Live confluence label — B x · S x near the current price on the last bar, updating in real time
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 How to Trade with AlphaX MAGNET — Step by Step
Step 1 — Read the Liquidity Map
Check the dashboard BSL and SSL rows. These are the current institutional targets — price will be drawn toward both levels over time. Note which is closer to current price
Check Magnet Above and Magnet Below. These are your directional delivery destinations. If SSL is below and BSL is above, the market is sandwiched between two magnets — the next major move will likely target one of them
Note the Chop Index. When it is approaching or above the threshold (65), the liquidity pool targets lose reliability — pools become harder to reach when the market is oscillating without direction
Step 2 — Monitor the Sweep Window
The Sweep Window row is the most critical pre-signal dashboard row. "SSL 1b ago" means an SSL sweep just occurred one bar ago and the reclaim window is wide open — Setup B is actively scanning the next bars for a qualifying reclaim candle
WATCH RECLAIM ▲ in the Playbook row is the highest-priority alert state. Prepare your entry parameters immediately — the delayed reclaim may fire on the very next qualifying bar
Watch the chart for the reclaim candle forming at or above the swept SSL level with a bullish rejection body
Step 3 — Enter on the MAGNET Signal
A large ▲ triangle (Grade A) confirms a sweep or delayed reclaim with qualifying confluence. This is the primary MAGNET entry
A small ▲ triangle (Grade B) confirms an absorption or FVG setup. Valid entry with slightly lower setup-type evidence — manage with smaller size if preferred
The SL guide is plotted below the swept level plus ATR buffer. Your structural invalidation
The TP guide points to the opposing BSL magnet when available — the institutional delivery target. When this lines up with the opposing pool, you have a magnet-to-magnet trade with a clear institutional narrative
Step 4 — Manage the Trade
Monitor the Sweep Window — if a new sweep of the opposing pool occurs while you are in a trade, it may be a signal that the delivery is completing or extending
When price approaches the MAGNET ABOVE level (for long trades), consider taking partial profit — the opposing pool is the target but also potential new resistance
If a new valid sweep of your entry SSL occurs in the opposite direction during the trade, this could indicate the SSL was not the final sweep — reassess the position
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Identifying Low-Quality Conditions — When Not to Trade
Stand aside when:
Chop Index above threshold — this is the only hard filter in MAGNET. All signals are blocked. More importantly, in extreme chop, liquidity pools are being tested repeatedly without producing clean sweeps and reversals — the institutional dynamic is absent
BSL and SSL are very close to each other — when the two magnets are tightly compressed around current price, the market is ranging within a narrow liquidity cluster. Sweeps in this environment frequently continue through multiple levels rather than reversing at the first pool
Sweep Window shows IDLE for an extended period — no sweeps means no primary setup type is available. Only absorption and FVG setups (Grade B) can fire. If you prefer primary setups only, wait for a sweep to register
HTF Bias strongly opposes the signal — while HTF is a soft confluence layer in MAGNET, a strongly opposing HTF reduces the score by 1 point. In these conditions, a Grade B signal at the minimum threshold becomes marginal — consider requiring a higher score for counter-HTF entries
Grade B signals with minimum score (5/9) in a non-trending market — absorption pins and FVG overlaps require more supporting confluence to be reliable in Balance or transitional markets. When Grade B fires at exactly the minimum score without HTF support, reduce size or skip
Multiple consecutive sweeps of the same level without recovery — when price sweeps the SSL three times in succession, each time recovering only partially before sweeping again, the level is being absorbed in stages by a larger institutional seller rather than being swept for a reversal. Do not continue entering on each successive sweep
The ideal MAGNET setup:
Clear, well-aged SSL or BSL pool with multiple touches (3+ pivots or EQ touches)
Clean, decisive sweep below SSL with a single strong bar
1–3 bar consolidation below the swept level (confirming trapped shorts)
Delayed reclaim candle forming at the swept level with bull trigger confirmation
RSI below 38 at the sweep low (exhaustion bonus point)
Volume spike on the reclaim bar
HTF aligned bullish
Opposing BSL pool clearly defined above — the magnet-to-magnet trade
Score at 8–9/9
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Key Features
💧 Hybrid dual-method pool detection — pivot cluster analysis (weighted average clustering with touch count and age requirements) combined with Equal High/Equal Low range scanning (touch count across lookback window)
🎯 Active pool selection logic — nearest qualified pool to current price is selected as the active target, ensuring the most immediately relevant liquidity level is always the reference
⚡ Dedicated sweep state machine — sweeps are detected and stored independently from entry logic, enabling delayed reclaim entries 1–8 bars after the sweep event with full state persistence
🛡 Cascade block (same-bar only) — waterfall continuation bars are blocked from triggering same-bar sweep entries while preserving all delayed reclaim opportunities
🏷 Four setup types with grade classification — Setup A (same-bar sweep reclaim), Setup B (delayed reclaim), Setup C (absorption pin), Setup D (FVG liquidity overlap), each graded A or B by primary/secondary classification
📊 Weighted confluence scoring — primary setups count 2 points, secondary count 1, with 7 additional quality layers scoring independently. Quality through combination, not suppression
🔴 RSI exhaustion bonus — extra confluence point when RSI is genuinely exhausted at the sweep level, rewarding the highest-quality reversal conditions
📡 HTF bias as soft layer — higher timeframe alignment adds to the score but does not hard-block counter-HTF entries, reflecting the institutional reality that sweep reversals frequently work counter to the prevailing HTF trend
🎯 Opposing magnet TP system — take profit automatically targets the opposing liquidity pool when available, providing an institutionally justified delivery destination rather than an arbitrary ATR multiple
📍 Sweep-anchored SL placement — stop loss anchored to the swept pool level plus buffer, not an arbitrary ATR distance from entry
💹 Live Sweep Window tracking — dashboard shows active sweep state with bars elapsed since sweep, providing pre-signal awareness before the delayed reclaim fires
📊 Live Playbook row — displays WATCH RECLAIM ▲/▼ during active sweep windows, preparing you for the imminent Setup B signal
📊 17-row live dashboard — Liquidity, Sweep State, Setups, Filters, and Confluence sections updated in real time
🔔 4 alert conditions — long/short entries and SSL/BSL sweep events
🎨 Fully cohesive dual-tone color system — yellow-green for SSL/SSL-related bull elements, red for BSL/BSL-related bear elements, orange for sweep markers and alerts
⚙ Fully configurable — pivot length, EQH/EQL lookback, pool tolerance, touch minimums, pool age, sweep depth, reclaim window, signal body minimum, all four setup enables, confluence minimum, HTF timeframe and EMAs, chop threshold, volume filter, session, SL buffer, TP mode and R-multiple, and all colors are independently adjustable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Settings Reference
Liquidity Pool Engine
Pivot Length — fractal sensitivity for pivot high/low detection (default: 5 bars each side)
EQH/EQL Scan Lookback — bars used for the Equal High/Equal Low range scan (default: 40)
Pool Tolerance (xATR) — ATR multiple defining the zone width around a pool level (default: 0.14)
Min Pivot Touches — minimum pivot cluster touches for a pivot pool to qualify (default: 2)
Min EQ Touches — minimum near-touches for an EQH/EQL level to qualify (default: 2)
Min Pool Age (bars) — minimum bars since first pivot detection before the pool is active (default: 3)
ATR Length — ATR calculation lookback (default: 14)
Sweep & Reclaim
Min Sweep Depth (xATR) — minimum extension beyond the pool for a sweep to register (default: 0.10)
Reclaim Window (bars after sweep) — how many bars after a sweep a delayed reclaim can fire (default: 8)
Min Signal Body (xATR) — minimum candle body size for all entry triggers (default: 0.22)
Show Sweep Markers — toggle optional orange circle markers at sweep detection bars (default: off)
Entry Setups
A · SSL Sweep + Reclaim / A · BSL Sweep + Reclaim — toggle same-bar sweep entries
B · Delayed SSL Reclaim / B · Delayed BSL Reclaim — toggle delayed reclaim entries
C · SSL Absorption Pin / C · BSL Absorption Pin — toggle absorption pin bar entries
D · FVG + SSL Magnet / D · FVG + BSL Magnet — toggle FVG-liquidity overlap entries
Min Confluence Score — minimum weighted score required for a signal (default: 5)
Show Entry Signals — toggle signal triangles
Show Confluence Label — toggle the live B/S score label near the current price
Signal Cooldown (bars) — minimum bars between consecutive signals (default: 5)
Grade Signals (A / B) — when on, primary setups show as large triangles, secondary as small triangles
Filters
HTF Bias Layer — adds 1 confluence point when HTF agrees (does not hard-block counter-trend)
HTF Timeframe / HTF Fast / Slow EMA — higher timeframe parameters (defaults: 60-minute / 21 / 55)
Block Extreme Chop — when on, Choppiness Index above threshold blocks all signals (the only hard filter)
Choppiness Length / Chop Block Above — CI parameters (defaults: 14 / 65.0)
Volume Layer — adds 1 confluence point when volume exceeds threshold
Volume Spike Threshold / Volume Avg Length — volume parameters (defaults: 1.05 / 20)
Session Filter / Active Session — trading hours restriction (default: off)
Structure EMA — EMA used for the structural bias confluence layer (default: 21)
Exit Guidance
Show SL / TP Guides — toggle stop and target dotted circle plots
SL Beyond Sweep (xATR) — ATR buffer beyond the swept pool level for stop placement (default: 1.0)
TP at Opposing Magnet — when on, TP targets the opposing active liquidity pool (default: on)
TP Reward (R) if no magnet — fallback R-multiple target when no opposing pool is available (default: 2.5)
Display
Show Liquidity Pool Lines — toggle BSL and SSL dashed reference lines
Show Dashboard — toggle the full dashboard
Dashboard Position — Top Left / Top Right / Bottom Left / Bottom Right
Colors
Bull / Bull Bright — yellow-green family for all bullish signals and SSL elements
Bear / Bear Bright — red family for all bearish signals and BSL elements
Sweep / Alert — orange for sweep markers and active alert states
BSL Pool (EQH) / SSL Pool (EQL) — individual pool line colors
SL Guide / TP Guide — stop and target circle colors
Dash Text / Dash BG / Dash Header / Dash Section / Dash Frame — full dashboard color control
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alert Conditions (4 total)
Entry Alerts
Magnet Long — all conditions confirmed. Long signal fired across any qualifying setup type
Magnet Short — all conditions confirmed. Short signal fired
Sweep Alerts
Magnet SSL Swept — sell-side liquidity pool has been swept. Watch for reclaim within the configured window — Setup B is now monitoring
Magnet BSL Swept — buy-side liquidity pool has been swept. Watch for reclaim — Setup B monitoring active
All alert messages are formatted as const strings for clean webhook and notification platform integration.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 Recommended Settings by Instrument & Timeframe
The default configuration is optimized for XAUUSD, major forex pairs, and crypto on M5–M15 :
Pivot Length at 5 — standard fractal sensitivity for intraday instruments. Captures meaningful swing points without over-sensitivity to micro-noise
EQL Lookback at 40 — approximately 3–4 hours on M5, covering the relevant intraday Equal High/Low structure
Pool Tolerance at 0.14× ATR — tight enough to require genuine proximity to the pool level without missing valid touches due to spread variation
Reclaim Window at 8 bars — on M5 this is 40 minutes, sufficient to capture post-sweep consolidation and delayed reversal entries
HTF at 60-minute as soft layer — adds score for alignment without blocking the counter-HTF sweeps that are often the most powerful entries
For other instruments or timeframes, adjust:
M1–M3 scalping — reduce Pivot Length to 3, reduce Pool Tolerance to 0.10, reduce Reclaim Window to 4–5 bars, reduce Cooldown to 3, increase Min Sweep Depth to 0.15 for tighter scalp sweeps
H1–H4 swing trading — increase EQL Lookback to 80–100, increase Pivot Length to 7–8, increase Reclaim Window to 12–15, increase TP Reward to 3.5–5.0R for wider swing targets
Crypto (BTC, ETH) — increase Pool Tolerance to 0.18–0.22 for the wider tick structure, increase Min Sweep Depth to 0.15–0.20, increase Chop Block to 68–70 for crypto's naturally higher choppiness
Indices (NAS100, US30) — use session filter for cash market hours, increase Pool Tolerance slightly to 0.16, consider reducing EQL Lookback to 25–30 for the shorter-lived Equal High/Low structures in index futures
More primary setups (A and B) — reduce Reclaim Window minimum expectation by ensuring both Setup A and B are enabled, and watch the Sweep Window row actively rather than waiting for signals
Grade A signals only — disable Setup C (absorption) and Setup D (FVG), raise Min Confluence to 6. Only sweep and delayed reclaim entries with strong supporting factors will fire
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
👥 Who This Is For
💧 Liquidity sweep traders and stop-hunt entry specialists — MAGNET is the most complete and technically sophisticated liquidity sweep system in the AlphaX suite. Every component — pool detection, sweep state machine, cascade blocking, delayed reclaim, magnet TP — is designed specifically for the institutional stop-hunt-and-reverse pattern
🏦 Smart money concepts and ICT methodology traders — the SSL/BSL, EQH/EQL, and sweep-reclaim framework directly implements the core ICT liquidity concepts with quantitative precision
🥇 Gold (XAUUSD) and forex traders — liquidity sweeps are most consistent and most powerful on institutional instruments where market makers actively hunt stops. Default settings are calibrated for gold intraday
🎯 Traders who want the highest-quality post-sweep entries — the delayed reclaim (Setup B) is the system's most powerful setup type and is specifically designed for traders who have experienced the frustration of missing same-bar sweep reversals only to watch price surge without them
🧠 Systematic traders who want quantified liquidity analysis — the hybrid pool detection, weighted scoring, and sweep state machine replace entirely subjective liquidity level identification with objective, repeatable criteria
📈 Traders who struggle with stop placement on liquidity entries — the sweep-anchored stop placement and opposing magnet TP provide the most structurally appropriate risk parameters available for liquidity-based trading
⚠ Traders who have been stopped out by cascading waterfall bars — the cascade block on same-bar entries and the delayed reclaim system together prevent the most common failure mode of liquidity trading: entering during a genuine continuation move rather than a reversal
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 Notes
All signals are confirmed on bar close — the indicator is non-repainting by design. Pool states, sweep state machine, setup conditions, and confluence scoring all finalize on confirmed bars only
The pivot cluster averaging system means that as new pivots near the same level form, the pool level gradually adjusts toward the weighted average. This means the active pool level may shift slightly over time as new evidence accumulates — this is intentional and produces more accurate pool level estimates than using only the first or last pivot
The cascade block applies only to the same-bar sweep entry (Setup A). Delayed reclaim entries (Setup B) are never blocked by cascade conditions — this is by design, as the cascade's resolution in subsequent bars is precisely the entry condition for Setup B
The delayed reclaim window starts from 1 bar after the sweep (barsSinceSslSweep >= 1). Same-bar reclaims are handled exclusively by Setup A. There is no overlap between the two setup types
When useMagnetTp is on and no opposing magnet is currently active (the opposing pool has not qualified or has been swept/invalidated), the system falls back automatically to the R-multiple TP without any gap in functionality
The Choppiness Index is the only hard filter in MAGNET. All other filters (HTF, volume, structural bias) are soft confluence layers that add or do not add to the score. This reflects the intentional philosophy that quality through combination is superior to quality through suppression
Maximum 500 labels and 500 lines are rendered. Pool lines are redrawn on the last bar, so they do not accumulate over history
The indicator does not track open positions or P&L and does not connect to any broker or account
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠ Disclaimer
This indicator is a technical analysis and visualization tool intended for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. All signals are generated from historical and real-time price data using mathematical calculations — their accuracy or profitability is not guaranteed. Past performance of any signal type does not guarantee future results. Always conduct your own analysis, use proper risk management, and consult a licensed financial advisor before making any trading decisions. The author accepts no responsibility for any losses incurred from the use of this indicator.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built for traders who understand that price does not move randomly — it moves with purpose, toward the liquidity that institutions need, and away from it once that liquidity has been consumed. Индикатор

Индикатор

SPY/SPX Expected Move + Session Levels📊 Expected Move + Session Levels (SPY / SPX)
Plots the day's expected move band plus the key session levels — automatic, refreshed daily before the open, nothing to enter or maintain.
🔹 Draws: Expected Move High/Low (the one-standard-deviation daily range implied by options pricing, anchored at the prior close), Prior Day High/Low, and Overnight High/Low (from the ES futures overnight session, rescaled to your chart). Optional shaded band and info table.
⚙️ Settings: every level toggles on/off individually; colors, line width, and label size are adjustable. The overnight source, session window, and IV index can be changed, and setting Horizon to 5 with VIX approximates the weekly move. Best on intraday timeframes.
⚠️ Note: the expected move is a statistical estimate, not a boundary — price is expected to close inside the band roughly two days out of three, and beyond it roughly one in three. Treat the edges as context, not walls; the market will go where it chooses. All levels are built from CBOE volatility indices, daily session data, and CME ES futures. Informational only, not trading advice. Индикатор
