LowestBar (Function)

image\trumpet2.gif Disclaimer

The LowestBar function returns the number of bars ago the lowest price occurred.  There may be times when two or more bars have exactly the same lowest value; when this happens the function identifies the most recent occurrence.

Syntax

LowestBar(Price, Length)

Returns (Integer)

The number of bars ago the lowest Price occurred.

Parameters

Name

Type

Description

Price

Numeric

Specifies which bar value (price, function, or formula) to evaluate.

Length

Numeric

Sets the number of bars to consider.

Remarks

The input parameter Price can be a bar value such as Close, High, Low, Open, or Volume. It can also be any mathematical calculation such as: ( High + Low) / 2, or a numeric function such as RSI, Stochastic, or ADX.

Example

The following assigns the number of bars ago the lowest value of the last 14 bars occurred to Value1:

Value1 = LowestBar(Low, 14);

See Also

Lowest, HighestBar, Extremes