返回列表 发布新帖

求大佬解决一下passorder=0的问题

19 0

我在guojin内部QMT编辑器里面写了一个脚本负责下单,但是运行起来日志始终是passorder=0,换成order-shares也是返回0,日志如下

[2026-07-21 20:56:26][新建策略文件][SH000300][1分钟] [LIVE init] start 2026-07-21 20:56:26 [LIVE init] account = n/a [LIVE init] period = 1m [LIVE init] barpos = 0 [LIVE init] is_last_bar = <bound method __PyContext.is_last_bar of <_PyContextInfo.__PyContext object at 0x0000017649351588>> [LIVE init][WARN] set period failed: can't set attribute [LIVE init] auto_trade_callback enabled (qmt stgframe auto-attach via user_func names) [LIVE init] set_universe OK (24 codes) [LIVE init] account_id = 8890789472 [LIVE init] cursor line = 1 [LIVE init] BYPASS_ASSET_CHECK = True [LIVE init] BYPASS_ASSET_CHECK = True [LIVE init] BYPASS_ASSET_CHECK = True [LIVE init] BYPASS_ASSET_CHECK = True [LIVE init] [WARN] bypass mode -> no_asset_info rejected signals will be allowed (verification only) [LIVE init] ready [LIVE init] orderError_callback registered for account=8890789472 [LIVE init] asset probe OK keys=['total', 'cash'] total=134840.18 cash=30105.18 [LIVE init] orders=0 deals=0 positions=N/A [LIVE handlebar] tick=1 2026-07-21 20:56:26

[2026-07-21 20:56:26][新建策略文件][SH000300][1分钟] [LIVE] position snapshot OK, 3 codes [LIVE] deal snapshot OK, 0 rows [LIVE position] (empty)

[2026-07-21 20:56:27][新建策略文件][SH000300][1分钟] [trade]start simulation mode [2026-07-21 20:56:27][新建策略文件][SH000300][1分钟] [LIVE init] manual handlebar() OK [LIVE init] order_shares返回: 0 [LIVE after_init] (no-op),求大佬解答

回复

您需要登录后才可以回帖 登录 | 立即注册

客服专线

400-080-8112

用思考的速度交易,用真诚的态度合作,我们是认真的!
  • 关注公众号
  • 添加微信客服
Copyright © 2001-2026 迅投QMT社区 版权所有 All Rights Reserved. 京ICP备2025122616号-3
关灯 快速发帖
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表