Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-12-2008, 12:41 PM
dealstone's Avatar
Junior Member
 
Join Date: Sep 2007
Posts: 15
dealstone is on a distinguished road
Bollonger bands based EA

Hi there!

Let me introduce the my EA based on Bollinger's bands (BB). The main idea is to buy when main BB is crossed by price bottom-up and vice-versa, - to sell when price crosses BB's main line top-down.
We have here some stops and limiters: there are addition levels that should prevent us to open position when price crossed BB main line by accident (levels 0.05/-0.05, 0.05 means 5 % of difference between BB's high and main lines), levels called h2 (0.4/-0.4) are StopLoss levels, h3 is TakeProfit: if you bought, the level -0.4 would be a StopLoss, and TakeProfit would be placed on level h3 (may be more or less than h2).
Also there is a limiter by market's volatility: the difference between level h3 and BB's main line is called delta, I set up high and low values (delta_h and delta correspondingly). EA cannot open new position if current “delta_h” is more or “delta” is less than predefiend values.
There is also trailing module that should control open position. If you opened posiion (buy for example), the stoploss would be set to the -h2 and takeprofit to the h3. SL level would be set to the “sl_dist1” level later on, if profit reached “sl_level1”, the “sl_dist2” level would be applied, and so on. No changes should be applied to the TakeProfit.
Again, I set here money management module, that calculates last consecutive loss/profits and has separate value for each progression. For example, if we have a progression that consists of last 5 wins/losses, the “prk5” will be used as the volume of new position. All “prk” are set to the 0.01 lots by default.
The main difficulty I've been facing during the optimization process is the not so good results when was tested on the data that were out of recall.
Please post your ideas/suggestions to this thread or PM me
Attached Images
File Type: gif report1.gif (8.2 KB, 2002 views)
Attached Files
File Type: ex4 BB_advTrailing.ex4 (9.3 KB, 1042 views)
__________________
De gustibus non est disputandum.

Last edited by Linuxser; 10-12-2008 at 10:39 PM. Reason: @
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 10-12-2008, 01:03 PM
dealstone's Avatar
Junior Member
 
Join Date: Sep 2007
Posts: 15
dealstone is on a distinguished road
trade's screen

Please see this screen shot that may help you to get how it works.

Thank you.
Attached Images
File Type: gif gbpusdm60.gif (40.1 KB, 2033 views)
__________________
De gustibus non est disputandum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 10-12-2008, 01:05 PM
dealstone's Avatar
Junior Member
 
Join Date: Sep 2007
Posts: 15
dealstone is on a distinguished road
Pls disregard one
Attached Images
File Type: gif gbpusdm60.gif (40.1 KB, 1954 views)
__________________
De gustibus non est disputandum.

Last edited by dealstone; 10-12-2008 at 02:15 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 10-12-2008, 06:24 PM
Junior Member
 
Join Date: Sep 2008
Posts: 16
evereal is on a distinguished road
hi dealstone, thanks for sharing your EA.
can you please post the setting file of the sample Images in the first post?
and also the "StrategyTester.htm" please.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 10-13-2008, 05:53 AM
Junior Member
 
Join Date: Apr 2008
Posts: 3
ryanfx168 is on a distinguished road
It's very good,thank you.
Does your ea have time limited?
thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 10-13-2008, 10:05 AM
dealstone's Avatar
Junior Member
 
Join Date: Sep 2007
Posts: 15
dealstone is on a distinguished road
Hi guys!

Please see StrategyTester.htm, image and .set file attached, it was being optimized during Oct 2007 - May 2008 with the settings that you can find out in .set file, there was enabled "Long & short positions" option.

In regards to the used timeframe - I prefer the H1, however I think that more timeframes may and should be tested, at least M30, H4.

Thank you.

Best,

Dealstone.
Attached Images
File Type: gif StrategyTester1.gif (8.2 KB, 1794 views)
Attached Files
File Type: htm StrategyTester1.htm (32.4 KB, 408 views)
File Type: set strategytester1.set (1.4 KB, 277 views)
__________________
De gustibus non est disputandum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 10-13-2008, 10:13 AM
dealstone's Avatar
Junior Member
 
Join Date: Sep 2007
Posts: 15
dealstone is on a distinguished road
There are a couple raw ideas that can be implemented:

- to divorce long and short positions, to use different settings buying and selling;

- to calculate approx profit positions' lifetime and close them by the time.

Any ideas/comments ?
__________________
De gustibus non est disputandum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 10-13-2008, 12:42 PM
Junior Member
 
Join Date: Jul 2007
Posts: 19
Roger_Taum is on a distinguished road
Hi Dealstone,

The EA is crushing my MT platform. What could be the reason? Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 10-14-2008, 05:21 AM
MANSTIR's Avatar
Senior Member
 
Join Date: Nov 2007
Posts: 162
MANSTIR is on a distinguished road
Thanks for sharing, i've never think of breakout BB strategi before...hmmm when i see your rules strategy, its open my eyes clear now... thanks again

correct me if i'm wrong, your strategy based on breakout center line of BB, right?

Last edited by MANSTIR; 10-14-2008 at 05:25 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #10 (permalink)  
Old 10-14-2008, 11:24 PM
dealstone's Avatar
Junior Member
 
Join Date: Sep 2007
Posts: 15
dealstone is on a distinguished road
Hi again!

Thanks to everyone who is interested in improvement of this EA !

Roger_Taum, I did not get clearly what had happened, code page does not have any command/include that could break your trading platform. Please specify the issue you experienced, maybe screenshot will be needed.

MANSTIR, you are right, it will open position once the central (main) line is broken. The trade will start, if iHIGH values of 2 last bars iHigh(1) && iHigh(2) are less than first level (usual, first levels are +-10% of BB_HIGH-BB_MAIN, i.e. of half a Bollinger bands' channel) - for buying; sure, it should check iLow of last 2 bars and (-10%) control line for selling.

Regards,

Dealstone.
__________________
De gustibus non est disputandum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
bollinger bands ea, bbands EA, Bands, bollinger bands, Bollonger Bands, bollinger ea


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Better Bollinger Bands... forextrades Metatrader 4 17 06-07-2009 12:35 AM
boolinger_starc bands deepdrunk Indicators - Metatrader 4 26 03-25-2008 07:25 PM
adjustable bollinger bands oneprint Indicators - Metatrader 4 8 05-29-2007 02:08 AM
Fib bollinger bands Thruline Indicators - Metatrader 4 4 03-16-2006 08:40 PM


All times are GMT. The time now is 07:50 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.