_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("Candle Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
p1 =Param("EMA",5,1,200,1,1);
TimeFrameSet(inDaily);
e=EMA(c,p1);
TimeFrameRestore();
e1=TimeFrameExpand( e, inDaily,expandLast );
Plot( e1, "", ParamColor( "Color", colorCycle ), ParamStyle("Style") );