if holding>0 and todaybar>1 and c<enterprice-5 then sell(1,0,thisclose);
if holding<0 and todaybar>1 and c>enterprice+10 then sellshort(1,0,thisclose);
需要用固定时间间隔模式