Hi TJ
I just realised you edited the code you placed. Thanks very much for your response and work. I ran that script in MC to see what kind of results I get. Unfortunately, the numbers it spit out were not what I was looking for. This is probably due to the link that had the formula that I posted earlier probably was not the correct one. I found another formula that "seems" to be the correct one at this page:
http://www.linnsoft.com/tour/techind/adx.htm
To test if it's the correct one, I just used the Daily close for the SPY on Aug 17 for example. The standard ADX of 14 periods is 16.92. On Esignal, to get the standard you have to enter the same smoothing # to the periods. In this case, 14,14 would equal the same 16.92.
Now, when I tried the same setting on the code I just installed, 14,14 resulted in an ADX of 16.01, when it should also be 16.92.
If I changed the default settings from 14,14 to 14,10 smoothing on Esignal I get, 16.46.
However, if I enter 14,10 on that new code, I get 15.81.
I guess we can use that as a guideline as to how to find the correct formula.
I realise on a daily chart of the spy, 16.92 to 16.01 is not much of a difference. However, if we change this to a 5 minute chart, on a volatile instrument, there is a tremednous difference. Even more so if I use something like 8 periods instead of 14.
I REALLY appreciate the effort you placed to help me. I only wish it was easier to find this formula. I figure if popular software like Esignal, Ameritrade, and others had it standard, by now someone would have this for either TS or Multicharts.
If someone has this ADX indicator w/ a variable for smoothing PLEASE let me know.
thanks Again