Skip to main content

DOUBLE ADX FLEXIBLE. for Amibroker (AFL)

opioasxetos over 12 years ago Amibroker (AFL)

  • Rating:
    4 / 5 (Votes 5)
  • Tags:
    oscillator, amibroker

This is ADX with 25line on.
Also you can have two lines for ADX (for example 8 &13)
and two lines for DMI,
so you can follow the signals first of all and compare
them to exact conclusions…

The parameters of the indicators (ADX , ADX2 , DMI) are
flexible.
If you do not need two ADX or TWO DMI you can just put
the same price to DI, DI2 and ADX, ADX2…

I recommend DMI (8 & 13) and ADX (8 &14)).

Indicator / Formula

Copy & Paste Friendly
ADX_Pds = Param("ADX Range", 13, 5, 100,1);
ADX2_Pds = Param("ADX2 Range", 8, 5, 100,1);
DI_Pds = Param("+DI/-DI Range", 13, 5, 100,1);
DI2_Pds = Param("+DI2/-DI2 Range", 8, 5, 100,1);

the_ADX = ADX(ADX_pds);
the_ADX2 = ADX(ADX2_pds);
the_PDI = PDI(DI_Pds);
the_MDI = MDI(DI_Pds);
the_PDI2 = PDI(DI2_Pds);
the_MDI2 = MDI(DI2_Pds);

Plot(the_ADX, "ADX", colorBlue, styleThick);
Plot(the_ADX2, "ADX2", colorBlue, styleDashed);
Plot(the_PDI, "+DX", colorGreen);
Plot(the_MDI, "-DX", colorRed); 
Plot(the_PDI2, "+DX", colorGreen,styleDashed);
Plot(the_MDI2, "-DX", colorRed,styleDashed); 
Plot(25,"",colorWhite,styleDashed);

1 comments

over 12 years ago
ADX_Pds = Param("ADX Range", 13, 5, 100,1);
ADX2_Pds = Param("ADX2 Range", 8, 5, 100,1);
DI_Pds = Param("+DI/-DI Range", 13, 5, 100,1);
DI2_Pds = Param("+DI2/-DI2 Range", 8, 5, 100,1);

the_ADX = ADX(ADX_pds);
the_ADX2 = ADX(ADX2_pds);
the_PDI = PDI(DI_Pds);
the_MDI = MDI(DI_Pds);
the_PDI2 = PDI(DI2_Pds);
the_MDI2 = MDI(DI2_Pds);

Plot(the_ADX, "ADX", colorBlue, styleThick);
Plot(the_ADX2, "ADX2", colorBlue, styleDashed);
Plot(the_PDI, "+DX", colorGreen);
Plot(the_MDI, "-DX", colorRed); 
Plot(the_PDI2, "+DX", colorGreen,styleDashed);
Plot(the_MDI2, "-DX", colorRed,styleDashed); 
Plot(25,"",colorWhite,styleDashed);

Leave Comment

Please login here to leave a comment.