-- in_trading_hours is set to true if the current time -- is inside the normal create variable bool in_trading_hours -- update in_trading_hours variable on each tick on Tick as t set in_trading_hours = (EPLHelpers.getHour(t.time) >= 9 and EPLHelpers.getHour(t.time) < 17)