Adaptive Deviation Channels
Band accuracy, stability and dashboard fixes
The lower band now follows where pivot lows actually turned, Standard Deviation bands sit beyond the mean pivot distance, and the channel no longer breaks with WWMA, VIDYA, VWMA or long pivot legs.
Show all changes
After updating
- Delete and re-create your alerts for this indicator with the "Any alert() function call" condition. TradingView alerts keep running the script version they were created with. The alert names are unchanged.
- Charts that already have the indicator may keep the old text size. The new Normal default applies when you add the indicator again or choose Reset settings.
Fixed
- The lower band is correct when pivot lows form above the moving average, for example with long moving averages in a trend. Pivot distances now keep their direction on both sides.
- Band methods: Standard Deviation now places each band one standard deviation beyond the mean pivot distance, and Most Frequent resolves ties toward the median instead of always the lowest category.
- WWMA and VIDYA now start from price instead of zero, VIDYA no longer resets when price stays flat, and pivots that formed before the moving average existed are no longer counted, so they no longer distort the bands.
- Fixed a history-buffer runtime error that could make the indicator disappear with very long pivot legs or very long moving averages.
- VWMA now uses the selected price source and falls back to an SMA on symbols without volume, where the moving average, bands and table used to stay empty.
- Each band stays hidden until its side has at least one pivot, so band alerts no longer fire on plain moving average crosses.
Improved
- Dashboard prices use the symbol's tick size, positive and negative values show the right sign, and the text defaults to Normal size. The moving average dots follow the chart theme, so they are visible on light charts.
- Faster calculation with large Historical Pivots values.