Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Fixed StochRSI calculations #1196

Merged
merged 4 commits into from
Jan 22, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix test assertion
  • Loading branch information
aquamanjl committed Jan 22, 2018
commit ecf7a43c185d3c253b362b028ec1608e6e58b662
2 changes: 1 addition & 1 deletion test/lib/rsi.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('RSI (Relative Strength Index)', function () {
it('should calculate RSI with default period', function () {
(RSI())(normalData, 'rsi', 14)

expect(normalData.period.rsi).toEqual(32)
expect(normalData.period.rsi).toEqual(32.26)
})

it('should set RSI to 100 when there is no losses for the entire period', function() {
Expand Down