Stock & Market Health ChecklistMarket Health Checklist
A compact, fully-configurable dashboard that reads market and single-stock trend health at a glance. Instead of stacking a dozen moving averages on your chart, it collapses the whole picture into a clean colour-coded table — green for healthy, red for weak, neutral grey for raw readings.
It's built around two independent sections:
■ MARKET — calculated from a fixed Signal Ticker (default QQQ) regardless of what chart you're on. This is your top-down regime read: is the broad tape healthy right now?
■ STOCK — calculated from whatever symbol you're currently viewing. Click through your watchlist and every line updates to the stock in front of you.
What it tracks
MARKET section:
Up to 4 MA crossover signals (e.g. 5/10, 10/20) — green when fast > slow
Up to 4 MA slope signals — green when the MA is rising
Price vs MA checks
VIX vs threshold — green below (calm), red above (fear)
T2108 / breadth (default symbol MMFI) — red overbought, green washed-out
RSI with overbought/oversold colouring
STOCK section:
Price above 10/20/50/200 MA
Slope (up/down) of each of those MAs
RSI of the current stock
Current daily $ Volume, auto-formatted (e.g. $1.24B / $45.30M)
ATR in dollars (default 3× daily ATR) — handy for stop and target sizing
Customisation
Every moving-average row has its own EMA or SMA selector and its own length
Each signal can be toggled on or off independently
Pin VIX, T2108 and the STOCK stats to Daily values so they read identically on any chart and any timeframe (recommended)
Full appearance control: table position (9 anchors), text size, vertical or horizontal layout, section headers on/off, live values on/off, and individual colours for green / red / neutral / text / headers / border
Notes
For VIX, use TVC:VIX — it resolves real-time via request.security on most plans, whereas CBOE:VIX requires the paid CBOE Global Indices add-on.
Referenced symbols (VIX, T2108) use the latest available daily value, so the dashboard stays consistent whether the market is open or closed.
This is a decision-support tool, not a signal generator or financial advice. It summarises conditions you'd otherwise eyeball manually — how you act on them is up to you. Indicator

Corwin-Schultz Spread Bands [forexobroker]Corwin-Schultz Spread Bands estimates the effective bid-ask spread directly from daily high-low data using the Corwin-Schultz (2012) two-bar estimator, then turns the rolling spread into a stress regime and a pair of price bands. The unique angle is using a peer-reviewed microstructure spread formula intended for daily data on any timeframe to flag liquidity stress on the chart and time entries when stress fades into a directional trend.
🔶 ALGORITHM
1. For each pair of adjacent bars compute beta = (ln(H_t / L_t))^2 + (ln(H_{t-1} / L_{t-1}))^2 and gamma = (ln(max(H_t, H_{t-1}) / min(L_t, L_{t-1})))^2.
2. Compute alpha = (sqrt(2 x beta) - sqrt(beta)) / (3 - 2 x sqrt(2)) - sqrt(gamma / (3 - 2 x sqrt(2))).
3. Raw spread = 2 x (exp(alpha) - 1) / (1 + exp(alpha)). Clamp to the range.
4. Smooth with EMA (default 5) to produce a stable percentage spread.
5. Rolling regime stats: 100-bar (default) median and stdev of the smoothed spread; threshold = median + k x stdev (default k = 1.0).
6. In-stress = smoothed spread above threshold. Exiting stress = was above on the prior bar and below now.
7. Trend filter: close versus 20-SMA (default).
8. Visual bands: close +/- (spread / 2) x close x mult.
🔶 SIGNAL LOGIC
- Buy: spread regime just exited stress AND close > trend SMA AND session filter passes AND posState was not long AND cooldown elapsed AND barstate.isconfirmed.
- Sell: spread regime just exited stress AND close < trend SMA AND session filter passes AND posState was not short AND cooldown elapsed AND barstate.isconfirmed.
A flip-prevention posState plus cooldown bars (default 15) avoid stacking signals inside a single regime transition.
🔶 INPUTS
- Spread Estimator: smoothing EMA default 5, regime lookback default 100, stdev multiplier default 1.0.
- Signal Logic: trend SMA length default 20, cooldown bars default 15.
- Filters: optional session window default 0000-2400.
- Visual: spread band multiplier default 1.0, glow, fill, bands, stress bgcolor, neon palette, dashboard.
🔶 ALERTS
CSS Buy, CSS Sell, CSS Any Signal, CSS Enter Stress, CSS Exit Stress, CSS Spread Rising, CSS Spread Falling, CSS Trend Up, CSS Trend Down, CSS Extreme Spread, CSS Webhook JSON.
🔶 LIMITATIONS
- The estimator was designed for daily bars; on very low timeframes the high-low range gets dominated by tick noise and the spread value is noisier than the daily case.
- Spread is computed in price-fraction terms; reporting in basis points assumes that interpretation is meaningful for the instrument.
- The regime threshold depends on a 100-bar lookback, so on fresh history the threshold is unstable until the buffer is full.
- Signals require the regime to flip, so during long sideways regimes with no stress event the indicator can sit idle for many bars.
- The 20-SMA trend filter is intentionally simple and will misclassify direction during tight ranges.
Indicator

