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?
Below is a concept of an ADX Trend Angle , I found on the net.
Can I have the plot and exploration of this indicator?
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));}