O1:=MA(C,O), LINETHICK1;
N1:=MA(C,21), LINETHICK1;
M2:MA(C,55),COLOR0080FF;
TYP:=(HIGH+LOW+CLOSE)/3;
cci:=(TYP-MA(TYP,13))/(0.015*AVEDEV(TYP,13));
DRAWTEXT(crOSS(CCI,-200) AND CCI>REF(CCI,1),L,'平空'),COLORGREEN;
DRAWTEXT(CROSS(200,CCI) AND CCI
DRAWTEXT(CROSS(CCI,100) AND CCI>REF(CCI,1),L,'加多'),COLORYELLOW;
DRAWTEXT(CROSS(-100,CCI) AND CCI
VAR0:=(3*CLOSE+LOW+OPEN+HIGH)/6;
DD:(20*VAR0+19*REF(VAR0,1)+18*REF(VAR0,2)+17*REF(VAR0,3)+16*REF(VAR0,4)+15*REF(VAR0,5)+14*REF(VAR0,6)+13*REF(VAR0,7)+12*REF(VAR0,8)+11*REF(VAR0,9)+10*REF(VAR0,10)+9*REF(VAR0,11)+8*REF(VAR0,12)+7*REF(VAR0,13)+6*REF(VAR0,14)+5*REF(VAR0,15)+4*REF(VAR0,16)+3*REF(VAR0,17)+2*REF(VAR0,18)+REF(VAR0,20))/210,COLOR00FFFF,LINETHICK1;
KK: MA(DD,8),COLORFFAA00,LINETHICK1;
DRAWBAND(DD,RGB(100,0,100),KK,RGB(0,100,0));
STICKLINE(OPEN>=CLOSE ,O,C,3,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE ,O,C,2,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE ,O,C,1,0 ),COLOR00FF00;
STICKLINE(CLOSE>OPEN,O,C,3,0 ),COLORRED;
STICKLINE(CLOSE>OPEN,O,C,2,0 ),COLORRED;
STICKLINE(CLOSE>OPEN,O,C,1,0 ),COLORRED;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0,0),COLORRED;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0,0 ),COLORRED;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0,0 ),COLOR00FF00;