Compare the formulas before the signals
For this comparison, Donchian uses bar highs and lows. Bollinger uses an SMA of closes and population standard deviation: square root of the mean squared distance from that SMA. N is a bar count, not necessarily a number of days. The examples use N = 5 and a Bollinger multiplier of 2 to keep the arithmetic readable; these are illustrative settings, not recommended trading parameters.
- The Donchian midpoint is not an average closing price. One distant wick can hold its boundary in place until that bar leaves the window.
- TradingView exposes a Bollinger basis MA type, source, length, and deviation multiplier. Record those settings. Changing the source from close changes what the band measures.
| Calculation | Donchian Channels | Bollinger Bands |
|---|---|---|
| Upper boundary | Maximum high in N bars | Mean close + multiplier × standard deviation |
| Lower boundary | Minimum low in N bars | Mean close − multiplier × standard deviation |
| Middle line | (Upper + lower) / 2, a range midpoint | SMA of the N closes in this comparison |
| Width | Highest high − lowest low | 2 × multiplier × standard deviation |
| Information used | The two extremes determine the current channel. | Every close contributes to the mean and dispersion. |