InvestorsHub Logo
Followers 11
Posts 2529
Boards Moderated 1
Alias Born 04/03/2009

Re: None

Thursday, 03/08/2012 9:30:49 PM

Thursday, March 08, 2012 9:30:49 PM

Post# of 3631
ADX Study revised below: I added programming to match the description found online.

http://en.wikipedia.org/wiki/Average_Directional_Index

I'm playing with this indicator since it is mentioned as a partner for Parabolic SAR:

http://en.wikipedia.org/wiki/Parabolic_SAR


#In the field of technical analysis, Parabolic SAR (SAR - stop and reverse) is a method devised by J. Welles Wilder, Jr., to find trends in market prices or securities. It may be used as a trailing stop loss based on prices tending to stay within a parabolic curve during a strong trend.

#The concept draws on the idea that time is the enemy (similar to option theory's concept of time decay), and unless a security can continue to generate more profits over time, it should be liquidated. The indicator generally works well in trending markets, but provides "whipsaws" during non-trending, sideways phases; as such, Wilder recommended establishing the strength and direction of the trend first through the use of things such as the Average Directional Index, and then using the Parabolic SAR to trade that trend.

#A parabola below the price is generally bullish, while a parabola above is generally bearish.

#"Average Directional Index": The ADX does not indicate trend direction, only trend strength. It is a lagging indicator; that is, a trend must have established itself before the ADX will generate a signal that a trend is under way. ADX will range between 0 and 100. Generally, ADX readings below 20 indicate trend weakness, and readings above 40 indicate trend strength. An extremely strong trend is indicated by readings above 50.

#

declare lower;

input length = 14;

input trend_strong = 50;
input trend_strength = 40;
input trend_weakness = 20;

plot ADX = DMI(length).ADX;
ADX.setDefaultColor(GetColor(8));

plot TrendStrong = trend_strong;
plot TrendGainingStrength = trend_strength;
plot Weakness = trend_weakness;

TrendStrong.setDefaultColor(GetColor(2));
TrendGainingStrength.setDefaultColor(GetColor(1));
Weakness.setDefaultColor(GetColor(3));

Join the InvestorsHub Community

Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.