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

Commit

Permalink
Adjustment to RSI display fix padding. No longer get skewed on RSIs o…
Browse files Browse the repository at this point in the history
…f XX.X format forced to XX.XX (#1205)

* Add trend_bollinger

* Add wavetrend strategy

* Add StdDev

* Add Momentum Strategy

* Fixed StochRSI calculations (#1196)

* Fix SRSI calculation

* Added test case for SRSI. Switched RSI and SRSI output to float and adjusted display accordingly

* Oops, disabled all other tests by mistake

* Fix test assertion

* Fix cexio update-products.sh (#1194)

This fixes the error `/usr/bin/env: ‘node\r’: No such file or directory`

* Adjust display for RSI being changed to float

RSI formated correctly.
  • Loading branch information
station384 authored and DeviaVir committed Jan 23, 2018
1 parent 217bf16 commit 65441a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ module.exports = function container (get, set, clear) {
let half = 5
let bar = ''
let stars = 0
let rsi = s.period.rsi.toString()
let rsi = n(s.period.rsi).format('00.00')
if (s.period.rsi >= 50) {
stars = Math.min(Math.round(((s.period.rsi - 50) / 50) * half) + 1, half)
bar += ' '.repeat(half - (rsi < 100 ? 3 : 4))
Expand Down

0 comments on commit 65441a0

Please sign in to comment.