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 583 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 19208
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 Apprentice » Mon Sep 25, 2017 3:56 pm

You're welcome.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 19208
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

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: 19208
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 63 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 19208
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to MT4 Expert Advisors

Who is online

Users browsing this forum: No registered users and 4 guests