AAA:=(3*C+L+O+H)/6;
C2:=EMA(AAA,6);
C3:=EMA(AAA,5);
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
中线★:=EMA(X,13);
短线成本★:=EMA(CLOSE,17);
KJJ:=IF(EXIST(crOSS(短线成本★,中线★),15),1,0);
★支撑★:=IF(CROSS(C2,C3) AND C>中线★,100,0);
支撑A:=IF(★支撑★=100,1,0);
A3:=EMA(CLOSE,20);
追涨A:=IF(CROSS(C,A3),100,0);
★追涨★:=IF(追涨A=100 AND C>中线★,100,0);
短期要涨:★追涨★=100 AND REF(支撑A,1)=1 AND KJJ;