if (ref(c,1)<j and c>=j and time>t) then
begin
buy(HOLDING=0,4,LIMIT,c);
end
if (HOLDING>0 and time>t) then
begin
sell(c-ENTERPRICE>=a*y or ENTERPRICE-c>=a*s,4,LIMIT,c);
end
if (ref(c,1)>j and c<=j and time>t) then
begin
buyshort(HOLDING=0,4,limit,c);
end
if (HOLDING<0 and time>t) then
begin
sellshort(ENTERPRICE-c>=a*y or c-ENTERPRICE>=a*s,4,limit,c);
end
其中,j,t,s,y等都是参数,选择的是CU08,保证金比例15%,手续费0.016%,没有使用平仓条件
把你的参数设置一并附上。