Buy Sell Badge with DMI & ADX by ByblloBuy Sell Badge with DMI & ADX generates Buy/Sell badges from a Fast/Slow EMA crossover, then automatically manages an ATR-based stop loss and risk:reward take profit for every signal.
On top of the base EMA signal, you can layer in two independent trend-strength filters:
- DMI filter: confirms the signal with a DI+/DI- crossover near the same bars (with an optional "ADX Rising" requirement)
- ADX filter: confirms the signal with an upper or lower ADX threshold zone (each zone with its own optional "ADX Rising" requirement)
Enable either filter alone, both together for the strictest "DUAL BUY/SELL" confirmation, or neither for the raw EMA signal.
INTENDED USE
Built for short-term futures scalping - Nasdaq futures, KOSPI200 futures, and similar instruments. Primarily designed and tested on the 1-minute chart, but the EMA/ATR/DMI/ADX logic is timeframe-agnostic and works well on 2, 3, and 5-minute charts and other intraday timeframes too. When switching timeframe or instrument, re-check the SL Multiplier, Risk:Reward, and Alert Sensitivity (Points) inputs, since typical point moves and ATR scale with the timeframe.
FEATURES
- Fast/Slow EMA crossover base signal with optional candle confirmation
- ATR-based stop loss and R:R-based take profit with intermediate TP levels
- Independent DMI and ADX confirmation filters, each with its own length and thresholds
- "ADX Rising" toggles on each filter zone (DMI, ADX upper, ADX lower) for extra momentum confirmation
- Automatic entry invalidation on opposite signals
- Live position table (entry / stop / take profit / current R:R)
- Full alert set: BSB, BSB+DMI, BSB+ADX, BSB+DMI+ADX, TP hit, SL hit, invalidated
- Works on any chart type (candlestick, Heikin Ashi, Renko, etc.) since prices are pulled via request.security() from the underlying ticker
This is a visual/alerting tool only - it does not place real orders. For educational and informational purposes only, not financial advice. Always backtest and forward-test before using with real capital. Indicator

Edge Profiler - Self-Learning Signal StatisticsAlmost every indicator answers one question: when should I enter. Edge Profiler answers the two questions that actually decide whether an entry is tradable: how far did this exact setup historically go against me before it resolved, and how long did it usually take.
It does that by keeping a record of its own signals on the symbol and timeframe you have open, and turning that record into a stop distance, a target and an expected holding time.
WHAT IT MEASURES
For every signal it has ever produced on the current chart, the script stores four numbers:
MAE, Maximum Adverse Excursion. How far price travelled against the signal before the signal resolved, measured in ATR units so the value is comparable across symbols and volatility regimes.
MFE, Maximum Favourable Excursion. How far price travelled in favour, in the same units.
Duration. How many bars the signal remained the active one.
Outcome. The signal-to-signal return, again in ATR units.
The last N signals are kept, older ones are dropped, so the statistics describe the current regime rather than a market that no longer exists. The sample size is adjustable.
WHAT IT DERIVES
Data Stop. Entry minus the 80th percentile of historical MAE, times the ATR at entry. Read plainly, this is a stop level that 80 percent of past signals on this chart never reached. The percentile is adjustable, so 90 gives a wider and safer stop, 70 a tighter and more aggressive one.
Data Target. Entry plus the median historical MFE. A level that half of past signals reached before resolving. Also adjustable by percentile.
Expected duration. The median bar count of past signals. The panel shows the age of the open signal as a percentage of that median, which flags a move that has already outlived what this setup normally delivers.
Expectancy. The average signal-to-signal return in ATR units. Positive means the engine has historically produced more favourable resolution than adverse on this chart. Negative is a warning, and it is deliberately shown rather than hidden.
Win rate. The share of stored signals whose signal-to-signal return was positive.
WHY EXCURSION STATISTICS AND NOT A BACKTEST
A backtest tells you what a complete rule set produced, and it is only as honest as its exit assumptions. Excursion statistics measure something narrower and more robust: the shape of the move that follows a trigger, independent of any exit rule. That makes the numbers usable no matter how you personally manage the trade. If the median adverse excursion on this chart is 0.4 ATR and you are risking 0.15 ATR, the data is telling you the stop is inside the noise, and no entry technique will fix that.
BRING YOUR OWN SIGNAL
Three transparent entry engines are included, and the statistics profile whichever one is selected:
Volatility Trail. An ATR trailing stop that flips direction when price closes through it. Default.
EMA Cross. Close crossing a single exponential moving average.
Donchian Breakout. Close breaking the highest high or lowest low of the last N bars.
Switching the engine reprofiles everything from scratch on the same chart, which makes it easy to see which of the three has the cleaner statistical footprint on the instrument you actually trade. Two engines with the same win rate can have very different adverse excursion, and that difference is what decides whether a stop survives.
ON THE CHART
Entry line, Data Stop line and Data Target line for the currently open signal.
Shaded risk zone between entry and stop, reward zone between entry and target.
Triangles at each signal.
Bars tinted by the active signal direction.
A panel with the full statistics and the live state of the open signal, including its running MAE and MFE so you can see in real time whether the current move is behaving like its own history or not.
ALERTS
Long signal.
Short signal.
Open signal has moved further against entry than the historical stop percentile.
Open signal has outlived the median duration.
SETTINGS THAT MATTER
Entry Engine. Which signal gets profiled.
Sample Size. How many past signals are kept. Smaller adapts faster and is noisier, larger is more stable and slower to react to a regime change.
Minimum Sample. Statistics stay hidden below this count instead of showing numbers built on four observations. Default 15.
Stop Percentile. The single most consequential setting. It is the trade-off between stop survival and risk size.
READING IT HONESTLY
These are descriptive statistics of past signals on one chart. They are not a forecast and they carry no guarantee. A sample of 20 signals is a hint, not evidence. Statistics drawn from a trending period will misprice risk the moment the market goes sideways, and the percentile you choose is an assumption about how much you are willing to be wrong before you are stopped. Load enough history for the sample to fill, check that expectancy is positive before you take the levels seriously, and treat a negative expectancy reading as the script telling you this engine has no edge here.
This is an analysis tool, not financial advice, and not a trading system on its own. Use it with your own risk management and position sizing. Past behaviour of any method does not guarantee future results. Indicator

