getValueAbsolute() |
Top Previous Next |
getValueAbsolute( barType, barIndex [, numBars] [, symbol] )
Returns the value of the specified type at the specified bar index relative to the most recent bar in the series, regardless of the bar currently being processed.
Parameters
Usage
function main() {
... ... //retrieve the close from 10 bars ago myVar = getValueAbsolute( "close", -10 ); //retrieve the rawtime of the current bar myVar = getValueAbsolute( "rawtime", 0 ); //retrieve the 20 most recent high values into an array myArray = getValueAbsolute( "high", 0, -20 );
}
|