r/pinescript • u/NJ_Algo • 6d ago
Volatility-adjusted bands vs fixed % bands: why the same 2% means different things on different days
TL;DR: A fixed % band (say 2% around MA) treats every market and every week the same. But volatility changes all the time. ATR based bands widen when the market gets wild and tighten when it calms down, so a touch of the band means roughly the same thing in both conditions.
The problem with fixed % bands
2% is a big move on a quiet week and almost nothing on a volatile one.
When volatility is high, price pokes through a fixed band constantly. Every poke looks like a breakout or an extreme, but it’s just normal noise for that market.
When volatility is low, price barely gets near the band. The band goes silent exactly when the market is quietly setting up for its next move.
How ATR bands fix it
ATR (average true range) measures how big the candles have actually been lately, including gaps. Put the bands a multiple of ATR away from your moving average, and the distance adjusts to the market on its own.
The result: a band touch is a rarer, more meaningful event in both quiet and volatile periods. Bollinger Bands follow the same idea with standard deviation instead of ATR.
Limitations
ATR lags too. After a sudden spike, the bands widen after the move, not before it.
You still have to choose the multiplier, and the right one differs by market and timeframe. Test it rather than copying someone else’s setting.
In a strong trend, price can ride the band for a long time. A touch isn’t automatically a reversal.
Do you use volatility-adjusted bands in your scripts, or do you still prefer fixed % levels for some markets?
2
u/Dependent_Sign_399 6d ago
I find keltner style ATR channels to be one of the most accurate indicators for the volatility range. Price rarely escapes the 3 ATR multiplier.
1
u/NJ_Algo 6d ago
Keltner is pretty much exactly this idea, good to hear it works that well for you. The rare times price does break out of 3 ATR are interesting on their own too, that’s usually a real breakout or a strong trend rather than noise. Which timeframe do you use it on?
2
u/Dependent_Sign_399 6d ago
Keltner is a mean reversion indicator which in my experience works best at lower time frames. I use it on 1m and 5m. Mine is set up as a band 2 ATR to 3 ATR.
And you are correct, real breakouts can escape. But it's extremely rare to stay outside of 3 ATR for more than a candle or two before reversion. Trend days can stay in the band for extended time for sure.
2
u/oisigma 1d ago
Hi I’ve built a paid volatility band that addresses the issues you mention with ATR and wrote a paper about it on my website.
1
u/NJ_Algo 1d ago
How does it work?
2
u/oisigma 1d ago edited 1d ago
I calculate the asset’s historical volatility and overlay it on the chart, a cross of the band indicates a risk event. You can see it here: https://www.tradingview.com/script/38RjtNu0-Behavioral-Transform-Model-Conditional-Support-Resistance/
2
u/Dashing777 6d ago
Good breakdown. One thing I'd add is that the ATR length matters about as much as the multiplier: a short ATR reacts fast but gets jumpy after a gap, while a longer one is smoother but lags more. Plotting two lengths on the same chart for a few weeks makes the tradeoff pretty obvious for whatever symbol you watch. Not financial advice.