ma5:=ma(c,5);
if cross(ma5,c) then begin
sell(1,0,marketr);
buyshort(holding=0,1,marketr);
end
if cross(c,ma5) then begin
sellshort(1,0,marketr);
buy(holding=0,1,marketr);
end
没注意,不好意思
ma5:=ma(c,5);
if cross(ma5,c) then begin
sell(1,0,marketr);
buyshort(holding=0,3,marketr);
end
if cross(c,ma5) then begin
sellshort(1,0,marketr);
buy(holding=0,3,marketr);
end