RealTest User Guide
RealTest User Guide

 

 

 

 

 

Category

Multi-Bar Functions

Description

Value with a specific numeric rank

Syntax

RankN(rank, expr, count)

Parameters

rank - formula specifying a rank number

expr - data series formula

count - lookback period

Notes

Performs the Rank function and then returns the value with the requested rank.

Example

SecondHigh: RankN(2, H, 20)

The second-highest High value in the past 20 bars.

 

 

 

Copyright © 2020-2026 Systematic Solutions, LLC