Bollinger Bands Pass Node
Bollinger Bands — Series Input
Overview
The Bollinger Bands Pass Node applies the standard Bollinger Bands algorithm to any upstream numeric series — not just closing prices. Instead of reading from a stock source node, it accepts a single { values, timestamps } input, enabling Bollinger Bands on indicator outputs, synthetic series, or any transformed data stream.
The computation is identical to the standard Bollinger Bands node: a Simple Moving Average forms the middle band, and upper/lower bands are placed at ±stdDev standard deviations from the mean.
Formula
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| period | number | 20 | Lookback window for the SMA and standard deviation calculation. |
| stdDev | number | 2.0 | Standard deviation multiplier for band width. Use 1.5–2.5 for tighter or wider envelopes. |
Inputs & Outputs
| Slot | Direction | Type | Description |
|---|---|---|---|
| input | Input | { values, timestamps } | Any upstream numeric series (indicator, MA, custom) |
| upper | Output | (number | null)[] | Upper Bollinger Band values |
| middle | Output | (number | null)[] | Middle Band (SMA of input series) |
| lower | Output | (number | null)[] | Lower Bollinger Band values |
| timestamps | Output | number[] | Unix timestamps aligned to the input series |
Use Cases
Bollinger Bands on RSI
Apply bands to RSI output to identify extreme oscillator readings relative to its own historical range.
Volatility-Adjusted MA Bands
Wrap any moving average output in Bollinger Bands for dynamic breakout detection without raw price exposure.
Volume Envelope
Connect a volume series to detect unusual volume spikes beyond statistical norms.
Tips & Best Practices
📊 Statistical Coverage
With stdDev = 2, ~95 % of values should fall inside the bands. stdDev = 1 gives ~68 % coverage.
⚡ Warm-Up Period
First (period − 1) output values are null. Ensure your downstream nodes handle leading nulls gracefully.
🔗 vs Standard Node
Use the standard Bollinger Bands node for close-price bands; use this Pass node when the input is not a direct price series.