新RSI-精品通达信指标公式源码分享

通达信免费指标 08-20 阅读:79 评论:0

123.png

N1:=50;

LC:=REF(C,1);   

RSII:=SMA(MAX(C-LC,0),14,1)/SMA(ABS(C-LC),14,1)*100,COLORRED,LINETHICK2;   

压力:HHV(MA(RSII,3),13),COLORGREEN;   

支撑:LLV(MA(RSII,3),13),COLORYELLOW;   

VAR2:MA(RSII,8),COLOR888888;   

VAR3:REF(VAR2,3),COLOR888888;   

STICKLINE(VAR2>=VAR3,VAR3,VAR2,3,1),COLOR00FFFF;

STICKLINE(VAR3>VAR2,VAR2,VAR3,3,1),COLORFFBB00;   

RSI:RSII,COLORFFFFFF,LINETHICK2;   

VAR4:IF(RSI<VAR2,RSI,VAR2),COLORRED,LINETHICK3;   

AA:=REF(RSI,N1)=HHV(RSI,2*N1+1);   

BB:=BACKSET(AA,N1+1);   

CC:=FILTER(BB,N1) AND RSI=HHV(RSI,N1+1);   

A1:=BARSLAST(REF(CC,1));   

顶背离:=REF(CLOSE,A1+1)<CLOSE AND REF(RSI,A1+1)>RSI AND CC;   

DRAWTEXT(顶背离,压力+1.5,'DBL'),COLORMAGENTA;   

DRAWLINE(CC,RSI,FILTER(顶背离>0,5),RSI,0),COLORWHITE;   

AA2:=REF(RSI,N1)=LLV(RSI,2*N1+1);   

BB2:=BACKSET(AA2,N1+1);   

CC2:=FILTER(BB2,N1) AND RSI=LLV(RSI,N1+1);


版权声明

本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!

服务热线

18020657357

微信客服

微信客服