python order_status()無響應 [金字塔]
咨詢內容:
大致就是每次運行到下面這個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()響應時間也不行
技術交流:
對的
補充內容 (2022-2-25 14:32):
這個測略變紅 要重啟 技術交流:
不要去死循環。。。
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()響應時間也不行
?
?來源: m.kzuj.com.cn
金字塔資深技術: 這里賬戶死循環了?補充內容 (2022-2-25 14:32):
這個測略變紅 要重啟
?
有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友
可聯系技術人員 QQ: 262069696 或微信號:cxh99cxh99 進行 有償收費 編寫!
(注:由于人數限制,QQ或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
相關文章
-
沒有相關內容