Example #1
0
 public static bool IsMarketDay(this IInstrument instrument, DateStamp date)
 {
     return(!(date.IsWeekend() || instrument.HolidayDates().Contains(date)));
 }
Example #2
0
 public static DateStamp SkipWeekendAndHolidaysMovingBackward(this IInstrument instrument, DateStamp date)
 {
     return(date.SkipWeekendAndTheseDatesMovingBackward(instrument.HolidayDates()));
 }