What exactly does getPreviousTradingDay return? I'm trying to retrieve the index of the first bar of the previous trading day, and I'm using:
var dtPrevTime = getPreviousTradingDay(dtCurrentTime)
which is ok. However, when I call getFirstBarIndexOfDay(dtPrevTime, Symbol), it throws an error saying that the first argument is invalid.
var dtPrevTime = getPreviousTradingDay(dtCurrentTime)
which is ok. However, when I call getFirstBarIndexOfDay(dtPrevTime, Symbol), it throws an error saying that the first argument is invalid.
Comment