python order_status()無響應(yīng) [金字塔]
咨詢內(nèi)容:
大致就是每次運(yùn)行到下面這個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()無響應(yīng), 關(guān)鍵是我這個策略就沒有定義order_status()....
根據(jù)自己的輸出可以確定stop_order()里的每一行。
只有實(shí)盤的時候才有這個問題,模擬沒事。
試著調(diào)大order_status()響應(yīng)時間也不行
技術(shù)交流:
對的
補(bǔ)充內(nèi)容 (2022-2-25 14:32):
這個測略變紅 要重啟 技術(shù)交流:
不要去死循環(huán)。。。
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()無響應(yīng), 關(guān)鍵是我這個策略就沒有定義order_status()....
根據(jù)自己的輸出可以確定stop_order()里的每一行。
只有實(shí)盤的時候才有這個問題,模擬沒事。
試著調(diào)大order_status()響應(yīng)時間也不行
?
?來源: www.tumamayizhan.com
金字塔資深技術(shù): 這里賬戶死循環(huán)了?補(bǔ)充內(nèi)容 (2022-2-25 14:32):
這個測略變紅 要重啟
?
有思路,想編寫各種指標(biāo)公式,交易模型,選股公式,還原公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 或微信號:cxh99cxh99 進(jìn)行 有償收費(fèi) 編寫!
(怎么收費(fèi),代編流程等詳情請點(diǎn)擊閱讀!)
(注:由于人數(shù)限制,QQ或微信請選擇方便的一個聯(lián)系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容