//m1:= t0totime(timetot0(closetime(0))-10*60); //收盘前10*60秒平仓
//t1:=time>=m1;
//开空单
IF HOLDING=0 THEN BEGIN
IF{ t1 AND} KK THEN BEGIN
空开:BUYSHORT(1=1,ss,market);
LOWPRICE:=ENTERPRICE;
END
END
m1:= t0totime(timetot0(closetime(0))-10*60); //收盘前10*60秒平仓
t1:=currenttime>=m1;
//开空单
IF HOLDING=0 THEN BEGIN
IF (t1 AND KK and islastbar )or (not(islastbar) and kk)THEN BEGIN
空开:BUYSHORT(1=1,ss,market);
LOWPRICE:=ENTERPRICE;
END
END