上次贏利差大于100點,本次開倉后止損由原來正常的6點改為20點止損 [金字塔]
- 咨詢內容:
老師,若股指上次贏利差大于100點,本次開倉后止損由原來正常的6點改為20點止損,而原來正常的6點止損條件不變
。如何寫,謝謝
if holding>0 and o<=enterprice-6 then begin
多單止損:sell(1,1,limitr,o);
- 金字塔客服:
variable:zhisun=6;
if ref(平倉條件,1) and holding=0 and ref(holding,1)>0 and ref(openprofit,1)>100*mindiff*multiplier then zhisun:=20;
if zhisun=20 and holding<>0 and enterprice-c>zhisun*mindiff then begin
sell(1,0,limitr,o);
zhisun:=6;
end
- 用戶回復: 謝謝老師!
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容