Hi, My purpose is to rebuild the MA function with the "FOR... NEXT.... loops. Could you please check this formula, that gives me two "syntax" errors?
_Sum=0; LEN =10; for (i= LEN; i<BarCount; i++) { _Sum = 0; for (j = i-LEN; J=i-1; J++) { _Sum= _Sum+C(j); } mm(i) = _Sum/LEN; }