markusaksli / TradeBot

Crypto trading bot using Binance API (Java)
GNU General Public License v3.0
373 stars 138 forks source link

RSI badly computed #35

Closed domiguil closed 2 years ago

domiguil commented 2 years ago

RSI check is baddly computed as it cannot return -2 because temp > NEGATIVE_MIN (70 by default) is computed before temp > NEGATIVE_MAX (80 by default)

RSI.java line 93

Reverse the 2 tests

markusaksli commented 2 years ago

Fixed in https://github.com/markusaksli/TradeBot/releases/tag/v0.10.2