if TIME>225955 then begin
?if 5mfx=1 then begin
??if tholding2+TREMAINQTY(3,"" ,"" )<-e then tcancel(1,3);
??if tholding2+TREMAINQTY(2,"" ,"" )<-3*e then tcancel(1,2);
??if tholding2+TREMAINQTY(1,"" ,"" )>4*e then tcancel(1,1);
??if tholding2+TREMAINQTY(4,"" ,"" )>3*e then tcancel(1,4);
?end
?
?if 5mfx=-1 then begin
??if tholding2+TREMAINQTY(1,"" ,"" )>e then? tcancel(1,1);
??if tholding2+TREMAINQTY(4,"" ,"" )>3*e then tcancel(1,4);
??if tholding2+TREMAINQTY(3,"" ,"" )<-4*e then tcancel(1,3);
??if tholding2+TREMAINQTY(2,"" ,"" )<-3*e then tcancel(1,2);
?end
?
end?
?
?
這段代碼編譯時總說end語句前缺少begin,但看來看去沒找著在哪缺,如果新建一個新的交易系統(tǒng)文件,單純貼這段代碼進去,編譯時依然是說end語句前缺少begin,而不是先說e沒有定義,不知問題出在什么地方。
?
?
?來源:程序化久久網(wǎng)( www.kzuj.com.cn )
那這個時間的寫法對嗎,好象實際中,到時間并沒反應
?
沒有問題,建議你用debugfile 跟蹤輸出自己的條件,進而分析定位問題所在。
?
?
這里面的time的寫法是應該寫time()還是直接time就可以?
?