EasyLanguage to Mql3

 
 

Hi,

I have some skills in EL, maybe you post EA for TS.

I have changed your code in MT3, perhaps it help.

For calculation MACD with other prices you could use iMACDex.

mode_main - main curve, signal_mode - signal curve.

In your EA don't describe trade exit rules

Corrected code:

defines: PerEMA(12);

variable: state(0) ;

variable: barcntr(0) ;

variable: value1(0) ;

variable: value2(0),value21(0) ;

variable: value3(0) ;

value1 = iMACD(12,26,9,mode_main,0);

value21= value2;

value2 = value21+2.0/(1.0+PerEMA)*(value1-value21);

value3 = value1 - value2 ;

If barcntr > 0 and barcntr < 5

then

barcntr = barcntr + 1

else

begin

state = 0 ;

barcntr = 0 ;

end;

if (state = 0 or barcntr > 1) and

ima(6,mode_ema,0) > ima(12,mode_ema,0) and ima(6,mode_ema,1) < ima(12,mode_ema,1)

then

begin

state = 1 ;

barcntr = 1 ;

end ;

if (state = 1) and

((ima(6,mode_ema,0) - ima(12,mode_ema,0) >= 25.0/10000.0) or

(ima(6,mode_ema,1) - ima(12,mode_ema,1) >= 25.0/10000.0) or

(ima(6,mode_ema,2) - ima(12,mode_ema,2) >= 25.0/10000.0) or

(ima(6,mode_ema,3) - ima(12,mode_ema,3) >= 25.0/10000.0))

then

state = 2 ;

if (state = 2) and (barcntr < 5) and

((ima(6,mode_ema,0) - ima(6,mode_ema,3)) > 7.0/10000.0) and

(close > open) and (curtime not >= 400) and (curtime not <= 800) and

(value2 > value21)

then

begin

state = 3 ;

barcntr = 5 ;

end ;

if (state = 3) and ((close - open) <= 10.0/10000.0) or

(ima(6,mode_ema,0) > ima(12,mode_ema,0) and

ima(6,mode_ema,1) < ima(12,mode_ema,1))

then

begin

barcntr = 0 ;

state = 0 ;

setorder(OP_BUY,1,close,0,0,0,yellow) ;

alert() ;

end ;

if value1 <= value2

then

setorder(OP_SELL,1,close,0,0,0,blue) ;

Chears,

Igor

 

easy language download

Where did you download easy language ?

can you send me link to :

easy[at]forexcash.cjb.net

Thanks.

 

can anyone convert easy language to mql4 please help!

Hi,

Urgently looking for someone to convert easy language to mql. please call me at 212-504-2975 if you can do this for us.

Regrds,

Basil Fayadh

Paragon FX

 
paragonfx:
Hi,

Urgently looking for someone to convert easy language to mql. please call me at 212-504-2975 if you can do this for us.

Regrds,

Basil Fayadh

Paragon FX

How Much you want to pay?