VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 3
声望: 0

`class FirstStrategy(CtaTemplate):
author = "用Python的交易员"

default_pricetick = 4
default_cancel_order_second = 2
default_stop_pos_second = 40

cancel_order_times = 0


bullorder = {
    "orderid": "",
    "open_price": 0,
    "stoploss_price" : 0,
    "takeprofit_price" : 0,
    "open_time": None,
    "trade_time": None,
    "status": "INIT",
}`

以上代码, 启动多个品种,如图:

description

运行过程中发现A品种设置的变量值赋值给所以启动的品种, 请问这是怎么回事

Administrator
avatar
加入于:
帖子: 4502
声望: 322

多合约请使用PortfolioStrategy模块

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】