Copula Tail Dependency [forexobroker]Copula Tail Dependency estimates the empirical lower- and upper-tail dependence between price returns and volume changes using a rank-based copula. Rather than measuring linear correlation (which collapses to a single number and ignores tail behavior), the indicator measures whether extreme co-occurrences are abnormally frequent. The unique angle is that crossovers of the upper- or lower-tail measure above a threshold mark genuine joint-extreme regimes where return-volume co-movement is strong, while ordinary days leave both measures low.
🔶 ALGORITHM
1. Each bar's one-step log return and volume change are computed.
2. Both series are rank-transformed within the last N (default 50) bars; the rank divided by N produces a uniform marginal U for returns and V for volume changes.
3. The empirical lower-tail dependence is lambda_L = count(U <= u AND V <= u) / count(V <= u) for u equal to the tail fraction (default 0.1).
4. The empirical upper-tail dependence is lambda_U = count(U >= 1-u AND V >= 1-u) / count(V >= 1-u).
5. Both quantities live on ; values near 0 indicate independence at the tails, values near 1 indicate strong joint-extreme behavior.
6. A signal threshold (default 0.5) defines the line above which the tail measure is treated as a co-movement regime.
7. Bullish signal: lambda_U crosses above the threshold. Bearish signal: lambda_L crosses above the threshold.
🔶 SIGNAL LOGIC
- Buy: lambda_U crosses above the threshold AND session filter passes AND position is not already long AND cooldown bars elapsed AND barstate.isconfirmed.
- Sell: lambda_L crosses above the threshold AND session filter passes AND position is not already short AND cooldown bars elapsed AND barstate.isconfirmed.
The cross-up trigger filters out sustained-tail regimes that have already been priced in; entries fire only when joint-tail strength is freshly established.
🔶 INPUTS
- Calculation group: Window N (default 50), Tail Fraction u (default 0.1), Signal Threshold (default 0.5).
- Signal Logic group: cooldown bars (default 15).
- Filters group: optional session restriction (default 0000-2400).
- Visual group: dashboard toggle, 3-layer glow toggle, upper-tail and lower-tail colors, dashboard background.
🔶 ALERTS
CTD Buy, CTD Sell, CTD Any Signal, CTD Upper Tail Up, CTD Lower Tail Up, CTD Upper Tail Dn, CTD Lower Tail Dn, CTD Symmetric Tails, CTD Webhook JSON.
🔶 LIMITATIONS
- Volume is required, so on symbols without exchange volume the lower/upper tail estimates degrade to noise.
- The rank transform uses a fixed look-back, so the marginal CDF is local rather than global; very long-trend regimes can suppress tail measures.
- With N = 50 and u = 0.1, the upper and lower tails each contain only 5 reference points; small sample noise is expected.
- The indicator measures co-movement direction, not magnitude; it does not size the move.
- A high lambda_U can persist during slow grinding uptrends and then mean-revert, so re-entries from cool to hot are the cleanest signals.
Indicator

Indicator

UT Bot v2 - ATR Trailing StopIf you're familiar with the original UT Bot: the core logic is the same. This version focuses on cleaner visuals, improved code quality, better customization, built-in alerts, and integrated strategy support, while preserving the underlying ATR trailing stop methodology.
UT Bot v2 is a modernized implementation of the original UT Bot, built around the same ATR-based trailing stop logic that made the original popular.
The indicator uses an adaptive trailing stop based on the Average True Range (ATR). When price crosses the stop level, the trend state flips and a new trailing stop begins to form in the opposite direction.
Rather than changing the algorithm, this release focuses on making it clearer, easier to configure, and more practical for everyday use.
Features
Classic ATR trailing stop logic
Clean and intuitive trend visualization
Buy and sell signal markers
Configurable ATR period and multiplier
Customizable price source
Built-in PulseWire alerts
Integrated strategy for backtesting
Lightweight and easy to understand
Methodology
UT Bot v2 is not a predictive indicator. It does not attempt to forecast future price movements or identify exact market tops and bottoms.
Instead, it is a trend-following and risk management tool that dynamically adjusts its trailing stop using market volatility measured by ATR.
Like most trend-following systems, it tends to perform best during sustained directional moves and may generate whipsaws during ranging or low-volatility conditions.
Philosophy
The goal of UT Bot has always been to provide a simple, transparent, and systematic trailing stop framework, rather than a "holy grail" trading system.
This version preserves that philosophy while improving readability, customization, visualization, and integration with PulseWire alerts and strategy testing. Strategy

Gap Fill TrackerGap Fill Tracker
The Gap Fill Tracker is an overlay indicator that automatically detects, tracks, and measures the fill rate of price gaps — defined as the difference between the previous candle's close and the current candle's open. It counts a gap as filled when price reaches the 50% midpoint of the gap range, and provides a live statistics panel including total gaps detected, fill rate percentage, open gaps, and the average time gaps take to fill expressed in human-readable time units adapted to the current chart timeframe.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT IS A GAP?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A gap occurs when a candle opens at a different price than the previous candle's close, leaving an unfilled zone on the chart. Bullish gaps open above the prior close. Bearish gaps open below the prior close. Gaps can occur on any timeframe and any instrument, and they represent price imbalances — zones where no trading occurred, which the market tends to revisit.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
FILL CONDITION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A gap is considered filled when price touches the 50% midpoint of the gap range — not necessarily the full extent. This is a more conservative and statistically accurate measure than requiring a full gap fill, as it captures the point at which the market has revisited the center of the imbalance. The midpoint is marked on the chart as a dashed line through the middle of each open gap zone.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COMPONENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Gap Zones (boxes)
Each detected gap is visualized as a colored rectangle spanning from the gap's lower boundary to its upper boundary, starting at the bar where the gap occurred and extending to the right. Bullish gaps are displayed in teal. Bearish gaps are displayed in pink. Zones disappear silently when the fill condition is met — no confirmation markers are left on the chart, keeping it clean.
2. Midpoint Line (dashed)
A dashed horizontal line runs through the center of each open gap zone, marking the exact price level that constitutes a fill. This is the target level the indicator monitors.
3. Gap Labels
Small labels mark the bar where each gap was detected, indicating direction (GAP ↑ for bullish, GAP ↓ for bearish).
4. Statistics Table (top right)
A compact panel displays four key metrics updated in real time:
- Detected: total number of gaps found in the chart's history
- Filled: number of gaps that reached the 50% midpoint, with fill rate percentage
- Open: number of gaps still unfilled, with open rate percentage
- Avg fill time: average time gaps take to reach the 50% midpoint, expressed automatically in minutes, hours, days, or weeks depending on the chart timeframe
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Minimum gap (%): The minimum size of a gap expressed as a percentage of the prior close, to filter out micro-gaps caused by spread or rounding. Default is 0.5%. Lower values detect more gaps; higher values focus only on significant gaps.
• Max open gaps visible: Controls how many of the most recent unfilled gaps are displayed on the chart. Older open gaps continue to count in the statistics but are hidden visually to keep the chart readable. Default is 10.
• Show open zones: Toggle the visual display of open gap zones on or off. Statistics continue to update regardless.
• Bull/Bear gap colors: Customize the colors for bullish and bearish gap zones independently.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO INTERPRET IT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
FILL RATE
The fill rate shown in the statistics panel tells you what percentage of historical gaps on this instrument and timeframe have been filled. A fill rate above 95% confirms that gap fills are a near-certain statistical event for this market. A lower fill rate suggests that the instrument or timeframe has structural tendencies that prevent consistent gap fills — for example, strongly trending markets on higher timeframes.
OPEN GAPS
Each visible zone on the chart represents an active price target — a level where the market has a strong statistical tendency to return. The more open gaps accumulated above or below current price, the stronger the magnetic pull toward those levels.
MIDPOINT LINE
The dashed line through each zone is the exact fill target. Price touching this level — even with a wick — constitutes a fill and removes the zone from the chart.
AVERAGE FILL TIME
This is the most operationally useful metric. It tells you how long gaps on this instrument and timeframe typically take to fill, expressed in real time units. If the average fill time on a 4-hour chart is 1.1 weeks, that means most gaps are filled within approximately 1 to 2 weeks of forming. This information can be used to time entries — rather than entering immediately after a gap forms, waiting until price approaches the average fill window increases the probability of catching the fill move at the right moment.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE IT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. CHECK THE FILL RATE FIRST
Load the indicator on your instrument and timeframe of choice. Check the fill rate in the statistics panel. If it is above 95%, gap fills are a reliable statistical edge on that market. If it is significantly lower, adjust the minimum gap size or consider a different timeframe.
2. IDENTIFY OPEN GAPS AS PRICE TARGETS
The visible zones on the chart are active price targets. Open gaps above current price are upside targets. Open gaps below current price are downside targets. The midpoint line is the specific price level to watch.
3. USE THE AVERAGE FILL TIME FOR ENTRY TIMING
Note the average fill time displayed in the table. After a gap forms, use this as a reference for when to start looking for an entry toward the fill. If the average fill time is 1 week on a daily chart, the highest probability entry window is typically in the days surrounding that average, not immediately after the gap opens.
4. MANAGE THE TRADE
The target is the midpoint of the gap. Once price touches the midpoint, the zone disappears automatically. Position sizing, stop placement, and exit management are left to the trader's discretion and should be based on their own risk framework.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
NOTES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Works on any instrument and any timeframe. Fill rates and average fill times vary by market and timeframe — always verify the statistics panel before trading.
• The average fill time automatically adapts to the chart's timeframe: it displays in minutes on intraday charts, hours on hourly charts, days on daily charts, and weeks on weekly charts.
• Filled gaps disappear silently without leaving markers on the chart, ensuring a clean visual at all times.
• The statistics counter covers the full available chart history, not just the visible bars on screen.
• For instruments that trade 24/5 (forex) or 24/7 (crypto), the average fill time reflects calendar time based on bar count times timeframe minutes. For instruments with trading sessions (equities, futures), the actual calendar time will be longer since no bars are generated outside market hours. Indicator

