getNewestBarIndex()
getNewestBarIndex( [symbol] )
Returns the index of the most recent bar.
This will always return ZERO (0) unless no data exists for the given symbol. Otherwise, it will return null. If symbol is omitted, the symbol for the current chart is used.