[求助]請(qǐng)老師幫忙寫個(gè)模型代碼 [金字塔]
- 咨詢內(nèi)容:
請(qǐng)老師幫忙寫個(gè)簡(jiǎn)單的均線模型:一分鐘K線周期上用MA15做多空進(jìn)場(chǎng)條件,當(dāng)K線收盤價(jià)大于均線值5(N)個(gè)點(diǎn)則做多,相反則做空,固定下一手。如果盈利超過(guò)10點(diǎn)之后回撤達(dá)到3點(diǎn),就平倉(cāng),保住盈利。超過(guò)10個(gè)點(diǎn)的盈利則采取移動(dòng)止盈,回落至70%的時(shí)候平倉(cāng)。若下單后行情即刻相反的話5個(gè)點(diǎn)止損出場(chǎng)。謝謝!!!
- 金字塔客服:
處理中,請(qǐng)稍等
- 用戶回復(fù):
老師期待ing............
- 網(wǎng)友回復(fù):
多頭為例
VARIABLE:n=0,m=0;
ma15:ma(c,15);
hh:hhv(h,enterbars+1);
if c>ma15+5 then buy(holding=0,1,market);if h-enterprice>=3 and h-enterprice<=10 then n:=1;
if l-enterprice<=3 and n=1 then begin
sell(holding>0,holding,market);
n:=0;
end
if h-enterprice>10 then m:=1;
if l-enterprice<=0.7*(hh-enterprice) and m=1 then begin
sell(holding>0,holding,market);
m:=0;
end
if enterprice-l>=15 then sell(holding>0,holding,market); - 網(wǎng)友回復(fù):
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容