I would like to add three SMA Indicators in one afl file and call it
with #include_once function. But when I change the name in
_SECTION_BEGIN , and the length in the Periods it is not change as I
wish. If I set the periods to 50 it showing 550.
_SECTION_BEGIN("MA15");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 200, 1, 10 );
Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle
), ParamStyle("Style") );
_SECTION_END();
_SECTION_BEGIN("MA50");
P = ParamField("Price field",-1);
Periods = Param("Periods", 50, 2, 200, 1, 10 );
Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle
), ParamStyle("Style") );
_SECTION_END();
_SECTION_BEGIN("MA200");
P = ParamField("Price field",-1);
Periods = Param("Periods", 200, 2, 200, 1, 10 );
Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle
), ParamStyle("Style") );
_SECTION_END();
Any Advice Please.
Regards