Buy Sell Badge with ADX by ByblloOVERVIEW
This indicator generates Buy/Sell badges from a Fast/Slow EMA crossover (the "BSB" signal), then automatically manages an ATR-based stop loss and a risk:reward-based take profit for each signal, showing the resulting entry/stop/target levels directly on the chart along with a live status table. On top of the EMA-based signal, an optional ADX strength filter can be enabled: when turned on, a badge is only shown if ADX (Welles Wilder's Average Directional Index, a well-established public trend-strength measure) is either at/above an upper threshold or at/below a lower threshold at the time of the signal.
This ADX filter is fundamentally different in what it measures compared to a DMI-crossover style filter (as used in this author's companion script "Buy Sell Badge with DMI"): a DMI crossover filter asks "did the directional balance between buyers and sellers just flip?", while this ADX-threshold filter asks a completely separate question - "is the market currently trending strongly, or is it currently flat/range-bound?" - without caring about any recent direction change at all. A market can be in the middle of a strong, established uptrend (high ADX, no fresh DI crossover) or can just be exiting a range with an unclear trend (low ADX, but possibly a fresh DI crossover). Because these two filters answer genuinely different questions about market state, they are published and maintained as two separate, focused tools rather than merged into a single script with an ever-growing list of unrelated filter options - each remains simple enough to reason about and tune on its own. Position management (entry, stop loss, take profit, invalidation) always runs on the underlying EMA "BSB" signal regardless of the ADX filter; the ADX filter only controls whether a badge and the accompanying risk-management lines are displayed for that signal.
CALCULATION METHOD
The BSB signal itself comes from a Fast EMA and Slow EMA crossing (with an optional requirement that the current candle also closes beyond its open in the signal direction, for extra confirmation).
ADX is calculated using Wilder's classic Directional Movement System: True Range, +DM and -DM are computed from real market high/low/close values, smoothed using Wilder's running-smoothing method (SmoothedX = PreviousSmoothedX - PreviousSmoothedX/Length + CurrentValue), then DI+ and DI- are derived from the smoothed values, DX from the normalized difference between DI+ and DI-, and ADX as a moving average of DX - representing overall trend strength regardless of direction.
Stop loss is placed at ATR * multiplier beyond the signal bar's high/low; take profit is derived from the resulting risk multiplied by your chosen Risk:Reward ratio, with intermediate take-profit levels plotted when Risk:Reward is greater than 1.
KEY FEATURES
Fast/Slow EMA crossover generates the base Buy/Sell signal, with an optional candle-confirmation requirement (close beyond open in the signal direction).
Automatic ATR-based stop loss and configurable Risk:Reward take profit are calculated for every new signal, with intermediate take-profit levels plotted when Risk:Reward is greater than 1.
Optional "BSB + ADX" filter: a badge is only shown when ADX is at or above an upper threshold, OR at or below a lower threshold, at the time of the EMA signal. This lets you badge-filter for either strong-trend conditions (ADX high) or quiet/ranging conditions (ADX low), while suppressing badges in the ambiguous middle zone.
On-chart entry / stop-loss / take-profit lines and an SL distance (in points) label, both toggleable and only shown while a badge has actually been displayed for the active position.
Take-profit, stop-loss, and "invalidated" (opposite signal fired before target/stop was hit) markers are plotted separately so you can see exactly how each trade idea played out.
A live status table (top-right) shows the current position, entry, stop loss, take profit, and realized Risk:Reward.
Real-price calculation: prices and ATR are pulled via request.security() against the plain ticker, so signals stay consistent whether your chart is displaying candlesticks, Heikin Ashi, Renko, or any other non-standard chart type.
A full set of alertcondition() calls for Buy/Sell signals, take-profit hits, stop-loss hits, and invalidated entries.
HOW TO USE
Leave "BSB + ADX" unchecked to use the EMA crossover badges on their own, with no ADX-based filtering.
Check "BSB + ADX" and set the upper/lower thresholds to only badge signals that occur when ADX confirms your preferred market regime - for example, set a high upper threshold to badge only strongly trending breakouts, or a low lower threshold to badge only signals from quiet, low-ADX conditions.
Watch the on-chart entry/SL/TP lines and the status table to track an open idea's risk and progress in real time.
Set up alerts on the "Buy/Sell Signal", "Entry Signal", "Take Profit Hit", "Stop Loss Hit", or "Entry Invalidated" conditions depending on which events you want to be notified about.
NOTES
Unlike a DMI golden-cross / dead-cross confirmation filter (see "Buy Sell Badge with DMI by Bybllo"), this version filters purely on the ADX strength value itself (above an upper threshold or below a lower threshold), without checking DI+/DI- direction at all - the two are independent, differently-purposed filters kept as separate scripts rather than combined into one.
Stop-loss and alert-sensitivity offsets are point-based and will need adjusting per instrument (see the tooltips on those inputs).
This indicator does not place real orders; it is a visual / alerting tool for tracking a rules-based EMA (optionally ADX-filtered) trade idea. Indicator

Quantile Threshold Bands | NickJoanQuantile Threshold Bands | NickJoan
Core Idea
Quantile Threshold Bands measures the position of price within a lookback window and uses that information to define adaptive upper and lower threshold bands. The script calculates two percentile levels from a user-defined lookback window and uses them to classify the current source value as bullish or bearish.
When the price moves above the upper quantile, the indicator turns bullish. When the price moves below the lower quantile, it turns bearish. When it returns inside the band area, the script keeps the last active state until the opposite threshold is crossed again. This gives the indicator a persistent regime structure.
Calculation Logic
The indicator works through three steps:
Source selection.
- The user chooses the price series to analyze.
Quantile calculation.
- The script looks back over a chosen number of bars.
- From that window, it calculates a lower quantile band and an upper quantile band.
- These values are obtained with a nearest-rank percentile calculation.
State assignment.
- If the source is above the upper band, the state becomes bullish.
- If the source is below the lower band, the state becomes bearish.
- If the source is between the bands, the previous state remains active.
What the Bands Mean
The lower and upper bands represent the selected percentile levels inside the recent price window.
The lower band marks a lower threshold within recent price behavior.
The upper band marks a higher threshold within recent price behavior.
The area between them defines the central zone where price is neither breaking upward nor downward.
Because the levels are recalculated on every bar, they adjust as the market changes. The result is a dynamic set of thresholds that follow the market’s own recent distribution.
Chart Output
The script displays four visual elements on the chart:
Lower Quantile line.
Upper Quantile line.
Filled zone between the two bands.
Colored candles showing the active state.
The color logic is:
Aqua when the regime is bullish.
Olive when the regime is bearish.
No color yet before the first valid state is established.
The output is designed to make the current state readable at a glance.
Inputs
The indicator has four primary inputs:
Source - The series used in the quantile calculation.
Lookback - The number of bars used to build the rolling window.
Lower Quantile % - The percentile used for the lower band.
Upper Quantile % - The percentile used for the upper band.
The lower percentile must be smaller than the upper percentile.
Alerts
The script includes alerts for regime changes:
Long Signal - Triggers when the state turns bullish.
Short Signal - Triggers when the state turns bearish.
These alerts are designed to notify the trader when price breaks into a new regime.
How to Use It
This indicator can be used as a regime filter or market bias tool.
Typical use cases include:
Directional bias filter. Use the bullish state when price is above the upper quantile and the bearish state when price is below the lower quantile.
Threshold-based alerts. Use the long and short alerts to notify you when price breaks into a new percentile regime.
Range / compression read. The distance between the two bands can help show whether recent price action has been compressed or expanded. A narrow band zone suggests tighter recent movement, while a wider band zone suggests broader recent movement.
Trade filtering. Use it to decide whether to allow only long setups, only short setups, or no directional trades depending on regime.
Indicator

GreenStar ATR% Extension MonitorGreenStar ATR% Extension Monitor
The GreenStar ATR% Extension Monitor answers two questions in one window:
1) How volatile is the name? (14-period ATR as a percent of price)
2) How far has price stretched from a moving average, in relation to historical data?
Some names routinely stretch to 10-12x before mean-reverting. Others rarely clear 5x.
Scroll back on a daily chart to see extension habits for that symbol.
Why extension matters
Dollar distance from a 50-day MA does not compare a $15 name to a $400 name.
Dividing percent gain from the MA by ATR% provides a multiple of normal daily range.
That is the blue xFromMA line.
The green ATR% stepline shows the denominator: typical range relative to price.
These are separate formulas on the same pane and timeline to show correlation.
(It does not draw on the price chart.)
Two plots with independent calculations
ATR% (green stepline): 14-period ATR as a percent of price. Typical daily range relative to price level.
xFromMA (blue line): how many ATR% units price sits above or below the MA.
ATR% = ATR(14) / close x 100
xFromMA = ((close - MA) / MA x 100) / ATR%
Zero on xFromMA means price is at the MA.
A negative value indicates price is currently below the MA level.
Reading the pane
Both lines declining together often means the name is compressing toward the MA. Volatility and stretch easing at the same time.
Both rising means it's expanding.
Diverging slopes happen too.
xFromMA climbing while ATR% falls can mean price drifting from the MA while day-to-day volatility cools.
Read each line first, then note whether they agree.
Note: The lines share a pane for context, not because they combine into a signal.
A green/blue touch or cross is not a buy or sell event.
Visible-range markers (optional)
High, low, and mean for xFromMA are calculated from the visible bars on the chart.
There is no fixed lookback period.
They update on scroll or zoom, comparing current stretch to recent visible history.
The mean is the average xFromMA over those visible bars, not the midpoint between high and low.
Visible-range mean requires high/low lines enabled in the same settings group.
Optional zero line (dotted): xFromMA = 0, full width of the pane.
ATR% high/low bands exist too, off by default.
Settings
MA period (default 50)
MA type (default SMA)
ATR period (default 14)
Line colors and widths (default: dark green ATR%, blue xFromMA)
Zero line (default on)
High/low bands, xFromMA (default on)
Visible-range mean (default on)
ATR% high/low bands (default off)
Disclaimer
Context tool only. Not a signal, not financial advice. No entry or exit triggers. Past extension habits do not predict future price action.
Indicator

Advanced Volatility1. Normalized ATR (%) - The Blue Line
What it is: The standard Average True Range (ATR) divided by the current closing price.
Why it matters: It tells you exactly what percentage the asset moves on an average bar. If the nATR is 2.0%, you know the asset swings roughly 2% per candle. This is incredibly useful for setting dynamic stop losses and take profits that scale mathematically with the asset's price, rather than guessing arbitrary dollar amounts.
2. BB Width (%) - The Orange Line
What it is: The distance between the Upper and Lower Bollinger Bands, divided by the Middle Band.
Why it matters: This acts as a highly effective "Squeeze" proxy. Volatility is cyclical; it contracts, then it expands. When you see the Orange line drop to extremely low historical levels, it means the Bollinger Bands are pinching tight. This contraction indicates that energy is building up, and a massive breakout/expansion move is imminent.
3. Historical Volatility (%) - The Fuchsia Line
What it is: A strict statistical calculation heavily used in options pricing (often referred to as HV or Realized Volatility). It calculates the standard deviation of logarithmic returns over a period, and annualizes it (multiplying by √252 trading days).
Why it matters: It gives you the "true" statistical variance of the asset. A rising Fuchsia line means the market is becoming highly chaotic and unpredictable, while a falling line means the market is returning to a stable, directional grind.
By layering all three of these metrics on one panel, you can easily spot when a market has compressed to zero (all lines dropping near the Zero Base) right before a massive trend erupts! Indicator

Indicator

