How ADX is calculated?
Author: Krusnik02
Creation Date: 5/28/2009 10:40 AM
profile picture

Krusnik02

#1
I am trying to dewelop ADX indicator, simple to ADX which is realised in WLD but on other trading platform (C# + COM). The problem is, that I am doing the same calculation as are in WLD, buy I still have different result.

The questions is how DIPLus values are smoothed. The Help topick in WLD 4.5 that SMA is used. I am running the next code:

CODE:
Please log in to see this code.



If this code is executed, then I should get only one line on the skreen!!! But here I have 2 lines!
The same situation is if I am using WilderMA, EMA.

How DIPlus is calculated really?
profile picture

Eugene

#2
QUOTE:
If this code is executed, then I should get only one line on the skreen!!!

Really, why do you think so?
profile picture

Krusnik02

#3
It is described in Help in wld 4.5 for DIPlus:
> The +DI is then smoothed over the period specified, the same way as a simple moving average

If I am wrong, could you correct me?
How could I get smmonthed DIPlus(14), If I have calculated values of "+DI = Round( ( +DM / TR ) * 100 ) = DIPlus(1)"

And now I need to smooth them to get DIPlus(14)?
profile picture

Eugene

#4
Deja vu all over? See it thoroughly covered by fundtimer in the past:

moving average used in directional movement (DM)?
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).