Indicator

Indicator

FRESH Volatility Regime & RangeFRESH Volatility Regime & Range
A single dashboard that answers two questions I ask before every session: is the market coiled or stretched right now, and where is price relative to the move the options market expects today?
Why I built it
Most range tools are static — a fixed ATR band, yesterday's range, a round-number grid. But volatility isn't static. Some sessions open compressed and need to expand; others open already stretched and tend to revert. And a "big" move on a calm day is a normal move on a high-VIX day. I kept switching between three things to read this — opening-range expansion, an ATR sense of "normal," and the VIX-implied expected move — so I combined them into one overlay with a plain-language regime read.
It does two things together:
Regime classification — it measures the realized Initial Balance (IB) range for three windows (Weekly, Daily, Pre‑NY) and compares each to ATR, bucketing the session as COMPRESSED → BALANCED → EXPANDED → STRETCHED. It also reads a VIX state (VOL CRUSH / STABLE / RISING / SHOCK) and rolls everything into a composite regime (e.g. MULTI‑TF COILED, BALANCED AUCTION, LATE EXPANSION, STRETCHED RISK).
Volatility Range — a VIX‑implied expected‑move envelope anchored at the session open: a midline plus bands at ±0.25, ±0.9, and ±1.0× the day's expected move, with the prior session's ±1x shown faintly for reference.
Plus Midnight Open and Settlement reference lines, and a summary dashboard.
What it plots
IB High/Low lines — Daily IB (09:30–10:30), Pre‑NY IB (04:00–09:30), Weekly IB (optional). The boundaries of each opening range; classic support/resistance and breakout levels. Each line is labeled.
Volatility Range bands — MID (session open) and ±0.25 / ±0.9 / ±1.0× the VIX‑implied expected move, above and below, each labeled.
Midnight Open & Settlement reference lines.
Dashboard — Weekly / Daily / Pre‑NY regime, VIX state, Volatility Range state, and the composite regime at a glance.
How to read it
Compressed / coiled → the market hasn't used its expected range; favor expansion / breakout scenarios. Stretched → it has run hot; favor mean‑reversion / exhaustion.
Volatility Range zones: Inside ±0.25 (INNER) — price near fair value; rotational / mean‑reversion bias. Between 0.25 and 1.0× (INSIDE 1x) — a normal day's travel. At / beyond ±1.0× (BEYOND 1x) price has used a full expected move; these edges often act as inflection points (reversal on quiet days, or a continuation shelf on trend days — read the context).
IB High/Low — break and hold beyond an IB edge often flips it to support/resistance in the breakout direction; rejection there is a fade.
Composite regime (dashboard) is the one‑line summary to frame everything else.
How to use it (scenarios)
Reversion: price pushes into a lower band / IB low and stalls — look for absorption or your own confirmation for a fade back toward the mid.
Breakout: price clears an IB high or the +1x band with conviction; on the retest that level can flip to support for a continuation.
Expected‑move context: in a high‑VIX session the ±1x bands sit far apart — give moves room; in a VOL‑CRUSH session they're tight — expect smaller, choppier travel.
This is a context / framing tool, not a buy‑sell signal generator. It tells you what kind of day you're likely in so your own setups are taken in the right regime.
The VIX setting
The bands are sized by the expected move: EM = sessionOpen × (VIX / 100) ÷ √252. That's the "rule of 16" — VIX is annualized implied volatility, and dividing by √252 converts it to a one‑day, one‑standard‑deviation move. At VIX 16 the ±1x band is roughly ±1% from the open; at VIX 32, ~±2%. So the envelope auto‑widens when implied vol is high and tightens when it's low — a volatility‑scaled "fair range for today," not a fixed ATR.
VIX at anchor (default) vs Use live VIX:
VIX at anchor (default) — the VIX value is sampled once, at the session‑open anchor, and frozen for the whole session. The expected move (and the bands) are computed once and stay put. This is intentional: the day's expected move is what's priced in at the open, like a settlement‑based expectation, and freezing it gives you stable, non‑repainting reference levels and a clean "how much of the expected move is used" ratio.
Use live VIX (optional) — recomputes the expected move every bar from the current VIX, so the bands drift intraday as vol changes. More "current," but the levels move around (effectively repaint), which makes them less reliable as fixed targets.
I recommend leaving it on anchor for clean levels; turn on live VIX only if you specifically want the envelope to track current volatility through the session. (Note: VIX only updates during cash hours, so if you anchor at the Globex/overnight open, the anchor value is effectively the prior cash‑session VIX; anchoring at the regular‑session open uses a fresh value.)
Inputs worth knowing
Anchor mode — Globex Open or Pit (RTH) Open for the Volatility Range midline.
VIX source — auto (live VIX symbol) or a manual value, plus the anchor/live toggle above.
IB sessions — the Daily / Pre‑NY / Weekly windows are configurable.
Display — toggle each component (IB lines, Volatility Range, Midnight/Settlement, dashboard, labels) and set the Line Label Size (Tiny → Huge).
Notes
Designed for the 30‑minute chart. I run it on 30m — the IB windows and snapshot timing are calibrated for it (the Daily‑IB read confirms on the 10:30–11:00 bar close, the RTH‑close read on the 16:00–16:30 bar close). It will draw on other timeframes, but 30m is the intended view.
Built for ES / index futures (and instruments where a VIX‑style implied‑vol input makes sense). A VIX (or equivalent) series is required for the Volatility Range.
Levels are anchored per session and reset at the session boundary.
For education / market context only — not financial advice. Test it on your instrument and timeframe before relying on it.
by oxkit (kitar.co/fresh) Indicator

