The UTC Time Window rule is a gate filter—it never emits buy/sell on its own. It only allows or blocks pending signals based on the current UTC clock.
Parameters
| Parameter | Purpose |
|---|---|
| allowedAfterUtc | Optional earliest time each day trading may proceed (e.g. 09:30) |
| blockedWindows | List of { startUtc, endUtc, enabled } intervals to block |
Blocked windows
- Intervals use half-open logic: [startUtc, endUtc) in UTC
- Overnight windows work: if
startUtc>endUtc, the block spans midnight (e.g. 22:00 → 06:00) - Toggle enabled per window without deleting it
| Goal | Setup |
|---|---|
| No trading before US cash open | allowedAfterUtc: 14:30 |
| Skip low-liquidity Asian hours | Block 00:00–08:00 |
| Flat before maintenance | Block 23:45–00:15 |
Where to use it
Filters only — under filters.entry, filters.increase, filters.reversal, or filters.exit.
See Strategy filters for how gates combine with directional filters.
Tips
- Times are UTC, not exchange local—convert your session accordingly.
- Use separate windows per reason if entries should be stricter than exits.
Example
filters.entry only. allowedAfterUtc 09:30. blockedWindows: { startUtc: “22:00”, endUtc: “06:00”, enabled: true }. Signal at 10:15 UTC → allowed. Signal at 23:00 UTC → blocked (overnight window). Times are always UTC.