ADX Trend Angle

amitrandive

Well-Known Member
#1
Hi All

Below is a concept of an ADX Trend Angle , I found on the net.

Can I have the plot and exploration of this indicator?:confused:

Code:
    Range				= Param("Periods (ADX Trend):", 14, 1, 34, 1);
    TrendAngle   = 100* atan( (Zig(ADX(Range), 1) - Ref(Zig(ADX(Range), 1), -1 ) ) / 5 );
if(LastValue(TrendAngle) > 15){
    ADXBuy      = IIf(ADX(Range) > Ref(ADX(Range), -1) AND PDI(Range) > MDI(Range), 1, 0);
    ADXSell = IIf(ADX(Range) > Ref(ADX(Range), -1) AND PDI(Range) < MDI(Range), 1, 0);
       //Value = IIf(ADXBuy, TrendAngle, IIf(ADXSell, -1* TrendAngle, 0));}
    Value = IIf(ADXBuy, ADX(Range), IIf(ADXSell, -1* ADX(Range), 0));}
 

DSM

Well-Known Member
#2
Amit,

ADX is a tool like all indicators will work in a trending market. Have tried various combinations of it, but realized the trades will have many more failures than successes - as the sideways trend is around 70%. Finally gave up on it, as also MACD, Stochastics. Having said that, some traders may be using it profitably. My 2C.

Hi All

Below is a concept of an ADX Trend Angle , I found on the net.

Can I have the plot and exploration of this indicator?:confused:

Code:
    Range				= Param("Periods (ADX Trend):", 14, 1, 34, 1);
    TrendAngle   = 100* atan( (Zig(ADX(Range), 1) - Ref(Zig(ADX(Range), 1), -1 ) ) / 5 );
if(LastValue(TrendAngle) > 15){
    ADXBuy      = IIf(ADX(Range) > Ref(ADX(Range), -1) AND PDI(Range) > MDI(Range), 1, 0);
    ADXSell = IIf(ADX(Range) > Ref(ADX(Range), -1) AND PDI(Range) < MDI(Range), 1, 0);
       //Value = IIf(ADXBuy, TrendAngle, IIf(ADXSell, -1* TrendAngle, 0));}
    Value = IIf(ADXBuy, ADX(Range), IIf(ADXSell, -1* ADX(Range), 0));}
 

amitrandive

Well-Known Member
#4
Amit,

ADX is a tool like all indicators will work in a trending market. Have tried various combinations of it, but realized the trades will have many more failures than successes - as the sideways trend is around 70%. Finally gave up on it, as also MACD, Stochastics. Having said that, some traders may be using it profitably. My 2C.
DSM

Thanks for your views !!!
This is just something I would to try on a higher time frame.:D
 
Last edited:

extremist

Well-Known Member
#8
amit try this and tell me if it's ok or not.

Range = Param("Periods (ADX Trend):", 14, 1, 34, 1);
TrendAngle = 100* atan( (Zig(ADX(Range), 1) - Ref(Zig(ADX(Range), 1), -1 ) ) / 5 );

ADXBuy = IIf(TrendAngle > 15 AND ADX(Range) > Ref(ADX(Range), -1) AND PDI(Range) > MDI(Range), 1, 0);
ADXSell = IIf(TrendAngle > 15 AND ADX(Range) > Ref(ADX(Range), -1) AND PDI(Range) < MDI(Range), 1, 0);
Value = IIf(ADXBuy, TrendAngle, IIf(ADXSell, -1* TrendAngle, 0));
Plot(Value,"V",colorBlack);
 

amitrandive

Well-Known Member
#10
amit try this and tell me if it's ok or not.

Range = Param("Periods (ADX Trend):", 14, 1, 34, 1);
TrendAngle = 100* atan( (Zig(ADX(Range), 1) - Ref(Zig(ADX(Range), 1), -1 ) ) / 5 );

ADXBuy = IIf(TrendAngle > 15 AND ADX(Range) > Ref(ADX(Range), -1) AND PDI(Range) > MDI(Range), 1, 0);
ADXSell = IIf(TrendAngle > 15 AND ADX(Range) > Ref(ADX(Range), -1) AND PDI(Range) < MDI(Range), 1, 0);
Value = IIf(ADXBuy, TrendAngle, IIf(ADXSell, -1* TrendAngle, 0));
Plot(Value,"V",colorBlack);
extremist

Thank You Very Much :clap:
 

Similar threads