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;
{老K股票学习网-股票公式网站 www.GupaNG.com}
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 CO,50,0);
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!