求按以下文字編寫程序化模型!非常感謝~ [金字塔]
- 咨詢內(nèi)容:
如果大于20日平均成交量,開多如果小于20日平均成交量,空開如果有盈利的情況下,與開倉(cāng)價(jià)相比回撤2%止盈。
- 金字塔客服:
if vol>ma(vol,20) then buy(holding=0,1,market);
if vol<ma(vol,20) then buyshort(holding=0,1,market);
if h-enterprice>0 and ((hhv(h,enterbars+1)-enterprice)-(h-enterprice))/(hhv(h,enterbars+1)-enterprice)>=0.02 and holding>0 then sell(1,0,market);
if enterprice-l<0 and ((enterprice-llv(l,enterbars+1))-(enterprice-l))/(enterprice-llv(l,enterbars+1))>=0.02 and holding<0 then sellshort(1,0,market);
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容