TValueType

Enumeration of price types that can be used to specify which price value to retrieve from market data.

Values

Enum Value
Description

OPEN

Opening price of a bar/candle

HIGH

Highest price reached during the bar/candle period

LOW

Lowest price reached during the bar/candle period

CLOSE

Closing price of a bar/candle

VOLUME

Trading volume during the bar/candle period

Usage Example

// Get opening prices array
const openPrices = this.api.GetPriceArray(TValueType.OPEN);

// Get highest price value
const highPrice = this.api.GetPrice(TValueType.HIGH);

// Get closing prices for calculations
const closePrices = this.api.GetPriceArray(TValueType.CLOSE);

// Get volume data
const volumeData = this.api.GetPriceArray(TValueType.VOLUME);

Last updated