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
  #11 (permalink)  
Old 10-15-2008, 02:59 AM
MANSTIR's Avatar
Senior Member
 
Join Date: Nov 2007
Posts: 162
MANSTIR is on a distinguished road
Quote:
Originally Posted by dealstone View Post
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.
GREAT! i think it wont work on M30...i'll try with H1 today...
hmmm i should suggest this ea can check M1 data too for precaution...
hope it help....
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
  #12 (permalink)  
Old 10-15-2008, 05:42 AM
Member
 
Join Date: Jul 2007
Posts: 51
cipyu is on a distinguished road
Quote:
Originally Posted by dealstone View Post
Please see this screen shot that may help you to get how it works.

Thank you.
since you open this thread,
please share this template..
http://www.forex-tsd.com/attachments...-gbpusdm60.gif

tq..

Last edited by cipyu; 10-15-2008 at 05:57 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
  #13 (permalink)  
Old 10-16-2008, 06:54 PM
dealstone's Avatar
Junior Member
 
Join Date: Sep 2007
Posts: 15
dealstone is on a distinguished road
Hi all!

MANSTIR, how do you do ?
have you got any interesting results ?

cipyu, unfortunately, I did not saved that results so let me refer you to the files stored in #6 post within this thread; again,you can try to optimize one all alone.

Best,

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
  #14 (permalink)  
Old 10-17-2008, 03:25 AM
MANSTIR's Avatar
Senior Member
 
Join Date: Nov 2007
Posts: 162
MANSTIR is on a distinguished road
Quote:
Originally Posted by dealstone View Post
Hi all!

MANSTIR, how do you do ?
have you got any interesting results ?

cipyu, unfortunately, I did not saved that results so let me refer you to the files stored in #6 post within this thread; again,you can try to optimize one all alone.

Best,

Dealstone.
sorry my friend,

i've many things to do last few days...trading..works..bla..bla..blaa...maybe today or next weeks testing on ur ea...
hope u can deliver the .mq4 files here.. because many traders here want to see ur code...or u want commercialize or got some reason not to give us ur source code?

well manner, ur ea are among the best...
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
  #15 (permalink)  
Old 10-19-2008, 03:23 PM
dealstone's Avatar
Junior Member
 
Join Date: Sep 2007
Posts: 15
dealstone is on a distinguished road
BB's system code page

Hi all!

Please see code page of my system in attachment. As you can see this code is easy enough, however, please forgive for my some code's misdoings since I've learned MQL for past two months.

There is a pure idea in this code,I've removed certain modules, like money management and trailing stop.

Hope it helps and we will find out the way how to improve one and to do it more useful


Best,

Dealstone.
Attached Files
File Type: txt BollingerBands_CODE_PAGE.txt (6.0 KB, 275 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
  #16 (permalink)  
Old 10-19-2008, 04:21 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,354
ElectricSavant is on a distinguished road
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.
So that is the centerline (midline) of the bollinger bands, I suppose.

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),
I see....so you have a channel around the centerline (midline) to allow the price to wiggle

levels called h2 (0.4/-0.4) are StopLoss levels,
so this EA has order modify at each new candlestick

h3 is TakeProfit: if you bought, the level -0.4 would be a StopLoss,
You lost me here. Why would I buy the lower channel...that would have been the SL for the upper channel

and TakeProfit would be placed on level h3 (may be more or less than h2).
This assumes you trade goes against you and the SL goes wider too with ordermodify? Otherwise your TP (H3) could not be less than your SL (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.
Nice

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.
Very dynamic use of price action


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.
Interesting. Could you go into a strategy using this module and why you would increase or rank a lotsize based on progression?

Please post your ideas/suggestions to this thread or PM me
I would need to forward test this EA and to do that I need you to share the COMPLETE MQ4 download without expiration dates. Why should I waste my time otherwise? This is an open source, public domain project right?

Last edited by ElectricSavant; 10-19-2008 at 04:49 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
  #17 (permalink)  
Old 10-19-2008, 04:43 PM
ElectricSavant's Avatar
Senior Member
 
Join Date: Jun 2007
Posts: 3,354
ElectricSavant is on a distinguished road
I think there are a lot of order modifies...maybe you are trying it on a volatile child like guppy no? Try H1 cable with the setfile in post#6 to see if your puter' locks up. Uncheck the box for "enable alerts" in the common tab of the Smiley...

ES

Quote:
Originally Posted by Roger_Taum View Post
Hi Dealstone,

The EA is crushing my MT platform. What could be the reason? Thanks.

Last edited by ElectricSavant; 10-19-2008 at 11:50 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
  #18 (permalink)  
Old 10-27-2008, 11:47 PM
dealstone's Avatar
Junior Member
 
Join Date: Sep 2007
Posts: 15
dealstone is on a distinguished road
Hi all!

To ElectricSavant: please see my post #13, I've published the source code there without Money-Management module.
I performed some changes, for example, the order's SL & TP would be modified with the step 5 points.

Any questions ? Please post ones here

----------------------------------------------
Best,

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
  #19 (permalink)  
Old 06-26-2009, 12:14 PM
Junior Member
 
Join Date: Sep 2008
Location: Lithuania, Europe
Posts: 2
xenu is on a distinguished road
Where is magic number, input? it interferres with other EAs.
2009.06.26 14:13:33 BB_advTrailing USDJPYFXF,H1: Alert: Too calm market 0.4792

USDJPY with such a price?
__________________
http://www.nakagava.com

Last edited by xenu; 06-26-2009 at 12:18 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
  #20 (permalink)  
Old 06-26-2009, 03:06 PM
1Dave7's Avatar
Senior Member
 
Join Date: Aug 2007
Posts: 183
1Dave7 is on a distinguished road
Smile

Quote:
Originally Posted by dealstone View Post
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
Is this configured for a 4-digit or 5-digit broker?? My broker - IBFX uses 5-digits! Can you add another zero '0' to the SL,TP,BE,TS? If the StopLoss (SL) is set to 30 pips, it would need to be changed to 300 to work on a 5-digit MQ4 platform like IBFX now uses.

Please modify if you would if needed and repost.

Thank you for your time and patience!

Dave
<><<<
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:44 AM.



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