咨詢內(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') ;//多頭開倉價(jià)et2:=extgbdata('kaikong') ;//空頭開倉價(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 不平倉???