Hi,
Please take a look at the SwamiCCI indicator for MT5.
Code:input int VisualMode = 0; //Visual Mode:0-original,1-trend,2-trend & pullback
input ENUM_APPLIED_PRICE Price = 1; //Apply to
input int StartLength = 12;
input int EndLength = 48;
input int SampleLength = 12; //SampleLength(0-off)
input double CCIrange = 100; //CCI range(eg.100 or 200)
input int Smooth = 5; //Smoothing Period
input color UpTrendColor = Lime;
input color DnTrendColor = Red;
input color FlatColor = Yellow;
input string UniqueName = "CCI";
input int ScaleMode = 1; //Scale Mode: 0-J.Ehlers,1-0...100
input int SwamiBars = 100;
Attachment 3935
Regards,
Igor