ADX 8 PERIOD WITH DMI 13 PERIOD -AFL
_SECTION_BEGIN("ADX-8-13");
ADX_Pds = Param("ADX Range", 8, 5, 100,1);
DI_Pds = Param("+DI/-DI Range", 13, 5, 100,1);
the_ADX = ADX(ADX_pds);
the_PDI = PDI(DI_Pds);
the_MDI = MDI(DI_Pds);
Plot(the_ADX, "ADX", colorBlue, styleThick);
Plot(the_PDI, "+DX", colorGreen);
Plot(the_MDI, "-DX", colorRed);
Plot(25,"",colorBlack,styleLine);
_SECTION_END();
_SECTION_BEGIN("ADX-8-13");
ADX_Pds = Param("ADX Range", 8, 5, 100,1);
DI_Pds = Param("+DI/-DI Range", 13, 5, 100,1);
the_ADX = ADX(ADX_pds);
the_PDI = PDI(DI_Pds);
the_MDI = MDI(DI_Pds);
Plot(the_ADX, "ADX", colorBlue, styleThick);
Plot(the_PDI, "+DX", colorGreen);
Plot(the_MDI, "-DX", colorRed);
Plot(25,"",colorBlack,styleLine);
_SECTION_END();