Bollinger Bands Excel helps you detect buy or sell signals using statistical data. This analysis is easy to create with Excel. Let’s explore how to build and interpret Bollinger Bands for stock price analysis.
What are the Bollinger Bands?
Bollinger Bands are a popular technical analysis tool traders and investors use to assess a security's volatility and relative price levels. They consist of a moving average and two standard deviation lines (bands) plotted above and below the moving average. The purpose of Bollinger Bands can be summarized as follows:
- Identify Overbought/Oversold: Upper band signals overbought; lower band signals oversold.
- Signal Reversals: Price moving outside then inside bands may indicate trend reversals.
- Trend Analysis: Upward bands show an uptrend; downward bands show a downtrend.
- Pattern Recognition: Helps identify double tops and bottoms.
- Confirmation Tool: Used with other indicators for better signal accuracy.
Prepare your data in Excel to build your Bollinger Bands
Ensure you have a dataset with dates and corresponding closing prices. That's all you need. If you work with Excel 365, the STOCKHISTORY function helps you to collect this information easily. In this example, we want to analyze the Amazon's Bollinger Band Chart.
#1: Calculate the Moving Average:
Decide on the period for the moving average, e.g., 20 days.
- Select cell B21 (20 rows after the first cell)
- In B21, enter the formula for the moving average =AVERAGE(B2:B21)
- Drag this formula down to calculate the moving average for the entire dataset.
#3: Calculate the Standard Deviation
In cell C21, enter the formula to calculate the standard deviation for the same range used in the moving average.
#3: Calculate the Lower Bollinger Band
Bollinger Bands use 2 times the standard deviation to define the upper and lower bands around a moving average. According to statistical theory, approximately 95% of data points in a normal distribution lie within ±2 standard deviations of the mean. Using 2 standard deviations helps capture most price movements, providing a meaningful boundary for volatility.
- In cell E21, enter the formula to calculate the upper band
=C21 - (D21 * 2)
#4: Calculate the Upper Bollinger Band
- In cell F2, enter the formula to calculate the lower band
=C21 - (D21 * 2)
Plot the Data in a Line Chart and Customize the chart
Drawing a chart in Excel is very easy.
- Select all your data
- Go the menu Insert > Chart > Line
Then you have this chart, but you need to customize some chart elements.
- Click on the + sign on the right side of the chart
- Remove Chart Title
- Remove Legend.
- Right-click on your chart.
- Select the option "Select Data Source"
- Unchecked the Stdev series
- Select the Vertical axis
- Open the right pane (double-click on the axis)
- Go to the menu Axis option (the chart icon)
- Change the value of the minimum according to the data in your chart
- Change the color of the lines and the background to present your chart like this
How to Analyze a Bollinger Chart?
This is just the theory. There is no foolproof way to make perfect buy or sell decisions in equities.
- If the stock price reaches or exceeds the upper Bollinger Band, it signals a potential selling opportunity.
- Conversely, if the stock price hits the lower Bollinger Band, it indicates a potential buying opportunity.