Can someone convert this VT indicator to MT4?

 

It's a simple CCI indicator, the formula is:

Diff:=TP()-Mov(TP(),Pr,S);

AveDiff:=Mov(Abs(Diff),Pr,S);

EquationComp:=Diff/AveDiff;

AdjCon:=66.66667{equivelant=2/3tds};

CCIndex3:=EquationComp*AdjCon;

Where CCIndex3 is the indicator and Pr is a variable with default 14

TP - typical price