Skip to content
72lab

Bollinger Bands EA: no-code builder for MT4 / MT5

ChannelsBollinger Bands are a moving average plus and minus a multiple of the standard deviation. A move back inside from below the lower band reads as a bounce. An open above the upper band signals a strong breakout.

Rules you can build with it

Works as an entry rule or an exit rule. Short rules are mirrored automatically.

  • LongCandle opens above Upper Bollinger Band
    ShortCandle opens below Lower Bollinger Band
  • LongCandle opens below Lower Bollinger Band
    ShortCandle opens above Upper Bollinger Band
  • LongCandle opens below Upper Bollinger Band
    ShortCandle opens above Lower Bollinger Band
  • LongCandle opens above Lower Bollinger Band
    ShortCandle opens below Upper Bollinger Band
  • LongCandle opens above Lower Bollinger Band after opening below it
    ShortCandle opens below Upper Bollinger Band after opening above it
  • LongCandle opens below Upper Bollinger Band after opening above it
    ShortCandle opens above Lower Bollinger Band after opening below it
  • LongCandle opens above Middle Bollinger Band
    ShortCandle opens below Middle Bollinger Band
  • LongCandle opens below Middle Bollinger Band
    ShortCandle opens above Middle Bollinger Band

Settings

SettingsDefaultRange
Period205 – 100
Std. dev. multiplier21 – 4
PriceCloseClose / Opening price / High / Low / Median price / Typical price / Weighted close

How the backtest and the EA calculate it

The middle band is a simple moving average and the standard deviation uses the population formula (divided by N), matching MT5's Bollinger Bands.

Signals use only closed candles and are filled at the next candle's open. The exported EA checks conditions in the same order, so you get similar results in the MT5 Strategy Tester.

Example strategies

Example 1
  • Entry · Bollinger Bands (20, 2, Close): Candle opens above Upper Bollinger Band
  • Stop-loss 300 points, take-profit 600 points
Open in the EA Workshop
Example 2
  • Entry · Bollinger Bands (20, 2, Close): Candle opens above Upper Bollinger Band
  • Entry · Moving Average (50, EMA, Close): MA rises
  • Stop-loss 300 points, take-profit 600 points
Open in the EA Workshop

Examples are just a starting point: open one to change settings or add filters, then check it with backtests and robustness tests. Backtest results don't indicate future returns.