Indicator

Indicator

Indicator

Indicator

Volatility Contraction Pattern [AGPro Series]Volatility Contraction Pattern
🧠 Core Idea
Is volatility contracting into a tighter and tighter base that is coiling toward a breakout pivot, and how high-quality is that setup?
This script is built to answer that one question with structure instead of guesswork.
📌 Overview / What It Does
Volatility Contraction Pattern is a breakout-readiness decision engine built around the classic VCP structure: a base where price pulls back in successive, progressively shallower contractions, coiling into a breakout pivot. It reads the swing structure as a zigzag, measures each contraction leg, and counts how many recent legs are tightening into the present.
From that it builds a single 0-100 readiness score by weighing four things: how many successive contractions are present, how tight the latest contraction is relative to ATR, whether the base sits inside a constructive trend, and whether volume is drying up into the base. It then marks the pivot breakout level at the most recent swing high, a tight invalidation at the latest contraction low, a measured-move target projected from the base height, and a clear next-action state.
It does NOT predict price, generate buy or sell signals, or automate trades. It organizes the base-and-breakout picture into a structured, scored read so a contraction setup is easier to recognize and plan around. Every output is analytical context, not a recommendation.
🎯 Purpose & Design Philosophy
Most breakout tools react to a single breakout bar after it prints, or they mark a generic low-volatility squeeze and leave the rest to interpretation. Far fewer frame the multi-contraction base as a staged, scored readiness with a defined pivot and a tight, structural risk reference.
This engine was built to fill that gap. It is for the patient trader who prefers to wait for a proper base to form rather than chasing every move, and who values a tight, well-defined risk reference. It supports a base-and-breakout mindset: let the contraction sequence develop, read how ready and how tight it is, mark the pivot and the invalidation, and let broader market context confirm or deny the idea. The aim is structured patience, not a shortcut around it.
⚡ Why This Script Is Different
Most tools mark a single squeeze state or fire the instant a breakout bar appears.
This script does NOT call the breakout, does NOT fire trade signals, and does NOT treat one tight bar as a setup.
Instead, it stages the whole contraction sequence. It counts successive tightening legs, measures current tightness in ATR, and resolves the base into a 0-100 readiness score with a pivot breakout level, a tight invalidation at the latest contraction low, and a measured-move target. The result is a calm, structured base read with a defined risk reference, rather than a backward-looking alert or a single-bar trigger.
⚙️ Methodology
1. Context Detection
An ATR baseline and an EMA trend backbone with a slope check describe the current environment.
2. Structure Mapping
Swing highs and lows are tracked as an alternating zigzag. The amplitude of each recent leg is measured to describe the contraction sequence.
3. Contraction Evaluation
The engine counts how many successive legs are tightening into the present, measures the latest contraction tightness against ATR, checks trend context, and reads volume dry-up. These combine into a single 0-100 quality score, and the base resolves into a state.
4. Visual Output
The base zone, pivot breakout level, tight invalidation, measured-move target, a centered readiness badge, and moderate state labels are rendered cleanly on the chart and in the panel.
🗺️ How to Read the Chart
- Base zone: a shaded box spanning the contraction base from its low to its high, tinted by the current state.
- Pivot line and tag: the breakout level at the most recent swing high, the trigger reference.
- Invalidation line and tag: the latest contraction low, the tight structural risk reference.
- Target line and tag: the measured-move objective projected from the base height above the pivot.
- Readiness badge: centered inside the base zone, showing the state and its 0-100 score.
- State labels: compact markers when the pattern enters Pivot Ready, Breakout, or Reset.
- Panel: a fixed readout of state, quality score, pivot, target, contractions and tightness, invalidation, and action.
🚦 Signals & States
- No Base: not enough structure to define a contraction base.
- Base Forming: a base is developing but not yet tight or built enough.
- Coiling: successive contractions are tightening and readiness is building.
- Pivot Ready: the base is tight and near the pivot, with a qualifying score.
- Breakout: price has moved beyond the pivot level.
- Reset: the base was invalidated below its risk reference.
These are interpretive states, not instructions. Pivot Ready does not mean buy; it means the base is tight and near its trigger in the current context.
🔔 Alerts Logic
Three optional alerts are available:
- Pivot Ready: triggers when the base becomes pivot-ready.
- Breakout: triggers when price moves beyond the pivot.
- Pattern Reset: triggers when the base is invalidated.
Alerts are attention markers that point you back to the chart for context. They are not trade instructions and carry no guarantee of any outcome.
🧩 Confluence Logic
The score is itself a confluence read. When the contraction count, the latest-leg tightness, the trend context, and the volume dry-up all agree, the score is higher and the base is more pronounced. When they disagree, the score stays moderate and the state often remains Base Forming, which is information in itself: the base is not yet a clean contraction.
📊 When to Use
- After a strong move, when price begins to base and contract rather than trend.
- In constructive consolidations where pullbacks are getting shallower.
- As a continuation-base overlay alongside your own structure and risk framework.
- On liquid symbols with enough swing history for the structure to form.
⚠️ When NOT to Use
- In choppy markets with no clear base structure.
- In very low-liquidity symbols or sessions, where swings are unreliable.
- In extremely noisy conditions, where levels are violated erratically.
- As a standalone entry trigger, or in isolation from market context and risk.
🎛️ Key Inputs
- Swing Strength and Swing Memory: how swings are detected and how many are retained.
- Base Swing Window: how many recent swings define the active base.
- Trend Backbone EMA and Slope Bars: the trend-context weighting.
- Use Volume Dry-Up and its windows: whether and how decreasing volume contributes.
- Tightness Scale: the ATR reference for scoring contraction tightness.
- Pivot-Ready Score, Pivot Proximity, Ready Tightness: thresholds that define a pivot-ready base.
- Visual, label, and panel controls: base zone, pivot, target and invalidation lines and tags, label density, panel location, theme, and font size.
🖥️ Interface & Visual Design
The panel is the primary readout, leading with the state and 0-100 score, then pivot, target, contractions and tightness, invalidation, and a concise action line. On the chart, the base zone anchors the structure, the pivot and invalidation give the trigger and the tight risk, and the measured-move target frames the objective. The readiness badge sits centered inside the base so the read is tied to the structure. Labels are kept moderate and fire only on state transitions so the chart stays clean. Panel location, theme, and font size are adjustable; the panel is shown by default for readability.
🧪 Practical Usage Workflow
1. Read the panel: note the state and the quality score.
2. Check contractions and tightness: how many tightening legs, and how tight now.
3. Watch the pivot: the breakout reference at the top of the base.
4. Note the invalidation and target: the tight risk reference and the measured objective.
5. Confirm with your own market structure, higher-timeframe context, and risk framework before any decision.
🔍 Interpretation Guidelines
Think of the read as a staged base readiness, not a forecast. A higher score means more successive contractions, tighter current price action, and better trend and volume context. A moderate score or a Base Forming state means the base is not yet clean and patience is warranted. The invalidation is a structural reference, not a hard line. Always interpret the base inside the broader market context rather than in isolation.
🚫 What This Script Is NOT
- It is NOT a prediction engine and does not forecast price direction.
- It is NOT financial advice or a recommendation to buy or sell.
- It is NOT an automated trading system.
- It does NOT produce guaranteed signals or outcomes.
⚠️ Limitations & Transparency
Outputs depend on detected swing structure and may differ across timeframes and symbols. Volatility, liquidity, and changing market conditions affect how bases form and how they resolve. A base can break out, fail, or simply drift; the engine describes current structure and cannot know the future. Any pivot can be exceeded or fail to be reached, and any base can be invalidated.
🧠 Market Context Notes
Bases tend to form after directional moves, as participants pause and pullbacks get shallower. Classic contraction structure pairs successively tighter pullbacks with drying volume, often inside a constructive trend. This engine encodes that logic into a single staged read, but broader market context always has the final word, and a tight base is a condition, not a promise.
🧾 Use Case Examples
- After a strong advance, price bases with two or three progressively tighter pullbacks: the engine moves from Base Forming to Coiling and may reach Pivot Ready near the pivot.
- Volume dries up into a tight base inside an uptrend: the quality score rises as contraction, tightness, trend, and volume align.
- Price breaks below the latest contraction low: the engine reports Reset, signaling the contraction structure has invalidated.
🧱 System Philosophy
This tool reflects the AGPro Series approach: convert a familiar but messy concept into a calm, structured, decision-support read. A contraction base is easy to misjudge by eye; the value is in staging it into an honest, scored read with a defined risk reference, while respecting the trader's own judgment rather than replacing it.
🔐 Non-Promise Statement
This script makes no promise of profit, accuracy, or any specific result. It is an analytical and organizational tool. No certainty is offered or implied.
📉 Risk Disclosure
Trading involves substantial risk, and most participants can lose money. This script is provided for educational and analytical purposes only and does not constitute financial advice. All decisions, positions, and outcomes remain entirely your own responsibility. Always manage risk and trade within your own plan.
📚 Educational Note
Used as intended, the engine can sharpen how you think about contraction bases: how many tightening legs are present, how tight the base has become, where the pivot and the risk sit, and what would invalidate the structure. Treat it as a lens for structured analysis, and keep building your own market understanding alongside it.
Indicator

