求解!!!
作者:金字塔 來源:cxh99.com 發布時間:2014年03月01日
- 咨詢內容:
14:55后漲幅大于1,開多!
怎表示???
- 金字塔客服:
相對于昨日收盤?
r1:=callstock('if00',vtclose,6,-1);
//參考了3樓回復,圖表改為以下
if (c-r1)/r1>0.01 and ((currenttime>=145500 and islastbar) or (not(islastbar) and time>=145500)) then buy(holding=0,1,market);
//以下為后臺程序化交易,寫法
r1:=callstock('if00',vtclose,6,-1);
if (c-r1)/r1>0.01 and currenttime>=145500 then tbuy(tholding=0,1,mkt);
節日快樂!
- 用戶回復:
這樣寫圖表不妥,還要加個條件限定
if (c-r1)/r1>0.01 and (currenttime>=145500 and islastbar) or (not(islastbar) and time>=145500) then buy(holding=0,1,thisclose);