HedgeEA - page 2

 

now we cooking with gas!! lol i was trying to recode the way orders were placed for last hour to catch if error. took break and here it is!! corr being internal=awesome!! i will put latest version on fxdd and run. thanks!!

 

I'will begin testing on demo and put statments live online

 

HedgeEA_v5_2.mq4

i've added logic to take care of errors generated while orders are being placed. in the old logic if there was an error during the placement of one order then only one order would be set leaving the pair unhedged.

Files:
 

ok something not quite right with orders on v5.2 & v5.3. it opens 2 for order1 and 0 for order2. this version seems to fix that.

Files:
 

kokas download 5.4 again. i uploaded wrong one lol!! man this gets confusing!!

 

Nice, i'll start forward testing too

 

Live Tests

Live testing here:

http://www.forexforums.org/eatests/test3/statement.htm

Good Luck

 

Small Addition...

Just a small addition that I made to my downloaded copy. You might want to add it to v5.5 if you think it's worth while.

if(lotMM < 0.1) lotMM = 0.1;

if((lotMM > 0.2) && (lotMM < 0.3)) lotMM = 0.2;

if((lotMM > 0.3) && (lotMM < 0.4)) lotMM = 0.3;

if((lotMM > 0.4) && (lotMM < 0.5)) lotMM = 0.4;

if((lotMM > 0.5) && (lotMM < 1)) lotMM = 0.5;

if(lotMM > 1.0) lotMM = MathCeil(lotMM);

if(lotMM > 100) lotMM = 100;

It addresses the missed lots between 0.1 - 0.5.

I love your work guys. This is awesome. I think we have a winner here.

 

I am getting 3 errors when I compile - is anyone else getting this??

'ExpertName' - variable expected C:\Program Files\TradeXecutioner 4\experts\HedgeEA_v5_4.mq4 (20, 19)

'ExpertName' - comma expected C:\Program Files\TradeXecutioner 4\experts\HedgeEA_v5_4.mq4 (124, 31)

'timeFrame' - variable not defined C:\Program Files\TradeXecutioner 4\experts\HedgeEA_v5_4.mq4 (126, 57)

 

nop try download it again...