程序的话一般是只能实现近似的结果,不能完全实现的
1
if holding>0 and (enterprice-c)/enterprice>=0.08 then sell(1,0,market);
if holding<0 and (c-enterprice)/enterprice>0.08 then sellshort(1,0,market);
2
if openprofit>0 and openprofit<=hhv(openprofit,enterbars+1)*0.7 then begin
sell(1,0,market);
sellshort(1,0,market);
end
3
使用固定时间间隔模式,间隔设置为1秒