this is what's happening in TS2000i.
to replicate TS2000i's 30min CCI average exactly, you have to use this code:
Plot1(cci(20) of data2,"CCI",red);
Plot2(average(plot1,10),"CCIAvg",green);
strangely, however, Plot2 is not plotting the 10 period average. if you calculate the numbers...