Price Density Clouds [EXCAVO]Continuous Kernel-Density Map of Where Price Has Actually Traded
The Price Density Clouds builds a smooth, continuous probability density of
price over a lookback window and paints it as gradient clouds directly behind
the candles. Dense, saturated clouds mark value zones - the equilibrium levels
where the market has spent the most time and where price tends to stall and
revert. Thin, transparent gaps mark inefficiency zones - levels price travels
through quickly. A dashed POC line marks the single highest-probability price,
and the Value Area High / Low bracket the core of the distribution.
This is not a bin-based volume profile. Instead of chopping price into discrete
buckets, KDE sums a smooth gaussian kernel around every price point, producing a
continuous density curve with no bin-edge artefacts. The bandwidth is set
automatically by Silverman's rule, so the smoothing adapts to the instrument's
own volatility.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ HOW TO USE
Step 1 → Add the indicator. Gradient clouds appear behind the candles
over the lookback window, brightest at the highest-probability
levels and fading out toward thin zones.
Step 2 → Read the clouds. Saturated bands = value / equilibrium where
price tends to stall and mean-revert. Faint gaps = inefficiency
where price moves fast - natural travel targets.
Step 3 → Use the POC. The dashed POC line is the single most-traded
level - a robust magnet and support / resistance anchor. Price
far from POC has a statistical pull back toward it.
Step 4 → Use the Value Area. The dotted Value Area High / Low bracket
the core of the distribution (default 70%). Acceptance inside the
area is balance; rejection outside it is imbalance worth trading.
Step 5 → Check the side profile. The gradient density profile on the
right of the last bar is the same density rotated 90 degrees - a
quick read of the full distribution shape at a glance.
Step 6 → Combine with structure. Clouds are context, not direction.
They pair well with trend, sweep, and breakout tools - a breakout
into a thin zone tends to run; a breakout into a dense zone tends
to stall.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ HOW IT CALCULATES
◆ Gaussian Kernel Density
Every close in the lookback window contributes a gaussian bell curve centred at
its own price. The curves are summed across the price range to produce a single
continuous density function: density(x) = sum over j of exp(-0.5 x ((x - price_j)
/ h)^2). Levels where many bars cluster get tall, overlapping kernels and a high
density; isolated levels get a low density.
◆ Silverman Bandwidth
The kernel width h controls smoothness. It is set automatically by Silverman's
rule of thumb: h = 1.06 x sigma x n^(-1/5), where sigma is the stdev of the
lookback prices and n is the sample size. The Bandwidth Multiplier input scales
this for sharper or smoother clouds. Auto-bandwidth means the same settings
adapt across instruments and timeframes.
◆ Normalisation and POC
The density is evaluated at Resolution levels between the lookback high and low,
then normalised so the peak equals 1.0. That peak level is the POC (Point of
Control) - the single highest-probability price. Cloud opacity and colour are
driven by each level's normalised density.
◆ Value Area
Starting at the POC, the algorithm expands outward, each step absorbing the
denser of the two neighbouring levels, until the enclosed density reaches the
Value Area % of the total (default 70). The price extent reached becomes the
Value Area High and Low.
◆ Gradient Rendering
Each density band of the cloud is drawn as a horizontal box tinted by a
two-colour gradient: the Low Density Color at thin levels through to the High
Density Color at the POC, with opacity ramping in parallel. Adjacent bands tile
continuously, so the cloud reads as a smooth heat-map rather than discrete
blocks. The same gradient drives the right-side density profile, whose width
per level scales with density - at the default resolution the edge reads as a
near-smooth wave while keeping the per-level gradient colour.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ WHAT MAKES IT DIFFERENT
◆ Continuous Density, Not Bins
Standard volume / price profiles split price into discrete bins, so the result
depends heavily on bin size and shows hard edges. KDE produces a smooth
continuous curve - no bin-edge artefacts, no arbitrary bucket count, just the
true shape of where price has traded.
◆ Auto-Adaptive Bandwidth
Silverman's rule sizes the smoothing from the instrument's own volatility and
sample size. The clouds stay meaningful on BTC, EURUSD, gold or an index with
the same default settings.
◆ Value Structure In One View
POC, Value Area High / Low and the full density shape are all on the chart at
once, with a matching side profile - the complete market-profile read without a
separate pane or a session reset.
◆ Premium Gradient Visual
A smooth two-colour density gradient behind the candles with parallel opacity
ramp, a clean dashed POC, dotted value-area lines, and a right-side profile
histogram. The clouds sit behind price as context and never clutter the read.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ DASHBOARD
Real-time panel (top right) with the current value read:
POC - price of the highest-density level
Value Area High - upper bound of the value area
Value Area Low - lower bound of the value area
Price Zone - whether price is Above Value, In Value, or Below Value
Lookback - bars used to build the distribution
Legend table (bottom left) explains every colour. Both panels toggle in the
Dashboard settings.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ SETTINGS
Engine
Lookback Period - 200 (bars used to build the price distribution)
Resolution - 120 (number of horizontal density bands; higher = smoother gradient and profile edge, up to 200)
Bandwidth Multiplier - 1.0 (smoothness; 1.0 = Silverman auto, higher = broader clouds)
Value Area % - 70 (percentage of total density that defines the value area)
Visualization
Low Density Color - blue (thin / inefficiency end of the gradient)
High Density Color - orange (dense / value end of the gradient)
POC Line Color - near-white (high contrast against the dense orange cloud the POC sits in)
Min Cloud Opacity - 8 (opacity of the lowest-density band; keeps empty zones faint)
Max Cloud Opacity - 65 (opacity of the POC band)
Show POC Line - ON
Show Value Area - ON (dotted Value Area High / Low lines)
Value Area Highlight - ON (boosts band opacity inside the value area so the 70% core pops)
Show Side Profile - ON
Profile Outline - ON (thin bright line tracing the right edge of the profile for a crisp silhouette)
Cloud Forward Extend - 10 (bars the clouds extend right of the last bar)
Dashboard
Show Dashboard - ON
Dashboard Position - Top Right
Show Legend - ON
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Best regards,
EXCAVO
Disclaimer
Trading involves significant risk. This indicator is a technical analysis tool
and does not constitute financial advice, investment recommendations, or a
guarantee of future results. Past indicator behavior does not guarantee future
performance. Always use proper risk management and your own judgment.
Indicator

