N:=9;M1:=2;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,M1,1);D:=SMA(K,M1,1);J:=3*K-2*D;XG:=OSS(J,0);DIF:=(EMA(CLOSE,15) - EMA(CLOSE,26)),COLORRED;DEA:=EMA(DIF,5),COLOR00FFFF;:2*(DIF-DEA), COLORSTICK;DIF2:4*DIF-3*DEA,COLORFF00FF;DEA2:=EMA(DIF2,1),COLOR2588FF;IF(C>DEA2,DEA2,DRAWNULL),COLOR0000F0,LINETHICK3;IF(DEA2<=REF(DEA2,1),DEA2,DRAWNULL),COLOR00E600,LINETHICK3;XG2:=MACD<0>REF(MACD ,1) AND REF(MACD ,1)
[REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055;STICKLINE(MACD>RE
]