STICKLINE(C>=O,C,O,3,0),COLOR000045;
STICKLINE(C>=O,C,O,2.5,0),COLOR000065;
STICKLINE(C>=O,C,O,2,0),COLOR000085;
STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;
STICKLINE(C>=O,C,O,1,0),COLOR0000C5;
STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;
STICKLINE(C>=O,H,L,0,0),COLOR0000F5;
STICKLINE(C<O,C,O,3,0),COLOR656500;
STICKLINE(C<O,C,O,2.5,0),COLOR757500;
STICKLINE(C<O,C,O,2,0),COLOR858500;
STICKLINE(C<O,C,O,1.5,0),COLOR959500;
STICKLINE(C<O,C,O,1,0),COLORA5A500;
STICKLINE(C<O,C,O,0.5,0),COLORB5B500;
STICKLINE(C<O,H,L,0,0),COLORC5C500;
AA:EXPMEMA(CLOSE,8)+ABS(EXPMEMA(CLOSE,8)-REF(EXPMEMA(CLOSE,8),1)),COLORD9D919,LINETHICK2;
BB:EXPMEMA(CLOSE,8)+EXPMEMA(CLOSE,8)-REF(EXPMEMA(CLOSE,8),1),COLORGREEN
,LINETHICK2;
CC:IF(EXPMEMA(CLOSE,8)<BB,BB,EXPMEMA(CLOSE,8)),COLORYELLOW
,LINETHICK2;
龙3:EXPMEMA(CLOSE,33),COLORFF00FF,LINETHICK2;
IF(龙3<REF(龙3,1),龙3,DRAWNULL),COLOR00FF00,LINETHICK2;
阻力1:REFDATE(REF(HHV(H,33),1),DATE),COLORGRAY;
阻力2:REFDATE(REF(HHV(H,22),1),DATE),COLORGRAY;
底:REFDATE(REF(LLV(L,22),1),DATE),COLORGRAY;
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;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,8),8)/EMA(EMA(ABS(MTM),8),8);
CB:=EMA(X,13);