Can someone code this into mt4 it is a future prodicting ma line

 
in TradeStation Easylanguage

Input: DampFactor(.3), MALength(5) ;
Vars: ProjMA(0), Mid(0), MA(0) ;

Mid = (High + Low)/2 ;
ProjMA = Mid - (DampFactor * (Mid - ProjMA[1])) ;
MA = Average(close, MALength) ;

Plot1 (ProjMA, "ProjMA",cyan, default, 1 ) ;
Plot2 (MA, "Avg", yellow, default, 1 ) ;


Thank you
Reason: