Skip to content

Commit

Permalink
Fixed bug where max_error was not taking abs of error first, so ignor…
Browse files Browse the repository at this point in the history
…ing negative errors
  • Loading branch information
hammertoe committed Mar 8, 2019
1 parent 25e3fe8 commit 49022a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto_balancer/portfolio.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def balance_rms_error(self):
@property
def balance_max_error(self):
pcts = self.balance_errors_pct
pcts = [abs(x) for x in pcts]
return max(pcts)

@property
Expand Down

0 comments on commit 49022a8

Please # to comment.