{PDIMDI之差} TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14); HD := HIGH-REF(HIGH,1); LD := REF(LOW,1)-LOW; DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),14); DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),14); PDI:=DMP*100/TR; MDI:=DMM*100/TR;0, ; 持币区:PDI-MDI; IF(持币区<0,持币区,0),COLORGREEN, LINETHICK2; 持股区:IF(持币区>0,持币区,0),COLORff00ff, LINETHICK2; stickline(持股区>0 and 持股区>ref(持股区,1),持股区,0,3,0),colorff00ff;