I don't know how many different flavors there are for ADX, but I have found many of the "standard" indicators have different definitions depending on which book you read or site you visit.
Generally, if I decide I want a specific version, I code it myself. Ed Hoopes --- In [email protected], "itmwh" <[EMAIL PROTECTED]> wrote: > > I previously used following codes for ADX in another charting software, > but I found AB must have a different version of ADX > > Could someone tell me what is the difference ? > > Thanks > > Tom > ------------------------------------------------------------------ > > TR = SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF > (CLOSE,1))),P); > HD = HIGH-REF(HIGH,1); > LD = REF(LOW,1)-LOW; > DMP= SUM(IF(HD>0 AND HD>LD,HD,0),P); > DMM= SUM(IF(LD>0 AND LD>HD,LD,0),P); > PDI=DMP*100/TR; > MDI=DMM*100/TR; > ADX= MA(ABS(MDI-PDI)/(MDI+PDI)*100,P); >
