getNextTradingDay()

ICE Data Services -

getNextTradingDay()

 

getNextTradingDay( Date, [symbol] )

 

  • Date:   A valid Date object (based on "rawtime").
  • symbol:  Optional. The symbol to retrieve information for.

 

This function is used to determine the date of the next trading day when the current bar is not the most recent trading day.

 

Example:

 

var vTime = getValue("rawtime");

 

if (vTime != null) {

 var vNextDay = getNextTradingDay( vTime );

 

 if (vNextDay != null) {

  var vIndex = getFirstBarIndexOfDay( vNextDay );

 }

}

 

getPreviousTradingDay()

getFirstBarIndexOfDay()