N:=7;MM:=3; MTR:=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/MTR; MDI: DMM*100/MTR; DRAWBAND(PDI,RGB(100,0,50),MDI,RGB(256,96,96)); ADX:EXPMEMA((PDI-MDI)/(PDI+MDI)*100,MM),COLORFF00FF; ADXR:EXPMEMA(ADX,N/2),COLOR00FF00; {LTSH} WR:100-100*(HHV(HIGH,42)-CLOSE)/(HHV(HIGH,42)-LLV(LOW,42)),COLORFFFFFF,LINETHICK2; 見頂:100,COLOR0000FF,LINETHICK2; 見底:0,COLORCYAN,LINETHICK2; STICKLINE(WR=100,101,110,2,0),COLOR0000FF; STICKLINE(WR=0,101,110,2,0),COLORMAGENTA; STICKLINE(WR<100 AND WR>=99,101,110,2,1),COLOR00FFFF; STICKLINE(WR<=0.6 AND WR>0,101,110,2,0),COLOR00FFFF;
20,COLORCYAN; 80,COLORCYAN;
|