PDA

View Full Version : ESS HEDGER This Just Might Work!


Earl
11-14-2008, 11:33 PM
Looking for a Decompiler came accross theis program...this just might work


EES Hedger

Do you have the need to take the opposite side of a trade? Using manual trading or another EA, EES Hedger can immediately take the opposite position as specified in EA parameters.


Instructions:


For example, you are trading FAPS EA on GBPUSD and FAPS EA uses magicnumber of 23136

so you want to use EES Hedger in conjunction with FAPS EA. Open another GBPUSD chart (same pair SAR EA is trading), does not matter which time frame, but it is ideal that you use the same timeframe as what the FAPS EA is trading, or a lower timeframe. Now on EES Hedger’s external var: Original_EA_Magic enter FAPS EA's magicnumber which is in this example 23136. Now make sure that Advocate_EA_Magic is different from Original_EA_Magic. Once FAPS EA opens a trade, EES Hedger will open the opposite order. Now if you want to use EES Hedger for Manual trades, simply input Original_EA_Magic = 0.


Parameters:


Original_EA_Magic = 0, //This is the magic number that your 1st EA uses where advocate EA will base its trades on

Advocate_EA_Magic = 2008, //This is the advocate EAs own magic number please keep it unique to avoid conflict

Slippage = 6, //Amount of allowed slippage

TakeProfit = 50, //Take profit amount, per trade

StopLoss = 50, //Stop loss, per trade

TS_MinProfit = 0, //minimum profit require before trailing stop starts

TrailingStop = 25, //this is the trailing stop in pips

BreakEvenAfterPips = 25; //when this amount in profit in pips is reached SL will be moved to breakeven

ANY CODERS IN THE HOUSE????? we don't want it to open on every trade just trades which are 75 pips +

wishiwasrich
11-15-2008, 01:24 PM
Hi Earl,

It is great to see everyone coming together to develop a winning EA system!! Have you had any luck testing this one out?

riturajchahal
11-15-2008, 04:19 PM
hi earl
thanks a lot for ess hedger
your great
now lets see its results
did u had any luck with it yet

Earl
11-15-2008, 05:04 PM
no...you can't back test it... you'll have to try it on your demo account..

it also need some adjustment in mq4... so that it doesn't buy until you are losing 50 pips or so...

I re did some of the code...but I am not a coder ...lol I don't know if it will work.....

the one posted here has not been recoded I was hoping one of the many coders here could help us out

Earl
11-15-2008, 10:10 PM
This program might work as is......

I'm not sure about the settings but I will post as soon as I have something..or you guys can play...


do it on a demo account...LOL:D

BryanA
11-16-2008, 01:35 AM
The only problem I can see with it, and there has been no forward testing of it yet, is this. Many of FAPS trades never move more than 10 or so pips from entry before they turn for the profit. Some less than that with strong movement. In those cases a hedge trade is obviuously not neccesary. I beleive you were saying that it starts the hedge = to the FAPS entry. If we were able to have settings to move that entry around depending on trending strength I think it would be a very beautiful thing.

And like you were saying as well, maybe these coders can work that out. I know "nothing" of coding. I intend on learning though.

Bryan

Earl
11-16-2008, 02:37 AM
I was thinking more along the lines of gaining an extra 10 or 50 pip per trade.

Most of the positions faps opens immediately move 10 to 50 pips the other way before they go into profit....


this could help to maximize profits...hedging maybe maybe not...but to maximize profits I think yes this can work.

it's rare to see faps take an order that goes directly into profit

joames
11-16-2008, 06:48 AM
Hey, Earl:

Exactly, i was writing this idea in the forum when i see your post, because i use it in my live account, and works fine. It increase the reward. FAP always move many pips against when open. Then i open other order when opened position is about -10 or -50, and i get more pips, to maximize profits against loses. The danger is you never know when arrive the loss, then you have two positions opened.!! The posible solution, is get 300 pips extra in this trades, if you have 300 pips stoploss, and then, you always have loss 0. :-)

I give other idea, FAPS have always many wins, and one trade of loss every many wins, always have only one consecutive loss in backtest in this forum, really? Then, when i have the loss, the next operation i will put many lots, because the posibility of win is enormeus. In the second trade, then i put normal...Whay do you think about it? Years ago, i use this strategy in casinos, and i won many money....but its better FAPS!!!!

Are two ideas very, very good for all.


I was thinking more along the lines of gaining an extra 10 or 50 pip per trade.

Most of the positions faps opens immediately move 10 to 50 pips the other way before they go into profit....


this could help to maximize profits...hedging maybe maybe not...but to maximize profits I think yes this can work.

it's rare to see faps take an order that goes directly into profit

