ORDERQUEUE函數(shù)問題
作者:金字塔 來源:cxh99.com 發(fā)布時(shí)間:2015年12月20日
- 咨詢內(nèi)容:
無法解決一一對(duì)應(yīng)問題
- 金字塔客服:
具體說明一下
- 用戶回復(fù):
//上升循環(huán)if THOLDING2>=0 and extgbdata('A')=0 and open>extgbdata('kaikong') then begin for n=2 to 20 do begin if high>extgbdata('kaikong') then begin kgprice:=extgbdata('kaikong')+(n-1)*間距; if high>=kgprice and tsellholding(0)<0 then begin tsellshort(1,1,lmt,kgprice),ORDERQUEUE; end kdprice:=extgbdata('kaiduo')+(n)*間距; if high>=kdprice and tbuyholding(0)>0 then begin tsell(1,1,lmt,kdprice),ORDERQUEUE; end extgbdataset('A',1); end else//轉(zhuǎn)為下跌 if TISREMAIN(0)=1 and TSUBMIT(0)>=50 and extgbdata('A')=1 then begin kdprice:=extgbdata('kaiduo')-(n-1)*間距; if low<=kdprice and tbuyholding(0)>0 then begin tsell(1,1,lmt,kdprice),ORDERQUEUE; end kgprice:=extgbdata('kaikong')-(n)*間距; if low<=kgprice and tsellholding(0)<0 then begin tsellshort(1,1,lmt,kgprice),ORDERQUEUE; end extgbdataset('A',0); end endend
- 網(wǎng)友回復(fù):
也持有套利的多20手,空20手持倉。分次順序平倉。
- 網(wǎng)友回復(fù):
上漲是先平空,后平多,必須是對(duì)應(yīng)的