Merge pull request #6671 from freqtrade/custom_exit_profit

Custom exit - call it independent of profit
This commit is contained in:
Matthias
2022-04-10 09:09:45 +02:00
committed by GitHub
5 changed files with 22 additions and 12 deletions

View File

@@ -145,6 +145,9 @@ Please refer to the [Strategy documentation](strategy-customization.md#exit-sign
### `custom_sell`
`custom_sell` has been renamed to `custom_exit`.
It's now also being called for every iteration, independent of current profit and `exit_profit_only` settings.
``` python hl_lines="2"
class AwesomeStrategy(IStrategy):
def custom_sell(self, pair: str, trade: 'Trade', current_time: 'datetime', current_rate: float,