getValueAbsolute()
getValueAbsolute( barType [, nOffset] [, nNumBars] [,Symbol] )
Returns a data series value or value using an ABSOLUTE offset.
- barType: "Open", "High", "Low", "Close", "Time", "rawtime", "Volume", "oi", "year", "month", "day", "hour", "minute", "second"
- nOffset: Offset from the "relative" bar. The relative bar is maintained by the formula engine. It is the index of the bar currently being computed.
- nNumBars: Number of bars to return
- Symbol: The symbol for which to return data. Symbol may have an Interval suffix (e.g., "IBM,5")
Examples:
var vValue = getValueAbsolute( "open" ); //returns the current bar's open value
var vValue = getValueAbsolute( "open", 0, 1 ); //ditto
var aValues = getValueAbsolute( "close", 0, -10 ); //fills array aValues with the 10 most recent closes