GetHighestValue

Finds the highest value in a range of bars.

Syntax

GetHighestValue(valueType: TValueType, startPos: number, count: number): number

Parameters

  • valueType: A TValueType enum value representing the type of price to analyze

  • startPos: A number representing the starting position in the range

  • count: A number representing the number of bars to analyze

Return Value

Returns a number representing the highest value found in the specified range.

Description

The GetHighestValue method searches for the highest value of a specified type (Open, High, Low, or Close) within a range of bars. The range starts at the specified position and includes the specified number of bars.

See TValueType for available price types:

  • OPEN: Opening price of a bar/candle

  • HIGH: Highest price of a bar/candle

  • LOW: Lowest price of a bar/candle

  • CLOSE: Closing price of a bar/candle

  • VOLUME: Trading volume of a bar/candle

Example

Last updated