Hi all!
A have a big problem with my little EA
I need to send email alert when %K is crosing %D linne, I can't find the anser for this problem in this forum.
I have wrote something like this:]
I have get many of emails for this EA
plaese help me gays!!!
A have a big problem with my little EA
I need to send email alert when %K is crosing %D linne, I can't find the anser for this problem in this forum.
I have wrote something like this:]
Inserted Code
double k,d,e,f;
e=iCustom(NULL, PERIOD_M15, "StochaSTIC",10,10,4,3,0,0);
f=iCustom(NULL, PERIOD_M15, "StochaSTIC",10,10,44,3,0,1);
k=iCustom(NULL, PERIOD_M5, "StochaSTIC",10,10,4,3,0,0);
d=iCustom(NULL, PERIOD_M5, "StochaSTIC",10,10,4,3,0,1);
static int m1=0;
static int m2=0;
//----
if(e>f)
m1=1;
if(e<f)
m1=2;
if(k>d)
m2=1;
if(k<d)
m2=2;
//----
Comment(m1,m2);
string s=Symbol();
int isCrossed = 0;
isCrossed = Crossed (k,d); //crossing stochastic in M5
int isCrossed2 = 0;
isCrossed2 = Crossed (e,f); //crossing stochastic in M15
if(isCrossed == 1 && m1==1)
{
SendMail("Buy"+s,"Buy signal:"+s );
}
if(isCrossed == 2 && m1==2)
{
SendMail("SELL"+s,"SEll signal:"+s);
} I have get many of emails for this EA
plaese help me gays!!!