ORDERQUEUE函數(shù)問(wèn)題 [金字塔]
- 咨詢內(nèi)容:
無(wú)法解決一一對(duì)應(yīng)問(wèn)題
- 金字塔客服:
具體說(shuō)明一下
- 用戶回復(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手持倉(cāng)。分次順序平倉(cāng)。
- 網(wǎng)友回復(fù): 上漲是先平空,后平多,必須是對(duì)應(yīng)的
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容