ADX - AverageDirectionalIndex

6 views
Skip to first unread message

MKoistinen

unread,
Jun 29, 2009, 10:23:37 AM6/29/09
to jsystemtrader-dev
Hi all,

It seems all the permitted developers have fled to the JBookTrader
project as there has been a lot more action there then here.

For those of you who are left, is anyone using the ADX indicator
(author: Carlos Aza Villarrubia version: 1.1 date: 25/05/2008)?

It may or may not be correct, but it doesn't seem to match my own,
manually calculated results. My calculations are based on the two
Wikipedia entries for Average True Range and Average Directional
Index. Interestingly, the jUnit test for ADX is @Ignored which tells
me that whoever was working on it before (Ken Feng), couldn't get it
to match. Please correct me if I am wrong here.

I have since implemented a new Indicator, AverageDirectionalIndex and
I prefer its results. They aren't as smooth as the other, but they do
indicate trends quicker. Also, I have built a jUnit test for mine,
and it does pass nicely.

If anyone is interested, I don't mind sharing my code
(AverageDirectionalIndex.java, AverageDirectionalIndexTest.java), and
my spreadsheet of manual calculations (AAPL ADX Test.xls) to the
project.
Reply all
Reply to author
Forward
0 new messages