咨詢內容:
大致就是每次運行到下面這個timer function 就會報錯
def stop_order(context):
if p < 2000:
return
for account in []:
buy_open(context.s, 0, 1, account=account)
print("一些簡單變量更新“)
killtimer(stop_order)
用最新的beta是報錯 order_status()無響應, 關鍵是我這個策略就沒有定義order_status()....
根據自己的輸出可以確定stop_order()里的每一行。
只有實盤的時候才有這個問題,模擬沒事。
試著調大order_status()響應時間也不行
?
?來源: www.kzuj.com.cn
金字塔資深技術:
這里賬戶死循環了?
技術交流:
對的
補充內容 (2022-2-25 14:32):
這個測略變紅 要重啟
?
技術交流:
不要去死循環。。。