getMonth() |
Top Previous Next |
getMonth( barIndex [, numBars] [, symbol] )
Returns the month at the specified bar index.
Parameters
Usage
function main() {
... ... //retrieve the value for the current price bar myVar = getMonth(0); //retrieve the value for the previous price bar myVar = getMonth(-1); //retrieve the value for a specific symbol myVar = getMonth(0, "IBM" ); //retrieve the last 20 values into an array myArray = getMonth( 0, -20 );
}
|