During a backtest, is there a way to obtain the next trading date for a future contract? As an example: on friday return monday's date, unless monday is a holiday.

Author