請問版主,趨勢交易中設置虧損9%自動止損這樣? [金字塔]
- 咨詢內容:
if holding=0 then begin if tmp>0 then buy(1,1,marketr);endif holding=0 then begin if tmp<0 then buyshort(1,1,marketr); endif holding>0 then begin if tmp<0 then begin sell(1,holding,marketr); buyshort(1,1,marketr); endendif holding<0 then begin if tmp>0 then begin sellshort(1,holding,marketr); buy(1,1,marketr); endend
If ((C-Enterprice)/Enterprice)*100>=9 AND HOLDING<0 then begin 空損:SellShort(1,0,marketr); End If ((Enterprice-C)/C)*100>=9 AND HOLDING>0 then begin 多損:Sell(1,0,marketr); End
- 金字塔客服:
這樣編寫是否正確
- 用戶回復:
這樣編寫正確否,到達9%的虧損能自動執行止損?
- 網友回復: 對的
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容