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

Percent Rank for Amibroker (AFL)

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

Not an indicator per se, but a rather useful function for developing sophisticated indicators in Amibroker.

Found this in the internet some months back, can’t remember where.

Similar Indicators / Formulas

Chandelier Exit Functions
Submitted by kaiji over 14 years ago
Time Left for each bar
Submitted by novicetraders almost 14 years ago
Last Thursday Of The Month
Submitted by sahasra almost 13 years ago
Visible Min and Max Value Demo
Submitted by kaiji about 14 years ago
Adaptive Laguerre Filter from John Ehlers
Submitted by kaiji over 14 years ago
Trend detection function
Submitted by isozaki about 12 years ago

Indicator / Formula

Copy & Paste Friendly
function PercentRank( Data, Periods )
{
Count = 0;
for ( i = 1; i < Periods + 1 ; i++ )
{
Count = Count + IIf ( Ref( Data, 0 ) > Ref( Data, -i ), 1, 0 );
}
return 100 * Count / Periods;
}

2 comments

1. ole

Why go through this function (does not work unless change “PercentRank” name) instead of using PercentRank() in AmiBroker? Same result.

2. ole

Why go through this function (does not work unless change “PercentRank” name) instead of using PercentRank() in AmiBroker? Same result.

Leave Comment

Please login here to leave a comment.

Back