iCCI how does it work

 

Hallo everybody


i tried today to use the function iCCI out of an expert advisor but it gives me wrong figures.


in the online screeen the CCI functioon on the 4H chart gives back a value for the candle [1] and the expert advisor gives the value Y with the call

CCI_Wert = iCCI(NULL,PERIOD_H4,14,PRICE_CLOSE,1);


what should i do that X = Y ?



Thank you very much for your help

 

bbt


Implication is that the CCI indicator on the chart is set at a different period?


Your call is hardcoded to 14 periods

CCI_Wert = iCCI(NULL,PERIOD_H4,14,PRICE_CLOSE,1);


perhaps the chart CCI is on 20?


Best guess :)

BB

 
bbt_trader:

Hallo everybody


i tried today to use the function iCCI out of an expert advisor but it gives me wrong figures.


in the online screeen the CCI functioon on the 4H chart gives back a value for the candle [1] and the expert advisor gives the value Y with the call

CCI_Wert = iCCI(NULL,PERIOD_H4,14,PRICE_CLOSE,1);


what should i do that X = Y ?



Thank you very much for your help



bbt_trader:

one other thing you might want to check is the price_close does the graph use the same method by default i belive the graph is set to price_typical, you might want to check that too.

hope that helps

Hazem

 
hmmlotfy:


bbt_trader:

one other thing you might want to check is the price_close does the graph use the same method by default i belive the graph is set to price_typical, you might want to check that too.

hope that helps

Hazem

 


 I had the same issue and yes PRICE_TYPICAL is solving it. Thank you hmmlotfy

Reason: