if h>hh then buy(holding=0,1,limitr,hh);
if l<ll then sell(1,0,limitr,ll);
使用固定轮询模式,轮询间隔1秒,不要使用走完k线模式