From 34c0874c38aa44d7f6e700de125e38c0a194151a Mon Sep 17 00:00:00 2001 From: longyu Date: Sun, 23 Oct 2022 10:09:37 +0200 Subject: [PATCH] allow custom exit for V4 --- user_data/strategies/FreqaiBinaryClassStrategy_v4.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user_data/strategies/FreqaiBinaryClassStrategy_v4.py b/user_data/strategies/FreqaiBinaryClassStrategy_v4.py index 61c5e5d78..2fc70606a 100644 --- a/user_data/strategies/FreqaiBinaryClassStrategy_v4.py +++ b/user_data/strategies/FreqaiBinaryClassStrategy_v4.py @@ -411,7 +411,7 @@ class FreqaiBinaryClassStrategy_v4(IStrategy): def get_ticker_indicator(self): return int(self.config["timeframe"][:-1]) - """ + def custom_exit( self, pair: str, trade: Trade, current_time, current_rate, current_profit, **kwargs ): @@ -464,7 +464,7 @@ class FreqaiBinaryClassStrategy_v4(IStrategy): if current_profit < -roi_decay: return "roi_custom_loss" - """ + def confirm_trade_exit( self, pair: str,