We all know the mq4 code for the CCI....double iCCI(string symbol, int timeframe, int period, int applied_price, int shift);
And this is the mathematics formula, Value of CCI = (Typical Price - Xperiod SMA of TP) / (0.015 x Mean Deviation)
However, how would you write it using the mathematical functions of mq4.... I have no idea, but would like to use parts of the mathematical formula to look at different uses of the Commodity Channel Index. Any help would be much appreciated.
Thank you in advance.
Have a look at the following in the CodeBase as it is the basis of the iCCI() function in MQL4.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.