DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
DEA:=EMA(DIFF,9),COLORFFFF00;
DRAWBAND(DIFF,RGB(150,0,150),DEA,RGB(0,150,0));
MACD:(DIFF-DEA)*2,COLORSTICK;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,0,0),colorred;
STICKLINE(MACD>=0 AND MACD<=REF(MACD,1),0,MACD,0,0),coloryellow;
STICKLINE(MACD<=0 AND MACD>=REF(MACD,1),0,MACD,0,0),coloryellow;
STICKLINE(MACD<=0 AND MACD<=REF(MACD,1),0,MACD,0,0),colorgreen;
RSV:=((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))-0.5)*100;
K:SMA(RSV,3,1),coloryellow;
D:SMA(K,3,1),colorwhite;
J:3*K-2*D,COLORFF00FF;