后臺(tái)開(kāi)倉(cāng)后不平倉(cāng)? [金字塔]
- 咨詢內(nèi)容:
if time<145000 then begin if spk=1 then begin tbuy(tbuyholding(1)=0,手?jǐn)?shù),MKT),SLITHERMETHOD; extgbdataset('kaiduo',tenterprice); tbuyshort(tsellholding(1)=0,手?jǐn)?shù),MKT),SLITHERMETHOD; extgbdataset('kaikong',tenterprice); end endet1:=extgbdata('kaiduo') ;//多頭開(kāi)倉(cāng)價(jià)et2:=extgbdata('kaikong') ;//空頭開(kāi)倉(cāng)價(jià)
if DYNAINFO(7)>et2 and TSELLHOLDING(1)>0 then begin if mod(DYNAINFO(7)-(et2+1),2)=0 then tsellshort(1,1,lmt,et2+1),SLITHERMETHOD; if mod(DYNAINFO(7)-(et2+(2*n-1)),2)=0 then tsellshort(1,1,lmt,et2+(2*n-1)),SLITHERMETHOD; n:=n+1; end if DYNAINFO(7)>et1 and TBUYHOLDING(1)>0 then begin if mod(DYNAINFO(7)-(et1+2),2)=0 then tsell(1,1,lmt,et1+2),SLITHERMETHOD; if mod(DYNAINFO(7)-(et1+2*n),2)=0 then tsell(1,1,lmt,et1+2*n),SLITHERMETHOD; n:=n+1;end
不平倉(cāng)??? - 金字塔客服:
Globalvariable:n=1;
- 用戶回復(fù):
你調(diào)試輸出下條件啊,成立不成立看調(diào)試結(jié)果
- 網(wǎng)友回復(fù):
成立啊
- 網(wǎng)友回復(fù): 調(diào)試結(jié)果還是目測(cè)的?
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容