哪個VBA高手能不能幫我修改一個下單模式 [金字塔]
- 咨詢內容:
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
kd:=K>D and c>o ;//開多平空條件
pd:=c<o;kk:=k<d and c<o;//開空平多條件
pk:=c>o;
if TISREMAIN(3)<>0 AND kd then
BEGIN
tcancel(1,0),ORDERQUEUE;
ENDif TISREMAIN(1)<>0 AND kk then
BEGIN
tcancel(1,0),ORDERQUEUE;
ENDif TISREMAIN(1)<>0 AND pd and tholding2<>0 and tholding=0 then
BEGIN
tcancel(1,0),ORDERQUEUE;
ENDif TISREMAIN(3)<>0 AND pk and tholding2<>0 and tholding=0 then
BEGIN
tcancel(1,0),ORDERQUEUE;
ENDif PK then BEGIN
tsellshort( tholding<0,0,lmt,DYNAINFO(28)),ORDERQUEUE;
END
if KD and TISREMAIN(0)=0 then BEGIN
tbuy( tholding=0,1,lmt,c-30*MINDIFF),ORDERQUEUE;
ENDIF pd then begin
tsell( tholding>0 ,0,lmt,DYNAINFO(34)),ORDERQUEUE;
END
IF KK and TISREMAIN(0)=0 then begin
tbuyshort (tholding=0,1,lmt,c+30*MINDIFF),ORDERQUEUE;
end - 金字塔客服:
請問你具體需要的是什么?
- 用戶回復:
http://www.weistock.com/bbs/dispbbs.asp?boardid=2&Id=73952
樓上
- 網友回復:
1,這個你要學習下vba的一些知識哦
OrderStatusEx2 用這個事件跟蹤下報單ID的返回情況,就可以實現實際需求的下單隊列,以及追撤單
- 網友回復: order對象,那得用專業版啦,可我用的是標準版,有好的炮彈,也得有配套的大炮哦!
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容