This is a trading item or a component that was created using QuantShare by one of our members.
This item can be downloaded and used by QuantShare Trading Software.
Trading items are of different types. There are data downloaders, trading indicators, trading systems, watchlists, composites/indices...
You can use this item and hundreds of others for free by downloading QuantShare.
Top Reasons Why You Should Use QuantShare:
Works with US and international markets (stock, forex, options, futures, ETF...)
Offers you the tools that will help you become a profitable trader
Allows you to implement any trading ideas
Exchange items and ideas with other QuantShare users
Our support team is very responsive and will answer any of your questions
We will implement any features you suggest
Very low price and much more features than the majority of other trading software
The Trading Indicator Rank function calculates the rank of a given trading indicator or time series compared to its previous values. The number of previous values is determined by the lookback period parameter of the function. Trading Indicator Rank values vary between 1 and the provided period, where a number of one means that the current value is higher than all past values (within the lookback period) and a returned value of X = period, means that the current indicator or time series value is the lowest among all past values.
Percentile - Percent Rank of a Trading Indicator is another trading object that performs almost the same calculation with the difference that it returns the percentile or percent rank instead of the rank.
If the current bar's value is the highest the latter will return 100, while the current trading indicator will return 1. If the current bar's value is the lowest the latter will return 0, while the current trading indicator will return N, where N is the lookback period specified as an argument.
Besides the lookback period, the trading indicator rank accepts a time series as the first argument. Example:
IndicatorRank(close, 20)
Return the rank of the close price over the preceding 20 bars.
IndicatorRank(perf(close, 10), 20) < 5
This trading rule returns 1 if the stock 10-Bar rate of return is among the top 5 highest compared to the previous 20 instances.
llv(IndicatorRank(close, 20) < 4, 5) == 1
The above trading rule returns 1 if the stock close price is among the three highest values (given the previous 20 values) for the last five consecutive bars.
>>>> More trading objects? click here to search for trading sytems, downloaders, screens, custom drawing tools, indicators... by country, market or style.