Add 'exit_tag' parameter to 'custom_exit_price' callback.

This commit is contained in:
Rokas Kupstys
2022-04-26 09:39:15 +03:00
parent 44000ae0b3
commit 6d99222320
6 changed files with 12 additions and 8 deletions

View File

@@ -540,7 +540,8 @@ class Backtesting:
default_retval=closerate)(
pair=trade.pair, trade=trade,
current_time=exit_candle_time,
proposed_rate=closerate, current_profit=current_profit)
proposed_rate=closerate, current_profit=current_profit,
exit_tag=exit_.exit_reason)
# We can't place orders lower than current low.
# freqtrade does not support this in live, and the order would fill immediately
if trade.is_short: