If I change the input dataseries from Close to an indicator such as the CCI(14), I would think I should get the same data values to display as is displayed by a CCI(14) indicator attached to the same chart. But I do not.
I created a very simple test indicator with a single bar type plot that draws in it a new pane and which is set to calculate on bar close. I have the following single statement in the onbarupdate method...
Plot0.Set(Input[0]);
With this indicator complied... I next
1.) Added the default CCI(14) indicator to the chart
2.) Added my test indicator
3.) For the test indicator, changed input data series dialog from the default Close to the indicator CCI(14)
I would think that the output of each indicator would produce identical values, but they do not. There are significant differences.
What am I missing here?
Note: I have even used Close[0] in the same example test indicator which produced the same results.
Comment