以下是同花顺DMI优化副图指标

同花顺DMI优化副图指标

源码

TR:=EMA(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:=EMA(IF(HD>0 OR HD>LD,HD,0),14);
DMM:=EMA(IF(LD>0 OR LD>HD,LD,0),14);
PDI: DMP*100/TR,colorwhite;
MDI: DMM*100/TR,coloryellow;
趋势线:MA(EMA(PDI,2),10),colorred,LINETHICK2;
STICKLINE(PDI>趋势线,趋势线,PDI,0.05,0),colormagenta;
STICKLINE(PDI>MDI,PDI,趋势线,0.1,0),colorred;
STICKLINE(PDI>MDI,MDI,趋势线,0.1,0),COLORLIRED;
STICKLINE(PDI<趋势线,趋势线,PDI,0.05,0),COLORFF8000;
STICKLINE(PDI<MDI,PDI,MDI,0.1,0),colorblue;
ADX: EMA(ABS(MDI-PDI)/(MDI+PDI)*100,6),colorgreen;
ADXR:EMA(ADX,6),colormagenta;
20;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。