RSV=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
a=SMA(RSV,3,1);
b=SMA(a,3,1);
e=3*a-2*b;
K:a;
D:b;
J:e;
LC:=REF(CLOSE,1);
rsi6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;
RSI12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI24:SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
IF(K>=D AND CLOSE>=EMA(CLOSE,5) AND crOSS(K,D)) THEN
IF(RSI6>=RSI12 AND CLOSE>=EMA(CLOSE,5)) THEN
DRAWTEXT(CROSS(RSI6,RSI12),RSI12,'▲'),colorred;
IF((D>=50 AND K>=50) AND CLOSE>=EMA(CLOSE,60)) THEN
DRAWTEXT(CROSS(D,K),D,'▼'),colorblue;
IF((RSI12>=50 AND RSI6>=50) AND CLOSE>=EMA(CLOSE,60)) THEN
DRAWTEXT(CROSS(RSI12,RSI6),RSI12,'▼'),colorgreen;