The index value is wrong

 

Hi,

I'm trying to write a program using the CCI index. I've noticed the chart value of CCI, and the value which the program obtain are different! When you write

Comment("CCI: "+CCI);

The value shown at the top-left of the chart is different from the value of the visual index.

How is that possible?


 
Sweps:

How is that possible?

Your code is wrong . . .
 
RaptorUK:
Your code is wrong . . .


It's impossible, because the CCI chart has exaclty the same parametres of my CCI variable.

CCI=iCCI(NULL,0,30,PRICE_TYPICAL,0);

Is it possible that the CCI of the editor is different than the platform one? I mean, they are calculated in two different wats

 
What settings do you have for your CCI Indicator on your chart ?
Reason: