rawtime() |
Top Previous Next |
rawtime( barIndex [, sym()] [, inv()] )
Returns the rawtime (number of seconds elapsed since 01/01/1970) at the specified bar index.
Parameters
Usage
function main() {
... ... //retrieve the value for the current price bar myVar = rawtime(0); //retrieve the value for the previous price bar myVar = rawtime(-1); //retrieve the value for a specific symbol myVar = rawtime(0, sym("IBM") ); //retrieve the value for a specific symbol/interval myVar = rawtime(0, sym("IBM,5") ); //retrieve the value for a specific bar interval myVar = rawtime(0, inv("15") );
}
|