entering this code in the formula ... avrg1=(1-alpha)*Ref(avrg1,-1)+alpha*yield1;
leaves me the error 29 (variable used without having been initialized)
I tried to create a loop in this way ...
avrg1[0] = 1; //initialized first day to 1
for( i = 1; i < BarCount; i++ )
{
avrg1[i] = (1-alpha)*avrg1[i-1]+alpha*yield1[i];
}
but even so it works !!!
Can you help me, please ?