IV Rank & Percentile XVI (S&P/ASX200 VIX)Most IV Rank and IV Percentile indicators on PulseWire are built for the US VIX. This one is built specifically for XVI — the S&P/ASX 200 VIX (A-VIX) — so Australian index traders, and anyone trading XJO options, finally get the same volatility context without borrowing a US proxy. It reads straight off the published XVI value, so there's no option-chain reconstruction or estimation involved.
The core idea:
XVI is the ASX's "fear number" — the implied volatility of the XJO, the market's estimate of how much it's about to move over the next 30 days. The problem is that a raw XVI value is meaningless on its own. Is 16 high? Low? You can't know without context. This indicator's whole job is to give that context by answering one question: compared to its own recent history, is volatility currently rich, normal, or cheap?
The two ways it measures that:
IV Rank is the simple one. It looks at the highest and lowest XVI over your lookback window (a year by default) and asks where today sits on that line. XVI at its yearly low reads 0. At its yearly high, 100. Halfway between, 50. That's it — it's just "where in the range are we."
IV Percentile asks a slightly different question: of all the days in the window, what percentage had a lower XVI than today? If it reads 70, then vol is higher than it was on 70% of the past year's days. The reason this one's usually better is that IV Rank gets distorted by a single spike — one brief crash sets a sky-high "yearly high," and then every reading afterward looks artificially low against it for a whole year. Percentile doesn't have that problem because it counts days, so one freak day is just one day. That's why the regime label runs off Percentile by default.
The regime label:
This translates those 0–100 numbers into a single word so you don't have to interpret them each time. You set two thresholds — default 80 and 20. Above 80 it reads HIGH (vol is richer than most of the past year). Below 20, LOW (vol is cheap). Anything between, NORMAL. The thresholds are yours to move: if you think 80 is too strict and want it flagging "high" earlier, drop it to 70. The cutoffs define what you consider rich versus cheap. You can also switch whether the label reads off Percentile or Rank.
Live updating:
The ranking history is built from daily XVI closes (you want to rank against a year of daily data, not intraday noise), but the current reading floats live against that history. As XVI moves through the session, IV Rank, IV Percentile, and the regime word update with it rather than waiting for the daily close.
Settings:
Volatility index — defaults to ASX:XVI. Can be pointed at another volatility index if you want to reuse the tool elsewhere.
History timeframe — the bar size the ranking history is measured on. Daily is standard.
Lookback — how far back it ranks. 252 ≈ one year. Drop it to 90 or 60 for a tighter, more recent read; the long-window and short-window answers genuinely differ when the past year contains a stale spike, so comparing the two is useful.
Regime read from / High threshold / Low threshold — choose whether the label is driven by Percentile or Rank, and set the two cutoffs.
Display — plot the Percentile line on or off, and position the readout table in any corner.
Reading it:
The pane plots IV Rank (aqua) and IV Percentile (orange) on a 0–100 scale, with dashed guide lines at your high and low thresholds and a dotted midline at 50. The corner table shows the live XVI level alongside both readings and the current regime.
A note on the data: because XVI is a calculated index rather than a traded instrument, your reading is only as live as your XVI data feed. On delayed feeds it updates with that delay, which is still perfectly adequate for volatility-regime context.
This script is a volatility-context tool, not a trading system. It tells you where implied volatility sits relative to its own history; it does not generate buy or sell signals, and nothing here is financial advice. Indicator

Daily Return Z-Score / OutlierDaily Return Z-Score / Outlier
What this indicator does
Daily Return Z-Score / Outlier measures how unusual today's daily return is relative to the instrument's own historical return distribution. It converts the current return into a Z-Score (standard-deviation scale) and colours the bars according to whether the return sits in the normal range, a warning zone, or an extreme zone (fat-tail event).
The goal is to make statistical outliers visible — days on which the price move is materially larger than the recent history would suggest.
How it works
Data basis (daily context): Daily returns are sampled on the daily timeframe ("D") via request.security, independent of the chart timeframe currently displayed. This keeps the statistical reference consistent.
Return calculation: Either simple percentage returns (close − close ) / close or log returns ln(close / close ).
Distribution statistics over a rolling window (default: 252 trading days ≈ 1 year). Two methods are available:
MAD (robust): Median and median absolute deviation. Insensitive to individual extreme values. The Z-Score is computed as 0.6745 · (return − median) / MAD (scaled to the normal distribution).
Classic: Mean and standard deviation. Z = (return − mean) / stdev. More reactive to, and distorted by, extreme values.
Empirical percentiles: In addition to the Z-Score, warning and extreme thresholds are derived directly from the observed percentiles of the return distribution (e.g. 5% / 95% for warning, 1% / 99% for extreme). Bar colour follows these empirical percentiles rather than normality assumptions.
Live return: The running return is computed against yesterday's daily close, so the classification updates intraday as the current day develops.
Display
Histogram of the Z-Score on a common sigma scale.
Reference lines at 0, ±1, ±2 and ±3 sigma for visual orientation.
Live label showing the current Z-Score on the last bar.
Values table (optional, bottom-right) with Z-Score, band classification, selected method, today's return, the dispersion measure (MAD or stdev), warning/extreme thresholds, and the effective sample size.
Colour logic
Normal — return within the warning percentiles.
Warn + / − — return beyond the warning percentile.
EXTREME + / − — return beyond the extreme percentile (fat tail).
Settings
Method: MAD (robust) or Classic (mean/stdev).
Lookback (days): Length of the statistics window (5–1000).
Log returns: Log instead of percentage returns.
Warning percentile % and Extreme percentile %: Colouring thresholds.
Colours for bullish/bearish warning and extreme zones.
Show values table.
Alerts
Extreme outlier UP — daily return beyond the upper extreme percentile.
Extreme outlier DOWN — daily return beyond the lower extreme percentile.
Extreme outlier (both directions) — combined condition.
How to use it
The indicator helps highlight days with a statistically notable move — for example to add context to news days, to watch for volatility clustering, or as a filter alongside an existing strategy. The MAD method is recommended when the history contains isolated strong outliers.
Notes
A Z-Score measures how unusual a move is, not its direction as a forecast.
Significance depends on a sufficiently large sample (see the "Sample" field in the table).
This script is an analysis tool and does not constitute financial advice. Past distributions are no guarantee of future behaviour.
═══════════════════════════════════════
Daily Return Z-Score / Outlier — Deutsch
Was macht dieser Indikator?
Daily Return Z-Score / Outlier misst, wie ungewöhnlich der heutige Tages-Return im Vergleich zur eigenen historischen Verteilung des Wertpapiers ist. Der Indikator wandelt den aktuellen Return in einen Z-Score (Standardabweichungs-Skala) um und färbt die Balken danach ein, ob sich der Return im normalen Bereich, in einer Warn-Zone oder in einer Extrem-Zone (Fat-Tail-Ereignis) befindet.
Ziel ist es, statistische Ausreisser sichtbar zu machen — also Tage, an denen die Kursbewegung deutlich grösser ausfällt, als es die jüngste Historie nahelegt.
Wie es funktioniert
Datenbasis (Daily-Kontext): Über request.security werden die Tages-Returns auf dem Tages-Timeframe ("D") erhoben, unabhängig vom aktuell angezeigten Chart-Timeframe. So bleibt der statistische Bezug konsistent.
Return-Berechnung: Wahlweise einfache prozentuale Returns (close − close ) / close oder Log-Returns ln(close / close ).
Verteilungsstatistik über ein rollierendes Fenster (Standard: 252 Handelstage ≈ 1 Jahr). Zwei Methoden stehen zur Wahl:
MAD (robust): Median und Median-Absolutabweichung. Unempfindlich gegen einzelne Extremwerte. Der Z-Score wird als 0.6745 · (Return − Median) / MAD berechnet (skaliert auf die Normalverteilung).
Klassisch: Mittelwert und Standardabweichung. Z = (Return − Mean) / Stdev. Reagiert stärker auf Extremwerte und wird von diesen verzerrt.
Empirische Perzentile: Zusätzlich zum Z-Score werden Warn- und Extrem-Schwellen direkt aus den beobachteten Perzentilen der Return-Verteilung gebildet (z. B. 5% / 95% für Warnung, 1% / 99% für Extrem). Die Balkenfarbe richtet sich nach diesen empirischen Perzentilen, nicht nach Normalverteilungs-Annahmen.
Live-Return: Der laufende Return wird gegen den gestrigen Tages-Schluss berechnet, sodass die Einordnung schon während des laufenden Tages aktualisiert wird.
Anzeige
Histogramm des Z-Scores auf einer gemeinsamen Sigma-Skala.
Referenzlinien bei 0, ±1, ±2 und ±3 Sigma zur visuellen Orientierung.
Live-Label mit dem aktuellen Z-Score am letzten Balken.
Werte-Tabelle (optional, unten rechts) mit Z-Score, Band-Einstufung, gewählter Methode, heutigem Return, Streuungsmass (MAD bzw. Stdev), Warn-/Extrem-Schwellen sowie der effektiven Stichprobengrösse.
Farb-Logik
Normal — Return innerhalb der Warn-Perzentile.
Warn + / − — Return jenseits des Warn-Perzentils.
EXTREM + / − — Return jenseits des Extrem-Perzentils (Fat Tail).
Einstellungen
Methode: MAD (robust) oder Klassisch (mean/stdev).
Lookback (Tage): Länge des Statistik-Fensters (5–1000).
Log-Returns: Log- statt prozentuale Returns.
Warn-Perzentil % und Extrem-Perzentil %: Schwellen für die Färbung.
Farben für bullische/bärische Warn- und Extrem-Zonen.
Werte-Tabelle anzeigen.
Alerts
Extrem-Ausreisser HOCH — Tagesreturn jenseits des oberen Extrem-Perzentils.
Extrem-Ausreisser RUNTER — Tagesreturn jenseits des unteren Extrem-Perzentils.
Extrem-Ausreisser (beide Richtungen) — kombinierte Bedingung.
Verwendung
Der Indikator eignet sich, um Tage mit statistisch auffälliger Bewegung hervorzuheben — etwa zur Kontext-Einordnung von News-Tagen, zur Beobachtung von Volatilitäts-Clustern oder als Filter neben einer bestehenden Strategie. Die MAD-Methode wird empfohlen, wenn die Historie einzelne starke Ausreisser enthält.
Hinweise
Ein Z-Score misst die Ungewöhnlichkeit einer Bewegung, nicht deren Richtung im Sinne einer Prognose.
Die Aussagekraft hängt von einer ausreichend grossen Stichprobe ab (siehe Feld "Sample" in der Tabelle).
Dieses Skript ist ein Analyse-Werkzeug und stellt keine Anlageberatung dar. Vergangene Verteilungen sind keine Garantie für zukünftiges Verhalten.
Indicator

