Skip to content

Price Constants

Price Constants

Calculations of technical indicators require price values and/or values of volumes, on which calculations will be performed. There are 7 predefined identifiers from the ENUM_APPLIED_PRICE enumeration, used to specify the desired price base for calculations.

ENUM_APPLIED_PRICE

IDValueDescription
PRICE_CLOSE0Close price
PRICE_OPEN1Open price
PRICE_HIGH2The maximum price for the period
PRICE_LOW3The minimum price for the period
PRICE_MEDIAN4Median price, (high + low)/2
PRICE_TYPICAL5Typical price, (high + low + close)/3
PRICE_WEIGHTED6Weighted close price, (high + low + close + close)/4

The iStochastic() technical Indicator can be calculated in two ways using:

  • either only Close prices;
  • or High and Low prices.
  • To select a necessary variant for calculation, specify one of the values of the ENUM_STO_PRICE enumeration. ENUM_STO_PRICE
IDDescription
STO_LOWHIGHCalculation is based on Low/High prices
STO_CLOSECLOSECalculation is based on Close/Close prices
Last updated on