DIFF:=(EMA(CLOSE,9)-EMA(CLOSE,18))*4;
DEA:=EMA(DIFF,7),LINETHICK1;
MACD:=(DIFF-DEA)*2{,COLORSTICK};
STICKLINE(MACD>0 AND MACD>=REF(MACD,1) ,0,MACD,2,0),COLORRED;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,2,0),COLORYELLOW;
STICKLINE(MACD<0 ,0,MACD,2,0),COLORGREEN;
RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*C;
K:SMA(RSV,5,1); D:SMA(K,5,1); J:3*K-2*D;
STICKLINE(J>REF(J,1),J,REF(J,1),3,0),COLOR0066FF;
STICKLINE(J>REF(J,1),J,REF(J,1),1,0),COLOR00DDFF;
STICKLINE(J<REF(J,1),J,REF(J,1),3,0),COLORFF9900;
STICKLINE(J<REF(J,1),J,REF(J,1),1,0),COLORFFDD00;
STICKLINE(J<REF(J,1),J,REF(J,1),0,0),COLORFFDD00; |