ADX Trend Angle

Discussion in 'AmiBroker' started by amitrandive, Mar 20, 2014.

  1. amitrandive

    amitrandive Well-Known Member

    Joined:
    Jul 26, 2010
    Messages:
    8,799
    Likes Received:
    24,022
    Trophy Points:
    113
    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 likes this.
  2. DSM

    DSM Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    4,329
    Likes Received:
    12,786
    Trophy Points:
    113
    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.

     
    manishchan and amitrandive like this.
  3. rajeshlara

    rajeshlara New Member

    Joined:
    Sep 20, 2008
    Messages:
    13
    Likes Received:
    3
    Trophy Points:
    3
    Location:
    surat
    This is not working
     
    amitrandive likes this.
  4. amitrandive

    amitrandive Well-Known Member

    Joined:
    Jul 26, 2010
    Messages:
    8,799
    Likes Received:
    24,022
    Trophy Points:
    113
    DSM

    Thanks for your views !!!
    This is just something I would to try on a higher time frame.:D
     
    Last edited: Mar 20, 2014
  5. amitrandive

    amitrandive Well-Known Member

    Joined:
    Jul 26, 2010
    Messages:
    8,799
    Likes Received:
    24,022
    Trophy Points:
    113
    This is not working , that is the reason I have posted this on the forum for help.
    :D
     
  6. umeshmandal

    umeshmandal Well-Known Member

    Joined:
    Sep 14, 2008
    Messages:
    1,294
    Likes Received:
    704
    Trophy Points:
    113
    amitrandive likes this.

  7. amitrandive

    amitrandive Well-Known Member

    Joined:
    Jul 26, 2010
    Messages:
    8,799
    Likes Received:
    24,022
    Trophy Points:
    113
    umeshmandal

    Thanks , My source for this concept is the same.
    I just want the isolated indicator with an exploration.
    :D
     
    umeshmandal likes this.
  8. extremist

    extremist Well-Known Member

    Joined:
    Feb 26, 2009
    Messages:
    725
    Likes Received:
    2,168
    Trophy Points:
    93
    Location:
    Nasik
    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);
     
    pankajpari and amitrandive like this.
  9. extremist

    extremist Well-Known Member

    Joined:
    Feb 26, 2009
    Messages:
    725
    Likes Received:
    2,168
    Trophy Points:
    93
    Location:
    Nasik
    there is no need of tht if thing.
    removed it and added it to the condition of buy and sell
     
    amitrandive likes this.
  10. amitrandive

    amitrandive Well-Known Member

    Joined:
    Jul 26, 2010
    Messages:
    8,799
    Likes Received:
    24,022
    Trophy Points:
    113
    extremist

    Thank You Very Much :clap:
     
Loading...

Share This Page