Hello there my friends.
Can you please kindly tweak this indi to use a VWMA (volume weighted moving average) instead of SMA? Request is for MT4.
CCI = (Typical Price - 20-period SMA of TP) / (.015 x Mean Deviation)
Typical Price (TP) = (High + Low + Close)/3
Constant = .015
There are four steps to calculating the Mean Deviation:
First, subtract the most recent 20-period average of the typical price from each period's typical price.
Second, take the absolute values of these numbers.
Third, sum the absolute values.
Fourth, divide by the total number of periods (20).