1.if enterbars>9 then begin
sell(1,0,market);
sellshort(1,0,market);
end
2.if holding>0 and (c-enterprice)/enterprice>0.008 then sell(1,0,market);
if holding<0 and (enterprice-c)/c>0.008 then sellshort(1,0,market);
3. if holding>0 and (enterprice-c)/c>0.003 then sell(1,0,market);
if holding<0 and (c-enterprice)/enterprice>0.003 then sellshort(1,0,market);
4,5,6不能公布算法