NthLowest (Function)

image\trumpet2.gif Disclaimer

The NthLowest function will return the lowest, second lowest, third lowest (and so on) price over a specified number of bars.

Syntax

NthLowest(N, Price, Length)

Returns (Double)

A numeric value containing the ’N’th lowest occurrence of Price over the last Length bars..

Parameters

Name

Type

Description

N

Numeric

The occurrence to return. 1 = lowest, 2 = 2nd lowest, and so on.

Price

Numeric

Specifies which bar value (price, function, or formula) to compare for the lowest occurrence.

Length

Numeric

The number of trailing bars to consider.

Remarks

Just like the Lowest function, NthLowest has the inputs Price and Length. It also has the input N that allows you to specify if it is the second, third, and so on lowest value desired.

  The Length input in the NthLowest function can only be replaced with a value equal to or less than 100. The value for N should not be greater than the value for the input Length..

Example

Returns the value of the 3rd  lowest Close that occurred during the past 30 bars.

Value1 = NthLowest(3, Close, 30);