同花顺顶底排序副图指标 源码介绍
同花顺顶底排序副图指标 源码
应朋友们要求发一个顶底排序指标。
指标用法:绿线在筑底区徘徊,出现红柱,表示股票正在筑底,可以考虑买进,反之,可以考虑卖出。
使用这个指标要配合其他分析手段,指标不是万能的,请朋友们不要迷信使用。
STICKLINE(C>0,0,100,15,0),COLOR7C221C;
VAR1:=REF(C,2);
A2: SMA(MAX(C-VAR1,0),7,1)/SMA(ABS(C-VAR1),7,1)*100,colorgreen,LINETHICK2;
VAR2:=REF(C,1);
VAR3:=SMA(MAX(C-VAR2,0),7,1)/SMA(ABS(C-VAR2),7,1)*100;
STICKLINE(A2<REF(A2,1) AND A2>79,80,85,1,0),colorliblue;
STICKLINE(A2>=50,A2,50,1,0),colorred;
STICKLINE(A2<50,A2,50,1,0),colorliblue;
80,POINTDOT;20,POINTDOT;
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
YJD:=(EMA(CS,3)-50)*2;
VAR4:=(1.1)*CLOSE;
VAR5:=(0.9)*CLOSE;
VAR6:=100*(WINNER(VAR4)-WINNER(VAR5));
S1:=EMA(100-VAR6,1);
S2:=EMA(S1,9);
S3:=MA(S2,9);
不抢跌停:STICKLINE(YJD<-80 AND S1>S2,60,50,1,0),coloryellow;
STICKLINE(A2<=12,30,A2,1,0),colorred;
STICKLINE(VAR3<=12,50,30,1,0),colormagenta;
VAR1A:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2A:=SMA(VAR1A,9,1)+100;
VAR3A:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4A:=SMA(VAR3A,3,1);
VAR5A:=SMA(VAR4A,3,1)+100;
VAR6A:=VAR5A-VAR2A;
筑底区:IF(VAR6A<=14,12,0);
gd47900