Hy folks!
i'm searching to modify this firedave's ea (from this forum)
the ea is calling "universal ma cross ea"
what i want create is an ea that enter on 2 cross confirmed (for example a couple of ema 2 & 4 and another couple of ema 5 & 20)
this is the main code, what i supposed to do ?
i had try everything, but i don't find a solution...please help me for the health of this community , i want something similar to this ://----------------------- SET VALUE FOR VARIABLE
if(ConfirmedOnEntry==true)
{
if(CheckTime==iTime(NULL,TimeFrame,0)) return(0); else CheckTime = iTime(NULL,TimeFrame,0);
FastMACurrent = iMA(NULL,TimeFrame,FastMAPeriod,FastMAshift,FastMA Type,FastMAPrice,1);
SlowMACurrent = iMA(NULL,TimeFrame,SlowMAPeriod,SlowMAshift,SlowMA Type,SlowMAPrice,1);
}
else
{
FastMACurrent = iMA(NULL,TimeFrame,FastMAPeriod,FastMAshift,FastMA Type,FastMAPrice,0);
SlowMACurrent = iMA(NULL,TimeFrame,SlowMAPeriod,SlowMAshift,SlowMA Type,SlowMAPrice,0);
}
CrossDirection = subCrossDirection(FastMACurrent,SlowMACurrent);
//----------------------- SET VALUE FOR VARIABLE
if(ConfirmedOnEntry==true)
{
if(CheckTime==iTime(NULL,TimeFrame,0)) return(0); else CheckTime = iTime(NULL,TimeFrame,0);
FastMACurrent = iMA(NULL,TimeFrame,2,FastMAshift,FastMAType,FastMA Price,1);
SlowMACurrent = iMA(NULL,TimeFrame,4,SlowMAshift,SlowMAType,SlowMA Price,1);
FastMACurrent2 = iMA(NULL,TimeFrame,5,FastMAshift,FastMAType,FastMA Price,1);
SlowMACurrent2 = iMA(NULL,TimeFrame,20,SlowMAshift,SlowMAType,SlowM APrice,1);
}
else
{
FastMACurrent = iMA(NULL,TimeFrame,2,FastMAshift,FastMAType,FastMA Price,0);
SlowMACurrent = iMA(NULL,TimeFrame,4,SlowMAshift,SlowMAType,SlowMA Price,0);
FastMACurrent2 = iMA(NULL,TimeFrame,5,FastMAshift,FastMAType,FastMA Price,0);
SlowMACurrent2 = iMA(NULL,TimeFrame,20,SlowMAshift,SlowMAType,SlowM APrice,0);
}
CrossDirection = subCrossDirection(FastMACurrent,SlowMACurrent && FastMACurrent2,SlowMACurrent2);
Could you help me Funyoo ???
Many thanks to everyone