B1:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;
B2:=(EMA(C,3)+EMA(C,6)+EMA(C,12)+EMA(C,24))/4;
R1:=EMA(CLOSE,7)-EMA(CLOSE,20);
R2:=EMA(EMA((B1-B2),30),3);
KK1:=EMA(R1,7)>0;
KK:KK1=1 AND REF(KK1,1)=0 AND C>MA(C,60),STICK,LINETHICK5,COLORMAGENTA;