m2:=ema(close,8);m3:=ema(m2,13);m4:=ema(m2,55);var1:=ema(m3,55);m5:=ema(m4,81);var2:=(ref(high,1)+ref(low,1))/2;a7:=(2*c+h+l)/4; var10:=llv(low,34); var11:=hhv(high,34); sk:=ema((a7-var1)/(var2-var1)*100,7); sd:=ema(0.667*ref(sk,1)+0.333*sk,5); 买进1:=if(count(close<ref(close,1),8)/8>6/10 and vol>=1.5*ma(vol,5) and count(sk>=sd,3) and ref(low,1)=llv(low,120),1,0); 买进2:=if(count(close<ref(close,1),13)/13>6/10 and count(sk>sd,6) and ref(low,5)=llv(low,120) and ref(close>=open,4) and ref(close>open,3) and ref(close>open,2) and ref(open>close,1) and open>ref(close,1),1,0); d:=ma(close,80)-ma(close,10)/3; 抄底:=if(close<d and vol/240>ma(vol,5)/240 and close>ref(close,1)*1.08 and close<ma(close,13)*1.3,1,0);买进1 or 买进2 or 抄底; 20210311