Skip to content

Commit

Permalink
Revert "Update strategy.js (DeviaVir#1646)"
Browse files Browse the repository at this point in the history
This reverts commit 962efee.
  • Loading branch information
diegstroyer authored Jul 5, 2018
1 parent 6ad34a7 commit 0f2da2c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions extensions/strategies/rsi/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ module.exports = {
s.rsi_high = s.period.rsi
}
}
if (s.trend !== 'overbought' && s.trend !== 'short' && s.period.rsi >= s.options.overbought_rsi) {
s.rsi_high = s.period.rsi
s.trend = 'long'
}
if (s.trend === 'long') {
s.rsi_high = Math.max(s.rsi_high, s.period.rsi)
if (s.period.rsi <= s.rsi_high / s.options.rsi_divisor) {
Expand Down Expand Up @@ -71,9 +67,6 @@ module.exports = {
if (s.period.rsi <= s.options.oversold_rsi) {
color = 'green'
}
if (s.period.rsi >= s.options.overbought_rsi) {
color = 'red'
}
cols.push(z(4, n(s.period.rsi).format('0'), ' ')[color])
}
return cols
Expand Down

0 comments on commit 0f2da2c

Please sign in to comment.