同花顺顺势为王副图指标 源码介绍
同花顺顺势为王副图指标 源码
通达信顺势为王副图指标源码
放弃了原指标通达信北极波段之王,是因为原指标买卖点不太精准。现改用通达信顺势为王指标,比较靠谱些。叠加了抄底王牌选股指标和逃顶抄底指标,是为了强化指标信息的准确性。增加了一条短趋势线,红色线段区域为多头区域,绿色线段为空头区域。同时增加了一条强弱分界线,股价在强弱分界线之上为强势,在分界线之下为弱势。
必须强调一点:在下降趋势中,大多数的买入信号是无效信号,因为趋势左右走势。
同样的道理在上升趋势中大多数“止盈”信号也是无效信号,还是那名话,趋势决定走势。
我们要做就是顺势而为
请M台均线、成交里、大盘和其它指标使用。
本指示无未来函数。
AA:=LLV(LOW,30);
BB:=HHV(HIGH,30);
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
值:DD,colorlimagenta,LINETHICK1;
风险:80,COLORFF00FF;
顶部:87.5,COLOR00FF00;
跟踪:10,COLOR0000FF;
强弱分界:35,colorwhite;
VAR1:=(2*CLOSE-HIGH)/4;
算术平均:=MA(VAR1,20);
股海:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);
抄底:IF(CROSS(值,5)AND C>REF(C,1),8,0),coloryellow;
DRAWTEXT(CROSS(值,5)AND C>REF(C,1),73,'抄底'), colorgreen;
买入:IF(CROSS(值,9) AND COUNT((值<9)=1,3) AND C>REF(C,1),12,0),colorgreen;
DRAWTEXT(CROSS(值,9) AND COUNT((值<9)=1,3) AND C>REF(C,1),53,''), coloryellow;
底追:IF(CROSS(值,10) ,12,0),coloryellow;
DRAWTEXT(CROSS(值,10),33,''), colorwhite;
小心追马:IF(FILTER(CROSS(值,40) AND C>算术平均,5) ,35,10),coloryellow;
DRAWTEXT(FILTER(CROSS(值,40) AND C>算术平均,5),43,'追'), colorred;
减仓:IF(CROSS(值,83),75,87.5),coloryellow;
DRAWTEXT(CROSS(值,83),72,'止盈'),coloryellow;
顶:IF(CROSS(值,90),67,87.5),colorwhite;
DRAWTEXT(CROSS(值,90),65,'顶'),colorwhite;
逃顶1:IF(CROSS(值,93),60,87.5),colorred;
DRAWTEXT(CROSS(值,93),60,'逃'),colorwhite;
逃顶2:IF(CROSS(值,96),60,87.5),colorred;
DRAWTEXT(CROSS(值,96),60,'顶'),colorwhite;
加仓:21,colorgreen;
平衡:51,colorwhite;
注意:81,colorcyan;
VAR3:=LLV(LOW,18);
VAR4:=HHV(HIGH,18);
趋势:EMA((CLOSE-VAR3)/(VAR4-VAR3)*100,13),colorbrown;
趋势1:EMA(0.618* REF(趋势,1)+0.382*趋势,3),coloryellow;
短趋势线:MA(CLOSE,13),colorred,LINETHICK2;
涨:IF(短趋势线>REF(短趋势线,1),短趋势线,DRAWNULL),colorred,LINETHICK2;
平:=IF(短趋势线=REF(短趋势线,1),短趋势线,DRAWNULL),COLOR00FFFF,LINETHICK2;
跌:IF(短趋势线<REF(短趋势线,1),短趋势线,DRAWNULL),colorgreen,LINETHICK2;
强弱分界:50,LINETHICK1;
var1:=REF(CLOSE,1);
var2:=SMA(MAX(CLOSE-var1,0),7,1)/SMA(ABS(CLOSE-var1),7,1)*100,coloryellow;
var21:IF(var2<20,40,20),colorcyan;
var22:IF(var2>80,60,80),COLORFFFF50;
var2↑:STICKLINE(FILTER(REF(var2,1)<20 AND var2>REF(var2,1),5),20,40,8,0),colorred;
var2↓:STICKLINE(FILTER(REF(var2,1)>80 AND var2<REF(var2,1),5),60,80,8,0),COLORFFFF50;
DRAWTEXT(FILTER(REF(var2,1)<20 AND var2>REF(var2,1),5),40 ,'买入' ),COLORFFFFFF;
DRAWTEXT(FILTER(REF(var2,1)>80 AND var2<REF(var2,1),5),60 ,'卖出' ),COLORFFFFFF;
80,colorgreen;
20,colorwhite;
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;
FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5)
gd46013