{横盘天数} CX:=MAX(C,AMOUNT/(100*VOL)); B:=(CX-MA(CX,30))/MA(CX,30)*100; 横盘:=B>-7 AND B<20; 横盘天数:BARSLAST(横盘=0);