DMI多头副图指标 源码 通达信

[复制链接]
查看28 | 回复0 | 2022-7-11 10:48:50 | 显示全部楼层 |阅读模式
N:=14;M:=6;
TRTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);
PDI: DMP*100/TRTR,COLORRED;
MDI: DMM*100/TRTR,COLORLIBLUE;
ADX: EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLORYELLOW;
{ADXR:EXPMEMA(ADX,M);};
XX1:=EXIST(CROSS(PDI,MDI),2);
XX2:=EXIST(CROSS(ADX,MDI),2);
DRAWICON(XX1 AND XX2,ADX,1);
STICKLINE(CROSS(PDI,MDI) AND CROSS(PDI,ADX),ADX*0.5,ADX*1.5,2,0),COLORRED;
PDI是多头:PDI,NODRAW;
10,POINTDOT,COLORLIBLUE;
75,POINTDOT,COLORRED;
XG:IF(ADX>55 AND ADX<65 AND C<REF(C,1) AND C>O,50,0);
 

20188231017679620.png

20188231017679620.png

201882310175887022.rar

1.34 KB, 下载次数: 0

售价: 1 金钱  [记录]  [购买]

201882310175887022.rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则