日內交易當天連虧3次停止交易,隔天繼續怎么寫? [金字塔]
- 咨詢內容:
buycond:=ref(c>ma(c,10),1) and time<144000;
sellcond:=ref(c<ma(c,10),1) and time<144000;
if holding>0 and sellcond then sell(1,1,market);
if holding<0 and buycond then sellshort(1,1,market);
if holding=0 and buycond then buy(1,1,market);
if holding=0 and sellcond then buyshort(1,1,market);
if time>=145000 then begin
sell(holding>0,1,market);
sellshort(holding<0,1,market);
end
請問日內交易模型,如果當天信號連虧3次的時候,停止交易等到第二天再繼續,應該怎么寫?
- 金字塔客服: 參考函數NUMLOSSTRADE
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 262069696 進行 有償 編寫!(不貴!點擊查看價格!)
- 上一篇:關于當月合約
- 下一篇:計算止損線的變動幅度
相關文章
-
指定的模型還沒有相關內容!