I am looking for CCI indicator that the same as in VT - the code in VT is as below. The standard CCI indicator in MT4 gives different values.
{MetaStock Equivalent Calculation}
Diff:= TP()-Mov(TP(),
Pr,S);
AveDiff:= Mov(Abs(Diff),
Pr,S);
EquationComp:= Diff/AveDiff;
AdjCon:= 66.66667{equivelant=2/3tds};
MS_CCI:= EquationComp*AdjCon;