Indicators: MT5 CCI with shift parameter

 

MT5 CCI with shift parameter:

The default CCI in MT5 doesn't have the shift parameter. This script implements the shift.

MT5 CCI with shift parameter

Author: Conor Mcnamara

 
I'M  experiencing challenge with the indicator. When I set shift parameter to 0 it works perfectly but when I set shift from 1,2 or 3 so on, the indicator moves in horizontal direction sticking at zero level where it doesn't fluctuate and the good signal when I look at the history are generated when shift parameter set from 1 upwards. It is good indicator but please solve the problem, thank you.
 
Fixed and new version is uploaded now