AAAAfinp0finp1fRegularizedEMARegularized EMAgFor interpretation refer to the July 2003 issue of Technical Analysis of STOCKS & COMMODITIES magazine.AAAAAAAAAAAAAAAAAAC6AAAAAAcoefAAAAcoefÌŒŸAAdAAAAdÌŒŸAAinp0AAAAinp0¤âAAinp1AAAAinp1¤âAAresultAAAAresultÌŒŸAAthisAAAA$CÎAAxAAAAxÌŒŸAAAAAAAAinp0#number of periods in moving average21ð?@@AAAAAAinp1regularization constant0.54@AAAAAAs,à?!!! !3'Ê!- 16- -  !AAAAUinput inp0:"number of periods in moving average", 21, 1, 500; inp1:"regularization constant", 0.5, 0, 20; end_input var x:=inp0; d:=inp1; coef:=2 / (x + 1); result:=0; end_var if historysize>1 then result:=(this\1\ * (1 + (2 * d)) + (coef * (C - this\1\)) - (d * this\2\)) / (1 + d); return result;AAAA