--
if 开盘时间 then begin
SELLSHORT(平空条件 and holding<0,0,MARKET),COLORWHITE;
SELLSHORT(空推条件 and holding<-1,0,MARKET),COLORWHITE;
SELLSHORT(空损条件 and holding=-1,0,MARKET),COLORWHITE;
BUY(多开条件 and holding=0,n,MARKET),colorYELLOW;
end
if 开盘时间 then begin
SELL(平多条件 and holding>0,0,MARKET),COLORWHITE;
SELL(多损条件 and holding=1,0,MARKET),COLORWHITE;
SELL(多推条件 and holding>1,0,MARKET),COLORWHITE;
BUYSHORT(空开条件 and holding=0,n,market),COLORCYAN;
end
加多:BUY(HOLDING>0 and 加多条件,n,MARKET),COLORMAGENTA;
加空:BUYSHORT(HOLDING<0 and 加多条件 and 开盘时间,n,MARKET),COLORGREEN;