N:=20;
A1:=(3*C+L+O+H)/6;
X:=(20*A1+19*REF(A1,1)+18*REF(A1,2)+17*REF(A1,3)+16*REF(A1,4)+15*REF(A1,5)+
14*REF(A1,6)+13*REF(A1,7)+12*REF(A1,8)+11*REF(A1,9)+10*REF(A1,10)+9*REF(A1,11)
+8*REF(A1,12)+7*REF(A1,13)+6*REF(A1,14)+5*REF(A1,15)+4*REF(A1,16)+3*REF(A1,17)+
2*REF(A1,18)+REF(A1,20))/210;
JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));
DDD:=(DYNAINFO(5)<0.01 AND DYNAINFO(6)<0.01);
JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01)*JJJ>(DYNAINFO(6)-0.01)));
CB:=SMA(IF(JJJT,DMA(AMOUNT/(100*VOL),100*VOL/FINANCE(18)),EMA((HIGH+LOW+2*CLOSE)
/4,144)),3,1);
A:=EMA(CB,2);
B:=EMA(A,5);
D:=EMA(B,5);
E:=EMA(D,5);
F:=EMA(E,5);
G:=EMA(F,5);
J:=EMA(G,5);
AA:=MA(C,3);D1:=SMA(EMA(AA,2),3,1) ;
D2:=EMA(D1,2);D4:=EMA(D2,2);D5:=EMA(D4,2);D6:=EMA(D5,2);
D7:=EMA(D6,2);
STICKLINE(A>J,J,A,2,-1), COLOR0000FF;
STICKLINE(D1>D7,D7,D1,2,-1), COLOR0099FF;
STICKLINE(A<J,J,A,2,-1), COLORFFAA00;
STICKLINE(D1<D7,D7,D1,2,-1), COLORGREEN;
中期趋势:EMA(X,14),LINETHICK2,COLORFF00FF;
DRAWICON(REF(CROSS(D7,D1),1) AND C>J,(L-(H-L)/2),1);
DRAWTEXT(REF(CROSS(D7,D1),1) AND C>J,(L-(H-L)/2),'_反弹'),COLORYELLOW;
DRAWICON(REF(CROSS(D7,D1),1) AND 中期趋势>REF(中期趋势,1),(L-(H-L)/2),1);
DRAWTEXT(REF(CROSS(D7,D1),1) AND 中期趋势>REF(中期趋势,1) AND C<J,(L-(H-L)/2),'_反弹(谨慎)'),COLORYELLOW;
DRAWICON(REF(CROSS(D7,D1),1) AND C>J,(L-(H-L)/2),1);
DRAWTEXT(REF(CROSS(D7,D1),1)AND C>J AND 中期趋势<REF(中期趋势,1),(L-(H-L)/2),'_反弹(谨慎)'),COLORYELLOW;
反弹前夜,是为1:CROSS(D7,D1),NODRAW,COLORBLUE;