iCCI how does it work

Back to topics list To post a new topic, please log in or register
avatar
2
bbt_trader 2008.01.18 18:44
 

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

 
avatar
1936
BarrowBoy 2008.02.08 14:32 #
 

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

 
avatar
231
hmmlotfy 2008.02.15 22:35 #
 
bbt_trader wrote:

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

 
avatar
1
hatip 2015.08.19 10:14 #
 
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

Back to topics list  

To add comments, please log in or register