getPreviousTradingDay()
getPreviousTradingDay( Date, [symbol] )
- Date: A valid Date object (based on "rawtime").
- symbol: Optional. The symbol to retrieve information for.
Used for finding an index into the previous trading day.
Example:
var vTime = getValue("rawtime");
if (vTime != null) {
var vPriorDay = getPreviousTradingDay( vTime );
if (vPriorDay != null) {
var vIndex = getFirstBarIndexOfDay( vPriorDay );
}
}