X:=LLV(LOW,21);
Y:=HHV(HIGH,21);
K:EMA((CLOSE-X)/(Y-X)*100,6),COLORRED;
D:EMA(0.667*REF(K,1)+0.333*K,2),COLORGREEN;
DRAWICON(LONGcrOSS(K,D,1),K,1);
DRAWICON(LONGCROSS(D,K,1),D,2);
X:=LLV(LOW,21);
Y:=HHV(HIGH,21);
K:EMA((CLOSE-X)/(Y-X)*100,6),COLORRED;
D:EMA(0.667*REF(K,1)+0.333*K,2),COLORGREEN;
DRAWICON(LONGcrOSS(K,D,1),K,1);
DRAWICON(LONGCROSS(D,K,1),D,2);