If anyone wants to discuss other ways to use ADX/DMI then that is fine. For the sake of the current discussion I wanted to see if I could duplicate nyc's indicator so that we could be comparing apples to apples. It has always interested me how much reliance many traders put on an indicator (especially one that is working for them) but another trader can use it with a different platform and/or data feed and get completely different results. Its actually a little scary but I have seen it happen over and over.
Ok, so here is where I am at so far...
I plotted the DX along with the DM lines to get it as close to nyc's 9/17 CSCO chart as possible (see attached charts). I tried to alter the indicator to start from the beginning of the day (ignoring data from 9/16), but couldn't get the code to work, so for the sake of comparison, we have to ignore the first 15 minutes after the open when the plots would be different. But after that, with the same lookback period of 15 the values should be the same.
My DM- and DM+ lines are pretty much the same as his. Its the DX line that is different. The general shape of the DX line is the same on both charts, but the actual values that are plotted are different. To double check this I looked up the formula for DX, which is:
DX = |DM+ - DM-| / |DM+ + DM-|
where || is the absolute value.
So, to double check this for the plot I plugged in the numbers from our charts. On my chart at the 10:48ET bar (the white line) the DM+ is .1655 and the DM- is .2291. This also lines up with the DM numbers on nyc's chart (#4 circle). So...
DX = |.1655 - .2291| / |.1655 + .2291| = .1612
That is what is plotted as DX on my chart (see data window on the chart). nyc's DX is approximately .3 at that time.
So, its close at times, but not the same formula for DX. Initially I thought it might be a scaling issue on the chart (which would really make it amazing that it worked since the crosses would be random based on the vertical scale), but if you look at the peaks in DX that occur at 10:58ET (9:58 on my chart) and 11:32ET, on nyc's chart they are approximately the same value whereas on my chart the second peak is higher than the first one. So it must be in the formula.
Any math whizzes out there that might be able to figure out the difference? Maybe none of this matters (certainly not to nyc since it is working for him), but its fun to try and figure out.
And in reply to the guy that thinks nyc is spamming, all I can say is that I have spoken with him over pm a few times to try and figure this out and he answered my questions without once pushing his broker or their software. I hope he will hang around and not let the negativity get to him.