nn1:=barslast(开多a);
nn2:=barslast(开多b);
nn3:=barslast(开多c);
nn4:=barslast(开多d);
nn5:=barslast(开多e);
if nn3<min(min(nn1,nn2),min(nn3,nn4)) and 条件e then begin
sell........;
buyshort.......;
end
if 开多条件 then buy(holding=0,1,market);
if 开空条件 then buyshort(holding=0,1,market);
if type(1)=3 and E then begin
sellshort(1,0,market);
buy(holding=0,1,market);
end
if 开多条件 then buy(holding=0,1,market);
if 开空条件 then buyshort(holding=0,1,market);
if type(1)=3 and E then begin
sellshort(1,0,market);
buy(holding=0,1,market);
end
用这个行吗?type(1)=3 是否需要变动?