我在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),求大佬解答 |