Volume Delta ProfileVolume Delta Profile
The Volume Delta Profile is an overlay indicator that builds a horizontal volume delta distribution directly on the price chart, similar to a Market Profile or Volume Profile but using net delta (buying pressure minus selling pressure) as the core metric instead of raw traded volume.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT IS VOLUME DELTA?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Volume delta measures the difference between aggressive buying volume (market buy orders hitting the ask) and aggressive selling volume (market sell orders hitting the bid) within a given candle. A positive delta means buyers were more aggressive during that candle. A negative delta means sellers were more aggressive.
This indicator uses PulseWire's native ta.requestVolumeDelta() function, which reconstructs delta by scanning a lower timeframe (automatically selected or manually configured) to approximate the split between up-volume and down-volume for each candle.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The indicator scans a configurable number of historical bars (default: 500) and for each bar assigns its volume delta to a price level based on the closing price of that bar. Price levels are divided into equally spaced buckets across the high-to-low range of the lookback period.
Positive delta (net buying) accumulates in the bullish bucket of that price level.
Negative delta (net selling) accumulates in the bearish bucket of that price level.
The result is a horizontal bar chart displayed to the right of the last candle, where each row represents a price level and the width of the bar represents the total delta activity at that level. The color of each bar reflects which side dominated:
• Teal bars → net buying pressure dominated at that price level
• Pink/red bars → net selling pressure dominated at that price level
The Point of Control (POC) is marked as a solid horizontal line extending 50 bars to the left, highlighting the price level where the highest total delta activity occurred across the entire lookback period.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
COMPONENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Delta Profile (horizontal bars)
A visual distribution of accumulated volume delta across price levels. Each bar's width is proportional to the total delta activity at that level relative to the most active level. Bars are color-coded by dominant side (buyers vs sellers).
2. Point of Control (POC)
The price level with the highest total delta activity in the lookback window. Displayed as a solid horizontal line extending 50 bars to the left of the current bar. This is the price where the most aggressive order flow occurred — institutional interest tends to concentrate here.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Lookback bars (default 500): Number of historical candles to include in the profile. More bars give a broader context; fewer bars focus on recent activity.
• Bar width (default 20): Visual width in pixels of the widest bar in the profile. Adjust for chart readability.
• Price levels (default 50): Number of horizontal buckets the price range is divided into. More levels give finer granularity; fewer levels give a smoother, broader view.
• Positive delta color (default teal): Color for price levels where buying pressure dominated.
• Negative delta color (default pink): Color for price levels where selling pressure dominated.
• POC color (default black): Color of the Point of Control line.
• Profile offset (default 10): Horizontal distance in bars between the last candle and the left edge of the profile. Increase to avoid overlap with live price action.
• Custom timeframe: Override the automatic lower timeframe used for delta reconstruction. Higher timeframes load more history but reduce precision.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO INTERPRET IT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DOMINANT COLOR ZONES
Large teal zones indicate price areas where institutional buyers were consistently aggressive. These levels tend to act as support — if price returns to them, buyers are likely to defend the level. Large pink zones indicate areas of consistent selling aggression, which tend to act as resistance or liquidity targets for short-side participants.
PROFILE SHAPE
A profile with a clear peak (narrow, tall distribution) suggests price spent most of its time and order flow at a specific level — strong agreement on value. A wide, flat profile suggests price moved across a broad range without clear absorption at any single level.
POINT OF CONTROL (POC)
The POC is the single most important level in the profile. It represents where the maximum institutional order flow occurred. Price has a strong tendency to gravitate back toward the POC after extended moves away from it, making it a high-probability mean-reversion target. It also acts as a decisive level: a clean break and hold above a teal POC confirms bullish institutional commitment; a rejection at a pink POC confirms continued distribution.
DIVERGENCE BETWEEN COLOR AND PRICE MOVEMENT
If price fell sharply through a level but the profile shows teal (net buying) at that level, it suggests absorption — institutions were buying the selling pressure. This is often a precursor to a reversal. Conversely, if price rose through a level but the profile shows pink, distribution was occurring into the rally.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE IT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. IDENTIFY THE VALUE AREA
Look for the widest bars in the profile — these are the price levels with the most delta activity. The market considers these levels "fair value." Price tends to spend more time here and frequently returns to these zones after deviation.
2. USE THE POC AS A MAGNET
If price is trading significantly above or below the POC, there is a structural tendency to return to it. The POC acts as a mean-reversion target, especially in range-bound or post-impulse conditions.
3. READ THE COLOR FOR BIAS
Before entering a trade, check the delta color at the relevant support or resistance level. A teal zone below current price strengthens a long bias — institutions were buying there. A pink zone above current price strengthens a short bias — institutions were selling there.
4. SPOT ABSORPTION
Large teal bars at price lows or large pink bars at price highs are signs of institutional absorption. These are the exact footprints of Wyckoff accumulation and distribution phases — smart money absorbing retail order flow before the next directional move.
5. COMBINE WITH STRUCTURE
Use this indicator alongside your market structure analysis. A key structural level (support, resistance, order block) that coincides with a high-delta POC or dominant color zone has significantly higher probability of holding or acting as a reversal point.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
NOTES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Delta data requires a data provider that supplies volume. The indicator will throw a runtime error if volume data is unavailable for the selected symbol.
• The profile updates on bar close and on the last real-time bar to keep the display current without excessive recalculation.
• Works on any timeframe and any instrument with volume data: forex, indices, crypto, commodities, equities.
• For best results on higher timeframes (daily, weekly), enable the custom timeframe option and select a higher sub-timeframe (e.g., "60") to ensure sufficient historical delta data is available.
Indicator

