GetLowestValue

Finds the lowest value in a range of bars.

Syntax

GetLowestValue(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 lowest value found in the specified range.

Description

The GetLowestValue method searches for the lowest value of a specified type (Open, High, Low, Close, or Volume) 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