HedgeEA - page 11

 

Hedge EA v 5.6 test

Hello everyone,

Finally version 5.6 works for me.

I am testing with the following settings:

Expert=HedgeEA[5.6]

Magic=100

Autotrade=1

Symbol1=GBPJPY

Symbol1isLong=1

Symbol2=CHFJPY

Symbol2isLong=0

Lotsizes=Set Ratio to 1 to use equal

Lots=0.01000000

Ratio=1.80000000

Data= Input Data

StopManageAcc=0

ProfitTarget=50.00000000

MaxLoss=0.00000000

Data2=Correlation Settings

UseCorrelation=0

cPeriod=20

MinCorrelation=0.80000000

MaxCorrelation=1.00000000

Data3=Bollinger Band Settings

UseBollinger=1

Bollinger_Symbol=GBPCHF

Bollinger_Period=60.00000000

Data4=SWAP Settings

UseSwap=1

Data5=Money Management

AccountIsMicro=0

MoneyManagement=1

Risk=15.00000000

Broker: IBFX

Timeframe: M1

Starting ballance: $5000

Is there anyone testing this version with UseCorrelation=1 ?

I will appreciate any comments.

Thanks.

Files:
 

Version 5.7 . Money Management Corrected

Version 5.7 with MM corrected to fully support mini accounts

Files:
 

any way we can get an option to shut the ea down once a profit is taken?

That way if we want to make the entry based on our own personal technical analysis we can.

right now the entry taken on mine directly after profits was taken is a poor entry on the chf/jpy side. I could have gotten more profits today if I'd have made the 2nd entry decition myself. Right now I am down just as much on chf/jpy as I am on gbp/jpy. doubling the negative side. If chf don't start falling below 93.92 it will keep getting worse. and when gbp starts to rise again its gonna be hard to get into profits especially if chf rises with it.

mabe some jpy news will level the playing field

mabe its too soon to judge. dunno

 

Just turn the Autotrade to off ... this way as soon as the hedge is exited the EA will not reenter until you set this to on.

If you want to enter as soon as you turn it on or load the ea, set usecorrelation and usebollinger to false.

 

Where is Leverage?

Where is Account leverage on this equation?

double lotMM = MathCeil(AccountFreeMargin() * Risk / 1000) / 100 / 2;

can this be done this way?

double lotMM = MathCeil(AccountFreeMargin() * Risk / 1000) / AccountLeverage() / 2;

We need to include the leverage of the account in MM and I believe this is the way. Can anyone comment?

thanks!

 

Error Compilate ExpertName................

Hi Max

Files:
 

I do not understand this errors:

0 error(s), 0 warning(s)

this is my result from the ea downloaded from the forum...

In what platform are you compiling?

I attach here the compiled version

Files:
 
buy67:
Error Compilate ExpertName................ Hi Max

right click the error and click goto line.

change "expertname" to "name"

and change "timeframe" to "time"

do this on all the errors and it will compile

 

but this way you get wrong info on comment line... let see if anyone could find out whats is happening...

I'm not getting errors on compile, and I'm using the Metaquotes version, not any version that has been customized by a broker.

Maybe this is the problem...

 
tomstaufer:
Hello everyone,

Finally version 5.6 works for me.

I am testing with the following settings:

Expert=HedgeEA[5.6]

Magic=100

Autotrade=1

Symbol1=GBPJPY

Symbol1isLong=1

Symbol2=CHFJPY

Symbol2isLong=0

.

Symbol2isLong=0

Should it be to set up to 1 ?? Or am I wrong ???

Reason: