What it visualizes
A 0–100 ATR-rank line, compressed and expanded guides, optional regime shading and a table with regime, fast/slow ratio, agreement, persistence and ATR length.
FreeOpen sourcePine Script v6
Compare two independent measures—a percentile of price-normalized ATR and a fast/slow ATR ratio. The state changes to Compressed, Normal or Expanded only under the published agreement rules.
The indicator separately classifies a percentile rank of ATR divided by price and a fast ATR divided by slow ATR, then holds the displayed regime with hysteresis. It does not forecast direction, reversal or the next range.
A 0–100 ATR-rank line, compressed and expanded guides, optional regime shading and a table with regime, fast/slow ratio, agreement, persistence and ATR length.
Both measures must agree on Expanded or Compressed before entering that state. Both must return to their middle bands before Normal is restored. Disagreement holds the prior state.
ATR divided by price is ranked from 0 to 100 inside the selected history window.
Short-window ATR is compared with its slower baseline to describe recent expansion or compression.
Cross-measure agreement reduces flicker; Persistence counts consecutive bars in the displayed regime.
Add the public script to a chart and identify every drawing in the default configuration first. Change only one input at a time.
Open the public Volatility Regime Dashboard page and add it to a TradingView chart. No SG Group account is required.
Overlapping lines, bands, backgrounds or tables can be duplicate drawings of the same kind of information. Never treat visual overlap by itself as stronger evidence or signal agreement. The separate pane reduces price-overlay collisions, but another ATR percentile or regime background can duplicate lines, thresholds and colors and create false visual agreement.
Do not turn one value or color into a conclusion. Check the condition, persistence and relationship to price in order.
Do not use the classification until the required history is available.
Inspect ATR %ile and Fast/Slow ATR and their individual states.
Use Measures agree and Persistence to distinguish a fresh state from a long-held one.
The required history is not yet available, so no regime is classified.
Both measures agree on compression; it does not predict a breakout.
Both measures are back inside their middle bands.
Both measures agree on expansion; no price direction is implied.
Yes or No for agreement on the same non-neutral direction.
The number of consecutive bars in the displayed regime.
The labels below match the published script’s English Inputs panel. Defaults reflect the public source at the time of review and may change in a later TradingView update.
On small screens, each input is reformatted as a readable stacked card.
| Input label | Default / options | What it controls and when to adjust it |
|---|---|---|
ATR length | 14; range: 2-200 | Sets the ATR length used by the price-normalized volatility measure. |
Percentile lookback | 252; range: 20-2000 | Sets the historical window used to rank normalized ATR. |
Fast ATR length | 5; range: 1-100 | Sets the fast ATR window used in the compression ratio. |
Slow ATR length | 20; range: 2-300 | Sets the slow ATR baseline used in the compression ratio. |
| Input label | Default / options | What it controls and when to adjust it |
|---|---|---|
Percentile: compressed below | 25.0; range: 0.0-100.0; step: 1.0 | Classifies the percentile measure as compressed at or below this level. |
Percentile: expanded above | 75.0; range: 0.0-100.0; step: 1.0 | Classifies the percentile measure as expanded at or above this level. |
Ratio: compressed below | 0.90; range: 0.10-1.00; step: 0.01 | Classifies the fast/slow ATR ratio as compressed at or below this level. |
Ratio: expanded above | 1.10; range: 1.00-3.00; step: 0.01 | Classifies the fast/slow ATR ratio as expanded at or above this level. |
| Input label | Default / options | What it controls and when to adjust it |
|---|---|---|
Table position | Top Right; options: Top Right | Top Left | Bottom Right | Bottom Left | Selects the context-table anchor position. |
Show context table | true | Shows the table containing regime and measure context. |
Compact table | false | Hides Measures agree and ATR length to make the panel smaller. |
Table text size | Large; options: Small | Normal | Large | Huge | Sets the context-table font size. |
Table text color | color.white | Sets the table text color. |
Table label background | #1e222d | Sets the background color of label cells. |
Table value background | #2a2e39 | Sets the background color of value cells. |
Shade pane background by regime | true | Shades the indicator pane according to the current regime. |
Compressed color | color.blue | Sets the color for the Compressed regime. |
Normal color | color.gray | Sets the color for the Normal regime. |
Expanded color | color.orange | Sets the color for the Expanded regime. |
| Input label | Default / options | What it controls and when to adjust it |
|---|---|---|
Alert only on bar close | true | Restricts regime-change alerts to confirmed bars. |
Alerts are state, touch or transition events defined in the public source. They are not trade instructions.
This tool is for analysis and visualization. It is not investment advice, a trade recommendation, a forecast, or a promise of profit or accuracy. Results depend on inputs, symbol, timeframe, and data feed. You remain responsible for every trading decision.
Expanded does not mean up, and Compressed does not predict a reversal or breakout.
A short rank lookback can be unstable; a long one reacts slowly. Sparse history weakens the rank.
ATR divided by close assumes a positive, non-zero price. Defaults are not optimized for a specific market.
A regime is situational context, not a forecast. Evaluate direction, price structure and risk separately.
Clarify the two measures, hysteresis, required history and non-directional meaning.
Yes. It is a free, open-source indicator published by SG Group on TradingView. Review TradingView’s terms and the conditions attached to the public script before reuse or redistribution.
Start with the published defaults and observe the drawings and state changes first. Then change one input at a time for the symbol, timeframe and data feed so you can identify what caused each visual change.
Yes, but similar lines, bands, backgrounds and tables can overlap and obscure their source. Isolate each indicator first and hide duplicate components. Visual overlap alone is not stronger evidence or signal agreement.
No. It is analysis and visualization context consistent with the public description. It does not provide entries, exits, targets, stops, price forecasts, or promises of profit, win rate or accuracy.
No. Compressed describes current relative range contraction. It can persist or return to Normal and does not forecast the next direction or range.
This guide is grounded in SG Group’s live catalogue, the script’s published TradingView description, and the user-facing inputs in its open source. Labels and defaults can change after a script update.