#include "../../shared/GlobalConfigFile.h" #include "../../shared/MarketHours.h" #include "UseHistory.h" bool openHasPassed() { const std::string debug = getConfigItem("open_has_passed"); if (debug == "YES") return true; else if (debug == "NO") return false; return secondOfTheDay(time(NULL)) >= MARKET_HOURS_OPEN; }