Indicator

Momentum Leader ATR Risk MapMomentum Leader ATR Risk Map is a position-management indicator designed to help traders visualize where a leading stock is trading relative to its 50-period SMA and ATR-based extension levels.
The goal is not to generate automatic buy or sell signals. Instead, this tool provides a structured risk map for momentum leaders by combining:
• ATR extension from a configurable SMA baseline
• Positive extension bands for profit-taking and risk management
• Negative extension bands for pullback, add-zone, and damage-control reference levels
• Relative strength scoring versus a benchmark such as SPY
• SMA trend status
• Optional liquidity, sector RS, and industry RS filters
• Nearest upside and downside map levels shown directly in the table
By default, the indicator uses a Daily anchor and 50-period SMA baseline, making it suitable for swing trading and longer-term position management in momentum leaders. A 24-hour / 1440-minute anchor is also available for users who prefer to evaluate instruments with extended-hours or near-24-hour trading behavior.
Core Risk Map Levels:
Positive Extension Zones:
• +2.95x ATR: High-RS leader zone
• +4.56x ATR: Super momentum zone
• +5.27x ATR: Approximate 2σ risk zone
• +7.83x ATR: Approximate 3σ profit zone
• +10.00x ATR: Extreme / trail-only zone
Negative Extension Zones:
• -1.00x ATR: Pullback
• -2.00x ATR: Add zone
• -3.00x ATR: Deep pullback
• -4.56x ATR: Damage control
• -5.27x ATR: Washout / reclaim-needed zone
The table is designed to answer a few practical questions quickly:
• Is the stock still acting like a leader?
• Is price extended, normal, or damaged relative to the SMA/ATR map?
• Is the SMA trend still constructive?
• Is relative strength still intact across multiple lookback windows?
• Where is the nearest upside ATR map level?
• Where is the nearest downside ATR map level?
Relative Strength Logic:
The RS Score compares the current symbol against a user-selected benchmark over 21, 63, 126, and 252 anchor bars. A score of 4 of 4 means the symbol is outperforming the benchmark across all four lookback windows.
Optional Advanced Inputs:
The indicator includes optional sector and industry RS inputs for users who want to manually compare the stock against relevant ETFs such as XLK, SMH, IGV, XBI, XLE, XLF, or other sector/industry proxies. These are turned off by default to keep the tool frictionless.
A liquidity filter is also available, but it is turned off by default so the indicator can remain focused on the risk map itself.
Credit and Inspiration:
This indicator was inspired by concepts shared by several market educators and traders:
• Jeff Sun / @jfsrev
x.com
• @i_manage_risk
x.com
• StratLab / @StratLaboratory
x.com
Their publicly shared work on relative strength, momentum leadership, ATR extension frameworks, risk management, and scaling into or out of leaders helped shape the conceptual foundation for this tool.
This script is an independent implementation. It is not affiliated with, sponsored by, or endorsed by Jeff Sun, @i_manage_risk, StratLab, or @StratLaboratory, and it is not intended to replicate their complete methodologies.
Suggested Use:
This indicator is best used as a position-management overlay for stocks that have already been identified as potential leaders through a separate screening process. It can help define areas where the stock may be:
• Acting normally within a leadership trend
• Becoming extended into profit-taking zones
• Pulling back toward constructive support
• Losing momentum or entering damage-control territory
Important Notes:
ATR extension levels are reference zones, not guaranteed targets or support/resistance levels. A stock can remain extended for longer than expected, especially during strong momentum regimes. Conversely, deep pullbacks can signal deterioration rather than opportunity if leadership and trend structure are no longer intact.
Use this tool alongside broader market context, earnings risk, volume behavior, trend structure, and personal risk-management rules.
This indicator is for educational and informational purposes only and does not constitute financial advice. Indicator

