Highest (Function)

image\trumpet2.gif Disclaimer

The Highest function returns the highest price over a range of bars.

Syntax

Highest(Price, Length)

Returns (Double)

The highest Price found over a range of  Length bars.

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 highest calculated Close + Open value over the last 20 bars to Value1:

Value1 = Highest(Close + Open, 20);

See Also

HighestFC, HighestArray, Lowest, Extremes, HighestBar