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

Aroon for Amibroker (AFL)
kaiji
almost 15 years ago
Amibroker (AFL)

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

The Aroon indicator allows you to anticipate changes in security prices from trending to trading range. The indicator uses two lines: Aroon Up and Aroon Down. Aroon Down is a measure of how close the current bar is to the most recent lowest Low bar found in the last N bars. Aroon Up is a measure of how close the current bar is to the most recent highest High bar found in the last N bars. Additionally Aroon oscillator can be defined as the difference between the Aroon Up and Aroon Down indicators. For more information on the Aroon indicator see the article written by Tushar Chande in the September 1995 issue of Technical Analysis of Stocks & Commodities magazine.

Aroon indicator ranges from 0 to 100 and it is drawn with additional 30/70 levels. The default period is 14 days. The indicator works as follows: if a security makes a new 14-day high, the Aroon Up = 100; when the security makes a new 14-day low, the Aroon Down = 100; when there was no new high in 14 days, the Aroon Up = 0; and consequently when there was no new low for 14 days, the Aroon Down = 0.

Aroon indicator is an another way (in addition to VHF and ADX indicators) of detemining if market is trending or not.

Translated from the original metastock code

Screenshots

Similar Indicators / Formulas

Debu Market Efficiency Ratio
Submitted by agent301 over 12 years ago
MACD (new timing)
Submitted by tigernifty over 12 years ago
3 Days Track
Submitted by janet0211 over 14 years ago
KILL THE OPERATOR MACD
Submitted by prasadmuni over 12 years ago
%R ++
Submitted by reb over 14 years ago
DMI Spread
Submitted by pipstar over 14 years ago

Indicator / Formula

Copy & Paste Friendly
ard = 100* (14 - (( IIf(Ref(L,-1) == LLV(L, 14 ) ,1 , IIf( Ref(L ,-2 ) == LLV(L, 14 ) ,2 , IIf( Ref(L
,- 3 ) == 
LLV(L, 14 ) ,3 ,IIf( Ref(L ,-4 ) == LLV(L, 14 ) ,4 ,IIf(Ref( L ,-5 ) == LLV(L, 14 ) ,5 ,IIf(Ref(L ,-6 )
== 
LLV(L, 14 ) ,6 ,IIf( Ref(L ,-7 ) == LLV(L, 14 ) ,7 ,IIf(Ref( L ,-8 ) == LLV(L, 14 ) ,8 ,IIf(Ref( L ,-9
) == 
LLV(L, 14 ) ,9 ,IIf( Ref(L,-10) == LLV(L,14 ) ,10 ,IIf(Ref(L ,-11) == LLV(L, 14 ) ,11
,IIf(Ref(L,-12 ) == 
LLV(L ,14) ,12,IIf( Ref(L,-13) == LLV(L ,14 ) ,13 ,IIf( Ref( L,-14) == LLV(L, 14 ) ,14
,0) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) / 14;

aru = 100 * ( 14 - ( ( IIf(Ref(H ,-1) == HHV(H, 14) ,1 ,IIf(Ref(H ,-2 ) == HHV(H, 14) ,2 ,IIf(Ref(H
,- 3 ) == 
HHV(H, 14) ,3, IIf(Ref(H ,-4 ) == HHV(H, 14) ,4 ,IIf(Ref(H ,-5 ) == HHV(H, 14) ,5 ,IIf(Ref(H ,-6 )
== 
HHV(H, 14) ,6 ,IIf(Ref(H,-7 ) == HHV(H, 14) ,7 ,IIf(Ref(H ,-8 ) == HHV(H, 14) ,8 , IIf(Ref(H ,-9 )
== 
HHV(H, 14) ,9 ,IIf(Ref(H ,-10 ) == HHV(H, 14) ,10 ,IIf(Ref(H ,-11 ) == HHV(H, 14) ,11 ,IIf(Ref(H
,-12 ) == 
HHV(H, 14) ,12 ,IIf(Ref(H ,-13) == HHV(H, 14) ,13 ,IIf(Ref(H ,-14 ) == HHV(H, 14) ,14 ,0 ) ) ) ) ) )
) ) ) ) ) ) ) ) ) ) ) / 14;

Plot( aru, "Aroon Up", colorRed);
Plot( ard, "Aroon Down", colorBlue);

1 comments

1. dalmas

Sorry …. BUT:

As of Today the above code can be reduced to a far more readeable:

_SECTION_BEGIN("Aroon");
EnableTextOutput(False);
BasePeriod  = Param("Base Length", 14, 8, 50, 1);
SetChartOptions( 1, chartShowDates | chartWrapTitle, chartGrid20 | chartGrid30 | chartGrid50 | chartGrid70 | chartGrid80);
AroonDown  = ((BasePeriod - LLVBars(L, BasePeriod)) / BasePeriod) * 100;
AroonUp    = ((BasePeriod - HHVBars(H, BasePeriod)) / BasePeriod) * 100;
Plot(AroonUp, StrFormat(_SECTION_NAME()+" - Base: %g - UP", BasePeriod), colorGreen, styleLine);
Plot(AroonDown, " DOWN", colorRed, styleLine);
_SECTION_END();

Regards

Leave Comment

Please login here to leave a comment.

Back