SHORT:=12;LONG:=26;MID:=9; N:=9;M1:=3;M2:=3; XM:=50;XR:=200;
DIF:XR*(EMA(CLOSE,SHORT)-EMA(CLOSE,LONG));
DEA:EMA(DIF,MID);
macd:(DIF-DEA)*2,COLORSTICK;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1)+XM,COLORGREEN;
D:SMA(K,M2,1),COLORRED;
J:3*K-2*D,COLORMAGENTA;