Indicator

Indicator

Indicator

Indicator

Compass | AnonycryptousCompass | Anonycryptous
Description & user manual
Credits
The weekly psychological level calculation in this indicator is based on open-source code originally published on PulseWire. The original script was created by plasmapug. Continued development was done by infernixx, Peshocore, and xtech5192 in collaboration with TradersReality. Significant modifications have been made to integrate this component into the Compass framework.
Why this indicator is different
Most indicators answer one question. A moving average tells you the trend direction. An oscillator tells you momentum. A session box tells you the time. A volume indicator tells you participation. Each one is useful. None of them tells you where you are.
Before placing a trade, a trader needs to answer several questions simultaneously. What session is active and what does that mean for the type of price action to expect? Where does the macro trend stand? Is volume confirming the move or contradicting it? Are there open imbalances nearby that price may return to? How much of the day's expected range has already been consumed? Where are the key structural levels — pivots, the daily open, prior week references?
Answering each of these questions separately requires stacking tool after tool until the chart becomes unreadable. Compass answers all of them at once.
It is not a signal indicator. It does not fire arrows or tell you when to buy or sell. What it does is something more fundamental: it gives you a complete read of the market environment before any decision is made. Sessions, trend, volume, imbalances, range levels, pivots, psychological references — all in one overlay, all configurable, all on one chart.
The design philosophy is orientation first. Decision second. Compass tells you where you are. What you do with that is your responsibility.
Important notice
Compass does not generate trading signals.
It does not tell you when to buy or sell.
It does not predict market direction.
It does not replace your trading strategy or your own analysis.
All illustrative examples in this manual are for educational purposes only and are not trading recommendations.
All trading decisions remain entirely with the user.
Always apply your own judgment and manage your own risk.
1. Overview
Compass is a comprehensive market context indicator that combines eleven independent analysis frameworks into one unified overlay. Every component is individually toggleable. Six presets are included for different trading styles, from fast scalping to full multi-component analysis.
What it includes:
- Five-EMA suite with adaptive cloud around the EMA 50
- EMA crossover system with configurable signals and candle coloring
- Stochastic RSI background alerts with four alert types and RSI divergence detection
- PVSRA volume vector candle analysis with zone tracking and configurable thresholds
- Eight global market sessions with automatic DST awareness
- Average daily, weekly, and monthly range levels with 50% midpoints
- Classic pivot points with mid-point levels
- Daily open reference line with historical opens
- Fair value gap detection with partial absorption tracking
- Weekly psychological level tracking
- Live dashboard with eighteen data points across all active components
2. EMA suite
Five exponential moving averages are plotted simultaneously: EMA 5, EMA 13, EMA 50, EMA 200, and EMA 800. Together they cover short-term momentum, medium-term trend direction, macro trend, and long-term structural bias.
The EMA 50 is wrapped in a dynamic cloud calculated from two standard deviations of price. The cloud expands during volatility and contracts during consolidation. A widening cloud indicates active price discovery. A thinning cloud indicates equilibrium or compression before a directional move.
The EMA 200 is the primary macro bias filter. Price above it defines a broadly bullish environment. Price below it defines a broadly bearish environment. This is shown in the dashboard at all times.
The EMA 800 provides long-term structural context, particularly useful on mid to higher timeframes where it marks the gravitational center of multi-month price structure.
All five EMA lengths are configurable. Each has individual color and transparency controls. An EMA label option displays the current value at the right edge of each line.
3. EMA cross system
The EMA cross tracks a configurable fast EMA crossing a configurable slow EMA and marks the crossover bar. All candles after a cross continue in the direction of that cross until the opposite cross fires.
Three display modes are available: show both the fast and slow EMA lines, show a single consolidated EMA line, or hide the EMA lines entirely while keeping the crossover signals visible.
This component is a trend state indicator, not a trade trigger. A bull cross does not mean buy. It means the short-term trend has shifted upward relative to the medium-term average.
Signals and candle coloring can be toggled independently.
4. Stochastic RSI
The stochastic RSI component runs a standard stochastic RSI calculation and generates background color alerts based on crossover conditions at configurable band levels.
Four alert types are available, each independently toggleable:
Middle band crossover — K line crosses D line near the 50 level. Indicates a possible trend shift in momentum.
Overbought/oversold crossover — K line crosses D line from overbought or oversold territory. Indicates a potential reversal from an extreme.
Entering overbought — K line crosses above the upper band. Indicates that momentum has moved into overbought territory.
Entering oversold — K line crosses below the lower band. Indicates that momentum has moved into oversold territory.
The dashboard displays the current stochastic RSI state and the RSI value. RSI appears in green when above the midline and in red when below. Regular bullish and bearish divergence is detected automatically and shown in the dashboard as a directional label. When divergence is active, a thin reference line appears on the price chart marking the divergence candles.
5. PVSRA volume vector analysis
PVSRA analysis colors candles based on volume relative to the 10-bar average and the relationship between volume and candle spread.
Four vector types:
Green vector — bullish bar where volume is at or above the green/red threshold (default 200% of the 10-bar average), or where volume multiplied by spread is the highest of the last 10 bars. Indicates strong bullish institutional participation.
Red vector — same conditions on a bearish bar. Indicates strong bearish institutional participation.
Blue vector — bullish bar where volume is at or above the blue/violet threshold (default 150% of average). Indicates elevated bullish volume below the institutional threshold.
Violet vector — same conditions on a bearish bar. Indicates elevated bearish volume.
Grey — no vector conditions met. Normal volume.
Both thresholds are configurable directly from the settings panel. Blue and violet signals are strictly exclusive from green and red — a bar cannot qualify for both simultaneously.
Vector candle zones draw boxes at each vector candle location and remain active until price moves through the zone, marking areas where elevated institutional activity was detected at the time the candle formed.
The PVSRA override input allows a different symbol to be used for the volume calculation. This is useful when the charted instrument has unreliable volume data, such as CFDs, perpetual swaps, or instruments where the primary volume is on a related market.
6. Market sessions
Eight global trading sessions are tracked simultaneously, each with automatic DST awareness. Sessions are displayed as expanding boxes with high and low lines and a real-time label showing the session open.
Sessions included:
- London: 08:00–16:30 UTC
- New York: 14:30–21:00 UTC
- Tokyo: 00:00–06:00 UTC
- Hong Kong: 01:30–08:00 UTC
- Sydney: 22:00–06:00 UTC
- EU brinks: 08:00–09:00 UTC
- US brinks: 14:00–15:00 UTC
- Frankfurt: 07:00–16:30 UTC
DST is handled automatically for London, New York, and Sydney. No manual adjustment is needed. Each session can be toggled individually, and box color, transparency, and label color are fully configurable per session.
Session context matters because market behavior differs significantly depending on which participants are active. London and New York overlap produces the highest volume and fastest price movement. Tokyo and Sydney sessions tend to consolidate. The brinks windows mark the transition periods where session highs and lows often form.
7. Range levels
Three statistical range frameworks measure the expected price range for the current period based on historical averages.
Average daily range (ADR) — the expected high and low for the current trading day. When price reaches the ADR level, the day's expected range has been consumed. Moves beyond the ADR are extension moves that occur with lower statistical probability and often mean-revert. The dashboard shows ADR % used — how much of today's expected range has already been consumed. Above 80% indicates the day is approaching its expected limit.
Average weekly range (AWR) — the same concept applied to the current week. Useful for assessing how much room the week has left to move.
Average monthly range (AMR) — the same concept applied to the current month. Provides macro context for position sizing and target expectations.
Each framework includes a 50% midpoint level marking the center of the expected range. The ADR measure from daily open option calculates the range starting from that day's open price rather than the statistical high, making the levels static for the entire day.
All three frameworks have individual lookback period inputs, color controls, line styles, and label toggles.
8. Pivot points
Classic pivot points are calculated from the prior day's high, low, and close. Levels include PP, R1/S1, R2/S2, R3/S3, and M mid-point levels between each major level.
Pivot points provide structural reference for the current session. Price above PP defines a broadly bullish day structure. R levels act as potential resistance targets. S levels act as potential support targets. M levels provide intermediate precision references between major pivots.
All levels can be toggled individually. Lines extend rightward from the prior session and can optionally extend in both directions. Each level has individual color and line style controls.
9. Daily open
A horizontal line marks the current day's opening price. This is one of the most referenced structural levels among short-term traders because it defines the starting point for the day's price discovery.
Price above the daily open reflects a bullish session bias. Price below reflects a bearish session bias. When price oscillates around the daily open without committing direction, the session is in balance — a lower probability environment for trend trades.
Historical daily opens can optionally be shown as reference for prior day context.
10. Fair value gaps
A fair value gap is a three-bar imbalance where price moved through a range without leaving two-sided trade — the low of the upper candle is above the high of the lower candle (bullish gap) or vice versa (bearish gap). These areas represent unfinished business where the market may return to achieve balance.
Gaps are filtered by a minimum width threshold expressed as a multiple of ATR. Gaps narrower than the threshold are excluded. Partial absorption is tracked — as price returns into the gap, the fill color changes to show how much of the imbalance has been recovered.
Fully mitigated gaps can be kept on the chart as historical reference or deleted automatically to maintain a clean view.
11. Psychological levels
Weekly psychological levels mark the prior week's high and low as calculated by a specific session-anchored method. These levels represent deliberate structural references where participants have previously committed size — breakouts and rejections around these levels tend to be more intentional than random price noise.
Three GMT offset options accommodate the session anchor calculation for different global market structures. Two mode options are available: crypto (weekly reset on Saturday Sydney open) and forex (weekly reset on Monday Tokyo open).
12. Settings reference
Preset
- Custom: full manual control over all settings.
- Clean scalper: sessions, EMA suite, FVG, subtle candle coloring. Low noise.
- Full context: everything on, medium transparency. Best for analysis.
- Signal focus: EMA cross, stoch RSI background, PVSRA bar color prominent. Rest subtle.
- Minimal: sessions, daily open, ADR only. No signals.
- PVSRA pro: PVSRA and vector candle zones central. EMA 200 and 800 only.
Global settings
- Master opacity offset (custom preset only): shifts all transparency values simultaneously.
- Show bull/bear label text: shows or hides text on EMA cross signal triangles.
EMA suite
- Show EMA suite and labels
- Individual EMA color and transparency controls
- EMA cloud fill and border transparency
- EMA line width
EMA cross
- Show EMA cross signals
- Fast EMA, slow EMA, and consolidated EMA lengths
- Show both EMAs or consolidated only
- Bull, bear, and neutral colors and transparency
- Cross EMA line width
Stochastic RSI
- Show stochastic RSI background alerts
- RSI length and stochastic length
- Overbought and oversold band levels
- Individual alert type toggles (four types)
- Alert colors and transparency
- RSI divergence lookback period
- Divergence line color and width
PVSRA
- Vector colors (red, green, violet, blue, regular up/down)
- Green/red threshold (× average volume, default 2.0)
- Blue/violet threshold (× average volume, default 1.5)
- Include spread filter for green/red classification
- Override symbol toggle and input
- Show vector candle zones with transparency and width settings
Candle coloring
- Enable candle coloring
- Coloring mode: EMA cross / PVSRA / EMA 200 / off
- Bull and bear candle color and transparency
Market sessions
- Show market sessions
- Session timezone
- Show sessions on weekends
- Session high/low line style and width
- Per session: toggle, box color, transparency, label color
Range levels
- Show ADR, AWR, AMR (individual toggles)
- Lookback periods for each
- Show 50% midpoint levels
- Measure from daily open (ADR only)
- Color, transparency, line width, line style, labels
Pivot points
- Show PP, R1/S1, R2/S2, R3/S3, M levels individually
- Show labels
- Extend lines both directions
- Individual level colors and line styles
- Pivot line width
Daily open
- Show daily open
- Show label
- Show historical daily opens
- Color, transparency, line width
Fair value gaps
- Show fair value gaps
- Width filter (ATR multiplier)
- Extend to current bar
- Bullish and bearish FVG colors
- Mitigation fill colors
- Keep historical FVGs after mitigation
Psychological levels
- Show psy levels and labels
- Show historical psy levels
- GMT offset (GMT+1, GMT+2, GMT+3)
- Psy type: crypto or forex
- High and low colors and transparency
Dashboard
- Show dashboard
- Position: top left, top right, bottom left, bottom right
- Size: tiny, small, normal
13. Dashboard reference
The dashboard provides eighteen live data points across all active components:
Session — the currently active market session.
EMA cross — current EMA cross direction: bull or bear.
EMA 200 — whether price is above or below the EMA 200.
Stoch RSI — current stochastic RSI condition.
RSI — current RSI value, colored green above midline and red below.
RSI divergence — active bullish or bearish divergence, or none.
PVSRA — current candle vector type.
ADR % used — how much of today's expected daily range has been consumed.
FVG active — count of open unmitigated fair value gaps and mitigation percentage.
Psy level — whether price is above or below the prior week's psychological level.
Timezone — active session timezone setting.
VCZ active — count of active vector candle zones above and below current price.
Pivot PP — current pivot point value.
Daily open — current daily open price and direction.
14. How to use
14.1 Initial setup
Select a preset that matches your primary trading style. Adjust the session timezone to match your location or your primary exchange. If you trade an instrument with unreliable volume data, enable the PVSRA override and set it to a correlated liquid instrument. Set the ADR lookback period to your preference — 14 days is a standard starting point. For FVGs, set the width filter to 0.5 or higher to exclude minor gaps.
14.2 Reading the dashboard
The dashboard is the fastest way to orient yourself on a new chart or a new session. Check session, EMA cross direction, EMA 200 position, stoch RSI state, and ADR consumed before anything else. Five seconds to a full picture of where the market stands.
14.3 Reading the chart
Check EMA alignment. When EMA 13, EMA 50, and EMA 200 are stacked in the same direction, the trend is more significant than a single crossover. Divergence between them reflects a transition or competing timeframe pressures.
Check ADR percentage. Below 50% means the day has statistical room to move. Above 80% means the day is near its expected limit and extension moves are less probable.
Look for open FVGs near current price. An unmitigated FVG in the direction of the prevailing trend is a precision reference area where price has historically returned.
Check the psy level. If price is approaching the prior week's high or low, be aware that participant behavior around those references tends to be deliberate.
14.4 Timeframe guide
1 minute to 3 minutes — clean scalper preset, candle coloring set to EMA cross.
5 minutes to 15 minutes — clean scalper or signal focus preset.
30 minutes to 1 hour — full context preset, use ADR and pivot points.
4 hours to daily — full context or minimal preset.
14.5 Tips
PVSRA override — use when your broker's volume data is unreliable, when you trade a CFD or derivative with synthetic volume, or when you want spot market volume for a futures chart.
Master opacity offset — adding 10 to 20 increases overall transparency and dims the chart if it feels cluttered. Subtracting 10 to 20 makes all elements more prominent. This shifts all transparency values simultaneously without changing individual settings. Only active in custom preset.
Not every component needs to be active at once. Most traders will find three to four components provide the context they need for their specific setup.
15. Disclaimer
This indicator is provided for educational and informational purposes only.
Nothing in this document constitutes financial advice or any form of trading recommendation.
Trading financial instruments involves substantial risk of loss.
Past performance is not indicative of future results.
You may lose all of your invested capital.
All trading decisions are made entirely by the user.
Use at your own discretion.
Indicator

