iCCi usage

 

Hello, I have a CCI Indicator in my chart and an EA with this instructions:


CCICurrent = iCCI(Symbol(),0,CCIPeriod,PRICE_CLOSE,0);
CCIPrevious = iCCI(Symbol(),0,CCIPeriod,PRICE_CLOSE,1);


Parameters in CCI indicator are exactly the same as source code.


Why values in my variables are completely different then chart?


Thanks in advance


Andrea

 
did you check applied price? default chart indicator is based on Typical Price and not CLOSE.
 

Yes, the applied price is the same.

Seems prices coming from another chart.


Thanks for the response


Bye

Reason: