Download MetaTrader 5
To add comments, please log in or register
Having troubles understanding the code? Perhaps, you can find an article on that topic!
Claudia Scharding
11
Claudia Scharding 2008.01.18 17: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

Brian Dee - Random Trader
1765
Brian Dee - Random Trader 2008.02.08 13: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

Hazem
39
Hazem 2008.02.15 21:35  
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

hatip
5
hatip 2015.08.19 08: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

/
To add comments, please log in or register