getValue()

eSignal EFS

getValue()

 

getValue( barType [, nOffset] [, nNumBars] [,Symbol] )

 

Returns a data series value or values RELATIVE to the bar currently being built.

 

  • barType: "Open", "High", "Low", "Close", "Time", "rawtime", "Volume", "oi", "year", "month", "day", "hour", "minute", "second"
  • nOffset: Offset from the "relative" bar. The relative bar is maintained by the formula engine. It is the index of the bar currently being computed.
  • nNumBars: Number of bars to return 
  • Symbol: The symbol for which to return data. Symbol may have an Interval suffix (e.g., "IBM,5")

 

Examples:

 

var vValue = getValue( "open", 0  );  //returns the current bar's open value

 

var vValue = getValue( "open", 0, 1 );  //ditto

 

var vValue = getValue( "close", -1 );  //get the previous bar's close

 

var vValue = getValue( "high", -7 );  //get the high from 7 bars ago

 

var aValues = getValue( "close", 0, -10 ); //fills array aValues with the 10 most recent closes.

 

close()

high()

low()

open()

oi()

 

getYear()

getMonth()

getDay()

getHour()

getMinute()

getSecond()

 

 

getValue()

getValueAbsolute()