hour()

ICE Data Services -

hour() Series Functions

The hour() function is used to create a Series Object of the hour values or to retrieve individual hour values.

Syntax
hour( [ nBarIndex][, sym() | inv()] )

Parameters
Parameter: Description:Default:
nBarIndex [Optional]  Number of bar index of series to retrieve

 

n/asym() or
inv()
[Optional]  Function of sym() or inv() to determine source for hour values.

 

n/a
Return Value(s)
Returns a Series Object when
nBarIndex is not specified.

Returns a single value when nBarIndexis specified.


Notes
N/A

Code Examples
function main() {

//retrieve the value for the current price bar
myVar =
hour(0);
	//retrieve the value for the previous price bar
myVar =
hour(-1);
	//retrieve the current value for a specific symbol
myVar =
hour(0sym("IBM") );
	//retrieve the current value for a specific symbol/interval
myVar =
hour(0sym("IBM,5") );
	//retrieve the current value for a specific bar interval
myVar = hour(0inv(15) );

//create a Series Object of the hour values.
xHour =
hour();
	//create a Series Object of the hour values for a specific symbol.
xHour =
hour( sym("IBM") );
	//create a Series Object of the hour values for a specific symbol/interval.
xHour =
hour( sym("IBM,5") );
	//create a Series Object of the hour values for a specific interval.
xHour =
hour( inv(15) );

}



See Also
Series Functions
eSignal Bulletin Board Search Engine
Help Guides and Tutorials