同花顺个股相对大盘强度副图指标 源码介绍
同花顺个股相对大盘强度副图指标 源码
a:=(C-REF(C,1))/C;
b:=(INDEXC-REF(INDEXC,1))/INDEXC;
d:=(a-b)*100;
VAR1:=a>0 AND b>0;
VAR2:=a>0 AND b<0;
VAR3:=a<0 AND b>0;
VAR4:=a<0 AND b<0;
STICKLINE(VAR1,0,d,8,0),Color0000ff;
STICKLINE(VAR2,0,d,8,0),Colorcc66ff;
STICKLINE(VAR3,0,d,8,0),Color00ffff;
STICKLINE(VAR4,0,d,8,0),Color00ff00;
e:EMA(MA(d,5),3),colorred,LINETHICK2;
强度:10*SMA(MAX(d,0),12,1)/SMA(ABS(d),12,1)-5,colorcyan;
gd47561