Indicator

Indicator

Rolling Sharpe Ratio Oscillator | Astral Vision Rolling Sharpe Ratio Oscillator | Astral Vision 🌠💠
The Sharpe Ratio measures risk-adjusted return: how much excess return is being generated per unit of volatility. Applied as a rolling oscillator to Bitcoin's daily log returns, it answers a question that neither price nor momentum indicators address: is the current appreciation being earned efficiently relative to the risk being taken, or is it a volatile, noisy move that consumes large drawdowns to produce modest gains?
High rolling Sharpe values indicate sustained, low-volatility uptrends where return per unit of risk is structurally elevated, historically coinciding with the most efficient phases of Bitcoin's bull runs. Negative Sharpe values indicate periods where volatility exceeds returns, marking drawdowns and bear phases.
This indicator plots the annualized rolling Sharpe as a smoothed oscillator with configurable thresholds, and back-projects those thresholds onto the price chart as dynamic levels representing the price that would produce each Sharpe extreme given current return and volatility conditions.
Calculation ⚙️
`Log Return = log(close / close )`
`Rolling Sharpe = (SMA(Log Return, length) / StdDev(Log Return, length)) × √365`
The ratio is annualized by multiplying by the square root of 365, expressing it in standard annual terms. An EMA of configurable length is then applied to smooth the raw Sharpe before threshold evaluation and coloring.
The price bands invert the Sharpe thresholds back to price space:
`Band Price = close × exp(threshold × StdDev / √365 × length)`
This produces a dynamic price level representing what price would need to be, given current volatility, to produce the specified Sharpe value.
Plots 📊
Smoothed Sharpe oscillator line in the indicator panel, colored by regime or continuous gradient
Overbought and oversold threshold lines
Fill between oscillator and overbought threshold when breached (distribution zone)
Fill between oscillator and oversold threshold when breached (accumulation zone)
Dynamic overbought and oversold price bands on the price chart, EMA-smoothed
Candle coloring on the price chart by regime or gradient
Background highlight on the price chart when either threshold is active
Inputs 🎛️
`Lookback Period (days)`: rolling window for mean and standard deviation of log returns (default 365)
`Smoothing EMA Length`: EMA applied to the raw Sharpe before all output (default 30)
`Oversold Threshold`: Sharpe level marking risk-adjusted accumulation extremes (default −1.5)
`Overbought Threshold`: Sharpe level marking risk-adjusted distribution extremes (default 2.8)
`Use Gradient Color`: toggles between continuous gradient coloring across the −2 to +2 range and discrete regime-based coloring
Colors 🎨
5 Astral Vision presets + custom override. Default: Futura. In gradient mode, color transitions continuously from negative to positive across the Sharpe range. In discrete mode, positive color activates above the overbought threshold, negative below the oversold threshold, and neutral between them.
Purpose 🎯
Standard momentum indicators like RSI and MACD measure price direction and speed, but are blind to whether that directional move is being achieved efficiently. A 30% Bitcoin rally with 80% annualized volatility carries very different risk-adjusted implications than the same rally with 40% volatility, yet both look identical on a price or momentum chart.
The rolling Sharpe makes that distinction explicit. The price band back-projection eliminates the need to mentally translate Sharpe values into price context: the bands show directly on the chart what price level corresponds to each statistical extreme given current volatility, updating dynamically as the volatility regime evolves.
The gradient coloring option provides a continuous read of risk-adjusted efficiency across the entire oscillator range, not just at binary threshold crossings.
Disclaimer ⭕️
It is not financial advice, not an investment recommendation, and not affiliated with any financial institution, research firm, or organization of any kind. All content is provided for educational and informational purposes only. Always conduct your own research before making any financial decision. Indicator

