Forex Factory
  • Login

  • Username: Password:
  • 10:45am

  • Search
  • Home

  • Forums

  • Trades

  • Calendar

  • News

  • Market

  • Brokers

Options

Search

Subscribe to Thread

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

Open Source DLL + EA 8 replies

trailing 23 EA open source 24 replies

Better and Smoothed Analogue of Laguerre! Open Source 0 replies

Open Source Forex Testing Software 2 replies

  • Trading Systems
  • /
  • Reply to Thread
  • 2

Hedge Rocks, open source EA

  • Post# 1
  • Quote
  • First Post: Jun 2, 2010 10:58pm | Edited at 11:53pm
  • Blud4oilPrgm
    Commercial Member | 389 Posts | Joined Jun 2008
I found this EA on another website

Repost
"Ok, I took out the copy protection stuff and tried to organize things a little before I post it. Almost ready! BTW I have a real job which I have to tend to occasionally so, I am doing this as fast as I can (to the more impatient of you).

Before I post my EA: The �Hedge� Rocks Expert Advisor for MT4. I warn you now that I am more of a math dude than a MQL/MT4 programmer: my programming techniques are much like my surroundings� disorganized and messy. However, the math is sound and matches the FR trading system to a high degree of precision. Feel free to clean up my code if you wish.

Now some caveats:

1) This EA was never tested on the real thing� only demos. It is still somewhat buggy. Don�t run it on a live account unless you thoroughly test it on a demo account.

2) I wrote this using the tradeviewforex.com demo account. It is calibrated to use 200:1 leverage with 100K lot sizes and roughly a 10K or 100K account balance.

3) The sizes of your purchased lots (according to FR) should be no less than .5 to ensure that the ratios between the hedge groups are optimized. It still seems to work fine with less. If you choose the highest leverage or use 10K or �micro� lot sizes to trade, the purchased lots will be higher. If you can�t change your lot sizes or your leverage� than you have to increase the amount you trade� via the Margin Percentage or the account balance� or both. It seems to work just fine with purchased lots of less than .5 but, that is what they say.

4) I simply copied the FR system as best I could and have no opinion on its validity. They all seem a bit fanatical if you ask me� and that whole direct marketing thing is just not my cup of tea. It certainly can lose in spite what your Cool-Aide-Drinking friends at FR might tell you.


BUGS:

1) During the placing of the initial orders, sometimes one of two members of a currency group gets rejected by the broker which causes it to sell the remaining pair and reorder the group� causing you to eat the spread on the sold pair. It has something to do with the speed at which some brokers can accept orders.

2) Rarely, it has a problem getting the historical data and crashes out my little Pearson Correlation routine at the end. I put in a bunch of catches but it still throws an error on rare occasion.
"

It can hedge e/u, u/c, g/u. I just started tinkering with it and the TP doesn't seem to work as specified. Tonight (Asian Session) I ran the EA in 2 separate instances of Alpari demo, one with the default hedge settings, the other with only e/u, u/c hedgable. Managed to eek out about 14 pips by closing all trades when in some kind of profit, without even paying attention to the charts, which I did as a little experiment.

Let's test this thing
Attached Files
File Type: mq4 Hedge Rocks.mq4   57 KB | 520 downloads
File Type: ex4 Hedge Rocks.ex4   98 KB | 331 downloads
  • Post# 2
  • Quote
  • Jun 3, 2010 1:24am
  • Minnelli
    Joined Apr 2004 | 111 Posts | Status: Member
Okay cool - I've been looking for a hedge system. Do I just place this on one chart?
  • Post# 3
  • Quote
  • Jun 3, 2010 9:30pm
  • Universal
    Joined Jun 2009 | 26 Posts | Status: Member
Hey.

Thank for your EA, can you put your chart and a litter bit of the trading system?
  • Post# 4
  • Quote
  • Last Post: Jun 14, 2010 12:07am
  • goLanago
    Joined Oct 2006 | 3 Posts | Status: Member
Running this EA from June 4. So far EA is profitable and DD is not scary. Thank you for your efforts. Any new versions? Is not it a Freedom Rock strategy?
Thread Tools Search this Thread
Show Printable Version Show Printable Version
Email This Thread Email This Thread
Search this Thread:

Advanced Search

  • Trading Systems
  • /
  • Hedge Rocks, open source EA
  • Reply to Thread
0 traders viewing now

©2013 Forex Factory, Inc. / Terms of Use / Privacy Policy

Forex Factory® is a registered trademark.

Connect

  • Facebook
  • Twitter
  • RSS

Company

  • About FF
  • FF Blog
  • Careers at FF
  • Advertising
  • Contact FF

Products

  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer

Website

  • Homepage
  • Search
  • User Guide
  • Member List
  • Online Now
  • Report a Bug