Earl
11-16-2008, 09:07 AM
Hey, Earl:

Exactly, i was writing this idea in the forum when i see your post, because i use it in my live account, and works fine. It increase the reward. FAP always move many pips against when open. Then i open other order when opened position is about -10 or -50, and i get more pips, to maximize profits against loses. The danger is you never know when arrive the loss, then you have two positions opened.!! The posible solution, is get 300 pips extra in this trades, if you have 300 pips stoploss, and then, you always have loss 0. :-)

I give other idea, FAPS have always many wins, and one trade of loss every many wins, always have only one consecutive loss in backtest in this forum, really? Then, when i have the loss, the next operation i will put many lots, because the posibility of win is enormeus. In the second trade, then i put normal...Whay do you think about it? Years ago, i use this strategy in casinos, and i won many money....but its better FAPS!!!!

Are two ideas very, very good for all.you are a gamblin man...lol

of course that could work....you'd have to get some one to code it...or learn to code it yourself.

if you think it ...it's possible

Earl
11-16-2008, 09:48 PM
Looking for a Decompiler came accross theis program...this just might work


EES Hedger

Do you have the need to take the opposite side of a trade? Using manual trading or another EA, EES Hedger can immediately take the opposite position as specified in EA parameters.


Instructions:


For example, you are trading FAPS EA on GBPUSD and FAPS EA uses magicnumber of 23136

so you want to use EES Hedger in conjunction with FAPS EA. Open another GBPUSD chart (same pair FAPS EA is trading), does not matter which time frame, but it is ideal that you use the same timeframe as what the FAPS EA is trading, or a lower timeframe. Now on EES Hedger’s external var: Original_EA_Magic enter FAPS EA's magicnumber which is in this example 23136. Now make sure that Advocate_EA_Magic is different from Original_EA_Magic. Once FAPS EA opens a trade, EES Hedger will open the opposite order. Now if you want to use EES Hedger for Manual trades, simply input Original_EA_Magic = 0.


Parameters:


Original_EA_Magic = 231313, //This is the magic number that your 1st EA uses where advocate EA will base its trades on

Advocate_EA_Magic = 2008, //This is the advocate EAs own magic number please keep it unique to avoid conflict

Slippage = 3, //Amount of allowed slippage

TakeProfit = 20, this is safe you could fo to 15

StopLoss = 20, it might eat all your profit but you win some you lose some

TS_MinProfit = 0, //minimum profit require before trailing stop starts

TrailingStop = 0, //this is the trailing stop in pips

BreakEvenAfterPips = 25; //when this amount in profit in pips is reached SL will be moved to breakeven

lot size = .23 I would set this to half of your current lot size

ANY CODERS IN THE HOUSE????? we don't want it to open on every trade just trades which are 75 pips +
a great topper...you just have to go into to meta and change the settings at the start of the program it doesn't seem to work in the input section....

so far on 3 trades it made me 20 pips extra per trade....it could make more but...yanno

if you have no clue what to do...don't do it..LOL
but it works...

if you set the tp to 150 you could use it to hedge ...you could manually modify the trade after it's bought so that it closes at even...

or just set your stop loss to 5 so that if it goes the other way your safe..

hey btw the inputs work I think next trade will tell

Earl
11-16-2008, 10:25 PM
I was thinking about opening 3 windows

1 with faps with willsell's settings
2nd window with ess tp 20 s/l -1 setting lot to what ever lot your running
3rd window with ess tp 150 s/l -1 setting lot to whatever

if faps goes right to profit you win and you don't lose anything -2 PIPS
if faps goes right into negative and heads for -20 you win
if faps goes right into negative and doesn't stop after -20 you are covered up to 150 pip and close out both trades at anytime


It's not the end all and be all but it could help...there are still ways to lose...ie if it trips the s/l back off then continuesther way..well you might be screwed...LOL

Sooner
11-16-2008, 10:52 PM
Take a look at what KoeiSeun put together as well. We are still testing it but the logic makes sense. I have it running now, going to let it run all night on the demo account along with FAPS and see how it performs.

n1ghtnday
11-16-2008, 11:16 PM
Earl, just figure out what you want and i'll code it. Just be sure it's what you want =p

-nnd

BryanA
11-16-2008, 11:20 PM
I found this free Hedging EA. I know absolutely nothing about it and there is no guide to it. I thought If we get as many hedging EA's together that have many user settings that we may be able to come up with a great one using ideas from all of them.




Bryan

wishiwasrich
11-17-2008, 12:22 AM
Hi Earl,

Will this auto open hedge trades when Faps does?

Earl
11-17-2008, 02:43 AM
Yes it opens the opposite trade....I'll try my best to explain..

