Financial analyst and trader John Bollinger invented the Bollinger Bands indicator in the early 1980s. He developed it as a tool to measure market volatility and identify potential trading opportunities by using a moving average and two standard deviation lines to form a "band" around price movements. The Bollinger Bands indicator has become a widely used technical analysis tool in various financial markets.
Identifying Overbought and Oversold Conditions
When prices move near the upper band, they may be overbought, and when they approach the lower band, they could be oversold. This insight can help traders decide whether to buy, sell, or hold.
Bollinger Bands widen during high volatility and narrow during low volatility and this provides a visual cue about market conditions, which can guide traders on when to enter or exit trades based on potential breakouts or consolidations.
In trending markets, prices often move within the bands. For instance, in an uptrend, prices generally hover around the upper band, and in a downtrend, they trend near the lower band. This trend-following signal helps in managing trades.
Prices often return to the middle of the bands (the moving average line), which can indicate a reversion opportunity, and this is helpful for range-bound trading or when a trend is expected to reverse.
Bollinger Bands can complement other indicators (like RSI or MACD), offering a more reliable signal when combined and this flexibility makes them valuable in various trading strategies, from scalping to swing trading.
Combined Bollinger With an RSI
A commonly recommended indicator to use with Bollinger Bands is the Relative Strength Index (RSI), as it provides complementary information on overbought and oversold conditions. Bollinger Bands reveal price volatility and potential reversal points, while the RSI measures the strength and momentum of price movements.
You can easily use the algo building tool to include an RSI indicator, with no coding experience.
The strategy contains the full source code. It is for educational purposes to help traders with various levels of programming knowledge learn the following skills using Microsoft C# and the cTrader API. This cBot was created by the ClickAlgo Strategy Building Tool in a few minutes with no coding.
Risk Management
In addition to the trade signals to open trades automatically, the cBot also uses some basic risk management in the form of the variable position size based on the percentage of the account balance.
You can add risk management features and other trade rules by contacting our development team.
Built Using the Algo Strategy Builder
This cBot was built with no coding required using the cTrader Algorithmic Strategy Builder for the cTrader Platform.
How To View The Source Code
To view the source code for this cBot, you will first need to make sure you have downloaded and installed cTrader Desktop, you can also scroll to the bottom of this page for instructions on how to install the cBot. Once installed you will have the cTrader application open, you need to navigate to the Automate application and click on the name of the cBot, the source should show in the right-hand window.
If you need more help watch a video tutorial on how to use cTrader Automate.
Algorithmic Trading Facts
Many traders venture into algorithmic trading with the misconception that they have discovered a foolproof strategy that guarantees effortless wealth. However, this notion is far from reality.
How To Install & Remove
First, make sure you have the cTrader trading platform installed.
Any Questions?
If you have any questions, please first search our coding help forum for the answer, if you cannot find it, post a new question.
Need a Broker
If you are still looking for a trustful broker, look at our best cTrader broker site.
All cBot Code Examples
You can access all of our free cTrader cBot code examples here.