Skip to content

Commit

Permalink
Bollinger High/Low enhancement (DeviaVir#1198)
Browse files Browse the repository at this point in the history
* Add trend_bollinger

* Add wavetrend strategy

* Add StdDev

* Add Momentum Strategy

* Fixed StochRSI calculations (DeviaVir#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 (DeviaVir#1194)

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

* Enhance display of High/Low bollinger values

Report is now able to display values less than 1.  space limited to 7
characters per column so smallest value is 0.00001
  • Loading branch information
station384 authored and aquamanjl committed Jan 22, 2018
1 parent df33198 commit 8b0cc2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions extensions/strategies/bollinger/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ module.exports = function container (get, set, clear) {
color = 'red'
}
cols.push(z(8, n(s.period.close).format('+00.0000'), ' ')[color])
cols.push(z(8, n(lowerBound).format('00'), ' ').cyan)
cols.push(z(8, n(upperBound).format('00'), ' ').cyan)
cols.push(z(8, n(lowerBound).format('0.000000').substring(0,7), ' ').cyan)
cols.push(z(8, n(upperBound).format('0.000000').substring(0,7), ' ').cyan)
}
}
else {
Expand Down
4 changes: 2 additions & 2 deletions extensions/strategies/trend_bollinger/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ module.exports = function container (get, set, clear) {
color = 'red'
}
cols.push(z(8, n(s.period.close).format('+00.0000'), ' ')[color])
cols.push(z(8, n(lowerBound).format('00'), ' ').cyan)
cols.push(z(8, n(upperBound).format('00'), ' ').cyan)
cols.push(z(8, n(lowerBound).format('0.000000').substring(0,7), ' ').cyan)
cols.push(z(8, n(upperBound).format('0.000000').substring(0,7), ' ').cyan)
}
}
else {
Expand Down

0 comments on commit 8b0cc2a

Please sign in to comment.