通达信DMI修正指标公式

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;




来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图