here are the two files I already set them up....sometimes they work sometimes they don't use at your own risk...

I haven't tested them long enough to know....but in theory it should

I would open 3 windows

1 faps ..I would move your tp to 25
2 ess hedge topper ...already set ...sl 5 tp 20
3 ess hedge saver....already set sl 5 tp 150

you need to go into metquotes editor to edit the lot size because for some reason it won't let you do it from the inputs...it's easy it is on the first part of the code can't miss it...the lots are set at .6 right now so if you are not trading that high then change them please


Now if you want to use EES Hedger for Manual trades. Simply input Original_EA_Magic = 0;
*/

#property copyright "Copyright © 2008, Elite E Services"
#property link "http://eliteeservices.net"

extern int
Original_EA_Magic = 231313, //This is the magic number that your 1st EA uses where advocate EA will base its trades on
Advocate_EA_Magic = 2008, //This is the advocate EAs own magic number please keep it unique to avoid conflict
Slippage = 3, //Amount of allowed slippage
TakeProfit = 150, //Take profit amount, per trade
StopLoss = 5, //Stop loss, per trade
TS_MinProfit = 0, //minimum profit require before trailing stop starts
TrailingStop = 0, //this is the trailing stop in pips
BreakEvenAfterPips = 25; //when this amount in profit in pips is reached SL will be moved to breakeven
extern double
Lots = 0.5; <-------lot size is right here change it:eek:


you screen should look like the one below ...
and here are the two EA's
remember you have to edit the lots to your size on both ess topper and ess saver...

Earl
11-17-2008, 03:04 AM
works good on demo account..already has pumped out 4 extra wins for 20 pips plus faps wins of 25pip... once ess saver is far enough out you can modify the order to close at break even..so you don't lose 5 extra pip..

I hope this works for you guys... it's not the neatest but it may help in reducing loss:o

wishiwasrich
11-17-2008, 08:42 AM
Thanks Earl, will try this today!!

wishiwasrich
11-17-2008, 02:14 PM
Is there a way to set it so that it protects against fast down or up turns, or is that built in?

riturajchahal
11-17-2008, 02:44 PM
hey earl
i tried ess hedger
but it doesn't seem to work
did u got any luck with it

Sooner
11-17-2008, 03:46 PM
Hmm, using both but they have yet to trigger a trade off of a FAPS trade open.... odd as they appear to be working.

Earl
11-17-2008, 05:27 PM
Hmm, using both but they have yet to trigger a trade off of a FAPS trade open.... odd as they appear to be working.the settings are too tight...with a sl of 5 it will almost never open unless faps trade goes right into negative....


I'll post new settingsas soon as I work them all out .

mine just opened 2 trades but the both got stopped out...thats with a stop loss of 10....so now I need the trade to go through to break even...LOL

thats just one case I've seen others save the account and take 20 pip profit... this afternoon...faps took a buy trade way up and eurusd have been falling. saved the account from losing 200 pip....

once the hedge reaches 5 pips it's stop loss is moved to 0...

you win some you lose some...but mostly you win some

Earl
11-17-2008, 05:48 PM
hedge topper...

Original_EA_Magic = 231313, //This is the magic number that your 1st EA uses where advocate EA will base its trades on
Advocate_EA_Magic = 2007, //This is the advocate EAs own magic number please keep it unique to avoid conflict
Slippage = 3, //Amount of allowed slippage
TakeProfit = 20, //Take profit amount, per trade
StopLoss = 20, //Stop loss, per trade
TS_MinProfit = 20, //minimum profit require before trailing stop starts
TrailingStop = 20, //this is the trailing stop in pips
BreakEvenAfterPips = 5; //when this amount in profit in pips is reached SL will be moved to breakeven
extern double
Lots = 0.06;


hedge saver

Original_EA_Magic = 231313, //This is the magic number that your 1st EA uses where advocate EA will base its trades on
Advocate_EA_Magic = 2008, //This is the advocate EAs own magic number please keep it unique to avoid conflict
Slippage = 3, //Amount of allowed slippage
TakeProfit = 300, //Take profit amount, per trade
StopLoss = 20, //Stop loss, per trade
TS_MinProfit = 100, //minimum profit require before trailing stop starts
TrailingStop = 150, //this is the trailing stop in pips
BreakEvenAfterPips = 5; //when this amount in profit in pips is reached SL will be moved to breakeven
extern double
Lots = 0.06;



its won about 6 times and lost once so far

Earl
11-17-2008, 06:08 PM
fun to watch...lol but not nice when both hedge trades get knocked out and your fap trade doesn't complete..:rolleyes:

maybe it's best to do this manual

