Files
ATS_Esper/test.epl

7 lines
274 B
Plaintext

-- 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)