請(qǐng)老師幫忙編寫一下,謝謝了! [金字塔]
- 咨詢內(nèi)容:
請(qǐng)老師幫忙編寫一下:
ma(c,5)金叉ma(C,60),建立2N手?jǐn)?shù)多頭倉(cāng)位;當(dāng)C跌破ma(C,60)時(shí),平多倉(cāng)N手;
當(dāng)ma(c,5)死叉ma(C,60),建立2N手?jǐn)?shù)空頭倉(cāng)位;當(dāng)C上穿ma(C,60)時(shí),平空倉(cāng)N手;
謝謝老師了!~
- 金字塔客服:
ma5:=ma(c,5);
ma60:=ma(c,60);
if cross(ma5,ma60) then buy(holding=0,2*n,market);
if holding>0 and cross(ma60,c) then sell(1,n,market);
if cross(ma60,ma5) then buyshort(holding=0,2*n,market);
if holding<0 and cross(c,ma60) then sellshort(1,n,market);
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容