DK:=MA(((SLOPE(C,20)*5)+C),20);
STICKLINE(DK<=C AND CLOSE>=OPEN,HIGH,LOW,0.1,1),colorred;
STICKLINE(DK<=C AND CLOSE>=OPEN,CLOSE,OPEN,8,1),colorred;
STICKLINE(DK<=C AND CLOSE<OPEN,HIGH,LOW,0.1,0),colorred;
STICKLINE(DK<=C AND CLOSE<OPEN,CLOSE,OPEN,8,1),colorred;
STICKLINE(DK>C AND CLOSE>=OPEN,HIGH,LOW,0.1,1),colorcyan;
STICKLINE(DK>C AND CLOSE>=OPEN,CLOSE,OPEN,8,1),colorcyan;
STICKLINE(DK>C AND CLOSE<OPEN,HIGH,LOW,0.1,0),colorcyan;
STICKLINE(DK>C AND CLOSE<OPEN,CLOSE,OPEN,8,1),colorcyan;
DRAWTEXT(crOSS(C,DK),LOW*0.99,'B'),COLORYELLOW,ALIGN1,LINETHICK3;
DRAWTEXT(CROSS(DK,C),H*1.01,'S'),COLORYELLOW,ALIGN1,valign2,LINETHICK3;