Hedge Rocks, open source EA (Hedge Rocks, open source EA)
I found this EA on another website
Forward
"Okay, I took out the copy protected stuff and tried to tidy it up before posting. Almost ready! BTW, I have a real job that I have to do occasionally, so, I'm working on it as soon as I can (for the more impatient of you).
Before I publish my EA: "Hedge" Rocks Expert Advisor for MT4. I warn you now that I am more of a math expert than an MQL/MT4 programmer: my programming skills are much like my surroundings - messy. However, the math is sound and closely matches the FR trading system. Feel free to clean up my code if you like.
Now some caveats:
1) This EA has never been tested on the real thing, only in demos. It's still a bit problematic. Don't run it on a real account unless you test it thoroughly on a demo account.
2) I wrote this article using a tradeviewforex.com demo account. It is calibrated to use 200:1 leverage, 100K lot size and approximately 10K or 100K account balance.
3) The lot size you purchase (according to FR) should be no less than 0.5 to ensure that the ratio between hedging groups is optimized. Still seems to work fine with less. If you choose the highest leverage or trade with 10K or "micro" lots, the lot size purchased will be higher. If you cannot change the lot size or leverage, you must increase the trade amount via margin percentage or account balance or both. It seems to work fine for purchased batches smaller than 0.5, however, that's what they say.
4) I just copied the FR system as closely as possible and have no opinion on its effectiveness. They all seem a little fanatical if you ask me...and the whole direct selling thing is not my cup of tea. No matter what your cool-assistant friends in FR may tell you, it's bound to fail.
mistake:
1) During placing the initial order, sometimes one of the two members of a currency group will be rejected by the broker, which will cause the broker to sell the remaining currency pair and reorder the currency pair, causing you to eat the spread on the sold currency pair. This has something to do with the speed at which some brokers accept orders.
2) Rarely, it has problems getting historical data and crashes my little Pearson related routine at the end. I put in a bunch of catches but it still throws errors on rare occasions. "
It can hedge e/u, u/c, g/u. I just started modifying it and the TP doesn't seem to be working the way specified. Tonight (Asia session) I am running the EA in 2 separate instances of the Alpari demo, one using the default hedging settings and the other using only e/u, u/c hedging. I managed to get around 14 pips by closing all trades when there was some kind of profit, without even paying attention to the chart, this was a little experiment I did.
Let's test this thing
Forward
"Okay, I took out the copy protected stuff and tried to tidy it up before posting. Almost ready! BTW, I have a real job that I have to do occasionally, so, I'm working on it as soon as I can (for the more impatient of you).
Before I publish my EA: "Hedge" Rocks Expert Advisor for MT4. I warn you now that I am more of a math expert than an MQL/MT4 programmer: my programming skills are much like my surroundings - messy. However, the math is sound and closely matches the FR trading system. Feel free to clean up my code if you like.
Now some caveats:
1) This EA has never been tested on the real thing, only in demos. It's still a bit problematic. Don't run it on a real account unless you test it thoroughly on a demo account.
2) I wrote this article using a tradeviewforex.com demo account. It is calibrated to use 200:1 leverage, 100K lot size and approximately 10K or 100K account balance.
3) The lot size you purchase (according to FR) should be no less than 0.5 to ensure that the ratio between hedging groups is optimized. Still seems to work fine with less. If you choose the highest leverage or trade with 10K or "micro" lots, the lot size purchased will be higher. If you cannot change the lot size or leverage, you must increase the trade amount via margin percentage or account balance or both. It seems to work fine for purchased batches smaller than 0.5, however, that's what they say.
4) I just copied the FR system as closely as possible and have no opinion on its effectiveness. They all seem a little fanatical if you ask me...and the whole direct selling thing is not my cup of tea. No matter what your cool-assistant friends in FR may tell you, it's bound to fail.
mistake:
1) During placing the initial order, sometimes one of the two members of a currency group will be rejected by the broker, which will cause the broker to sell the remaining currency pair and reorder the currency pair, causing you to eat the spread on the sold currency pair. This has something to do with the speed at which some brokers accept orders.
2) Rarely, it has problems getting historical data and crashes my little Pearson related routine at the end. I put in a bunch of catches but it still throws errors on rare occasions. "
It can hedge e/u, u/c, g/u. I just started modifying it and the TP doesn't seem to be working the way specified. Tonight (Asia session) I am running the EA in 2 separate instances of the Alpari demo, one using the default hedging settings and the other using only e/u, u/c hedging. I managed to get around 14 pips by closing all trades when there was some kind of profit, without even paying attention to the chart, this was a little experiment I did.
Let's test this thing
Attachment to original post (2)
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •