Volatility trends
Recent 100-bar low and high, nudged outward by price spread, as support and resistance lines.
Support is the lowest close over the last window bars, scaled down by a volatility factor; resistance is the highest close, scaled up by the same factor. The factor is the standard deviation of closes over vol_window bars divided by their average, times vol_mult. The slope lines are the percent change of the raw low and high over half the window.
How to read it
- The two price-scale lines are the lower support and upper resistance; they sit just outside the recent range of closes.
- Price only moves toward a line when it sets a new window low or high, so a touch means a fresh range extreme, not a level being tested.
- The lines step rather than glide: they change when an old extreme rolls out of the window or the volatility factor shifts.
- The two slope lines in the pane below show how fast the raw low and high are moving, in percent over half the window. Zero means unchanged.
What it outputs
- Support
- The lowest close over the window, pulled further down by the volatility factor. Sits just beneath recent price.
- Resistance
- The highest close over the window, pushed further up by the same factor. Sits just above recent price.
- Support slope
- Percent change of the raw window low over half the window (50 bars by default). Zero means the low has not moved.
- Resistance slope
- Percent change of the raw window high over half the window (50 bars by default). Zero means the high has not moved.
Settings
- window
- How many bars the low and high look back over, including the current bar. Longer windows push support lower and resistance higher and change them in bigger steps; shorter windows hug recent price. The slope lookback is half this value.
- vol_window
- How many bars the volatility factor uses. Shorter windows make the band react quickly to choppy stretches; longer windows smooth the factor and keep the band steadier.
- vol_mult
- Scales how far the lines sit outside the window extremes. Raising it widens the band; 0 gives the plain rolling low and high. Negative values reverse the adjustment, pushing support up and resistance down so the lines can cross.
Pitfalls
- At vol_mult 0 or more the close can never break the lines: support is the window low that includes the current close. Read them as the recent 100-bar range, not as independent levels.
- The volatility factor is the spread of price levels over 20 bars, not of returns, so a steady trend widens the band even when each bar moves little.
- Negative vol_mult is allowed by the catalog and inverts the band, so support can end up above resistance; the slope lines are percent over half the window, not per bar.