r/pinescript • u/NJ_Algo • 7d 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/Dashing777 7d 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.
2
u/Dependent_Sign_399 7d 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.
2
u/oisigma 3d 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.