I'd like to be able to check if the next day is a trading day, it's trading hours, and also, the trading hours for the current day. Working on a Forex strategy I'd like the algo to avoid having an open position Friday an hour before market close, and also, from 4:00pm to 6:00pm EST (InteractiveBrokers is shut down from 5:00pm to 5:15pm Monday-Friday). Any ideas?