A1:=1;
EM01:=EMA(C,13);
EM:=EMA(C,21);
UP:=EMA(EM,13);
DOWN:=EMA(EM,17);
短期趋势:=(EMA(EM01,2)+EMA(EM01,7))/2;
短红升:=IF(短期趋势>=REF(短期趋势,1),短期趋势,DRAWNULL);
中期趋势:=(UP+DOWN)/2,COLORYELLOW;
中红升:=IF(中期趋势>REF(中期趋势,1),中期趋势,DRAWNULL);
长期趋势:=EMA(C,144),COLORRED;
长红升:=IF(长期趋势>=REF(长期趋势,1),长期趋势,DRAWNULL);
异动0:=短红升 OR 中红升 OR 长红升;
量变1:=REF(LOW,1);
量变2:=(SMA(Abs(LOW-量变1),13,1))/(SMA(MAX(LOW-量变1,0),13,1))*4;
量变3:=EMA(量变2,13);
量变4:=LLV(LOW,34);
量变5:=EMA(IF(LOW<=量变4,量变3,0),3);
量变6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
量变7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
量变8:=量变6REF(VOL,1) AND CLOSE>REF(CLOSE,1);
量变9:=量变8 AND COUNT(量变8,18)=1 AND 异动0;
量变:量变9;