顺势而为之强弱信号,周线判断大盘入场或出场点位
LC := REF(CLOSE,1);
RSI$1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI$2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
WR1:=100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
WR2:=100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6));
TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),7);
HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),7);
DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),7);
+DI:= DMP*100/TR;
-DI:=DMM*100/TR;
ADX:=MA(ABS(-DI-+DI)/(-DI++DI)*100,6);
ADXR:=(ADX+REF(ADX,6))/2;
熊转牛:=CROSS(RSI$1,50) AND CROSS(50,WR1) AND CROSS(+DI,-DI);
牛转熊:=CROSS(50,RSI$1) AND CROSS(WR1,50) AND CROSS(-DI,+DI);
DRAWTEXT(牛转熊,HIGH*1.01,'★快跑'),COLORGREEN;
DRAWTEXT(熊转牛,LOW*1.001,'★下单'), COLORRED;
强势:=(RSI$1>50 AND WR1<50);
弱势:=(RSI$1<50 AND WR1>50);
CC:=IF(强势 AND 弱势,0,1);
STICKLINE(CC,CLOSE,OPEN,10,1),COLORYELLOW;
STICKLINE(CC,HIGH,MAX(C,O),0.10,0),COLORYELLOW;
STICKLINE(CC,MIN(C,O),LOW,0.10,0),COLORYELLOW;
STICKLINE(强势,CLOSE,OPEN,10,0),COLORRED;
STICKLINE(强势,HIGH,LOW,0.10,0),COLORRED;
STICKLINE(弱势,CLOSE,OPEN,10,0),COLORBLUE;
STICKLINE(弱势,HIGH,LOW,0.10,0),COLORBLUE;
郑重声明:股市具有不确定性,个股走势是无法预测的。公式软件描述中的案例截图仅代表过去,仅供参考学习研究之用,不构成投资建议或未来保证,也并不能代表未来,依此操作,责任自负。股市有风险,入市需谨慎。
指标公式评论
(强弱信号 同花顺 副图 源码 指标公式)