Any AFL Experts pls help making this afl.

shanki99

Well-Known Member
#21
hello guys just tried editing one RSI divergence afl and made it for macd... hope it works for u .... [:)]

regards
Karin Jack

It says -- "Error 10. Subscript out of range. You must not access array elements outside 0..(BarCount-1) range" -- part of the AFL where error occurs is mentioned below....

// bullish divergence
for ( i=0; i<BarCount; i++)
{
if(Var == t)
{
j++;
x[j] =Var;
price[j] =C;
if(x[j] >x[j-1] && price[j]<price[j-1])
Buy =1;
}
}
 

Similar threads