清倉(cāng)不再開倉(cāng)的問題 [金字塔]
- 咨詢內(nèi)容:
如果最新的動(dòng)態(tài)權(quán)益低于某個(gè)值或者目前賬戶總資產(chǎn)的某個(gè)百分?jǐn)?shù),則賬戶持倉(cāng)全部清空并且策略不再開倉(cāng),這個(gè)應(yīng)該怎么寫呢?
- 金字塔客服:
處理中,請(qǐng)稍等
- 用戶回復(fù):
VARIABLE:n:=0;
if 開多條件 and n=0 then buy(holding=0,1,market);
if 開空條件 and n=0 then buyshort(holding=0,1,market);if asset<x then begin
sell(holding>0,holding,market);
sellshort(holding<0,holding,market);
n:=1;
end
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容