Home » Expert Advisor » Bollinger Bands EA

Bollinger Bands EA


Get the Bollinger Bands EA!

  • 3.9/5
  • 117 ratings
117 ratingsX
Very bad! Bad Hmmm Oke Good!
0.9% 11.1% 22.2% 23.9% 41.9%

About the Bollinger Bands

The Bollinger Bands indicator was invented by John Bollinger in the 1980s. The Bollinger Bands consist of a Moving Average, an Upper and a Lower Band and is included in Metatrader 4 and 5. The default settings are 20 for the period and 2 for the deviation.

Trade logic of this forex robot

The Bollinger Bands EA is a forex robot which uses Bollinger Bands to enter a trade. It has 2 different entry strategies.
BreakOut: If the last bar closes above the upper band it enters a Sell Order. If the close of the last bar is below the lower band a Buy Order is generated.
BreakIn: If the last bar crosses the upper band from above it enters a Sell Order. If the last bar crosses the lower band from below a Buy Order is generated.

Exit strategies (only MT4 Advanced and MT4 Pro)

The Bollinger Bands EA has 2 different exit strategies.

  • Close on middle Band: The trade will be closed if the middle Bollinger Band gets crossed.
  • Close on opposite Band: The trade will be closed if a candle closes below/above the opposite Band.

Parameters for the Bollinger Bands EA

Timeframe = The timeframe on which the EA should work regardless of what timeframe your chart is set to.
Averaging Period = Averaging period to calculate the main line (default is 20)
Standard Deviation = Deviation from the main line (default is 2)
Bands Shift = The indicator shift relative to the chart (default is 0)
Applied Price = The price values on which calculations will be performed

Versions overview

Functions Basic Advanced Pro
Money Management
Trade on new Bar
Inverse Strategy
Trailing Stop
Break Even
Spread Filter
MA Trend Filter
Trade max. once per Bar
2 exit strategies
Candle Trail
ATR Trail
Day/Time Filter
Reverse on Opposite Signal
Trade Direction

More about this Expert Advisor

  • You can install this Metatrader Expert Advisor on limitless demo and live accounts.
  • Note that this Expert Advisor does not draw any indicator on the chart.
  • You do not understand all the functions? Take a look at our function glossary.
  • The license of every Expert Advisor you download is time limited, but you can re-download newer versions any time in your purchase history.
  • MT4 Basic v1.05
  • MT4 Advanced v1.06
  • MT4 Pro v1.06
  • Apr 11, 2016

  • Added: BreakIn strategy
  • Jan 13, 2016

  • Minor updates and fixes in all MT4 versions
  • Nov 17, 2015

  • Added: ATR Trail (MT4 Pro)
  • Added: Reverse on opposite signal (MT4 Pro)
  • Added: 2 exit strategies (only MT4 Advanced and MT4 Pro)
  • Mar 17, 2015

  • Initial release MT4 Pro
  • Apr 11, 2015

  • Some improvements in all MT4 versions
  • Added “Max once per Bar” function to all MT4 Advanced and Pro versions
  • Feb 07, 2015

  • Initial release MT4/MT5 Basic and Advanced

