tbuy_:=开仓条件;
if tbuy_ then begin
tbuy(1,ss,lmt,close);
tsell(1,tbuyholdingex('','',1),lmt,[color=#ff0000]tenterprice[/color]+mindiff*nmindiff);
end
tbuy_:=开仓条件;
if tbuy_ then begin
tbuy(1,ss,lmt,close);
tsell(1,tbuyholdingex('','',1),lmt,[color=#ff0000]close[/color]+mindiff*nmindiff);
end