Attachments forums

List of attachments posted on this forum.


All files on forums: 135897

Re: MT4 Indicators with alerts/signals

Cladi39, Tue Jul 11, 2017 10:29 am

mladen wrote: Mon Jul 10, 2017 3:02 pm Show your code
double EI(int i)
{
double up = iCustom(NULL,0,"engulfing-indicator",0,i+1)!=0;
double dn = iCustom(NULL,0,"engulfing-indicator",1,i+1)!=0;

if(up)
{
return(1);
}
if(dn)
{
return(-1);
}

return(0);
}

bool Arrowup(int i)
{

bool up=false;

up = EI(i)==1;

if(up)
{
return true;
}
return false;



}
bool Arrowdn(int i)
{
bool dn=false;

dn = EI(i)==-1;

if(dn)
{
return true;
}
return false;
}


thanks mladen.
All files in topic