请问老师我后台这平仓语句写的平不了仓,问题出在哪里,谢谢1分钟后台
if currenttime>145500 and currenttime<150000 then
//if time=closetime(0) then
begin
tsell(cd,DTZC,MKT);//收盘平赢利多
tsellshort(cd,KTZC,MKT);//收盘平赢利空
end
if time=closetime(0) then
//if currenttime>110000 then
begin
m:=0;
end
DTZC:TBUYHOLDINGEX('633994','',1);
KTZC:TSELLHOLDINGEX('633994','',1);
cd:TOPENPROFIT>=30;
if currenttime>145500 and currenttime<150000 then
begin
tsell(cd,DTZC,MKT);//收盘平赢利多
tsellshort(cd,KTZC,MKT);//收盘平赢利空
end
if time=closetime(0) then
begin
m:=0;
end