請老師幫忙寫個移動止損 [金字塔]
- 咨詢內容:
多或空開倉后虧2%止損,盈利3%以上后把止損移致成本價。。。盈利超3%以上后回撤未到成本價不止盈(損)。
[此貼子已經被作者于2016-7-1 14:31:38編輯過]
- 金字塔客服:
if holding>0 and c<=enterprice*0.98 then sell(1,0,market);
if holding<0 and c>=enterprice*1.02 then sellshort(1,0,market);
if holding>0 and hhv(h,enterbars+1)>=enterprice*1.03 and c<enterprice then sell(1,0,market);
if holding<0 and llv(l,enterbars+1)<=enterprice*0.97 and c>enterprice then sellshort(1,0,market);
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容