Forum

CCI Mathematically

We all know the mq4 code for the CCI.... double iCCI ( string symbol , int timeframe , int p eriod , 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