清倉不再開倉的問題 [金字塔]
- 咨詢內容:
如果最新的動態權益低于某個值或者目前賬戶總資產的某個百分數,則賬戶持倉全部清空并且策略不再開倉,這個應該怎么寫呢?
- 金字塔客服:
處理中,請稍等
- 用戶回復:
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
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容