通达信指标改编DMI副图源码

MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD> 0&&HD> LD,HD,0),14);
DMM:=EXPMEMA(IF(LD> 0&&LD> HD,LD,0),14);
PDI:  DMP*100/MTR,COLORRED;
MDI:  DMM*100/MTR,COLORGREEN;
DRAWBAND(PDI,RGB(255,0,0),MDI,RGB(0,55,250));
ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:=EXPMEMA(ADX,6);
STICKLINE(PDI,PDI,0,0.00001,0),COLORRED;
20,DOTLINE;
40,DOTLINE;
{IF(PDI< REF(PDI,1),PDI,DRAWNULL),COLORCYAN;}
STICKLINE(CROSS(20,PDI),PDI,0,0.0001,0),COLORGREEN;
{股票指标网}
STICKLINE(CROSS(PDI,20),0,PDI,0.0001,0),COLORYELLOW;
上穿: CROSS(PDI,MDI),COLORRED,NODRAW;
下穿: CROSS(MDI,PDI),COLORCYAN,NODRAW;
DRAWICON(上穿,PDI,25);
DRAWICON(下穿,PDI,24);
顶: PDI> 40,COLORWHITE,NODRAW;
底: MDI> 40,COLORCYAN,NODRAW;
STICKLINE(PDI> 40,40,PDI,1,0),COLORWHITE;
STICKLINE(MDI> 40,0,PDI,1,0),COLORCYAN;


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

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

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

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