I wonder whether anyone else has encountered the following situation: Whenever I use two or more ParamToggle statements the display order in the Parameters properties window gets messed up. In this simple example of 3 MAs the default settings are 'Yes' - Display MA and everything looks fine (Screenshot 1). When I switch all 3 to 'No' the order gets out of sync (SS 2). Leaving the settings at 'No', when I exit and restart AB it remains messed up but in a different way (SS 3). Clicking on Reset all lines them up correctly again. Any ideas why this is happening?
_SECTION_BEGIN("Price");
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", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
_SECTION_BEGIN("EMA 1");
pd = Param("EMA 1 Period", 13, 2, 50, 1);
if (ParamToggle("Display EMA 1", "No|Yes", 1))
{
Plot(EMA(C, pd), _DEFAULT_NAME(), ParamColor("Color", colorWhite), ParamStyle("Style"));
}
_SECTION_END();
_SECTION_BEGIN("EMA 2");
pd = Param("EMA 2 Period", 50, 2, 100, 1);
if (ParamToggle("Display EMA 2", "No|Yes", 1))
{
Plot(EMA(C, pd), _DEFAULT_NAME(), ParamColor("Color", colorYellow), ParamStyle("Style"));
}
_SECTION_END();
_SECTION_BEGIN("EMA 3");
pd = Param("EMA 3 Period", 100, 2, 200, 1);
if (ParamToggle("Display EMA 3", "No|Yes", 1))
{
Plot(EMA(C, pd), _DEFAULT_NAME(), ParamColor("Color", colorCustom12), ParamStyle("Style"));
}
_SECTION_END();