后臺開倉后不平倉?
作者:金字塔 來源:cxh99.com 發布時間:2016年04月06日
- 咨詢內容:
if time<145000 then begin if spk=1 then begin tbuy(tbuyholding(1)=0,手數,MKT),SLITHERMETHOD; extgbdataset('kaiduo',tenterprice); tbuyshort(tsellholding(1)=0,手數,MKT),SLITHERMETHOD; extgbdataset('kaikong',tenterprice); end endet1:=extgbdata('kaiduo') ;//多頭開倉價et2:=extgbdata('kaikong') ;//空頭開倉價
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
不平倉???
- 金字塔客服:
Globalvariable:n=1;
- 用戶回復:
你調試輸出下條件啊,成立不成立看調試結果
- 網友回復:
成立啊
- 網友回復:
調試結果還是目測的?