通达信RSI+MA二合一买卖指标公式[好查股公式]
2022/3/3 17:53:53
通达信RSI+MA二合一买卖指标公式:
M1:=10;
M2:=6;
DIF:=CLOSE-REF(CLOSE,1);
VU:=IF(DIF>=0,DIF,0);
VD:=IF(DIF<0,-DIF,0);
MAU1:=MEMA(VU,M1);
MAD1:=MEMA(VD,M1);
MAU2:=MEMA(VU,M2);
MAD2:=MEMA(VD,M2);
RSI10:MA(100*MAU1/(MAU1+MAD1),M1);
RSI6:MA(100*MAU2/(MAU2+MAD2),M2);
DRAWICON(CROSS(RSI6,RSI10),RSI6,1);
DRAWICON(CROSS(RSI10,RSI6),RSI10,2);
IF(RSI10>REF(RSI10,1),RSI10,DRAWNULL),COLORFF11CC,LINETHICK3;
IF(RSI10<REF(RSI10,1),RSI10,DRAWNULL),COLORCCFFFF,LINETHICK3;
通达信RSI+MA二合一买卖指标公式
好查股公式指标