getHour()

ICE Data Services -

getHour()

 

getHour([nRelativeOffset] [, nNumBars [, Symbol ] ])

 

  • nRelativeOffset: Offset to bar. 0 is most recent bar, -1 is next bar, etc.
  • nNumBars:  Number of bars to retrieve (a negative number)
  • Symbol: T he symbol to retrieve data for.

 

Examples: 

getHour(-1);    gets the next-to-last hour value for the current symbol
getHour(0, "ES #F");  gets the most recent hour value for ES
getHour(0, -10, "ES #F"); gets the last 10 hour values for ES and places them in an array

 

This is a shortcut to getValue, requesting the hour value. See getValue for more information.