T:80,POINTDOT,COLORBLUE,LINETHICK3;
OO:20,POINTDOT,COLORMAGENTA,LINETHICK3;
ZKK:kd.K#WEEK(9,3,3),COLORRED;
ZKD:KD.D#WEEK(9,3,3),COLORYELLOW;
VAR1:=FILTER(crOSS(ZKK,ZKD) AND REF(ZKD,1)<30,13);
VAR2:=CROSS(ZKK,ZKD);
VAR3:=CROSS(ZKD,ZKK);
DRAWICON(VAR3,ZKK,15);
DRAWICON(VAR2,ZKD,23);
VAR4:=VAR1;
STICKLINE(VAR4,20,10,4,0),COLOR000099;
STICKLINE(VAR4,20,10,2,0),COLOR0000BB;
STICKLINE(VAR4,20,10,1,0),COLOR0000DD;
STICKLINE(VAR4,0,20,0.3,0),COLORRED;
VAR5:=FILTER(CROSS(ZKD,ZKK) AND REF(ZKK,1)>78,13);
STICKLINE(VAR5,90,80,4,0),COLOR009900;
STICKLINE(VAR5,90,80,2,0),COLOR00BB00;
STICKLINE(VAR5,90,80,1,0),COLOR00DD00;
STICKLINE(VAR5,100,80,0.3,0),COLORGREEN;
VAR6:=macd.DIF#WEEK(12,26,9);
VAR7:=MacD.DEA#WEEK(12,26,9);
VAR8:=FILTER(CROSS(VAR6,VAR7) AND REF(VAR7,1)<0,13);
VAR9:=VAR8;
STICKLINE(VAR9,10,20,4,0),COLOR990099;
STICKLINE(VAR9,10,20,2,0),COLORBB00BB;
STICKLINE(VAR9,10,20,1,0),COLORDD00DD;
STICKLINE(VAR9,10,20,0.3,0),COLORMAGENTA;
VAR10:=FILTER(CROSS(VAR7,VAR6) AND REF(VAR6,1)>0,13);
STICKLINE(VAR10,90,80,4,0),COLOR999900;
STICKLINE(VAR10,90,80,2,0),COLORBBBB00;
STICKLINE(VAR10,90,80,1,0),COLORDDDD00;
STICKLINE(VAR10,90,80,0.3,0),COLORCYAN;
STICKLINE(VAR4 AND VAR9,20,80,0.1,0),COLORMAGENTA;
STICKLINE(VAR5 AND VAR10,20,80,0.1,0),COLORGREEN;
VAR11:=CLOSE-REF(CLOSE,1);
VAR12:=100*EMA(EMA(VAR11,6),6)/EMA(EMA(Abs(VAR11),6),6);
VAR13:=LLV(VAR12,2)=LLV(VAR12,7) AND COUNT(VAR12<0,2) AND CROSS(VAR12,MA(VAR12,2));
VAR14:=FILTER(VAR13,13);
VAR15:=VAR14;
STICKLINE(VAR15,20,30,0.3,0),COLORYELLOW;