Skip to content

Commit

Permalink
Very simple test for +DI and -DI
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonlam604 committed Feb 15, 2017
1 parent fde6e7c commit ae57e7d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ public void testCalcAdx() {
Assert.assertEquals(30.08, results[results.length - 5], 0);
Assert.assertEquals(32.30, results[results.length - 6], 0);
Assert.assertEquals(33.73, results[results.length - 7], 0);

double[] posDI = adx.getPositiveDirectionalIndicator();
Assert.assertEquals(23.82, posDI[results.length - 7], 0);

double[] negDI = adx.getNegativeDirectionalIndicator();
Assert.assertEquals(18.11, negDI[results.length - 7], 0);

} catch (Exception e) {

Expand Down

0 comments on commit ae57e7d

Please sign in to comment.