【通达信源码分享】自用RSI合并威廉指标源码(指标副图贴图)
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),9,1)/SMA(ABS(CLOSE-LC),9,1)*100,COLORFF00FF;
WR1:100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14)),COLORYELLOW,LINETHICK2;
上涨:IF(CROSS(RSI1,WR1) OR CROSS(REF(RSI1,1),REF(WR1,1))+0,20,0),COLORLIBLUE,LINETHICK2;
超卖区上线:80,, CIRCLEDOT; 超卖区下线:100,COLORLIBLUE;
中线:50,COLORRED;
超买下线:0,,COLORFF00FF; 超买上线:20,,CROSSDOT;
DRAWTEXT_FIX(1,0.0,0.0,0,'向下破80数值第一买点')COLORRED;
DRAWTEXT_FIX(1,0.0,0.05,0,'向下破50数值稳健买点')COLORGREEN;
DRAWTEXT_FIX(1,0.0,0.10,0,'向下破20数值强势买点')COLORCYAN;
DRAWICON(CROSS(RSI1,52),LC+25,11);
DRAWICON(CROSS(WR1,48),LC+45,17);
DRAWTEXT(CROSS(上涨,8),9,'接近'),COLORYELLOW;
DRAWTEXT(CROSS(上涨,8),5,'辅助'),COLORYELLOW;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!