DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9) ;

MACD:=(DIF-DEA)*2;

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

CROSS(MACD,0) AND CROSS(K,D),LINETHICK4,COLORGREEN;

{DRAWICON(CROSS(MACD,0),23 AND CROSS(K,D),23);}

STICKLINE(CROSS(MACD,0) AND CROSS(K,D),L,L*0.95,8,0),COLORGREEN;