Bollinger Bands
GetBollingerBandsBollinger Bands for a stock. A middle band (simple moving average of close) with upper and lower bands set a number of standard deviations above and below it. Bands widen when volatility rises and contract when it falls; price touching the upper/lower band is a common overbought/oversold cue. Includes %B ((close-lower)/(upper-lower)) and bandwidth ((upper-lower)/middle) columns. The moving-average window is warmed up on price history fetched before startDate, so values do not depend on the requested range's left edge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Moving-average window (default: 20) | |
| stdDev | No | Standard deviations for the upper/lower bands (default: 2) | |
| ticker | Yes | Stock ticker symbol (e.g., AAPL, MSFT). Class shares use a dash (BRK-B); the dot form (BRK.B) is also accepted. | |
| endDate | No | End date in YYYY-MM-DD format (defaults to latest available) | |
| startDate | No | Start date in YYYY-MM-DD format (defaults to 6 months ago) | |
| maxResults | No | Maximum number of records to return (default: 60, max: 500); the newest rows are kept and listed newest first. |