post the code . . .
Happy
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
_SECTION_BEGIN("MA2");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 800, 1, 10 );
Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
_SECTION_BEGIN("Long MA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 100, 2, 800, 1 );
Avg = MA( P, Periods );
PlotOHLC(Avg + 0.1, Avg + 0.1, Avg - 0.1, Avg - 0.1, "Avg",ParamColor( "Color", colorCycle ) , styleCloud | styleClipMinMax);
_SECTION_END();
_SECTION_BEGIN("mid ma");
P = ParamField("Price field",-1);
Periods = Param("Periods", 100, 2, 800, 1 );
Avg = MA( P, Periods );
PlotOHLC(Avg + 0.1, Avg + 0.1, Avg - 0.1, Avg - 0.1, "Avg",ParamColor( "Color", colorCycle ) , styleCloud | styleClipMinMax);
_SECTION_END();
_SECTION_BEGIN("MA1");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();