Candle Streak StatisticsCandle Streak Statistics
What it does
This indicator counts every consecutive run of up-candles and down-candles in the chart's full history, then tells you how unusual the current run is compared to all the runs that came before it. Think of it as a "thermometer" that shows whether the market is in a perfectly normal streak or in territory it rarely visits.
Why it exists
I often ask myself: "Eight green candles in a row. Is that a lot?"
What you'll see
A compact stats table (position and size are configurable) showing, separately for up-streaks and down-streaks:
n: how many completed streaks were observed
Current run: length of the streak in progress
Pct rank: where the current run sits in the historical distribution (0% = shorter than everything, 100% = longest ever)
P(+1 more): historical probability that a streak which reached the current length extended by at least one more bar
Mean, Stdev, Median: central-tendency stats
p75 / p90 / p95: upper-percentile streak lengths
Mode: most common streak length (usually 1)
Optionally, a floating label above the last candle draws a 10-segment █/░ bar (the "thermometer" — for an at-a-glance read on rarity.)
How to read it
Pct rank ≥ 90% with low P(+1 more) → the current streak is in the rare-air zone and historically rarely extends further. Mean-reversion is statistically likely.
Pct rank mid-range with P(+1 more) ≥ 50% → nothing unusual; trend has room to continue.
Up vs. Down asymmetry → on equities, up-streaks typically have longer tails than down-streaks. Watching this gap shift can flag regime changes.
Design choices worth knowing
Doji handling: by default, exactly equal close == open bars are ignored (they don't break a streak). Adjustable via a tolerance input if you want to treat tiny-bodied candles the same way.
The live unfinished streak is excluded from the distribution by default. Including a still-in-progress run biases percentiles downward (it's censored data). A toggle lets you override.
Sample-size warning: if a direction has fewer than N completed streaks (default 20), its column gets a ⚠ marker. Don't trust statistics built on too little data.
Built on confirmed bars only. The distribution doesn't churn on every realtime tick.
Customization
Every visible element has a clearly labeled input: table position (9 anchor points), text size, all colors (text, neutral cell, up/down highlight, header), highlight transparency, and thermometer label colors. Defaults are tuned for light-themed charts.
Alerts
"Up streak ≥ p90": current up-run has entered the top 10% of history
"Down streak ≥ p90": current down-run has entered the top 10% of history
Best paired with
Any trend-following or stop-loss indicator. The combination of "my trailing stop says still hold" + "this streak is at p95 with a 15% continuation probability" is more informative than either signal alone. Use it as a sanity check on overextended moves.
Limitations
Streak-length distributions are roughly geometric. The mode is almost always 1, so I don't even know why I put it there. Don't lean on it.
Small samples (intraday timeframes on short chart histories) produce noisy upper-percentile estimates. Watch the n column.
Continuation probability is purely historical; it makes no claim about regime stability going forward. Statistics describe the past. Indicator

Indicator

Indicator

Indicator

Indicator

Bang! Bang! - Candle AnomaliesBang! Bang! — Candle Anomalies
Overview
Bang! Bang! is a volume-anomaly detector. It flags bars where volume looks unusual against its recent neighbors and tags each anomaly with a direction (buy or sell), a tier (Bang! for notable, Bang! Bang! for extreme), and a placement on the chart that reflects where the activity actually concentrated.
Two independent detection pipelines can run side by side. Each one decides for itself when to fire, picks its own engine (bar-level or sub-bar level), and uses its own statistical threshold method. You can run both pipelines together for confluence, or just one for a cleaner chart. The indicator works on any chart type — time-based, Renko, Range, Point & Figure, Kagi, and Line Break — with intelligent fallback when a particular engine isn't available for the chart you're on.
Features
Two detection engines (picked per baseline mode):
- Intensity Engine (default) — bar-level volume analysis. Works on any chart type. A Volume Basis input lets you pick plain `volume` or `volume / bar duration` (a volume rate that respects how urgently a bar formed). The plain-volume basis turns this into a pure volume-anomaly detector; the rate basis is what makes the engine meaningful on non-time-based charts where bar duration varies.
- Delta Engine — sub-bar decomposition via lower-timeframe candles. Splits the chart bar's volume into buy-side and sell-side based on sub-bar direction, and places the dot at the highest-volume sub-bar's hl2 (so the mark lands where the activity actually concentrated within the bar). Time-based charts only; on Renko, Range, P&F, Kagi, and Line Break it silently falls back to Intensity.
*Note on the Lower Timeframe input:* the default is 1 minute, which works on every PulseWire plan. If you have a Premium account, dropping the Lower Timeframe to a seconds-based value like 5S gives much finer sub-bar resolution and noticeably sharper direction and placement attribution from the Delta Engine.
Three threshold methods (picked per baseline mode):
- Sigma (default) — mean + N × stdev. The classical mean + standard deviation model.
- MAD — median + N × MAD × 1.4826. Robust to outliers, since the events being detected don't contaminate the baseline.
- Percentile — top X% of the rolling window. Distribution-agnostic and well-suited to heavy-tailed volume data.
Two independent baseline modes (both enabled by default):
- Unified Baseline — one rolling baseline on the full magnitude signal, with direction tagged separately. Best when you want a single, robust "this bar is unusual" call.
- Parallel Baseline — two rolling baselines, one for buy-side magnitude and one for sell-side. The side whose magnitude jumps gets the dot. Surfaces cases where one side of the flow becomes unusual independently of the other.
Each mode has its own Engine, Threshold Method, and Volume Basis, so you can configure them differently in the same chart (e.g., Unified on Sigma + Intensity for a stable baseline, Parallel on Percentile + Delta for sub-bar attribution).
Shooting Blanks overlay (Delta Engine only) — a small yellow dot when a Bang! or Bang! Bang! Delta dot fires AND the bar closes against its sub-bar flow direction. A "where did all that flow go?" tell that highlights bars where the heavy side of the sub-bar flow didn't carry the close — useful for spotting absorption-like patterns, late-bar reversals, and liquidity events.
Per-mode color customization — 14 user-configurable color slots across four groups (Unified Intensity, Unified Delta, Parallel Intensity, Parallel Delta), so each mode/engine combination can be styled independently. The Delta gradient is a five-step scale (Heavy Buyers → Light Buyers → Balanced → Light Sellers → Heavy Sellers) so dot color encodes conviction.
18 alert conditions — 9 per baseline mode, suffixed `(Unified)` or `(Parallel)` so per-mode firings stay unambiguous: `Bang!`, `Bang! Bang!`, `Bang! Buy`, `Bang! Sell`, `Bang! Bang! Buy`, `Bang! Bang! Sell`, `Bang! Bang! Balanced`, `Shooting Blanks (Buyers Failed)`, `Shooting Blanks (Sellers Failed)`.
Sensible, conservative defaults — Sensitivity = 6.0 and Tier Spacing = 2.0 by default, so Bang! fires at 6σ and Bang! Bang! at 8σ above the rolling mean. Tuned for the strongest anomalies only; turn them down for more frequent signals.
Visuals
The indicator plots up to three types of marks per bar:
Triangles — Unified Baseline
- **Triangle Up** appears below the bar when the magnitude jumped on a buy-direction bar.
- **Triangle Down** appears above the bar when the magnitude jumped on a sell-direction bar.
- **Size** encodes the tier — small triangle for Bang!, slightly larger triangle for Bang! Bang!.
- **Color** comes from the Unified color inputs (default 80% opacity so the smaller triangles read clearly).
Circles — Parallel Baseline
- A circle is placed at the bar's hl2 (Intensity Engine) or at the highest-volume sub-bar's hl2 (Delta Engine).
- **Size** encodes the tier — normal circle for Bang!, large circle for Bang! Bang!.
- **Color** comes from the Parallel color inputs (default 50% opacity).
When the **Delta Engine** is active in either mode, dot color also encodes sub-bar flow direction via a five-step gradient:
- **Heavy Buyers** — strongly buy-dominated sub-bar flow
- **Light Buyers** — moderately buy-leaning
- **Balanced** — roughly balanced buy/sell sub-bars (the neutral-grey middle of the gradient)
- **Light Sellers** — moderately sell-leaning
- **Heavy Sellers** — strongly sell-dominated
Shooting Blanks yellow dot
- A small yellow circle at the highest-volume sub-bar's hl2 when the Delta engine fires AND the close direction contradicts the sub-bar flow direction.
- Renders on top of any main dot sharing the same location, so the divergence reads at a glance.
- One shared dot per qualifying bar regardless of how many baseline modes detected the anomaly.
When both baseline modes fire on the same bar — Unified detecting a magnitude jump and Parallel detecting a side-specific jump — you'll see both marks together: a triangle outside the bar plus a circle inside it. Two independent confirmations from two different baseline approaches.
---
*Inspired by @colacorn's "Big Trades Whale Detector" — full credit for the core concept of statistical volume-anomaly detection on candle bars.*
Indicator

Indicator

Indicator

SessionStack Pro 24h MarketMap for ESSession Highlighter + Key Levels — All-in-One 24h Trading Reference
This indicator consolidates everything a 24h futures trader needs into a single overlay — session context, key price levels, VWAP reference, and an overnight inventory bias estimate.
Sessions (background highlights)
Visualizes all major global trading sessions with configurable colors and transparency: Full Asia (23:00–08:00 GMT), Tokyo (00:00–06:00 GMT), HK/Singapore (01:00–09:00 GMT), Frankfurt (07:00–15:30 GMT), London (08:00–16:30 GMT), London/NY Overlap (dynamically computed — 1h in winter, 2h in summer due to DST), US AM and US PM windows (configurable 1h or 1.5h). All GMT-anchored sessions are DST-immune. US sessions use America/New_York timezone and adjust automatically twice a year.
Key Price Levels
PMH/PML — Premarket High/Low (04:00–09:30 ET), line anchored to the exact bar where the extreme was set
YH/YL — Yesterday's RTH High/Low, drawn at next session open
GH/GL — Globex High/Low (18:00–09:30 ET), anchored to the extreme bar
SH/SL — Live session High/Low, single label that moves as new extremes are set
MO — Midnight Open (00:00 ET), ICT-style daily bias reference
ORB H/L — Opening Range Breakout (configurable 5/15/30 min), with range box
VWAP (three anchors)
Globex VWAP — resets at 18:00 ET, runs full 24h cycle, primary reference
RTH VWAP — resets at 09:30 ET, visible only during regular session
Premarket VWAP — resets at 04:00 ET, visible only during premarket window
Overnight Inventory Bias Table
A real-time table estimating the directional skew of overnight participants using Globex VWAP as fair value anchor and ±1 standard deviation bands as a Value Area High/Low proxy (approximating the 70% value area concept from volume profile theory). Displays: directional bias (LONG/SHORT), value area position (IN VALUE / ABOVE VAH / BELOW VAL), estimated % of overnight range in profit, distance from Globex VWAP in points, and the ±1SD width for context. This is a heuristic approximation — it does not use tick-by-tick order flow data, but provides a statistically grounded directional reference updated on every bar.
Settings
All sessions, levels, and VWAPs are individually toggleable. Colors, transparency, line width, ORB window, US AM/PM duration, and table position are fully configurable.
Designed for: ES, NQ, MES, MNQ futures and any instrument with meaningful overnight sessions. Works on any intraday timeframe (1m–4h recommended). Indicator

SpxSnipper - Chart Stock vs Sector RS DashboardSpxSnipper - Chart Stock vs Sector RS Dashboard
This indicator displays a compact relative strength dashboard that compares the current chart symbol against a selected sector ETF.
The stock symbol is detected automatically from the active chart, so users only need to select the relevant sector ETF. SPY is used as the default benchmark for sector-level relative strength.
The dashboard is designed to help answer two practical questions:
1. Is the stock outperforming or underperforming its sector?
2. Is the selected sector outperforming or underperforming SPY?
Main features:
• Automatically uses the current chart symbol as the stock
• User-selected sector ETF
• SPY benchmark comparison
• 6-month, 3-month, and 1-month performance
• Stock relative strength versus sector
• Sector relative strength versus SPY
• Weighted RS Score
• RS Trend status
• Compact table format
Performance periods:
The dashboard calculates performance over three configurable lookback periods:
• 6M
• 3M
• 1M
By default, these are approximated using trading days:
• 6M = 126 trading days
• 3M = 63 trading days
• 1M = 21 trading days
Stock vs Sector:
This row compares the stock’s return to the selected sector ETF.
Formula:
Stock Relative Return = Stock Return - Sector ETF Return
A positive value means the stock outperformed its sector during that period.
A negative value means the stock underperformed its sector during that period.
Sector vs SPY:
This row compares the selected sector ETF to SPY.
Formula:
Sector Relative Return = Sector ETF Return - SPY Return
A positive value means the sector outperformed SPY.
A negative value means the sector underperformed SPY.
RS Score:
The RS Score is a weighted relative strength score. It combines the 6M, 3M, and 1M relative returns into one number, with more weight given to recent performance.
Formula:
RS Score =
Relative 6M × 20%
+ Relative 3M × 30%
+ Relative 1M × 50%
For the stock, the RS Score is calculated versus the selected sector ETF.
For the sector, the RS Score is calculated versus SPY.
A positive RS Score indicates weighted outperformance.
A negative RS Score indicates weighted underperformance.
RS Trend:
RS Trend evaluates whether relative strength is improving, weakening, or mixed across the three timeframes.
The logic is:
RS ↑:
Relative strength is improving from 6M to 3M to 1M.
Rel 1M > Rel 3M > Rel 6M
RS ↓:
Relative strength is weakening from 6M to 3M to 1M.
Rel 1M < Rel 3M < Rel 6M
Mixed:
There is no clear sequential improvement or deterioration.
Suggested interpretation:
• Positive Sector RS Score or RS ↑ may indicate that the sector is showing relative strength versus SPY.
• Positive Stock RS Score or RS ↑ may indicate that the stock is showing relative strength versus its sector.
• A strong stock inside a strong sector may be useful for watchlist building and relative strength analysis.
• A stock can rise in absolute terms but still underperform its sector, which this dashboard helps identify.
Customization:
Users can adjust:
• Sector ETF
• Benchmark symbol
• 6M / 3M / 1M lookback periods
• Table position
Important note:
This dashboard is intended for relative strength analysis, sector comparison, and market research. It does not generate buy or sell signals and should not be used as a standalone trading system.
This script is for educational and analytical purposes only and does not provide financial advice. Indicator

Library

Heikin Ashi Cloud Overlay | Rainbow MatrixGENERAL OVERVIEW
The Heikin Ashi Cloud Overlay renders a Heikin Ashi cloud directly on top of traditional candlesticks, giving traders both views in a single chart. HA candles smooth macro trend perception by filtering individual-bar noise, but they sacrifice entry-bar precision because each HA candle does not represent the actual price range traded on that bar. This script preserves both signals simultaneously: the HA cloud surfaces directional context, while the underlying real candles preserve precise execution-bar timing.
A compact corner HUD reports current HA direction, consecutive streak length, and body-size anomalies relative to a 20-bar rolling average — useful for monitoring momentum exhaustion and impulsive expansion in real time without analyzing the cloud manually.
The script adds a visual intelligence layer on top of the standard HA pattern: cloud fill opacity dynamically reflects body intensity (impulsive bars render densely opaque, normal bars render lightly), and small colored dots flag body anomalies (current body > 3× rolling average) directly on the chart.
WHAT IS THE THEORY BEHIND THIS INDICATOR?
Heikin Ashi candles are derived from traditional OHLC via a recursive smoothing formula introduced by Munehisa Homma in 18th-century Japanese rice trading and popularized in modern Western technical analysis through the work of Dan Valcu and others. The transformation produces candles that emphasize trend persistence over discrete price action: consecutive same-color HA candles indicate ongoing directional pressure, while doji-like HA candles or sudden color flips often signal pivots.
The trade-off is well-known: HA candles do not show real OHLC. The haOpen of each candle is the average of the previous haOpen and haClose, not the actual session open. This makes HA excellent for trend reading but unreliable for entry timing — orders need to reference the actual price range of the bar, not the smoothed projection.
The conventional solutions are either to switch back and forth between HA and regular candle views (cognitive overhead), or to use HA as the primary chart and lose precision on entries (execution cost). This indicator takes a third approach: render the HA candles as a transparent overlay envelope on top of the standard candlesticks. The trader sees both at once. The HA envelope communicates trend context; the underlying candles preserve real-bar precision.
The state machine layered on top — direction tracking, streak counting, and body-size anomaly detection against a rolling average — converts the visual cloud into a numerical readout, surfacing exhaustion and impulsive moves that might be missed at a glance.
HA CLOUD OVERLAY FEATURES
The indicator includes 5 main components:
Heikin Ashi Cloud Overlay
Body Intensity Modulation (dynamic opacity)
Body Anomaly Visual Markers
HA State HUD Panel
Three Optional Alerts
HEIKIN ASHI CLOUD OVERLAY
🔹 What It Does
For each bar on the chart, the indicator computes the four Heikin Ashi values (haOpen, haClose, haHigh, haLow) using Pine Script's canonical recursive formula. It then renders a thin envelope between haHigh and haLow with semi-transparent fill, plotted on top of the underlying traditional candles.
🔹 Method
The computation follows the standard HA definition:
◇ haClose = (open + high + low + close) / 4
◇ haOpen = average of the previous haOpen and the previous haClose (recursive)
◇ haHigh = max of (high, haOpen, haClose)
◇ haLow = min of (low, haOpen, haClose)
A `var float ha_open = na` seed pattern handles the first-bar initialization safely, avoiding NA propagation that would corrupt the recursive chain.
🔹 Visual Behavior
The envelope is rendered as a thin top-bottom band with translucent fill. The fill color reflects the HA direction: bullish (haClose ≥ haOpen) renders in the configured bull color (PulseWire native teal by default); bearish (haClose < haOpen) renders in the bear color (PulseWire native red by default). An optional midline (dotted) at the (haOpen + haClose) / 2 level can be toggled for traders who prefer an explicit midpoint reference.
BODY INTENSITY MODULATION
🔹 What It Does
The cloud fill transparency is dynamically modulated based on the current HA body size relative to the 20-bar rolling average. Bars with above-average body push the fill toward more opaque, surfacing impulsive expansion clusters visually without requiring HUD analysis.
🔹 Tier Logic
◇ Body < 1× average: standard transparency (user-configured slider value)
◇ Body 1-2× average: −10 transparency (notable bar — slightly more opaque)
◇ Body 2-3× average: −30 transparency (strong bar — clearly more opaque)
◇ Body ≥ 3× average: −50 transparency, floor 20 (anomaly — densely opaque)
The floor cap of 20 prevents the fill from becoming so opaque that the underlying candle wicks become unreadable, preserving the dual-view principle of the indicator.
🔹 Why It Helps
Body intensity modulation converts the cloud from a static color band into a momentum-aware visualization. During quiet conditions, the cloud whispers; during impulsive expansion or capitulation phases, the cloud intensifies visually. Traders monitoring multiple charts can identify regime changes peripherally without focusing on any single chart's HUD.
🔹 Toggle
The feature is enabled by default and can be disabled via the "Body Intensity Cloud Opacity" input in the HA CLOUD group, which restores fixed transparency from the slider.
BODY ANOMALY VISUAL MARKERS
🔹 What It Does
A small colored dot appears on the chart whenever the current HA body exceeds 3× the 20-bar rolling average. Bull anomalies render as a dot below the bar (location.belowbar); bear anomalies render as a dot above the bar (location.abovebar). Dot colors match the configured bull/bear palette.
🔹 Why It Helps
The markers convert the alert-only body anomaly detection into a persistent visual signal that remains visible on chart history. Traders reviewing past price action can identify impulsive expansion or capitulation events at a glance, without scrolling through alert history or replaying bars.
🔹 Independent of the Alert
The visual markers and the body anomaly alert are independently toggleable. Traders can show the markers without enabling the alert (visual-only mode) or enable the alert without showing the markers (sound/notification-only mode).
🔹 Toggle
Enabled by default via the "Show Body Anomaly Markers" input in the HA CLOUD group.
HA STATE HUD PANEL
🔹 What It Shows
A compact 4-row corner panel reports three live values:
◇ Direction — current HA candle direction (Bull / Bear), color-coded
◇ Streak — consecutive same-direction count (in current locale, e.g., "7 velas (candles)" in PT)
◇ Avg Body — the average HA body size over the last 20 bars, expressed as a percentage of price
🔹 Why It Helps
The HUD converts the cloud into a numerical readout. Instead of visually estimating streak length or body proportion, traders can read the exact values on each bar. This is particularly useful for traders monitoring multiple charts or running automated rules where consecutive-bar conditions need to be tracked precisely.
🔹 Customization
The HUD can be positioned in any of the four chart corners and rendered in any of five font sizes. The Direction row uses contrasting colors (bull vs bear) for immediate parsing.
THREE OPTIONAL ALERTS
🔹 Alert Types
Each alert is independently toggleable in the indicator settings:
◇ HA Direction Change — fires on the close of a confirmed bar when the HA direction flips (bull→bear or bear→bull). Useful as a confirmation filter on top of other entry signals.
◇ HA Streak Exhaustion — fires when the absolute streak length crosses a user-configurable threshold (default 7). Long consecutive streaks often precede mean-reversion phases, especially in ranging markets.
◇ HA Body Anomaly — fires when the current HA body exceeds 3× the 20-bar rolling average. Anomalous body sizes typically signal impulsive expansion, capitulation, or news-driven moves worth investigating.
🔹 Firing Mechanism
All alerts are gated by `barstate.isconfirmed`, which means they only trigger on the close of the bar that satisfies the condition — never intra-bar. This prevents false signals from intrabar fluctuations that get rejected before close. Each alert uses `alert.freq_once_per_bar` to avoid duplicate firings on the same candle.
🔹 alertcondition() Mode
A dummy `alertcondition` titled "HOW TO SETUP ALERTS (READ)" is exposed at the bottom of the script. It provides setup guidance via its message field, instructing users to select "Any alert() function call" in the PulseWire alert condition menu and filter individual alerts via the indicator settings.
MULTILINGUAL INTERFACE
The indicator supports five languages for the HUD display and alert messages: English (default), Português, Español, Русский, and 中文 (Chinese). Code, comments, and configuration tooltips remain in English regardless of the selected language.
For reference, examples of multilingual UI strings used in the HUD:
◇ Direction labels: "Direction:" / "Direção:" / "Dirección:" / "Направление:" / "方向:"
◇ Direction text: "🟢 BULL"/"🔴 BEAR" / "🟢 ALTA"/"🔴 BAIXA" / "🟢 ALCISTA"/"🔴 BAJISTA" / "🟢 БЫЧИЙ"/"🔴 МЕДВЕЖИЙ" / "🟢 多头"/"🔴 空头"
◇ Streak units use a bilingual pattern: "candles" stays in English as a universal technical term; native terms appear in parentheses where the local equivalent is well-established (e.g., "7 velas (candles)").
CUSTOM PALETTE TOGGLE
🔹 What It Does
By default, the indicator uses native PulseWire teal/red colors for visual familiarity. A "Use Custom Cloud Colors" toggle in the settings switches to user-configurable bull/bear colors, useful for traders who want to align the cloud palette with their personal indicator stack or color preferences.
HOW TO USE
This indicator is a visualization tool, not a signal generator. It surfaces three categories of structural information: HA direction (smoothed trend context), streak length (momentum persistence), and body anomalies (impulsive moves).
🔹 Reading the Cloud
◇ Bull cloud (default teal) = current HA candle is bullish (haClose ≥ haOpen).
◇ Bear cloud (default red) = current HA candle is bearish (haClose < haOpen).
◇ A long sequence of same-color HA candles indicates strong directional pressure; mixed colors or doji-like HA candles indicate consolidation or pivot zones.
◇ Cloud density (opacity): denser fills mark bars with above-average body — pay attention to these zones, they often correspond to ignition or capitulation phases.
◇ Anomaly dots: when a dot appears below a bull bar or above a bear bar, the bar's body is 3× the recent average — exceptional impulse worth contextualizing against your other signals.
🔹 Reading the HUD
◇ Direction row: parse the current HA candle's directional state at a glance.
◇ Streak row: |streak| ≥ 7 → trend is mature, increasing probability of mean reversion or pullback. Streak just flipped sign → fresh direction.
◇ Avg Body row: current bar body > 3× this value → impulsive expansion or capitulation, worth investigating contextually.
🔹 Tactical Reading
◇ HA color flip + confirmation on the underlying candle: potential trend reversal or pullback entry.
◇ HA streak crosses the exhaustion threshold while price approaches a key level (from another indicator or manual S/R): increased probability of structural reaction.
◇ Body anomaly during otherwise quiet conditions: impulsive move (often news-driven or stop-cascade) — trade with reduced size or wait for retest.
◇ Cluster of dense-opacity bars: regime change or ongoing impulsive move — momentum is structurally elevated.
🔹 Multi-Indicator Workflow
The HA Cloud Overlay is designed to layer cleanly with other indicators. It does not add lines or boxes that compete visually with structural indicators (VWAP, Volume Profile, S/R). The cloud sits behind the candles, the markers are minimal dots, and the HUD sits in a corner — total chart footprint is minimal.
INPUTS EXPLAINED
🔹 System Language
Display language for the HUD and alert messages. Options: English (default), Português, Español, Русский, 中文.
🔹 Show Cloud Envelope
Master toggle for the HA top-bottom envelope and fill.
🔹 Cloud Fill Transparency
Base alpha of the cloud fill (60 = denser, 95 = barely visible). Floor of 60 keeps candle wicks readable. Default 80. When Body Intensity Modulation is ON, this value is the baseline; bars with above-average body intensity become progressively more opaque from this baseline.
🔹 Show HA Midline (dots)
Optional thin dotted line at (haOpen + haClose) / 2.
🔹 Use Custom Cloud Colors
OFF: native PulseWire teal/red. ON: apply custom bull/bear colors below.
🔹 Custom Bull Color / Custom Bear Color
Used when "Use Custom Cloud Colors" is ON.
🔹 Body Intensity Cloud Opacity
When ON: cloud fill becomes progressively more opaque on bars with above-average body size. When OFF: cloud uses fixed transparency from the slider above. Recommended ON.
🔹 Show Body Anomaly Markers
When ON: small colored dots appear on bars whose body exceeds 3× the 20-period average. Independent of the body anomaly alert.
🔹 Show HA State HUD
Toggle for the corner HUD reporting Direction / Streak / Avg Body.
🔹 HUD Position
Top Right (default), Top Left, Bottom Right, Bottom Left.
🔹 Font Size
Tiny, Small (default), Normal, Large, Huge.
🔹 Streak Warning Threshold
Streak length at which the Streak Exhaustion alert fires. Range 3–30, default 7.
🔹 Alert: HA Direction Change / HA Streak Extreme / HA Body Anomaly
Independent toggles for each of the three alert types.
IMPORTANT NOTES
The Heikin Ashi Cloud Overlay works on any timeframe and any instrument. The HA computation is timeframe-agnostic — it transforms whatever OHLC data the chart provides.
Alerts fire once per confirmed bar. Historical bars never repaint after they close. The live bar updates intra-bar as expected for a real-time indicator, but alerts will only fire after the bar closes. Body anomaly visual markers can update intra-bar (preview behavior) and settle on close.
The body anomaly threshold (3× rolling average) and streak warning threshold (default 7) are derived from empirical observation across common timeframes and instruments. Both are user-configurable and should be tuned to the trader's instrument and timeframe — high-volatility crypto on 1m may warrant a higher anomaly multiplier than large-cap equities on Daily.
The 20-bar body rolling average uses `ta.sma` of the percentage-based body size. The first 20 bars after script start will show partial values; once enough history is available, the value stabilizes.
The body intensity modulation tier floors (50, 30, 20) are calibrated to preserve candle wick readability even on extreme anomaly bars — the floor 20 ensures the cloud never becomes fully opaque.
Pine Script v6. Open-source under Mozilla Public License 2.0.
UNIQUENESS
The Heikin Ashi Cloud Overlay differs from the standard PulseWire Heikin Ashi chart type and from other HA-based indicators in four structural ways.
First, it preserves both views simultaneously rather than replacing one with the other. Standard HA chart mode hides the real candles entirely; this overlay keeps the underlying candles visible at all times, giving traders smoothed trend context (the cloud) and precise entry-bar timing (the underlying candles) in the same visual without context-switching cost.
Second, the cloud fill opacity is dynamically modulated by body intensity relative to a 20-bar rolling average. Standard HA cloud indicators render fills with a single static transparency; this script renders impulsive bars (≥1×, ≥2×, ≥3× average body) with progressively more opaque fills, transforming the cloud from a static visualization into a momentum-aware density map. Capitulation, ignition, and impulsive expansion phases become visually identifiable peripheral signals.
Third, it adds an explicit state machine layer over the raw HA visualization. Direction tracking, consecutive streak counting, 20-bar rolling body-size anomaly detection, and on-chart visual anomaly markers convert the visual cloud into a numerical readout reported live on a corner HUD. This converts subjective visual estimation (is this a long streak? is this body unusually large?) into deterministic measurements with configurable thresholds and a persistent visual record on the chart history.
Fourth, it exposes three independently-toggleable alerts (direction change, streak exhaustion, body anomaly) gated by bar confirmation, making the indicator usable as a confirmation filter or trigger source in automated workflows. Most HA-based indicators are visualization-only or expose a single direction-flip alert; the multi-condition alert set here is designed for traders building structured rules around HA state rather than just observing it.
The combination of dual-view preservation, body-intensity opacity modulation, state machine readout, visual anomaly markers, and multilingual UI produces a single overlay that combines the readability of Heikin Ashi smoothing with the precision of real candles, the rigor of a deterministic state readout, and the visual intuition of a density-aware momentum map. Indicator

Indicator

Trading Rules ChecklistA simple and clean trade entry checklist for disciplined traders. The indicator displays a table with your trading rules — each rule can be toggled on or off directly from the settings. Once the required number of rules are met, the chart background turns green and the table shows "VSTUP" (Entry). If the conditions are not met, the background stays red showing "NEVSTUPUJ" (No Entry).
Features:
7 toggleable trading rules (default: VWAP, CVD, FIBO, Break, PDPOC, WPOC, POC)
Each rule can be renamed to match your own trading strategy
Configurable minimum number of rules required for entry (default: 3 out of 7)
Full-chart color background — green = entry confirmed, red = wait
Adjustable table position (4 corners of the chart)
Background colors fully customizable via the Style tab
How to use:
Before every trade, go through your checklist and toggle the rules that are currently met. The indicator will visually confirm whether you have enough confluences to enter the trade — helping you stay consistent and avoid impulsive decisions.
Works best with: VWAP, Volume Profile, CVD, Fibonacci retracements and trendline analysis. Indicator

VIX Risk Territory + VIX Z-Score | Astral Vision VIX Risk Territory + VIX Z-Score | Astral Vision 🌠💠
This indicator plots the CBOE Volatility Index on any chart with two analytical modes: a raw VIX view that highlights when the index is in historically elevated territory, and a Z-Score normalized view that measures how statistically extreme the current VIX reading is relative to its own rolling history. The VIX measures the implied volatility of S&P 500 options over the next 30 days and is widely used as a proxy for market fear and risk appetite across all asset classes including Bitcoin, which historically peaks in volatility during the same macro stress events that drive the VIX higher.
Calculation ⚙️
The VIX is fetched from FRED on a daily timeframe. In Raw VIX mode, the index is plotted directly against a configurable overbought threshold, with a fill highlight when the VIX is above that level. The threshold default of 30 corresponds to the widely referenced boundary between normal market volatility and elevated fear regimes: VIX readings above 30 have historically coincided with financial stress events, equity drawdowns, and Bitcoin corrections.
In Z-Score mode, the VIX is normalized as: Z = (VIX - SMA(VIX, N)) / StDev(VIX, N), where N is a configurable rolling lookback window. This transforms the raw VIX level into a dimensionless measure of how far the current reading sits above or below its own historical mean in units of standard deviations. The Z-Score is more analytically useful than the raw level in two respects. First, the VIX has a secular baseline that shifts over time: a reading of 20 meant different things in 2007 versus 2017 versus 2022. The Z-Score adjusts for this drift by always measuring relative to the recent rolling distribution. Second, the Z-Score allows direct comparison of VIX extremes across different regimes: a +2σ reading is always a statistically rare event regardless of the absolute VIX level at the time.
Configurable overbought and oversold thresholds on the Z-Score identify statistically extreme fear and complacency readings. Elevated positive Z-Scores (VIX spiking far above its recent norm) have historically corresponded to capitulation events and macro bottoms. Negative Z-Scores (VIX compressed far below its norm) have historically corresponded to complacency phases that precede corrections.
Plots 📊
Raw VIX line with overbought threshold and fill when above threshold (Raw VIX mode)
Z-Score oscillator with overbought and oversold threshold lines and fill above the upper threshold (Z-Score mode)
Candle coloring or background color on the price chart reflecting current VIX regime, switchable between the two display styles
Inputs 🎛️
Mode: Raw VIX or Z-Score
OB Threshold (Candle): raw VIX level above which fear territory is signaled
OB Threshold (Z-Score): upper Z-Score extreme level
OS Threshold (Z-Score): lower Z-Score extreme level
Z-Score Length: rolling window for mean and standard deviation normalization
Chart Visualization: switch between candle coloring and background color on the price chart
Colors 🎨
5 Astral Vision presets + custom override plus a configurable neutral color. Default: Infinito.
Purpose 🎯
Most crypto-native indicators track on-chain or market structure data without any reference to the macro fear environment. The VIX provides a cross-asset context layer: Bitcoin's largest drawdowns have almost all occurred during periods of elevated macro fear that were visible in the VIX before or during the move. Adding VIX regime context to any Bitcoin chart allows traders to distinguish between Bitcoin-specific corrections and systemic risk-off events, which typically require different responses. The Z-Score mode further improves on the standard practice of using fixed VIX thresholds by adapting the extreme zone definition to the current volatility regime of the VIX itself.
Disclaimer ⭕️
This indicator is for informational and educational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always do your own research before making investment decisions. Indicator

Bitcoin Production Cost | Astral Vision Bitcoin Production Cost | Astral Vision 🌠💠
This indicator estimates the real-world cost of producing one Bitcoin by modeling the energy expenditure of the mining network from on-chain data, then divides by the daily coin issuance to express that cost in USD per BTC. The result is a fundamental price floor reference: sustained trading below the cost of production is historically short-lived because unprofitable miners shut down, reducing hash rate, reducing difficulty, and eventually restoring profitability for those who remain.
Calculation ⚙️
The hash rate is fetched from Glassnode in exahashes per second and converted to terahashes per second. The energy consumption of the network per day is then estimated as: kWh per day = hash rate (TH/s) × efficiency (J/TH) × 86,400 seconds per day / 3,600,000 joules per kWh. This converts the product of hash rate and energy per hash into kilowatt-hours of electricity consumed daily by the entire network.
The hardware efficiency parameter is set dynamically by era rather than using a single static value. Each major mining hardware generation is assigned an approximate efficiency in joules per terahash: 2,000 J/TH before 2014 (early GPU and first-generation ASICs), declining through 800, 500, 250, 100, 85, 55, 40, and 32 J/TH at successive epoch boundaries, with the user-configurable current efficiency applied to recent and future bars. This epoch-based schedule reflects the documented progression of ASIC hardware efficiency over Bitcoin's mining history.
The electricity price is similarly segmented by era, reflecting the documented geographic concentration of mining: a configurable pre-2019 rate for the early period, a lower configurable rate for the Chinese dominance era before the 2021 mining ban, and a configurable post-exodus rate for the current globally distributed mining landscape.
The daily BTC reward available to miners is computed as 144 blocks per day multiplied by the current block subsidy, derived from the block height using the halving schedule, plus daily transaction fees in BTC converted from the CoinMetrics USD fee data. This sum is smoothed with a 7-day SMA to reduce the noise from day-to-day block count variation.
The electricity cost per BTC is then: (kWh per day × electricity price) / daily reward in BTC. This represents what miners spend on electricity alone to produce one Bitcoin. The total production cost divides the electricity cost by the electricity percentage of total costs (default 60% based on CBECI methodology), adding the implicit cost of hardware amortization, facilities, and operations.
The Miner Price is a separate reference: current Bitcoin price plus the USD value of transaction fees per BTC, representing the effective revenue miners receive for each coin equivalent produced. When Miner Price exceeds Total Cost, mining is profitable; when it falls below, miners are operating at a loss.
Plots 📊
Electricity Cost per BTC with glow effect (toggleable)
Total Production Cost per BTC with glow effect (toggleable)
Miner Price with glow effect (toggleable)
Fill between Electricity Cost and Total Cost
Information table with current values for all key metrics: electricity cost, total cost, miner price, BTC price, price-to-total-cost ratio, efficiency, electricity rate, electricity percentage, and block subsidy
Inputs 🎛️
Electricity $/kWh for three historical eras: pre-June 2019, pre-May 2021, and post-May 2021
Electricity percentage of total costs: used to gross up electricity cost to total production cost
Efficiency J/TH: applied to recent and future bars, historical values are set automatically by epoch
Show Electricity Cost, Total Production Cost, Miner Price: individual toggles
Glow effect and info table toggles
Table position: four corner options
Colors 🎨
5 Astral Vision presets + custom override. Default: Infinito.
Purpose 🎯
Standard support and resistance tools are derived entirely from price history and have no connection to the economic reality of Bitcoin production. This indicator derives its reference levels from the physical cost of mining, making it independent of price action and structurally grounded in the economics of the network. The price-to-total-cost ratio in the table provides an immediate reading of how far current price sits above or below break-even for miners, which has historically been one of the most reliable macro cycle indicators available on-chain.
Disclaimer ⭕️
This indicator is for informational and educational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always do your own research before making investment decisions. Indicator

Miner Profitability Index | Astral Vision Miner Profitability Index | Astral Vision 🌠💠
This indicator constructs a measure of Bitcoin miner profitability per unit of mining difficulty, then applies Z-Score normalization in log space to quantify how statistically extreme current profitability conditions are relative to their own history. Miner profitability is a structurally important on-chain signal because miners are one of the few participants with predictable and measurable cost structures: when profitability collapses, miners are forced to sell reserves to cover operational costs, creating persistent sell pressure; when profitability is exceptionally high, miners tend to accumulate and expand capacity, which historically precedes periods of increased hash rate and eventually difficulty adjustment that compresses margins back toward equilibrium.
Calculation ⚙️
The daily miner revenue in USD is computed from three components: the number of blocks mined that day (computed as the difference between consecutive daily block height readings from Glassnode), the block subsidy in BTC (derived from the block height using the halving schedule: 50 BTC before block 210,000, halving at each subsequent 210,000-block interval), and the current Bitcoin price in USD. The formula is: miner revenue = blocks per day × block reward × BTC price.
This revenue figure is then divided by the current mining difficulty to produce the efficiency ratio: miner revenue / difficulty. Difficulty represents the computational work required to mine a block and serves as a proxy for the aggregate energy and capital expenditure of the mining network. Dividing revenue by difficulty produces a measure of how many dollars miners earn per unit of computational difficulty, normalizing for the expanding size of the mining network over time. Without this normalization, absolute revenue would grow indefinitely simply due to price appreciation and hash rate expansion, making historical comparisons meaningless.
The efficiency ratio is smoothed with a configurable EMA to reduce the noise introduced by day-to-day variation in block count. The natural logarithm is then taken before applying the Z-Score, which is necessary because the efficiency ratio follows an approximately log-normal distribution: in raw space it would be heavily right-skewed, making the standard deviation an unreliable measure of typical deviation. In log space the distribution is much more symmetric and the Z-Score thresholds carry consistent statistical meaning across all periods.
The Z-Score is computed as: (log(efficiency) - SMA(log(efficiency), N)) / StDev(log(efficiency), N), where N is the configurable lookback window. This expresses how many standard deviations the current log-efficiency sits above or below its rolling historical mean. Two pairs of thresholds define moderate and severe extreme zones on each side.
Plots 📊
Z-Score oscillator colored by zone: two upper levels and two lower levels with graduated opacity
Two upper and two lower threshold lines
Zero midline
Fill highlights when Z-Score is beyond the outer thresholds
Static zone fills between inner and outer thresholds on both sides
Background color on the price chart with four gradient levels reflecting zone severity
Inputs 🎛️
Z-Score Lookback: rolling window for mean and standard deviation normalization
Smoothing: EMA period applied to the raw efficiency ratio before log transformation
Upper Z 1 and Upper Z 2: configurable inner and outer upper threshold levels
Lower Z 1 and Lower Z 2: configurable inner and outer lower threshold levels
Colors 🎨
5 Astral Vision presets + custom override. Default: Futura.
Purpose 🎯
Standard miner revenue charts display absolute USD earnings, which grow indefinitely with price and provide no statistical context for whether current conditions are extreme or normal. Dividing by difficulty removes the network size effect, and normalizing with a Z-Score in log space makes readings directly comparable across all market cycles including early periods when absolute revenue was tiny. The dual threshold system separates mild deviations from statistically severe conditions, providing a more granular signal than a single overbought/oversold level.
Disclaimer ⭕️
This indicator is for informational and educational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always do your own research before making investment decisions. Indicator

Whale Accumulation Index | Astral Vision Whale Accumulation Index | Astral Vision 🌠💠
This indicator tracks the proportion of Bitcoin's total on-chain transaction volume attributable to large transactions, using CoinMetrics data to separate whale-scale activity from retail-scale activity, then applies two different analytical lenses to that ratio to identify when large holders are accumulating or distributing at statistically unusual rates.
Calculation ⚙️
The base input is the ratio of large transaction volume to total transaction volume in USD, both fetched from CoinMetrics on a daily timeframe. Large transaction volume measures the aggregate USD value of all on-chain transactions above a defined size threshold, while total transaction volume covers all on-chain activity. Dividing the two produces a ratio between 0 and 1 that measures what fraction of all Bitcoin moved on-chain each day was moved by large participants. A rising ratio means whale activity is growing as a share of total network flow; a falling ratio means retail activity is proportionally dominant. This ratio is smoothed with a configurable SMA before all subsequent calculations.
The indicator offers two modes that address different analytical questions.
Z-Score mode normalizes the smoothed ratio against its own rolling mean and standard deviation over a configurable lookback window. The formula is: Z = (ratio - mean(ratio, N)) / stdev(ratio, N). This produces a reading that measures how statistically unusual the current whale dominance level is relative to its own history. A positive Z-Score means whale share of volume is elevated above its historical norm; a negative Z-Score means it is depressed. The thresholds mark the statistically extreme zones where readings have historically been rare.
Conviction mode computes a divergence signal between whale momentum and price momentum. For each series, the rate of change over a configurable lookback is computed as (current - past) / abs(past), producing a proportional momentum measure. Both the price ROC and the whale ratio ROC are then independently Z-Score normalized, and the conviction signal is the difference: whale Z-Score minus price Z-Score. A positive conviction reading means whale activity is accelerating faster than price, historically associated with accumulation ahead of price moves. A negative reading means price is running ahead of whale activity, historically associated with distribution or weak institutional participation in the current price move.
Plots 📊
Main oscillator in Z-Score or Conviction mode, colored by threshold zone
Overbought and oversold threshold lines
Fill highlight when oscillator enters either extreme zone
Background color on the price chart when oscillator is in extreme zones
Inputs 🎛️
Mode: Z-Score or Conviction
OB Threshold Z-Score and Conviction: configurable upper extreme levels per mode
OS Threshold Z-Score and Conviction: configurable lower extreme levels per mode
Z-Score Window: normalization lookback for both modes
Smoothing: SMA period applied to the raw whale ratio before calculations
Conviction ROC Length: lookback for the rate of change in Conviction mode
Colors 🎨
5 Astral Vision presets + custom override. Default: Inferno.
Purpose 🎯
Standard volume indicators measure total on-chain or exchange volume without distinguishing between the size of individual transactions, treating a single $100 million transfer the same as ten thousand $10,000 transfers in aggregate volume terms. This indicator isolates the large-transaction component specifically, making it possible to detect when whale-scale capital is disproportionately active on-chain relative to its historical baseline. The Conviction mode adds a second dimension by measuring whether whale activity is leading or lagging price, separating periods where large holders are front-running price moves from periods where they are simply responding to them.
Disclaimer ⭕️
This indicator is for informational and educational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always do your own research before making investment decisions. Indicator

Minervini Must Conditions Here's the full description:
Mark Minervini's Trend Template Screener
⚠️ Disclaimer: This indicator is for educational and informational purposes only. It is NOT a buy, sell, or hold recommendation. Always do your own research and consult a SEBI-registered financial advisor before making any investment decisions. Past performance does not guarantee future results.
What is this?
This indicator automates Mark Minervini's famous Trend Template — a checklist he uses to identify stocks in a confirmed Stage 2 uptrend before they make big moves. Minervini is a U.S. Stock Champion (1997) and author of Trade Like a Stock Market Wizard.
The 9 Conditions & Why They Matter:
CMP > 50 MA — Price is above its short-term average. This confirms immediate bullish momentum. If price can't hold above 50 MA, short-term sellers are in control.
CMP > 150 MA — Price is above intermediate trend. This filters out stocks that may have bounced short-term but are still in a broader downtrend.
CMP > 200 MA — Price is above the long-term average. Institutional investors watch 200 MA closely. Trading above it signals big money is supportive.
50 MA > 150 MA — Short-term trend is stronger than intermediate. This means recent buying pressure is accelerating, not fading.
50 MA > 200 MA — Short-term trend leads long-term. Confirms the stock isn't just surviving — it's outperforming its own history.
150 MA > 200 MA — Intermediate trend leads long-term. This is the structural backbone. When this flips bullish, it signals a genuine trend shift, not just a bounce.
200 MA trending up (1 month) — The slowest moving average is rising. This is the hardest condition to fake. A rising 200 MA means sustained accumulation over months.
Within 25% of 52-week high — Stock is near its highs. Minervini avoids "fallen angels" trading far from highs. Stocks near highs have less overhead resistance (trapped sellers) and more momentum.
>25% above 52-week low — Stock has moved significantly off its lows. This eliminates bottom-fishers and ensures the stock has already proven buyer interest with a strong base breakout.
Why all 9 together?
Any single condition can give false signals. A stock above 50 MA might still be in a long-term downtrend. A stock near 52-week highs might have collapsing moving averages. Minervini's genius is stacking all 9 — when every condition aligns, you're looking at a stock where short-term, intermediate, and long-term trends are all bullish, momentum is accelerating, and the price structure confirms institutional accumulation. This drastically reduces the universe of stocks to only the strongest candidates.
How to use:
✓ = condition passed, ✗ = condition failed
All 9 must show ✓ for a stock to qualify
Supports EMA/SMA toggle
Daily timeframe only
Table size and position adjustable
This is a screening tool, not a trading signal. Use it to build your watchlist, then apply your own entry/exit strategy, risk management, and position sizing.
© financetalkswithaman Indicator

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

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

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