1 if enterbars>10 then begin
sell(1,0,marketr);
sellshort(1,0,marketr);
end
2 此测评功能无法用代码实现
3 if holding>0 and (enterprice-c)/c>0.06 then sell(1,0,marketr);
if holding<0 and (c-enterprice)/enterprice>0.06 then sellshort(1,0,marketr);
4 此测评功能无法用代码实现
5 if holding>0 and (hhv(h,enterbars+1)-c)/c>0.08 then sell(1,0,marketr);
if holding<0 and (c-llv(l,enterbars+1))/llv(l,enterbars+1)>0.08 then sellshort(1,0,marketr);
6 if openprofit<0 and abs(openprofit)/asset>0.2 then begin
sell(1,0,marketr);
sellshort(1,0,marketr);
end