Bollinger Bands Calculator
Instantly calculate and visualize Bollinger Bands to analyze market volatility and potential breakout points.
Supports stocks and crypto (e.g. AAPL, BTC-USD)
Ready to calculate
How to Use the Bollinger Bands Calculator
- Enter Asset or Data: Choose "Ticker" to simulate data for a stock/crypto symbol (e.g., BTC-USD), or "Manual Data" to paste your own comma-separated closing prices.
- Configure Settings:
- Period: The number of candles used for the Moving Average (standard is 20).
- Std Dev: The standard deviation multiplier for the bands (standard is 2).
- Calculate: Click the button to generate the chart and values.
- Analyze: Observe where the price is relative to the bands. Prices near the upper band may indicate overbought conditions, while prices near the lower band may indicate oversold conditions.
What are Bollinger Bands?
Bollinger Bands are a technical analysis tool defined by a set of trendlines plotted two standard deviations (positively and negatively) away from a simple moving average (SMA) of a security's price.
They were developed by financial analyst and trader John Bollinger in the 1980s. The purpose of Bollinger Bands is to provide a relative definition of high and low prices of a market. By definition, prices are high at the upper band and low at the lower band.
The Calculation Formula
- Middle Band = Simple Moving Average (SMA) of n periods
- Upper Band = Middle Band + (k × Standard Deviation)
- Lower Band = Middle Band - (k × Standard Deviation)
Where n is the Period (usually 20) and k is the Standard Deviation factor (usually 2).
Why Traders Use Bollinger Bands
- Volatility Measurement: The bands widen when the market is volatile and contract (the "squeeze") when the market is stable. A squeeze often precedes a significant price move.
- Trend Identification: Price walking up the upper band can indicate a strong uptrend, while walking down the lower band indicates a strong downtrend.
- Reversals: "M-Tops" and "W-Bottoms" are common reversal patterns identified using the bands.
Frequently Asked Questions
What is the best setting for Bollinger Bands?
The standard default is a 20-period SMA with bands at 2 standard deviations. Short-term traders might use 10 periods with 1.5 standard deviations, while long-term traders might use 50 periods with 2.5 standard deviations.
What does it mean when the bands "squeeze"?
A "squeeze" occurs when the bands move closer together, indicating low volatility. Traders watch for this as it is often followed by a period of high volatility and a potential breakout.
Related Tools
ATR Calculator
Calculate the Average True Range to measure market volatility for stop loss placement.
Volatility Calculator
Measure the historical volatility of a financial instrument.
Moving Average Calculator
Calculate Simple (SMA) and Exponential (EMA) Moving Averages to smooth price data.
RSI Calculator
Calculate the Relative Strength Index to identify overbought or oversold conditions.
Support & Resistance Calculator
Calculate daily, weekly, and monthly support and resistance levels using Classic, Woodie's, Camarilla, and Fibonacci methods.
Build a Bollinger Bands Strategy in Seconds
Manually calculating bands is fine for analysis, but what if you could automate your trading? With Pineify, you can generate a complete TradingView strategy that buys when price hits the lower band and sells at the upper band—without writing a single line of code.
Create Your Strategy Free