Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

ADX trend visualization for Amibroker (AFL)
pgebski
about 13 years ago
Amibroker (AFL)

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

Trend visualization which uses ADX

Similar Indicators / Formulas

Febo RSI ..real indicator
Submitted by abhinavsingh about 13 years ago
Trading Volume Statistic
Submitted by tuanstock1 over 10 years ago
Ergodic Oscillator
Submitted by dljtrader about 14 years ago
3 Days Track
Submitted by janet0211 over 14 years ago
Chande Momentum Oscillator
Submitted by klimpek almost 14 years ago
BoH Risk Aversion Indicator
Submitted by genkumag almost 13 years ago

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("ADX");
SetChartOptions(0,0,0,1,1);

range = Param("Periods", 14, 2, 200, 1 );
ad = ADX(range);
pd = PDI(range);
md = MDI(range);

falling = ROC( ad, 2 ) < 0;

// 0 - week, 1 - medium, 2 - strong
strength = IIf( ad < 15 OR ( ad < 25 AND falling ), 0,
           IIf( ad < 25 OR ( ad < 35 AND falling ), 1,
                2 ) );

pTrendBullStrong =  ParamColor( "Bullish Strong", colorDarkGreen );
pTrendBearStrong =  ParamColor( "Bearish Strong", colorDarkRed);
pTrendBullMedium =  ParamColor( "Bullish Medium", colorGreen );
pTrendBearMedium =  ParamColor( "Bearish Medium ", colorRed );

pNoTrend =  ParamColor( "NoTrend", colorLavender );

color = IIf(
	strength > 0 , IIf( 
		pd >= md AND strength == 1,pTrendBullMedium,
		IIf(pd >= md AND strength == 2, pTrendBullStrong,
			IIf(pd < md AND strength == 1,pTrendBearMedium,pTrendBearStrong
		        )
		)
	 ),
	pNoTrend 
);

Plot( ad, _DEFAULT_NAME(), color, ParamStyle("ADX style", styleThick)); 
_SECTION_END();

1 comments

1. nmalpani16

Nice code. I was using old ADX. This wonder ful code.Small help if you can create the scan/exploration for the same if possible.

Leave Comment

Please login here to leave a comment.

Back