I am trying to understand timeFrame Set, Restore and Expand.

I am not getting the same values from the expanded calculations as I do when I 
look at the charts.  I have 4 panes set to 1, 5, 10 and 20 minute.

I plot CCI(14) on each pane and on the 1 minute pane I also have the formula 
below.  That formula calculates the CCI in the time frames of the other panes 
and plots them. When I compare the plots on the individual charts with the 
plots on the time expanded chart the CCI values don't match, except for the 1 
minute plot which does not use time frame support. If I use the time frame 
support for the 1 minute CCI in the formula the value does not match the CCI 
plotted on the same pane. Can someone tell me why the expanded values do not 
match the charts set to the same time frame?

Thanks,
Barry

Plot(CCI(14), "RSI 1 min", colorBlack);

TimeFrameSet(300 );
x = CCI(14);
TimeFrameRestore();
Plot(TimeFrameExpand(x, 300 ), "\nRsi 5 min", colorGreen);

TimeFrameSet(600);
y = CCI(14);
TimeFrameRestore();
Plot(TimeFrameExpand(y, 600), "\nRsi 10 min", colorBlue);


TimeFrameSet(1200);
z = CCI(14);
TimeFrameRestore();
Plot(TimeFrameExpand(z, 1200), "\nRsi 20 min", colorRed);

Reply via email to