MTR:=SUM(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:=SUM(IF(HD>0&&HD>LD,HD,0),14); DMM:=SUM(IF(LD>0&&LD>HD,LD,0),14); PDI:DMP*100/MTR,NODRAW; MDI:DMM*100/MTR,NODRAW; ADX:MA(ABS(MDI-PDI)/(MDI+PDI)*100,6),NODRAW; ADXR:(ADX+REF(ADX,6))/2,NODRAW; STICKLINE(PDI<=MDI,0,100,3,-1)COLORGREEN,LINETHICK1; STICKLINE(PDI>MDI,0,10,3,0)COLORLIRED; STICKLINE(PDI>MDI AND ADX>ADXR,0,10,3,0)COLORRED; STICKLINE(PDI>MDI,90,100,3,0)COLORLIRED; STICKLINE(PDI>MDI AND ADX>ADXR,90,100,3,0)COLORRED; DRAWBAND(IF(PDI>0,PDI,0),RGB(155,0,155),IF(MDI>0,MDI,0),RGB(0,97,0)); DRAWBAND(IF(ADX>0,ADX,0),RGB(200,0,0),IF(ADXR>0,ADXR,0),RGB(72,118,255));{BUYHAOGU.COM} IF(PDI>MDI,PDI,DRAWNULL)COLORLIRED; STICKLINE(C>0,79.5,80,3,-1),COLORBROWN,LINETHICK2; STICKLINE(C>0,100,100,4,0),COLORBROWN,LINETHICK2; STICKLINE(C>0,0,0,4,0),COLORBROWN,LINETHICK2; STICKLINE(C>0,39.5,40,3,-1),COLORBROWN,LINETHICK2; STICKLINE(C>0,20,19.5,3,-1),COLORBROWN,LINETHICK2; |
|