Pra,
you can overlay EMA from avarage and press right click on chart to set parameter. Alternatively, following is the afl.
=======================
_SECTION_BEGIN("Price and EMA");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
Plot(EMA(C,5),"EMA C 5", colorRed,styleLine);
Plot(EMA(O,5),"EMA O 6", colorBlue,styleLine);
_SECTION_END();
==================================
Hope this suits your purose
hitesh