Bollinger Bands bounce
Bollinger Bands surround a middle line and widen when price swings more. The robot treats a move to the edge of a band as stretched: when price returns inside the bands it enters toward the middle line.
Choose a platform: MT5 shows the chart and Inputs screenshots from MetaTrader 5, MT4 shows the chart with entries and the Inputs screenshot from MetaTrader 4.
How the robot trades
When it buys
The close price crosses the lower band upward.
When it sells
The close price crosses the upper band downward.
When it exits
A buy closes when price reaches the middle line or higher; a sell closes when it reaches it or lower.
Screenshot 1 of 5
The conditions as constructor blocks
Open a buy
Open a sell
Close a buy
Close a sell
Inputs
These inputs appear in the expert advisor settings in MetaTrader 5 or MetaTrader 4, and they are what the strategy tester goes through when it optimises the robot.
| Input | Default | What it means |
|---|---|---|
| InpBB_Middle_period | 20 | Band period: how many recent candles the middle line is calculated from. |
| InpBB_Middle_deviation | 2 | Band width in standard deviations: the larger it is, the wider the bands and the rarer the signals. |


How to tune the robot to your style
- Change the band width and watch how the number of signals changes.
- Exit not at the middle line but near the opposite band.
- Add a trend filter, such as a moving average, so the robot does not enter against a strong move.
You can do all of this in the constructor without signing up. To save your changes and come back to them later, you need an account.
Risks
How a strategy behaved in the past does not predict its future results. Check the robot in the strategy tester and on a demo account first, and only then decide whether to trade it with real money. This robot is an example to adapt to your instrument, timeframe and risk rules.