当前位置:首页 > 通达信 > 正文

【通达信源码分享】精品指标公式-分时很准源码

2023-03-12未知 编 辑:掌上指标


公式源码:
 
DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0),LINETHICK2;
 
MA30:=EMA(CLOSE,30);
 
强弱:EMA(CLOSE,900);
 
STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;
 
STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;
 
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
 
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
 
P1:=H1-L1;
 
阻力:L1+P1*7/8,COLOR00DD00;
 
支撑:L1+P1*0.5/8,COLOR00DD00;
 
现价:CLOSE,COLORWHITE,LINETHICK1;
 
STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;
 
DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B'),COLORYELLOW;{吸}
 
DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★'),COLORRED;{抛};
 
 
 
N:=34;M1:=3;M2:=3;N1:=55;M3:=3;M4:=3;
 
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
 
K:SMA(RSV,M1,1),LINETHICK2;
 
D:SMA(K,M2,1),LINETHICK2;
 
RSV1:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
 
K1:SMA(RSV1,M3,1),LINETHICK2;
 
D1:SMA(K1,M4,1);
 
DRAWTEXT(CROSS(K1,D),K,'★低吸 '),COLORFFFFFF;
 
DRAWICON(CROSS(K1,D1), K1 ,25),LINETHICK2;
 
DRAWICON(CROSS(K,D), K ,15),LINETHICK2;
大家都爱看
查看更多热点新闻
点击进入掌上指标资源网-下载各类指标