I'm in the make of a Williams % EA, I wrote this:
ext int WPRLevelB=-80
ext int WPRLevelS=-20
bool = buysig, sellsig;
int lastsig
double wpr= iWPR(NULL,0,WPRLen,shift);
if (wpr>WPRLevelB)
{buysig=true;
sellsig=false;
}
if (wpr<WPRLevelS)
{sellsig=true;
buysig=false;
}
Despite there are no errors decompiling it I think something is missing (I've to wait till tomorrow for test it), any advise is wellcome, or if anybody has a Williams %Range EA with two llevels for sell and buy please share it.
Thank you in advance.
ext int WPRLevelB=-80
ext int WPRLevelS=-20
bool = buysig, sellsig;
int lastsig
double wpr= iWPR(NULL,0,WPRLen,shift);
if (wpr>WPRLevelB)
{buysig=true;
sellsig=false;
}
if (wpr<WPRLevelS)
{sellsig=true;
buysig=false;
}
Despite there are no errors decompiling it I think something is missing (I've to wait till tomorrow for test it), any advise is wellcome, or if anybody has a Williams %Range EA with two llevels for sell and buy please share it.
Thank you in advance.