40 thoughts on “Bollinger Bands EA

  1. ion alexa says:

    Hello, I bought Bollinger Bands EA pro but does not have the Martingale function opens a single order, how can I set it to open more orders in increasing batch: 0.01, 0.02, 0.03 …. etc = and close all , Where I can send you photographers to understand better.

    1. Yannick says:

      The martingale function does not open multiple trades, it only increases or decreases the next trades. Please read more about it here.

  2. Ahmad says:

    Does this ea simultaneously open but and sell trade, like if sell trade was opened but not reached its TP, and then buy signal appears, will ea take a buy trade without closing sell trade?

    1. Ahmad says:

      Sorry, typo. Simultaneously open buy and sell trade.

      1. Yannick says:

        No, this EA will only have one position open at the same time.

  3. Sally Underwood says:

    Hi Yanick. Is it possible to set an entry a number of pips outside the BB? I would like to enter the trade when price is 12pips outside the band. Would I be able to do that with your EA?

    1. Yannick says:

      This would require a custom modification.

  4. Xiska saputra says:

    Dear Yannick,

    I already buy your pro version, I need to know how your martingale works, how to set up the martingale value, if we set the initial lots 0,02 with take profit 100 pips, stop loss 400 pips. if I get loss, and I want to take the profit for the second trade and so on, how much value shall I put in the martingale value? and shall I use multiplier ? how does the multiplier works ? if I set the martingale value 0.1, and set the multiplier to true, after 1st trade loss with 0.02lots x 400 pips loss, 2nd trade will be 0.12 lots with take profit 100 pips? and then if still loss, how much is it the lots for the third trade?

    Sorry for having so many question, since I am newbie in this case.
    Thank you.

    1. Yannick says:

      You will find all you need here:

  5. Xiska Saputra says:

    hi there, i am using the basic on my cent account, i set the take profit to be 100 pips and stop loss to be 400pips but how come the ea proceed the take profit become 1000 pips? how to set take profit 100pips in cent account? can you help me? thanks

    1. Yannick says:

      Its not because of the cent account. Its because my EA do automatically calculate if you use a 4 or 5 digits broker. On a 4 digits symbol 1 pips is 0.0001, on a 5 digits symbol 1 pips is 0.00010. Hope this helps.

      1. Xiska saputra says:

        thanks for the info, I already manage to make it into 100 pips and 400 pips.

  6. kichino says:

    Hi. I can’t make your basic work. Let me know how to do it.

  7. Hussain says:

    I used the free one
    with GBPJPY Time frame H1
    the lot size was 1.00
    with SL 200 Pips & TP 50 Pips
    My demo account was $10000 and now its is more than $15000 in 35 days
    It is amazing but unfortunately it does not have news filter
    but , it is amazing

    1. Yannick says:

      Glad you like it 🙂

  8. Pietro says:

    I would be nice to have a news filer for this EA

    1. Yannick says:

      Unfortunately it does only have a time filter.

  9. Monp says:

    Hi, I’m testing your BB basic EA on a demo account, i have observed that when you adjust the lot size to .01 it still trades a bigger lot size like 3.6 or 4.3. why is that so? does the EA depend it’s opened trades on the balance/equity?

    1. Yannick says:

      You have to set the MoneyManagement function to false.

  10. greatness says:

    Check out this forum thread opened by a BollingerBand EA user.


    It is on one of his High-risk accounts…

  11. msawenkosi says:

    Hi how can i move this into platform

    1. Yannick says:

      Please use this manual

  12. Antonio Juliam says:

    Qual o tamanho de SL e TP ideal? ou como faço para que a ordem feche quando encostar na média móvel?

    What is the size of SL and TP ideal ? or how do I close the order when touching the moving average ?

    1. Yannick says:

      There is not ideal size of SL and TP. It depends on the timeframe and symbol. Set “use exit strategy” to true and choose the exit strategy you need (only advanced and pro versions on MT4 do have a exit strategy).

  13. João Marcílio says:


  14. graham heyes says:

    I can find the tools and options section but I cannot locate “max bars in history” and “max bars in char” anywhere in the options.

    1. Yannick says:

      It’s in tools > options > charts

  15. graham heyes says:

    no, let me have another try.

  16. graham heyes says:

    BB free version not working in strategy tester

    1. Yannick says:

      Have you used my manual?

  17. william says:

    I just bought the pro and there is a lot of commons to choose from in the list is there a video or page that will break down what each line means?

    1. Yannick says:

      I haven’t made a detailed manual yet, but you can find many functions in the functions glossary.

  18. M Hussain says:

    Basically I not used any Robot in my whole life and also not know , how can download and use the Forex Robot So can you tells us some information about this ?

  19. hamim says:

    please…testimonial on live account?

    1. Yannick says:

      Sorry, I don’t have.

  20. Mustafa özbursa says:

    Hi.i want try bb ea free

    1. Yannick says:

      Feel free to download and test the Bollinger Bands EA – basic version. It’s for free.

  21. roman says:

    it seems clever. I want to try it if possible.

    1. Yannick says:

      Yes. Feel free to download the basic version for free to test the EA.

Leave a Reply

Your email address will not be published. Required fields are marked *

Error: Please enter a valid email address

Error: Invalid email

Error: Please enter your first name

Error: Please enter your last name

Error: Please enter a username

Error: Please enter a password

Error: Please confirm your password

Error: Password and password confirmation do not match