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

Aggregate M Indicator for Amibroker (AFL)

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

David Varadi’s Aggregate M Indicator as discussed here: http://cssanalytics.wordpress.com/2009/11/05/trend-or-mean-reversion-why-make-a-choice-the-simple-aggregate-m-indicator/

Screenshots

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 about 14 years ago
BoH Risk Aversion Indicator
Submitted by genkumag about 13 years ago

Indicator / Formula

Copy & Paste Friendly
//PercentRankHLC Function
//As Coded by Ramon Cummins
function PercentRankHLC(Data1, Data2, Data3, Periods) {
	Count = 0;
	for (i = 0; i < Periods + 1; i++) {
		Count = Count + IIf(Ref(Data3, 0) > Ref(Data1, -i), 1, 0);
		Count = Count + IIf(Ref(Data3, 0) > Ref(Data2, -i), 1, 0);
		Count = Count + IIf(Ref(Data3, 0) > Ref(Data3, -i), 1, 0);
	}
	return 100 * Count / (Periods*3-1);
}

//David Varadi's Aggregate M Indicator as discussed here:
//http://cssanalytics.wordpress.com/2009/11/05/trend-or-mean-reversion-why-make-a-choice-the-simple-aggregate-m-indicator/
rank_Long = PercentRankHLC( H, L, C, 252 );
rank_Short = 1 - PercentRankHLC( H, L, C, 10 );
Value = ( rank_Long + rank_Short ) / 2;
AggM = ( Ref(value, -1) * 0.4 ) + ( value * 0.6 );

Plot(AggM, "AggM", colorBlack);

Plot(50, "", colorLightGrey);
Plot(0, "", colorLightGrey);
Plot(-50, "", colorLightGrey);

1 comments

1. mahesh.aranake

Any suggestions on how to buy / Sell based on the indicator?

Leave Comment

Please login here to leave a comment.

Back