在线检测未来函数

通达信DMI修正指标公式

来源:Internet,编辑:股旁网,2021-10-26

本文指标含有选股公式如下:
股旁网此处内容已被隐藏,请输入验证码查看内容。
验证码:
请关注本站微信公众号,回复“88”,获取验证码。
提示:在微信里搜索“股旁网”或者微信扫描右侧二维码。

STICKLINE(1,60,58,12,0),COLORLIRED;
STICKLINE(1,75,77,12,0),COLORRED;
STICKLINE(1,30,32,12,0),COLORLIRED;
LC:=REF(CLOSE,1);
rsi12:SMA(MAX(CLOSE-LC,0),12,1)/SMA(Abs(CLOSE-LC),12,1)*100,COLORRED,LINETHICK1;
RSI56:SMA(MAX(CLOSE-LC,0),56,1)/SMA(ABS(CLOSE-LC),56,1)*100,COLORMAGENTA,LINETHICK2;
MTR:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
HD:=HIGH-REF(HIGH,1);
LD:=REF(LOW,1)-LOW;
DMP:=SUM(IF(HD>0 AND HD>LD,HD,0),14);
DMM:=SUM(IF(LD>0 AND LD>HD,LD,0),14);
PDI:DMP*100/MTR,COLORYELLOW;
mdi:=DMM*100/MTR,COLORGREEN;
ADX:MA(ABS(MDI-PDI)/(MDI+PDI)*100,6),COLORWHITE,LINETHICK2;
ADXR:=(ADX+REF(ADX,6))/2,COLORCYAN;
DRAWTEXT(RSI12>70 AND ADX>70,ADX,'A'),COLORRED;
量比:=vol/REF(VOL,1);
DRAWTEXT(量比>3 AND C/REF(C,1)>1.05 AND RSI56>54 AND ADX<30,30,'关注A'),COLORMAGENTA;
STICKLINE(量比>2.2 AND C/REF(C,1)>1.05 AND RSI56>54 AND ADX<30,ADX,RSI56,2,0),COLORCYAN;

通达信DMI修正指标公式

相关文章