Volatility Gated Supertrend [BackQuant]Volatility Gated Supertrend
Overview
Volatility Gated Supertrend is a regime-aware trend-following indicator built around a modified Supertrend engine with an integrated volatility filter . Unlike a traditional Supertrend, which flips direction whenever price crosses its trailing bands, this version introduces a gating mechanism that can block trend reversals during low-volatility conditions .
The purpose of the indicator is simple:
Keep the responsiveness and structure of a Supertrend.
Reduce false flips during sideways or compressed conditions.
Allow trend transitions primarily when volatility is expanding enough to justify participation.
The result is a smoother and more selective trend engine designed to suppress whipsaws while still reacting to meaningful directional movement.
The full source structure for the indicator can be referenced here: :contentReference {index=0}
Core idea
Traditional Supertrend indicators work well during directional markets but struggle in compressed environments:
Price repeatedly crosses the trailing bands.
Trend direction flips too frequently.
False reversals appear during chop.
This indicator attempts to solve that problem by asking:
“Is there enough volatility expansion to justify accepting a new trend?”
Instead of blindly allowing every flip, the indicator measures:
Current volatility,
Baseline volatility,
Relative expansion or compression.
Only when volatility conditions are sufficient does the trend engine allow a directional transition.
What the Supertrend is
The Supertrend is a volatility-based trailing trend indicator built from:
ATR (Average True Range)
A central price source
A directional trailing stop structure
The classic logic:
Upper band = price source + ATR × multiplier
Lower band = price source − ATR × multiplier
These bands trail price dynamically:
In bullish conditions, the lower band ratchets upward.
In bearish conditions, the upper band ratchets downward.
When price crosses one of the bands:
The trend flips direction.
This creates a clean directional regime model.
How this version differs
The major difference is the volatility gate .
A normal Supertrend asks:
“Did price cross the band?”
This indicator asks:
“Did price cross the band, and is volatility strong enough to trust the move?”
That additional filter dramatically changes behavior in sideways conditions.
ATR and volatility structure
The indicator uses two ATR measurements:
Fast ATR → current short-term volatility
Slow ATR → baseline long-term volatility
The core ratio:
Volatility Ratio = Fast ATR / Slow ATR
Interpretation:
Ratio above threshold → volatility expansion
Ratio below threshold → volatility compression
This becomes the gate logic.
Volatility Gate Logic
The gate opens only when:
Fast ATR / Slow ATR ≥ Gate Threshold
If volatility is too compressed:
The gate closes.
Trend flips are blocked.
Importantly:
The Supertrend bands still calculate normally.
Price can still cross them.
But the directional state will not update while the gate is closed.
This distinction matters because it means:
The market may technically trigger a reversal,
But the indicator intentionally ignores it if volatility conditions are weak.
Why this helps
Most trend-following systems fail in chop because:
Small meaningless moves trigger directional flips.
There is insufficient range expansion.
The market lacks trend persistence.
By requiring volatility confirmation:
Weak reversals are filtered out.
Trend state becomes more stable.
Noise is reduced.
This makes the indicator particularly useful during:
Low-volatility consolidations,
Mean-reverting conditions,
Slow drifting ranges.
Band construction
The indicator uses:
hl2 as the central source,
ATR for dynamic width,
A configurable multiplier for sensitivity.
Formulas:
Upper Band = hl2 + ATR × multiplier
Lower Band = hl2 − ATR × multiplier
The trailing logic prevents the bands from moving backward unnecessarily:
Bullish lower band only rises.
Bearish upper band only falls.
This creates the staircase-style trailing structure common in Supertrend systems.
Trend state
Trend direction is binary:
1 = bullish
-1 = bearish
A raw bullish flip occurs when:
Close > trailing upper band
A raw bearish flip occurs when:
Close < trailing lower band
However:
The trend only updates if the volatility gate is open.
This is the defining behavior of the script.
Blocked flips
One of the most important features is the visualization of blocked signals .
When:
Price crosses a band,
But volatility is insufficient,
The script:
Plots an X-cross marker,
Keeps the existing trend state,
Refuses the flip.
This gives traders visibility into:
Potential but unconfirmed reversals,
Areas of weak participation,
Fake breakouts or low-energy transitions.
Visual behavior
Trend band
The active trailing band changes color based on trend direction:
Bullish → bullish color
Bearish → bearish color
Gate closed → gated color (dimmed)
Trend fill
The script fills the space between price and the active band:
Bullish fill during bullish regimes
Bearish fill during bearish regimes
This creates a cleaner directional overlay.
Outer glow
An additional glow layer expands slightly beyond the trend band:
Adds directional emphasis,
Improves trend readability,
Visually reinforces active regime.
When the gate closes:
The band and candles dim.
This visually communicates:
“The trend engine is currently suppressing flips.”
Candle coloring
Candles can optionally inherit the trend state:
Bullish regime → bullish candles
Bearish regime → bearish candles
Gate closed → dimmed neutral appearance
This allows the indicator to function as a full-chart regime overlay.
Signal logic
Bullish signal
Occurs when:
Trend flips from bearish to bullish,
AND the gate is open.
Bearish signal
Occurs when:
Trend flips from bullish to bearish,
AND the gate is open.
Blocked signal
Occurs when:
A raw flip condition appears,
BUT volatility ratio is below threshold.
This distinction is important:
A blocked signal is not ignored information.
It is a rejected transition.
How to interpret the gate
Gate open
Volatility is active.
Market expansion is sufficient.
Trend flips are allowed.
Gate closed
Market is compressed.
Conditions are likely choppy.
Trend reversals are suppressed.
This effectively turns the indicator into a:
Trend-following system during expansion,
Trend-holding system during compression.
Why ATR ratio works well
ATR ratio is a powerful regime detector because it measures:
Current volatility relative to normal volatility.
Not just:
“Is volatility high?”
But:
“Is volatility high relative to its recent baseline?”
This adaptive behavior allows the gate to work across:
Different assets,
Different timeframes,
Different volatility environments.
Input guide
ATR Multiplier
Controls band width:
Higher = wider bands, fewer flips
Lower = tighter bands, more sensitivity
ATR Length
Controls volatility calculation for the Supertrend itself.
Fast ATR
Short-term volatility measure.
Slow ATR
Long-term baseline volatility measure.
Gate Threshold
Controls how strict the gate is:
Lower threshold = more permissive
Higher threshold = more restrictive
Example:
0.6 → allows more flips
1.0 → requires current volatility to match baseline
1.2 → requires expansion regime
Strengths
Reduces Supertrend whipsaws in chop.
Adds regime awareness.
Uses adaptive volatility filtering.
Clean trend visualization.
Blocked-signal logic provides extra context.
Limitations
Can delay reversals during early expansion.
Very high thresholds may suppress legitimate transitions.
Still fundamentally a trend-following system.
Not designed for low-volatility mean reversion trading.
Best use case
Volatility Gated Supertrend works best as:
A directional regime filter,
A swing trend overlay,
A volatility-aware trend confirmation tool,
A way to suppress noise during consolidations.
It is particularly useful for traders who:
Like Supertrend logic,
But dislike how often it flips in sideways markets.
Summary
Volatility Gated Supertrend extends the classic Supertrend framework by introducing a volatility-aware gating engine that blocks trend reversals during compressed market conditions. By comparing fast ATR against slow ATR, the script determines whether enough volatility expansion exists to justify a directional transition. The result is a cleaner, more stable trend system that retains the strengths of Supertrend logic while dramatically reducing whipsaws during low-energy market regimes. Indicator

