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;
质变1:=(EMA(CLOSE,2)) * A1;
质变2:=(EMA((((SLOPE(CLOSE,21)) * 20) + CLOSE),42)) * A1;
质变3:=(HHV((MA(HIGH,13)),13)) * A1;
质变4:=(LLV((MA(HIGH,13)),1)) * A1;
质变5:=(EMA(CLOSE,4)) * A1;
质变6:=((((质变1 >= 质变2) AND (质变4 = 质变3)) AND (质变1 > 质变5)) AND (CLOSE > 质变4)) AND ((REF(质变4,1)) < (REF(质变3,1)));
质变7:=BArslAST(质变6) + 1;
质变8:=(LLV(LOW,质变7)) * 1.3;
质变9:=(LLV(LOW,20)) * 1.418;
质变10:=(((((质变1 >= 质变2) AND (质变4 = 质变3)) AND ((CLOSE / (REF(CLOSE,1))) >= 1.07)) AND (质变7 <= 30)) AND (CLOSE <= 质变8)) AND (CLOSE <= 质变9);
质变11:=质变10 AND (FILTER(质变10,质变7));
质变12:=(((((质变1 >= 质变2) AND (质变4 = 质变3)) AND ((CLOSE / (REF(CLOSE,1))) >= 1.035)) AND (质变7 <= 30)) AND (CLOSE <= 质变8)) AND (CLOSE <= 质变9) ;
质变13:=质变12 AND (FILTER(质变12,20));
质变14:=质变11 OR 质变13;
质变15:=质变14 AND REF(COUNT(量变9,20)=1,1) ;
质变:质变15;