RealTest User Guide
RealTest User Guide

 

 

Navigation: Realtest Script Language > Syntax Element Details >

#PercentRank

 

 

 

 

Category

Cross-Sectional Functions

Description

For each date, evaluates a formula for each symbol, then calculates the percent rank of each symbol's value among all symbols on that date and stores those percent rank values in the data item array.

Syntax

#PercentRank formula

Notes

The largest value will have a percent rank of 100, the lowest value 0, and the others will be distributed evenly between those extremes.

Example

PriceRankToday: #PercentRank Close

Notes

If the formula result is nan (not a number -- unable to calculate) then that stock is not included in the ranking list (reducing the total count) and its rank value would be nan as well.

 

 

 

Copyright © 2020-2026 Systematic Solutions, LLC