ThinkScript Recursive Data Help

Discussion in 'Programming' started by jei, Aug 2, 2016.

  1. 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.
    #11     Feb 3, 2018