Relative ATR Volatility IndicatorThis relative volatility regime indicator measures whether current volatility is high, low, or "normal" compared to its own recent historical range.
It calculates ATR, then compares the current ATR reading against a rolling percentile window. By default, it looks back over the last 100 bars and marks:
The upper volatility threshold, based on the 80th percentile of recent ATR readings (red)
The lower volatility threshold, based on the 20th percentile of recent ATR readings (green)
With the default settings of a 100-bar Rolling Window Length, Top Percentile of 80, and Bottom Percentile of 20:
If the white ATR line is above the red line, current volatility is in the highest 20% of recent ATR readings.
If the white ATR line is below the green line, current volatility is in the lowest 20% of recent ATR readings.
In other words, the script ranks current ATR against its own recent history and highlights volatility extremes. This makes it easier to objectively identify whether a market is currently in a high-volatility, low-volatility, or normal-volatility regime.
The indicator is directionally agnostic. A high ATR reading does not mean price is bullish or bearish; it simply means the market is moving more than usual. High ATR can occur during bullish expansion, bearish selloffs, large gaps, or choppy high-range conditions.
The main values are:
White line = current ATR value
Red line = upper ATR percentile threshold
Green line = lower ATR percentile threshold
Grey line = middle 50th percentile (turned off in Style Settings by default)
ATR Ratio Upper = current ATR divided by the upper threshold
ATR Ratio Lower = current ATR divided by the lower threshold
The ATR Ratio values can be used as an input by other scripts or strategies:
ATR Ratio Upper above 1 means ATR is above the upper volatility threshold
ATR Ratio Lower below 1 means ATR is below the lower volatility threshold
This script uses Pine Script's ta.percentile_nearest_rank() function to calculate rolling ATR percentile thresholds.
This is a lagging indicator, like most indicators, but it provides a useful way to classify volatility regimes objectively. Indicator

Volatility Radar - Muti-Timeframe [PUCHON]Volatility Radar — MTF
Reads ATR% , Historical Volatility (HV%) , and Bollinger Band Width (BBW%) across 5 timeframes simultaneously. Classifies each timeframe into a volatility regime — LOW / NORMAL / HIGH / EXTREME — using percentile rank computed independently per timeframe. A single consensus row summarises all 5 timeframes into one actionable signal.
Open-source script — full code visible in Pine Script editor.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT MAKES IT DIFFERENT
Most volatility tools work on a single timeframe. This dashboard:
Runs three independent metrics per timeframe via bundled request.security() — one call per TF, no redundant data fetching
Classifies regime using ta.percentrank() computed inside each TF's own bar history — "HIGH" on 5m and "HIGH" on Daily are both statistically meaningful relative to that TF's own past
Renders a unicode sparkline row █░ to compare relative ATR across all timeframes at a glance
Neon Dark styling: regime label pinned to last candle, colored regime badges, candle coloring, background state tint
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO READ EACH ROW
Row 1 — ATR %
Average True Range as a percentage of price. Answers: "How large are the candles right now, relative to price?"
Higher ATR% = bigger candles, wider spreads, larger stop loss needed
Compare across TFs: if 5m ATR% suddenly equals the 60m ATR%, intraday volatility has spiked unexpectedly
Color reflects regime: Neon Green = Low Cyan = Normal Red = High Magenta = Extreme
Row 2 — HV %
Historical Volatility (annualized). Standard deviation of log returns × √252.
Answers: "At what annualized rate is this asset moving right now?"
Rising HV = market accelerating. Falling HV = compressing toward a squeeze
Cross-TF: if 5m HV is 3% but Daily HV is 37%, short-term is calm inside a long-term volatile environment — mean-reversion setup signal
Displayed in neutral Cyan — informational, not regime-colored
Row 3 — BBW %
Bollinger Band Width = (Upper BB − Lower BB) / Midline × 100.
Low BBW = bands squeezing → breakout risk rising
High BBW = bands expanded → trend or momentum is active
BBW spike after a Low regime = early breakout confirmation
Multiple TFs showing Low BBW simultaneously = convergent squeeze — watch closely
Row 4 — REGIME
Percentile rank of current ATR% against the last Regime Lookback bars of that same timeframe.
LOW — below 25th percentile → unusually quiet; possible accumulation or squeeze
NORMAL — 25th–75th percentile → average conditions; trend-following works well
HIGH — 75th–90th percentile → elevated; widen stops, reduce position size
EXTREME — above 90th percentile → rare spike; consider standing aside
Regime is relative to the instrument's own history. 0.5% ATR could be LOW on a volatile crypto but EXTREME on a blue-chip stock. The percentile rank adapts automatically.
Row 5 — ATR▐ (Sparkline)
Unicode bar █ (filled) / ░ (empty) — each TF's ATR% as a proportion of the highest ATR% across all columns.
Longest bar = most volatile timeframe right now
Normal: bars grow left (5m) to right (Daily) — higher TFs are naturally more volatile in absolute terms
Warning: a short-TF bar suddenly matching a long-TF bar → intraday volatility spike
Bar color matches the regime of that column
Row 6 — SIGNAL
Consensus across all 5 timeframes. Counts TFs in HIGH or EXTREME regime.
STABLE — NORMAL VOLATILITY → 0–1 TFs elevated. Trade normally.
ELEVATED ACROSS TIMEFRAMES → 2–3 TFs elevated. Widen stops, reduce size.
⚠ RISK OFF — EXTREME VOLATILITY → 4–5 TFs elevated. Consider standing aside.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CANDLE & BACKGROUND COLORING
Candles and background tint reflect the current chart timeframe's regime:
🟢 LOW — calm market, potential accumulation zone
🔵 NORMAL — standard conditions, trend strategies work well
🔴 HIGH — elevated, tighten stops and reduce size
🟣 EXTREME — dangerous conditions, reduce or close exposure
A glow label above the last candle shows the current regime at a glance.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PRACTICAL SCENARIOS
Scenario A — Safe to trade
All TFs: NORMAL or LOW → SIGNAL: STABLE
Action: Use momentum strategies. ATR% bars are short and roughly equal.
Scenario B — Reduce size
5m: NORMAL | 15m: HIGH | 60m: EXTREME | 240m: HIGH | D: NORMAL → SIGNAL: ELEVATED
Action: Widen stop to accommodate 60m ATR range. Reduce position by 30–50%.
The 60m sparkline bar will be the longest — confirming where volatility is concentrated.
Scenario C — Stand aside
ALL TFs: EXTREME → SIGNAL: ⚠ RISK OFF
Action: Wait for regime to cool to NORMAL before re-entering. Occurs during major news events, flash crashes, or market opens.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE
Add to any chart as an overlay — works on all instruments and timeframes
Set your 5 analysis timeframes in the Timeframes settings group
Check REGIME row — identify which timeframes are elevated
Check SIGNAL row — use as your position sizing guide
Read sparkline bar row — longest bar = where volatility is concentrated
Enable candle coloring and background tint for instant visual scanning
Set alert on Regime Escalation to be notified when volatility rises
Set alert on Regime Cooling to re-enter after a volatility spike
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS GUIDE
TF 1–5 — Five analysis timeframes (default: 5 / 15 / 60 / 240 / Daily)
ATR Length (default: 14) — ATR period. 14 is standard; increase for smoother values on noisy instruments
HV Length (default: 20) — Log-return standard deviation lookback for HV%
BBW Length (default: 20) — Bollinger Band period for width calculation
Regime Lookback (default: 100) — Percentile rank window per TF. Higher = more stable labels, slower to react. Lower = faster but noisier
Color Candles by Regime — Toggle neon candle coloring on/off
Background Tint — Toggle near-invisible regime background tint
ATR% Sparkline Row — Toggle unicode bar chart row visibility
Table Position — Move dashboard to any of the four chart corners
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ALERTS
Five built-in alert conditions:
Extreme Volatility — current TF enters EXTREME regime
High+ Volatility — current TF enters HIGH or EXTREME regime
Low Volatility — current TF enters LOW regime (watch for squeeze)
Regime Escalation — volatility rises from Normal to High/Extreme
Regime Cooling — volatility falls back from High/Extreme to Normal
Set via: Right-click chart → Add alert → Condition: Volatility Dashboard — MTF
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
LIMITATIONS
Regime needs at least Regime Lookback confirmed bars on each TF. First bars on very high timeframes may show "—" until enough history is loaded
HV uses √252 annualization (trading days). Crypto 24/7 markets are slightly understated — actual annualized vol is ~17% higher than displayed
Does not predict direction. HIGH and EXTREME regimes occur in both strong trends and sharp crashes. Use with a directional indicator
Requesting a TF lower than the chart's own TF has no effect — Pine Script cannot look inside the current bar
Current (unconfirmed) bar values update in real time and may differ from the final bar-close value. This is normal behavior, not repainting
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
OPEN SOURCE
Published under Mozilla Public License 2.0 .
Free to use, modify, and build upon.
If you publish a modified version, credit to the original script is appreciated.
⚠ Disclaimer: This script is for educational and informational purposes only. It does not constitute financial advice. Volatility analysis does not guarantee profitable trades. Past volatility patterns do not predict future price movements. Always conduct your own analysis and apply proper risk management before trading. Indicator

