Home About Contact
ForexForums.org




Reply
Old 01-07-2007, 11:37 PM   #11 (permalink)
Administrator
 
kokas's Avatar
 
Join Date: Sep 2006
Location: Portugal
Posts: 507
First Version

Ok here you have the First version of MultiHedgeEA

Let's try it and improve!!
Attached Files
File Type: mq4 MultiHedgeEA_v1.mq4 (19.5 KB, 144 views)
kokas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Old 01-08-2007, 01:13 AM   #12 (permalink)
Junior Member
 
Join Date: Dec 2006
Location: Ottawa, Canada
Posts: 15
Thanks Kokas!!
It's running now on a new demo at IBFX. I started off with EURUSD, GBPUSD, USDCHF, and USDJPY, but shut that setup down as I discovered that the USDJPY isn't correlating well with the EURUSD or GBPUSD these days. Instead, I did something rather unorthodox ... I have two positions with USDCHF. We'll see

Doug
dcraig is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-08-2007, 05:41 AM   #13 (permalink)
Member
 
Join Date: Dec 2006
Posts: 47
Quote:
Originally Posted by dcraig View Post
Just making a few "leaps" here ...

Let's assume we have a USD $4,000 account using 1:100 leverage. If we wanted to risk 10% of the account, that would be $400. Therefore, we'd want to apply roughly $100 to each of the four currency pairs. Lets assume we're looking at EURUSD, USDCHF, GBPUSD and USDJPY. For the two USD base currency pairs, the calculation is easy ($100 x 100 leverage = $10,000, or 10 micro-pips). For the other two currency pairs, it's almost as easy. Let's look at EURUSD for example. The current bid is around 1.30 (US$1.30 for each euro). The inverse of this is EUR$0.77 euro's for each USD. Since we want to open a position with an equivalent value of USD$10,000, we would multiply 0.77 times $10,000, which would give us a value of about EUR$7,700, or approximately 8 micro-lots. We would do the same with the GBPUSD, which would yield an initial position size of 5 micro-lots.

I think this would give us an approximately equal opening position size for all four currency pairs. Nobody will hurt my feelings if I'm off base here, but it seems logical to me...

Doug
I think you are right.
Attached Images
File Type: jpg calculator.jpg (93.3 KB, 162 views)
tomstaufer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-09-2007, 03:10 AM   #14 (permalink)
Administrator
 
kokas's Avatar
 
Join Date: Sep 2006
Location: Portugal
Posts: 507
for some reason the EA is not closing all 4 Orders... But I cannot find this bug on the code...
kokas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-09-2007, 09:59 AM   #15 (permalink)
Junior Member
 
Join Date: Nov 2006
Posts: 26
hi kokas.

good to hear that you working on that.

i can tell you the ratio i trade this pairs manually , please check the statment.

you can see that i make nice profit with that, the reason i like it is the 4 pairs is a better headge and we drawdown less , the intrest is less but not free lunch here.

looking forward for your EA.


us
Quote:
Originally Posted by kokas View Post
Ok this is the thread to begin working on the new MultiHegdeEA. There are a sugestion for the creation of a 4 pair HedgeEA, so let keep this separated from the main HegdeEA thread.

If you have any information about this system please post here. I will begin coding a simple EA that just enter the market with the 4 pairs and monitor this positions.
Attached Files
File Type: htm 4 pairs.htm (16.8 KB, 175 views)
400396 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Old 01-09-2007, 10:14 AM   #16 (permalink)
Administrator
 
kokas's Avatar
 
Join Date: Sep 2006
Location: Portugal
Posts: 507
Hello,
can you elaborate how if you find the ratios?

did you understand how this EA does it? I'm working on the code now to find some bugs
kokas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-09-2007, 10:16 AM   #17 (permalink)
Junior Member
 
Join Date: Nov 2006
Posts: 26
I GOT THIS RATIO FROM FREEDOM ROCKS.

DID YOU CHECK THEIR SYSTEM ? I REMEMBER I TOLD YOU THAT YOU MUST CHECK THEM OUT, WE CAN USE A LOT OF THIER METHOD.

Quote:
Originally Posted by kokas View Post
Hello,
can you elaborate how if you find the ratios?

did you understand how this EA does it? I'm working on the code now to find some bugs
400396 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-09-2007, 10:30 AM   #18 (permalink)
Junior Member
 
Join Date: Nov 2006
Posts: 26
kokas, how can i place my ratio to the EA?
400396 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-09-2007, 10:38 AM   #19 (permalink)
Administrator
 
kokas's Avatar
 
Join Date: Sep 2006
Location: Portugal
Posts: 507
Sure,

Just set AutoRatio off and set the ratios manually

kokas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-09-2007, 10:41 AM   #20 (permalink)
Administrator
 
kokas's Avatar
 
Join Date: Sep 2006
Location: Portugal
Posts: 507
Exclamation

Please take notice that the EA is experimental. It is not closing the trades properly.

I'm still working on it
kokas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
correlation, hedge, multicorrelation, multihedge

LinkBacks (?)
LinkBack to this Thread: http://www.forexforums.org/mt4-expert-advisors-factory/2548-multihedgeea.html
Posted By For Type Date
Question on Hedging - Page 4 - Forex Trading This thread Refback 08-13-2008 01:48 AM
MultiHedgeEA - Page 3 - ForexForums.org This thread Refback 07-01-2008 09:43 PM
ForexForums.org This thread Refback 04-15-2008 08:36 PM


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 On


Sedo - Buy and Sell Domain Names and Websites project info: forexforums.org Statistics for project forexforums.org etracker® web controlling instead of log file analysis

All times are GMT. The time now is 01:35 AM.
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.