Indicator

Indicator

fmfm300 Certainly! Here's a detailed explanation of what this Pine Script indicator does, written in English so you can use it in PulseWire.
Overview: "fmfm300" Indicator
This is a comprehensive multi-strategy trading indicator that combines 6+ different trading concepts into one tool. It's designed for intraday to swing trading on any timeframe.
Main Components (What it shows):
1. Supertrend + EMA (Trend Following)
Supertrend (ATR 10, Factor 3.0) - Identifies trend direction
EMA 20 - Additional trend confirmation
Labels show "إيجابي" (Bullish) or "سلبي" (Bearish) when trend changes
Color zones: Light green (bullish), Light red (bearish), Darker colors for sideways
2. Braid Filter (Trend Strength)
Compares 3 moving averages (Periods: 3, 7, 14)
Green = Bullish alignment (MA1 > MA2, sufficient separation)
Red = Bearish alignment (MA2 > MA1, sufficient separation)
Gray = Sideways/weak trend
Uses ATR to filter out false signals (minimum separation %)
3. Liquidity HeatMap (Volume Profile)
Shows where volume accumulated at specific price levels
Green boxes = Buy-side liquidity (price below current)
Blue boxes = Sell-side liquidity (price above current)
Orange boxes = Point of Control (highest volume node)
Helps identify support/resistance zones and potential liquidity grabs
4. Pivot Points (Support/Resistance)
Red "▼" labels = Major Pivot Highs (resistance)
Blue "▲" labels = Major Pivot Lows (support)
Temporary pivots (darker blue with "⚠ Subject to repaint") - shorter-term levels
5. Supply/Demand Indicator (Second Indicator)
Displays a text summary with:
🟢 = Green candle (Demand > Supply)
🔴 = Red candle (Supply > Demand)
⚪ = Doji
RSI background: Green (RSI > 55 = bullish), Red (RSI < 45 = bearish)
Demand/Supply percentages based on volume-weighted price movement
6. Data Table (Multi-Timeframe Volume Analysis)
Shows cumulative volume from 3 timeframes (1H, 15min, 5min):
Buy volume (Green) - Volume from bullish candles
Sell volume (Red) - Volume from bearish candles
Net result (Green/Red) - Difference between buy and sell volume
Formatting: K (thousands), M (millions), B (billions)
7. Auto-Fibonacci (HTF Targets)
Calculates standard deviation-based levels from higher timeframe
Shows target levels (T1, T2, T3, etc.) above/below current price
Dashed lines with price labels
Can mirror levels for both directions
Alert when price crosses these levels
8. Daily Support/Resistance (HTF Levels)
Shows previous period's High, Low, and Midpoint from selected timeframe
Options: 60min, 240min (4H), or Daily
Red line = Resistance, Green line = Support, Yellow line = Midpoint
Labels show level type and price
9. Fair Value Gaps (FVG) / Liquidity Zones
Red boxes = Bearish FVGs (price gaps down)
Green boxes = Bullish FVGs (price gaps up)
"سيولة" (Liquidity) labels inside boxes
Tracks when liquidity is taken (✓ تم سحب السيولة)
Can show closest boxes to current price only
10. Order Blocks (Supply/Demand Zones)
Green boxes = Demand zones (bullish order blocks)
Red boxes = Supply zones (bearish order blocks)
"▲" signal appears when price enters demand zone
"▼" signal appears when price enters supply zone
Uses zigzag pattern to identify significant swing points
Alerts when price reaches these zones
11. Dynamic VWAP
Adaptive VWAP that changes with volatility
Green line = Bullish VWAP (after higher low)
Red line = Bearish VWAP (after lower high)
Labels at swing points show where VWAP resets
12. Trend Lines
Automatic trendlines drawn from pivot highs/lows
Teal lines = Bullish trendlines (upward slope)
Red lines = Bearish trendlines (downward slope)
How to Use in PulseWire:
Best for:
Intraday trading (5min, 15min, 1H, 4H)
Swing trading (Daily timeframe)
Cryptocurrency, Forex, Stocks, Indices
Trading Signals (Buy):
Supertrend bullish (light green background)
Braid filter green
Price near demand zone (green box with "▲")
RSI > 55 (from second indicator)
Net volume positive (green in data table)
Price above dynamic VWAP (green line)
Trading Signals (Sell):
Supertrend bearish (light red background)
Braid filter red
Price near supply zone (red box with "▼")
RSI < 45
Net volume negative (red in data table)
Price below dynamic VWAP (red line)
Key Settings to Adjust:
Setting Purpose Recommended
ATR Period Supertrend sensitivity 10 (default)
Factor Supertrend distance 3.0 (default)
PipsMinSepPercent Braid filter strength 40%
Calculated Bars HeatMap history 100
Pivot Length Major pivot sensitivity 20
Fibo Period HTF target calculation 85
الحد الأدنى للفصل Minimum separation for trend 40%
Limitations to Know:
Temporary pivots repaint (⚠ warning shown)
HeatMap only draws on the last bar (performance optimized)
Some calculations use lookahead=on (may repaint in real-time)
Heavy indicator - may slow down PulseWire on low-end devices
Best used on non-intraday timeframes (15min+) for accuracy
Summary:
This indicator is an all-in-one trading dashboard that combines:
Trend following (Supertrend + Braid)
Support/Resistance (Pivots + Daily levels + Order blocks)
Volume analysis (HeatMap + Multi-TF table + Supply/Demand)
Target levels (Auto-Fibonacci)
Liquidity concepts (FVG + Order blocks)
Dynamic pricing (VWAP)
Best strategy: Use the confluence of 3+ signals before entering a trade. Don't rely on any single component alone.
The Arabic labels indicate this was designed for Arabic-speaking traders, but the visual signals are universal (colors, boxes, lines). The combinedText at the top shows the overall market state (صاعد = bullish, هابط = bearish, عرضي = sideways) Indicator

