[原創(chuàng)] [金字塔]
- 咨詢內(nèi)容:
老師幫看一下、這代碼是不是哪里寫(xiě)錯(cuò)了,開(kāi)倉(cāng)能執(zhí)行、平倉(cāng)達(dá)到條件了也沒(méi)平倉(cāng)思路是這樣的:1、最新價(jià)比開(kāi)盤(pán)價(jià)高5個(gè)點(diǎn)、開(kāi)多,賺5個(gè)點(diǎn)平倉(cāng)、虧8個(gè)點(diǎn)平倉(cāng)、反之;這是后臺(tái)的
if DYNAINFO2(7, PZ1)<=enterprice-8*MINDIFF then begin//多損tsell(1,1,MKT,0); end;if DYNAINFO2(7, PZ1)>=enterprice+5*MINDIFF then begin//多盈tsell(1,1,MKT,DYNAINFO2(7, PZ1),0);end
if DYNAINFO2(7, PZ1)>=enterprice+8*MINDIFF then begin//空損tsellshort(1,1,MKT,DYNAINFO2(7, PZ1),0);endif DYNAINFO2(7, PZ1)<=enterprice-5*MINDIFF then begin //空盈tsellshort(1,1,MKT,DYNAINFO2(7, PZ1),0);endif DYNAINFO2(7, PZ1)<=o-4*mindiff and tbuyholdingex(ZH,pz1,0)=0 and tsellholdingex('',pz1,0)=0 then begin//開(kāi)空tbuyshort(1,1,MKT,DYNAINFO2(7, PZ1),0);end
if DYNAINFO2(7, PZ1)>=o+4*mindiff AND tbuyholdingex('',pz1,0)=0 and tsellholdingex('',pz1,0)=0 then begin //開(kāi)多tbuy(1,1,MKT,DYNAINFO2(7, PZ1),0);end
- 金字塔客服:
后臺(tái)是用tenterprice,不是enterprice
- 用戶回復(fù): 謝謝、我再試試
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容