runmode:0;
ds:=ref(all(close<open,3),1);
zs:=ref(all(close>open,3),1);
if holding=0 then begin
if ds then
buy(1,1,limitr,open);
end
if holding=0 then begin
if zs then
buyshort(1,1,limitr,open);
end
if holding>0 then begin
sell(1,holding,limitr,close);
end
if holding<0 then begin
sellshort(1,holding,limitr,close);
end
盈亏:asset-50000,noaxis,colorred,linethick2;
楼主解释下?