Earl
11-18-2008, 05:52 AM
Hey guys I edited the settings again.....LOL you could lose worse by having the hedger on but man it works...made me around 140 extra last night...didn't loose once I raised the tp to 20.:eek:

you have to have a fast enought computer to run the ea's though...I have mine on 2 comps...

if you put everything on one you get "the server is too busy" msg or something like that because my comp is tooo slow to handle it

the way faps trades on my settings this is a perfect fit to catch some extra pips and protect your account...

as usual I say try at your own risk...lol:D

wishiwasrich
11-19-2008, 07:52 AM
Hi Earl
Can you shoot me over those new settings, i can't get mine to kick in for some reason.

dreamy77
01-14-2009, 10:38 PM
Hey earl just wondering if you are still using that setup or whether it didnt work out in the end? Could you post some logs of the trades that is has made while on?

Also, i have looked at the source code for the ees_hedger and added some functions to it like only open a hedge trade after so much unrealized loss (example after negative 40 pips it will open, not imediately if you choose). I still have to work out a couple of bugs with it, but if anyone is interested in this let me know and i will post it.

yogi
01-14-2009, 11:39 PM
Hey earl just wondering if you are still using that setup or whether it didnt work out in the end? Could you post some logs of the trades that is has made while on?

Also, i have looked at the source code for the ees_hedger and added some functions to it like only open a hedge trade after so much unrealized loss (example after negative 40 pips it will open, not imediately if you choose). I still have to work out a couple of bugs with it, but if anyone is interested in this let me know and i will post it.

Yes, I'm interested, please post it.
Thanks

dreamy77
01-15-2009, 10:10 PM
ok, here it is. I havent done extensive testing on it so i dont know what settings are best or anything. basically you should test this yourself. also i dont know if there are any bugs so watch out. it *should* work though.

PS. just to let you know, sometimes it appears to lag a bit, this is just because the program waits for the bar to update, so it wont close a hedged trade until the price fluctuates. that is ok, it is how the program works

Earl
01-16-2009, 12:42 AM
Hey earl just wondering if you are still using that setup or whether it didnt work out in the end? Could you post some logs of the trades that is has made while on?

Also, i have looked at the source code for the ees_hedger and added some functions to it like only open a hedge trade after so much unrealized loss (example after negative 40 pips it will open, not imediately if you choose). I still have to work out a couple of bugs with it, but if anyone is interested in this let me know and i will post it.
it didn't work out ...50 50 ...but I hate to lose

so I scarped it:D

ajs5274
01-16-2009, 12:45 PM
This ea might have the options you need.

Charleaux
01-20-2009, 10:22 AM
any word on how to get this rolling?

I was thinking about a hedger along with a stoploss.

The original EA would have a stoploss of X and the hedger could hedge up to that value so if the trades blow past that point it'll close both trades.

Charleaux
01-20-2009, 10:23 AM
anyone using a hedger with any success along with faps?

jefe
01-20-2009, 10:38 AM
This is one that works with both FAPS and FAPT (http://www.forexautopilotforum.com/showthread.php?t=1270)

I'm curious about the swiss army one though.

Charleaux
01-20-2009, 01:35 PM
I tried it but I couldn't really make sence of it. The hedging options were True or False.


As I see it we really need to get somethin that works so I'll try that one.

Earl
03-04-2010, 09:02 PM
This idea took 2 years for me to figure out..LOL

been working with hedging a long damn time:eek:

alan
03-06-2010, 10:57 AM
Oh damn Earl..that's is a really low drawdown level! Good job!

miaoli
03-18-2011, 03:00 AM
hedge saver

Original_EA_Magic = 231313, //This is the magic number that your 1st EA uses where advocate EA will base its trades on
Advocate_EA_Magic = 2008, //This is the advocate EAs own magic number please keep it unique to avoid conflict
Slippage = 3, //Amount of allowed slippage
TakeProfit = 300, //Take profit amount, per trade
StopLoss = 20, //Stop loss, per trade
TS_MinProfit = 100, //minimum profit require before trailing stop starts
TrailingStop = 150, //this is the trailing stop in pips
BreakEvenAfterPips = 5; //when this amount in profit in pips is reached SL will be moved to breakeven
extern double
Lots = 0.06


5 digit price quotes:
Slippage = 30, //Amount of allowed slippage
TakeProfit = 3000, //Take profit amount, per trade
StopLoss = 200, //Stop loss, per trade
TS_MinProfit = 1000, //minimum profit require before trailing stop starts
TrailingStop = 1500, //this is the trailing stop in pips
BreakEvenAfterPips = 50; //when this amount in profit in pips is reached SL will be moved to breakeven
???