Highly adaptable Bollinger Band Strategy

Custom MT4 expert advisors published here.

Moderator: admin

Highly adaptable Bollinger Band Strategy

Postby Apprentice » Wed Mar 22, 2017 5:22 pm

Description:

This expert advisor will trade according to Price crossing the Bollinger Bands Lines.

For each possible crossing:

- Top Line Cross Over
- Top Line Cross Under
- Center Line Cross Over
- Center Line Cross Under
- Bottom Line Cross Over
- Bottom Line Cross Under

The following actions can be selected:

- No action
- Buy
- Sell
- Close Buy Positions
- Close Sell Positions
- Close All Positions
- Alert

The crossings are compared with the current price and either the Close of the previous bar or checking if any part of the previous bar was at the other side of the crossing (High/Low). So this is an option the trader can choose from.

For a consolidated market the actions which make sense would be:

- Top Line Cross Over: Close Buy Positions
- Top Line Cross Under: Sell
- Center Line Cross Over: No Action
- Center Line Cross Under: No Action
- Bottom Line Cross Over: Buy
- Bottom Line Cross Under: Close Sell Positions

For a trending market the actions which make sense would be:

- Top Line Cross Over: Buy
- Top Line Cross Under: No Action
- Center Line Cross Over: No Action or Close Sell Positions
- Center Line Cross Under: No Action or Close Buy Positions
- Bottom Line Cross Over: No Action
- Bottom Line Cross Under: Sell

EA Features:

- Activate/Deactivate Expert Advisor
- Trader can set Take Profit, Stop Loss, Trailing Stop Loss (with Step) and Slippage in pips
- The TSL is activated when the trade is in profit
- Trader can set the maximum number of opened orders
- Trader can set the risk per trade to be calculated automatically or manual lots
- Trader can set the maximum risk of opened orders (a trade in profit liberates its risk for incoming orders)
- Optional Email and Sound Alerts for Orders
Highly_Adaptable_Bollinger_Band_EA.mq4
(71.28 KiB) Downloaded 1717 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Highly adaptable Bollinger Band Strategy

Postby NuftyEas » Mon Sep 25, 2017 7:45 am

Hi

Just a quick thankyou for the code

I downloaded it from somewhere off the net, and am glad it still had the owners details in the header as I could come here and say thanks

Appreciate the effort from the author

Nufty
NuftyEas
 
Posts: 2
Joined: Mon Sep 25, 2017 7:24 am


Re: Highly adaptable Bollinger Band Strategy

Postby easetup » Sun May 20, 2018 7:37 am

A great work, could it be possible to add a trading hour like start 00:00 Stop: 00:00?
It would be very much appreciated!
easetup
 
Posts: 1
Joined: Sun May 20, 2018 7:34 am

Re: Highly adaptable Bollinger Band Strategy

Postby Apprentice » Thu May 24, 2018 4:25 am

Your request is added to the development list under Id Number 4151
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Highly adaptable Bollinger Band Strategy

Postby Apprentice » Thu Jun 14, 2018 7:40 am

Try this version.
Attachments
Highly_Adaptable_Bollinger_Band_EA.mq4
(74.5 KiB) Downloaded 997 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Highly adaptable Bollinger Band Strategy

Postby Sufiki » Thu Mar 04, 2021 10:01 am

Apprentice wrote:Try this version.


is it possible to add more prce order type such as

1. buy limit
2. sell limit
3. buy stop
4. sellstop
5. and also add price combination, for example buy + sell limit, or sell + buy stop, or other combination

Setup in limit = Current price + X Point (X defined by user). Stoploss and Takeprofit follow existing rule.

Thanks mario
learn to code from the mastes
Sufiki
 
Posts: 10
Joined: Sun Feb 14, 2021 7:15 pm

Re: Highly adaptable Bollinger Band Strategy

Postby Sufiki » Thu Mar 04, 2021 10:20 am

is it possible to modify this ea?
learn to code from the mastes
Sufiki
 
Posts: 10
Joined: Sun Feb 14, 2021 7:15 pm

Re: Highly adaptable Bollinger Band Strategy

Postby Apprentice » Thu Mar 04, 2021 12:17 pm

Your request is added to the development list.
Development reference 250.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Highly adaptable Bollinger Band Strategy

Postby Sufiki » Thu Mar 04, 2021 2:07 pm

Apprentice wrote:Your request is added to the development list.
Development reference 250.


one thing i forgot to write above, please also delete or modify price to current price + X pip. This is only if any new candle close outside line.

thanks mr
Attachments
ss.png
picturene
learn to code from the mastes
Sufiki
 
Posts: 10
Joined: Sun Feb 14, 2021 7:15 pm

Next

Return to MT4 Expert Advisors

Who is online

Users browsing this forum: No registered users and 20 guests