时间:=time>=开始开单时间 and time<停止开单时间;
平仓时间1:=time>=平仓时间;
止损:=点差;
止赢:=点差*2;
input:手数(1,0,100,10);
if holding=0 and 开多 then BEGIN
if 时间 then buy(1,手数,MARKET);//口水
end
if holding=0 and 开空 then BEGIN
if 时间 then buyshort(1,手数,MARKET);
end
if holding<0 and (开多 or 平仓时间1) and enterbars>0 then sellshort(1,手数,MARKET);
if holding>0 and (开空 or 平仓时间1) and enterbars>0 then sell(1,手数,MARKET);
if holding<0 and (c-ENTERPRICE>=止损 or ENTERPRICE-c>=止赢) and enterbars>0 then sellshort(1,手数,MARKET);
if holding>0 and (c-ENTERPRICE>=止赢 or ENTERPRICE-c>=止损) and enterbars>0 then sell(1,手数,MARKET);