请问以下后台程序表达有问题否?好像没执行。望指点,谢谢。
BuyHold:=tbuyholdingex(AccountID,'',1);
SellHold:=tsellholdingex(AccountID,'',1);
if time>=145500 then begin//收盘钱平仓
TCANCELEX(1,0,AccountID,'');//撤未成交单
tsell(BuyHold>=1,BuyHold,mkt,0,0,AccountID);//平买持
tsellshort(SellHold>=1,SellHold,mkt,0,0,AccountID);//平卖持
end
自己试着调试一下,看看哪里不对出错了
msgout该函数用来输出各项数据,你输出下buyhold,sellhold,看看有没有数值