if the retracement is between 0.382 to 0.499, then the condition is ab_ret_0382.
if the retracement is between 0.500 to 0.617, then the condition is ab_ret_0500.
if the retracement is between 0.618 to 0.706, then the condition is ab_ret_0618.
if the retracement is between 0.707 to 0.785, then the condition is ab_ret_0707.
if the retracement is between 0.786 to 0.885, then the condition is ab_ret_0786.
if the retracement is 0.886, then the condition is ab_ret_0886. (already set this way)
How would i change the code below to make this happen? i'm sure its just some slight change in the syntax, but i'm not sure. I was thinking it would be something like " ab_retr_0382 = isRetracement(dist,retr,BETWEEN 0.382 AND 0.499);", but i don't know what command that "between" property would be or proper syntax.
dist = aVal-bVal;
retr = cVal-bVal;
if(!isMinRetracement(dist,retr,0.382))
{
continue;
}
if(!isMaxRetracement(dist,retr,0.886))
{
break;
}
ab_retr_0382 = isRetracement(dist,retr,0.382);
ab_retr_0500 = isRetracement(dist,retr,0.500);
ab_retr_0618 = isRetracement(dist,retr,0.618);
ab_retr_0707 = isRetracement(dist,retr,0.707);
ab_retr_0786 = isRetracement(dist,retr,0.786);
ab_retr_0886 = isRetracement(dist,retr,0.886);
Thanks
Comment