dogabot dogabot

strategy

UTC 时间窗口过滤器

如何在 dogabot 上用 allowedAfterUtc 与 blockedWindows 按 UTC 时间禁止或允许交易。

strategyfilterstime

UTC 时间窗口 规则是 门槛过滤器——本身不产生买入/卖出,仅根据当前 UTC 时钟允许或阻止待定信号。

参数

参数用途
allowedAfterUtc可选:每日最早允许交易的时间(如 09:30
blockedWindows{ startUtc, endUtc, enabled } 禁止区间列表

禁止窗口

目标设置
美股现金开盘前不交易allowedAfterUtc: 14:30
跳过亚洲低流动性时段禁止 00:0008:00
维护前平仓禁止 23:4500:15

适用位置

仅过滤器 — 在 filters.entryfilters.increasefilters.reversalfilters.exit 下。

门槛如何与方向性过滤器组合见 策略过滤器

提示

示例

示例

filters.entryallowedAfterUtc 09:30blockedWindows{ startUtc: “22:00”, endUtc: “06:00”, enabled: true }10:15 UTC 信号 → 允许。23:00 UTC 信号 → 屏蔽(隔夜窗口)。时间一律为 UTC

延伸阅读

Related in the app

Ready to put this into practice?

Create a free account and explore dogabot with paper trading.

Try Backtest