通达信经典指标-我的RSI看趋势看支撑看压力看背离-画线指标
这么多年还是觉得经典的指标好而且是系统自带的,这个我的RSI指标是在RSI基础上修改一下,增加自动画线功能,效果和实践应用可见一斑。
具体看RSI突破压力线就是买点,特别在一波下跌之后出现在低位突破的效果明显,指标有未来函数因为是画线功能,不喜欢的请绕道,如有雷同纯数巧合,不当之处请前辈们斧正优化
N:=14;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100;
DRAWLINE(RSI =HHV(RSI,10),RSI,RSI =LLV(RSI,3),HHV(RSI,3),1),COLORFF6000,LINETHICK1;
AA0:=REF(RSI,N)=HHV(RSI,2*N+1);
QY0:=BACKSET(AA0,N+1);
CC0:=FILTER(QY0,N) AND RSI=HHV(RSI,N+1);
DRAWICON(CC0,RSI,2);
AA1:=REF(RSI,N)=LLV(RSI,2*N+1);
QY1:=BACKSET(AA1,N+1);
CC1:=FILTER(QY1,N) AND RSI=LLV(RSI,N+1);
DRAWICON(CC1,RSI,1);
{}
Q:=5;
AA:=REF(RSI,Q)=HHV(RSI,2*Q+1);
BB:=FILTER(AA,Q);
CC:=BACKSET(BB,Q+1);
DD:=FILTER(CC,Q);
AAA:=REF(RSI,Q)=LLV(RSI,2*Q+1);
BBB:=FILTER(AAA,Q);
CCC:=BACKSET(BBB,Q+1);
DDD:=FILTER(CCC,Q);
R11:=BACKSET(ISLASTBAR,BARSLAST(DD)+1);
S11:=R11 REF(R11,1);
压力:DRAWLINE(DD,RSI,S11,RSI,1),LINETHICK1,COLOR00FF00;
T11:=BACKSET(ISLASTBAR,BARSLAST(DDD)+1);
U11:=T11 REF(T11,1);
支撑:DRAWLINE(DDD,RSI,U11,RSI,1),LINETHICK1,COLOR0088FF;
{}
我的RSI:RSI,COLORFFFFFF;
IF(RSI 65,RSI,DRAWNULL),COLOR0000FF;
IF(RSI 35,RSI,DRAWNULL),COLORFF00FF;
CONST(RSI),COLOR00FFFF,DOTLINE;