TR:=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/TR;
MDI:= DMM*100/TR;
STICKLINE(PDI>=MDI,PDI,MDI,2,1),COLOR0000EE;
STICKLINE(PDI
ADXR:=EXPMEMA(ADX,M);
STICKLINE(ADX>=ADXR,ADX,ADXR,1,0),COLORF580F5;
STICKLINE(ADX
IF(ADX>=ADXR,100,DRAWNULL),COLORF580F5,LINETHICK8;
IF(ADX
IF(PDI>=MDI,0,DRAWNULL),COLOR0000EE,LINETHICK8;
IF(PDI
MDI指示:MDI,POINTDOT;
ADX指示:ADX,POINTDOT;
ADXR指示:ADXR,POINTDOT;
关注线:50,COLORF0F000,POINTDOT;