ThinkScript Recursive Data Help

Did you get your answer?
I typically kludge the initialization, with something like

def Test_Num=if (barnumber()<1) then 0 else Test_Num[1]+1;
plot tn=Test_Num;

Which gets the job done. -- However, you may find that this "initialization" is not always required!

NOTE: barnumber() increments with each bar from left to right of chart.
 
Back
Top