input:n(20,1,60,1);
le1:=1;
se1:=1;
//多头开仓
if holding=0 and le1 then begin
buy(1,1,limitr,askprice);
end;
//空头开仓
if holding=0 and se1 then begin
buyshort(1,1,limitr,bidprice);
end;
//多头反手
if holding>0 and se1 then begin
sell(1,holding,limitr,bidprice);
buyshort(1,1,limitr,bidprice);
end;
//空头反手
if holding<0 and le1 then begin
sellshort(1,holding,limitr,askprice);
buy(1,1,limitr,askprice);
end;
资产:asset,noaxis,colorred;
胜率:percentwin,linethick0;
次数:totaltrade,linethick0;