通达信 强弱趋势 指标 源码

[复制链接]
查看54 | 回复0 | 2022-7-24 08:59:17 | 显示全部楼层 |阅读模式

-------------------------

指标一

4A72158985.jpg

4A72158985.jpg
N:=9;
M1:=3;
M2:=3;
95,LINETHICK1,COLORRED;
0,LINETHICK1,COLORRED;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
DPYJ:(K+D)/2,COLORWHITE,LINETHICK2 ;
STICKLINE(DPYJ>95,0,95,2,0),COLORRED;
STICKLINE((DPYJ>94.2 AND DPYJ<95) ,0,95,2,0), COLORYELLOW ;
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
YJD: (EMA(CS,3)-50)*2;
极弱:-80,COLORGREEN;
强势:60;
风险:80,COLORGREEN;
弱势:-60;
YJD,COLORSTICK;
YJF:MA(YJD,5),COLORYELLOW;

-----------------------------

指标二

2372159157.jpg

2372159157.jpg
df:=3;
N1:=12;
RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
K:=SMA(RSV,DF,1);
D:=SMA(K,DF,1);
KK:=SMA(RSV,DF,1);
DD:=SMA(K,DF,1);
N:=KK+DD;
关注区:STICKLINE(N<50,N,50,2,0),COLORRED;
风险区:STICKLINE(N>160,N,160,2,0),COLORFFFF00;
成本区:50,COLORYELLOW,LINETHICK2;
GWGD:=N<REF(N,1) AND REF(N,1)>=160 AND REF(N,1)>=REF(N,2);
获利区:160,COLORFFFF00,LINETHICK2;
操盘线:N,COLORFF00FF,LINETHICK2;
买入↑:DRAWICON(CROSS(N,50),50,1),COLORRED;
卖出↓:DRAWICON(CROSS(160,N),160,2),COLORGREEN; 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则