Skip to content

组合策略执行时间 #178

Description

@jsenjobs

Describe the bug

Image Image

schedule time is incorrect

Steps to reproduce

  1. `def initialize(context):
    g.symbol = "ETH/USDT"
    context.set_universe(pool="cry-a181590155")
    context.subscribe(frequency="1d")
    context.set_warmup(60)

    g.ema_period = 20
    g.lookback = 60

    run_daily(rebalance, time="09:35")

def rebalance(context, data):
frame = data.history(g.symbol, count=g.lookback, frequency="1d", field="close")
if frame is None or len(frame) < g.ema_period:
return
order_target_percent(g.symbol, 1.0, reason="bear_buy")`
2. run backtest or paper

Expected behavior

No response

Deployment method

Docker Compose

Relevant logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions