ORDERQUEUE函數問題 [金字塔]
- 咨詢內容:
無法解決一一對應問題
- 金字塔客服:
具體說明一下
- 用戶回復:
//上升循環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//轉為下跌 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
- 網友回復:
也持有套利的多20手,空20手持倉。分次順序平倉。
- 網友回復: 上漲是先平空,后平多,必須是對應的
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容