請(qǐng)老師幫忙寫(xiě)個(gè)移動(dòng)止損 [金字塔]
- 咨詢內(nèi)容:
多或空開(kāi)倉(cāng)后虧2%止損,盈利3%以上后把止損移致成本價(jià)。。。盈利超3%以上后回撤未到成本價(jià)不止盈(損)。
[此貼子已經(jīng)被作者于2016-7-1 14:31:38編輯過(guò)]
- 金字塔客服:
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);
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容