DEFPARAM DRAWONLASTBARONLY=TRUE LFC=summation[5](close) I’d like to achieve the same result with the following simple ‘for next loop’instead using ‘summation’ but there is no output using the ‘for next loop’ for i=1 to 5 do LFC=close[i]+LFC next return LFC