Closed angryhorse0905 closed 5 years ago
https://github.com/anandanand84/technicalindicators/blob/master/test/directionalmovement/ATR.js
In this test file, atr.nextValue() param is object of high, low, close prices. But the param type of nextValue() in ATR is number.
Agree, It is an issue with the typings. The test case is correct. You should use high, low, close price to make it work.
Fixed declarations
https://github.com/anandanand84/technicalindicators/blob/master/test/directionalmovement/ATR.js
In this test file, atr.nextValue() param is object of high, low, close prices. But the param type of nextValue() in ATR is number.