{个股强弱----创幻论坛一品茶缘优化版,副图指标}{通用版本}
{感谢创幻论坛腾天朋友提供基础原码!}
{个股强弱指标使用说明:
个股走势比大盘,阶段强弱易分辨;
转强关注好操作,强于50龙在天!}
源码
C1:=(((10000 * CLOSE) / INDEXC));
Var1:=REF(c1,1);
A1:=SMA(MAX(c1-Var1,0),7,1)/SMA(ABS(c1-Var1),7,1)*100;
Var2:=REF(c1,2);
A2:=SMA(MAX(c1-Var2,0),7,1)/SMA(ABS(c1-Var2),7,1)*100;
Var3:=REF(c1,3);
A3:=SMA(MAX(c1-Var3,0),7,1)/SMA(ABS(c1-Var3),7,1)*100;
Var4:=REF(c1,4);
A4:=SMA(MAX(c1-Var4,0),7,1)/SMA(ABS(c1-Var4),7,1)*100;
XRSI1:=(A1+A2+A3+A4)/4;
XRSI:(A1+A2+A3+A4)/4,COLORYELLOW,LINETHICK1;
MX13:MA(XRSI,13),COLORRED;
关注:CROSS(XRSI,MA(XRSI,2)) AND BETWEEN(XRSI,20,60),COLORFFFFFF,POINTDOT;
QSXS:=XRSI>REF(XRSI,1) OR MX13>REF(MX13,1);
操作区:XRSI>MX13 AND QSXS,COLOR00FFFF,POINTDOT;
STICKLINE(XRSI1>=30,30,XRSI1,4,0),COLOR00FF00;
STICKLINE(XRSI1>=50,50,XRSI1,4,0),COLORFF00FF;
STICKLINE(XRSI1>=70,70,XRSI1,4,0),COLOR0000FF;
STICKLINE(操作区,XRSI,MX13,4,1),COLOR00FFFF;
DRAWTEXT(CROSS(关注,0.8),XRSI,'↑'),COLORFFFFFF;
DRAWTEXT(CROSS(操作区,0.8),MX13,'◆'),COLOR0000FF;
弱:30,COLORFFFFFF;
强:50,COLOR00FFFF,POINTDOT;
龙:70,COLORFF00FF,POINTDOT;
险:IF(XRSI1>90,75,90),COLOR0000FF;