ETHDVOL based Ethereum VolatilityThis indicator maps Ethereum's expected price range across three timeframes — daily, weekly, and monthly — using the Ethereum Deribit Volatility Index (ETHDVOL) as the implied volatility source and realized historical volatility (HV7, HV14, HV30) as the measured counterpart.
ETHDVOL is Ethereum's equivalent of the VIX. It represents the market's forward-looking expectation of annualized volatility, derived from Deribit options pricing. When ETHDVOL is high, the market expects large moves. When it is low, the market expects compression. By scaling ETHDVOL and realized vol into dollar-denominated price bands anchored to key opens, this indicator gives you a structural volatility map directly on the ETH price chart — no separate pane required.
The core concept is straightforward: options market participants price expected ranges. Those ranges become levels. Price respects them — not always, not perfectly, but consistently enough to be meaningful as reference and used in comparison to what is realized.
How to Read the Bands
The Anchoring System
Each set of bands is anchored to a specific open and held fixed for its entire period. They do not drift or repaint mid-period.
**Weekly bands** lock on Saturday's opening price and ETHDVOL reading at the start of each crypto week. They hold for the full 7-day period. This Saturday anchor matters: the crypto options and perpetuals market structurally resets around the Saturday UTC open. Weekly expiries settle on Fridays, and Saturday represents the cleanest "new week" anchor available on a 24/7 market.
**Monthly bands** lock on the 1st of each calendar month and hold for the entire month. They represent the options market's expectation of how far ETH could move over a 30-day window from that open.
**Daily bands** reset each day at 00:00 UTC and reflect that day's opening price and current live volatility readings. They are the tightest, most reactive bands on the chart.
The Band Pairs
Each timeframe shows two bands — one from implied volatility (IV) and one from realized historical volatility (HV):
**IV bands** (white weekly, white monthly) represent what the options market *expects* ETH to move. These are forward-looking. They define the market's priced range for the period.
**HV14 Weekly** (orange) represents the actual realized volatility over the past 14 days, scaled to a weekly move. When HV14 is inside the IV band, the market is pricing more risk than it has been delivering — a low-volatility regime. When HV14 approaches or exceeds the IV band, realized vol is catching up to or exceeding what was priced.
**HV30 Monthly** (orange-red) is the 30-day realized volatility scaled to a monthly move. This sits alongside the monthly IV band and gives context for whether the current month's implied range is historically generous or tight.
**HV7 Today** (light yellow) is a live daily band using the most recent 7 days of realized volatility anchored to today's open. It is the most sensitive reading — useful for intraday context and identifying when daily price movement is pushing into or through the short-term realized range.
**IV Today** (faded white) is the same daily scaling but using DVOL — today's implied daily range from the options market. It is intentionally faded to keep the chart readable.
The Info Table
The top-left badge shows three live readings updated on every bar:
- **IV %** — the current ETHDVOL weekly reading with a heat emoji (🔥 above 60%, ❄️ below 40%, ⚡ in between)
- **HV14 %** — the Saturday-latched realized vol for the week
- **HV14/IV ratio** — the percentage of realized vol relative to implied. ✅ below 95% means RV is running below IV (options are pricing more than has been delivered). ⚠️ at or above 95% means RV is catching up to or exceeding IV — a higher-energy regime.
- **Daily change** — BTC price change from today's open in both % and dollar terms
The Saturday Anchor Line
The ⚓ Sat Open line marks the weekly anchor price. It is the midpoint of the weekly IV and HV14 bands. Price reclaiming or failing at this line is significant — it is the reference price that all weekly band math is built from.
Trend Channels
Two sets of dynamic trendlines auto-draw based on pivot structure — a shorter-period dashed pair and a longer-period solid pair. They update continuously as new pivots form. Green slope = bullish structure on that channel. Red slope = bearish. They reset on the 1st of each calendar month, giving enough bars to build meaningful structure across a full monthly cycle rather than resetting too frequently on the weekly.
---
Settings Walkthrough
Display Toggles
✅ Show Weekly Open Line | The ⚓ Sat Open midline
✅ Show Weekly Bands (IV + HV14) | Both white IV weekly and orange HV14 bands together
✅ Show Monthly Bands (IV + HV30) | Both white IV monthly and orange-red HV30 bands together
✅ Show HV7 Today (daily rotating) | The light yellow daily realized vol band — resets each day
✅ Show IV Today (daily rotating) | The faded white daily implied vol band — resets each day
The weekly and monthly band pairs are intentionally linked — IV and HV are most useful when compared against each other, so they toggle as a unit.
Label Proximity Gate ($)
When multiple bands converge near the same price level, the chart can become cluttered with overlapping labels. The Proximity Gate controls how close a daily band label can be to a weekly or monthly level before it is suppressed. The **line still draws** — only the text label is hidden.
**Default: $50.** At this setting, a daily HV7 or IV Today label will be hidden if it sits within $50 of any weekly or monthly band. Increase this value if you want a cleaner chart with fewer labels. Decrease it if you want to see all labels even when levels are close together.
**Practical guidance:**
💡 On wider perspectives toggle HV7/IV (daily) off and widen 'proximity label gate' to reduce screen clutter
💡 On narrow perspectives keep the daily looks with a tighter 'proximity label gate'
Trend Line Settings
Short and long pivot periods are adjustable independently. The defaults (10 and 16) are calibrated for the 30-minute timeframe. On the 1-hour chart, consider reducing both slightly. On 15-minute, increasing them gives more stable pivots. Because the trendlines reset monthly rather than weekly, they have sufficient bars to establish meaningful channel structure — particularly useful for identifying multi-week compression patterns and directional bias across the full monthly vol cycle.
🚨 General — The indicator is most powerful when used to identify when price is testing a band confluence — for example, when the weekly IV lower and monthly HV30 lower are within close range of each other. Those areas represent options-market-defined support zones where two independent vol calculations agree.
---
*Indicator is designed for ETHUSD. Requires access to DERIBIT:ETHDVOL data on PulseWire. Works on intraday timeframes only — weekly and monthly band projections display for the current period.* Indicator

VolEdge: 0DTE Vol ContextHi everyone! Serge is here! Your feedback is highly appreciated.
Consider two mornings where VIX sits at 18. On the first, VIX1D reads 14 — the options market is pricing a quiet session, roughly ±0.9% on SPX. An iron butterfly-centered at the open makes sense. On the second morning, VIX1D reads 22 — today is expected to move nearly 40% more than the 30-day baseline implies. The same iron butterfly could blow through its short strikes before lunch.
This indicator surfaces that difference before you put on a trade.
What it does
Pulls CBOE's VIX1D index (1-day implied volatility), compares it against VIX (30-day baseline), and produces four outputs:
1. Day type classification
The VIX1D/VIX ratio is the core signal. When the ratio is at or above 1.0, the market is pricing today as more volatile than a typical day this month. When it sits at or below 0.75, today is expected to be quieter than normal. Four buckets:
EXPANSION DAY — ratio at or above 1.0. Above-average move priced in. Directional debit spreads and long straddles are better positioned than pure theta plays.
EVENT DAY — ratio at or above 1.30. Something significant is priced in — Fed minutes, CPI, or an intraday shock. This is not the environment for short premium without substantial width and reduced size.
COMPRESSION DAY — ratio at or below 0.75. Quieter than normal. Iron butterflies, short strangles, and narrow credit spreads work best when the market expects to grind.
NORMAL DAY — ratio between thresholds. Standard 0DTE setups apply; use VIX9D for the short-term weekly context.
2. Expected SPX move in points and percent
VIX1D is annualized. Dividing by the square root of 252 converts it to a single-day 1 standard deviation move. On a day where VIX1D is 16, the expected move is roughly plus or minus 1.0% — about 53 SPX points at current levels. Approximately 68% of sessions close within this range. The indicator displays both the point and percentage values, and optionally draws the bands on your chart anchored to today's open.
3. Historical context for the ratio
Today's VIX1D/VIX ratio is percentile-ranked against the past 90 days (adjustable). If the ratio is in the top 10% of recent history, the indicator flags it. A ratio that looks elevated in absolute terms may be ordinary for the current regime; percentile ranking removes that ambiguity.
4. VIX9D as a bridge
VIX1D covers today. VIX covers the next 30 days. VIX9D sits between them and captures the short-term weekly risk window — useful context when today reads Normal but a known event lands later in the week.
How to use it
Check the panel before sizing any 0DTE position. The day type and strategy tip give you the framework; the expected move and ratio percentile give you the calibration.
On an Expansion Day, widen your strikes or reduce size. The market has already priced in a larger move — selling a narrow butterfly into that environment means your tent is too small for the storm that's priced in.
On a Compression Day, tighten your structures. Theta burns fastest in quiet sessions, and the options market is telling you it expects quiet. This is where iron butterflies and short strangles earn their keep.
On an Event Day, the default answer is to sit out or cut size significantly. If you do trade, treat it as a directional bet, not a theta play — the implied move is large enough that short premium needs substantial wing width to survive.
On a Normal Day, use the expected move bands as your tent anchor and check VIX9D to make sure nothing is brewing later in the week.
Inputs
Show expected move lines on chart — draws the plus/minus 1 standard deviation bands anchored to today's SPX open
Show data table — toggle the panel on or off
Table position — top right, top left, bottom right, or bottom left
Expansion threshold — the VIX1D/VIX ratio at which the day is classified as Expansion (default 1.00)
Event threshold — the ratio at which the day escalates to Event (default 1.30)
Compression threshold — the ratio at or below which the day is classified as Compression (default 0.75)
Alert VIX1D level — fires when VIX1D crosses above this absolute level
Lookback for percentile — how many trading days to use when ranking today's ratio (default 90)
Alerts
Three alert conditions are available. Set them once and let them run pre-market.
VIX1D crosses above your chosen threshold — useful as an absolute spike warning
VIX1D/VIX ratio enters the top 10% of recent history — fires when today's relative vol is a genuine outlier, regardless of the absolute VIX level
Day type changes — fires when the classification shifts, for example from Normal to Expansion intraday
Data sources
CBOE:VIX1D, CBOE:VIX, CBOE:VIX9D, SP:SPX. All fetched on the daily timeframe. The indicator works correctly on intraday charts — all vol data is anchored to the daily close regardless of chart resolution. Indicator

Indicator