Apex Signals & Overlays + Quant Rating( by Sammy JR)## 🚀 Institutional Signal Suite
**Institutional Signal Suite** is a powerful all-in-one trading indicator designed to help traders identify high-probability buying and selling opportunities across stocks, ETFs, indices, cryptocurrencies, forex, and commodities.
Built using a combination of trend analysis, momentum filtering, market structure, dynamic support/resistance zones, volume profiling, and smart-money-inspired logic, this indicator aims to simplify market analysis into clear, actionable signals.
### 🔥 Key Features
✅ **Buy & Sell Signals**
* Automatically identifies potential trend reversals and continuation opportunities.
* Signals are filtered to reduce noise and avoid low-quality setups.
✅ **AI-Style Market Rating Engine**
* Continuously evaluates market conditions and assigns a bullish or bearish bias.
* Provides an easy-to-read overall market verdict.
✅ **Dynamic Support & Resistance Zones**
* Automatically plots important supply and demand areas.
* Highlights potential reversal and breakout levels.
✅ **Trend Detection System**
* Identifies the dominant market trend.
* Helps traders stay aligned with higher-probability directional moves.
✅ **Risk Management Levels**
* Optional stop-loss and trade management levels.
* Helps improve discipline and consistency.
✅ **Volume Profile Integration**
* Displays key high-volume areas where institutional activity may be concentrated.
* Useful for identifying support, resistance, and value zones.
✅ **Multi-Asset Compatible**
* Works on:
* Stocks
* ETFs
* Crypto
* Forex
* Commodities
* Indices
### 📈 How to Use
**Buy Signals**
* Look for BUY labels appearing near demand/support zones.
* Stronger setups occur when the overall rating turns bullish and price trades above the trend filter.
**Sell Signals**
* Look for SELL labels appearing near supply/resistance zones.
* Higher-quality setups occur when the rating turns bearish and price trades below the trend filter.
**Trend Following**
* Focus on signals that align with the prevailing trend for better probability.
### ⚠️ Important Notes
* This indicator is designed as a decision-support tool and should not be used as financial advice.
* No indicator can predict markets with 100% accuracy.
* Always combine signals with proper risk management and your own market analysis.
### 🎯 Best Timeframes
Works across multiple timeframes, but generally performs best on:
* 4H
* Daily
* Weekly
### 💡 Ideal For
* Swing Traders
* Position Traders
* Day Traders
* Long-Term Investors
* Portfolio Managers
---
**Institutional Signal Suite helps transform complex market data into clear trading decisions by combining trend, momentum, volume, and market structure into one easy-to-use framework.** 📊🚀
Indicator

Equilibrium Deviation Engine [LB]
Concept
The Equilibrium Deviation Engine is a session-resetting, volume-weighted equilibrium model that builds a dynamic fair value basis from accumulated price and volume since the last anchor point (daily by default). Around this basis, it constructs multiple deviation bands and an independent extreme contrarian channel whose width varies inversely with short-term volatility — expanding during quiet markets and contracting during turbulent ones.
Mathematical Foundation
At each new session (e.g., daily open), the engine resets three accumulators and recalculates them bar by bar :
PV = SUM(Price * Volume)
V = SUM(Volume)
P2V = SUM(Price^2 * Volume)
The equilibrium basis is the volume-weighted average price since reset :
Basis = PV / V
The standard deviation of price around this basis is derived from the variance :
Var = max( (P2V / V) - Basis^2 , 0 )
Dev = sqrt(Var)
Three main bands are then computed by applying adaptive multipliers to this deviation. The adaptation uses two independent weights :
TWAP Weight — compares the basis to a hidden TWAP. The larger the gap relative to the deviation, the more the bands widen, capturing potential mean-reversion targets.
HV Weight — compares current historical volatility (HV) to its own smoothed baseline. When HV expands, bands widen ; when HV contracts, bands narrow.
The final band width for level k is :
D_k = Dev * Mult_k * TWAP_Weight * HV_Weight
The Extreme Contrarian Channel
A separate channel is built using an inverse volatility weight. Instead of expanding with rising HV, it contracts :
InvWeight = clamp( 1 / (HV_contrarian / HV_contrarian_baseline) , min, max )
This creates a structural envelope that is widest during low-volatility regimes (where price tends to range) and tightens during high-volatility regimes (where price breaks through normal boundaries). The inner and outer levels use user-defined sigma multipliers.
What Problem Does It Solve ?
Traditional deviation bands (Bollinger, Keltner, VWAP bands) use fixed lookback windows and a single volatility metric. They do not reset at session boundaries, nor do they distinguish between different volatility regimes for mean-reversion versus breakout scenarios. The Equilibrium Deviation Engine solves this by :
- Resetting accumulators at each session (e.g., daily), producing a true volume-weighted equilibrium for the current period.
- Adapting band width to both the TWAP gap (directional drift) and HV regime (market excitement).
- Adding a separate contrarian channel using inverse volatility, specifically designed to identify exhaustion zones where low volatility precedes expansion, or where extreme HV signals climax conditions.
How To Interpret
Basis line (white) — the real-time volume-weighted fair value for the current session. Price above basis signals session bullishness ; price below signals session bearishness.
Deviation bands 1, 2, 3 — graduated zones of overextension from the basis. Price reaching Band 3 represents an extreme statistical deviation from the session's equilibrium, often preceding reversion.
Extreme contrarian channel — a separate envelope that behaves inversely to short-term HV. When this channel is wide (low HV, quiet market), price tends to oscillate within it, making the boundaries attractive mean-reversion levels. When the channel narrows sharply (high HV, excited market), it signals compression before a potential breakout.
Band expansion vs contraction — widening bands indicate increasing dispersion and adaptive uncertainty ; narrowing bands indicate consolidation and equilibrium tightening.
Parameters
LB Engine
Source — price field used for calculations (default HLC3).
Reset TF — timeframe at which accumulators reset (default Daily).
Hidden TWAP Length — period for the TWAP used in the TWAP gap weight.
Historical Volatility Length — period for HV calculation (main bands).
HV Smoothing — smoothing period for the HV baseline.
LB Bands
Deviation 1, 2, 3 — base multipliers for the three main deviation levels.
LB Contrarian Channel
Extreme Channel Inner/Outer — sigma multipliers for the contrarian channel.
Use Main HV Weight — applies the main HV weight to the contrarian channel.
Use Hidden TWAP Weight — applies the TWAP gap weight to the contrarian channel.
Contrarian Inverse HV Length — period for the HV used in the inverse weighting.
Contrarian Inverse HV Smooth — smoothing period for the contrarian HV baseline.
Contrarian Inverse HV Min/Max — clamping limits for the inverse weight.
LB Style
Show Basis, Show Main Fills, Color Bars — visual toggles.
Basis Width, Band Width, Extreme Channel Width — line thickness controls.
Reference
This indicator is a proprietary design by Luis Barlier. It synthesises concepts from session volume-weighted average price (VWAP), adaptive volatility bands, and inverse volatility regime detection. It does not correspond to a single academic publication. Indicator

Indicator
