日內(nèi)交易當(dāng)天連虧3次停止交易,隔天繼續(xù)怎么寫? [金字塔]
- 咨詢內(nèi)容:
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
請(qǐng)問日內(nèi)交易模型,如果當(dāng)天信號(hào)連虧3次的時(shí)候,停止交易等到第二天再繼續(xù),應(yīng)該怎么寫?
- 金字塔客服: 參考函數(shù)NUMLOSSTRADE
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
指定的模型還沒有相關(guān)內(nèi)容!

會(huì)員登錄/注冊(cè)