Merge pull request #7174 from stash86/patch-3

Fix typo
This commit is contained in:
Matthias 2022-08-04 16:27:22 +02:00 committed by GitHub
commit 55360b4c08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -721,7 +721,7 @@ class DigDeeperStrategy(IStrategy):
if current_profit > 0.05 and trade.nr_of_successful_exits == 0:
# Take half of the profit at +5%
return -(trade.amount / 2)
return -(trade.stake_amount / 2)
if current_profit > -0.05:
return None