the reference cci: (src - sma) / (0.015 * dev), where dev is the mean absolute deviation.
A flat window (a deviation of exactly 0) has no reading here. The built-in
CCI study prints 0 on such a window instead, so a study ported onto this
function shows a gap where the built-in shows 0.
the reference
cci:(src - sma) / (0.015 * dev), wheredevis the mean absolute deviation. A flat window (a deviation of exactly 0) has no reading here. The built-in CCI study prints 0 on such a window instead, so a study ported onto this function shows a gap where the built-in shows 0.