allow custom exit for V4

This commit is contained in:
longyu 2022-10-23 10:09:37 +02:00
parent 80335aa9ea
commit 34c0874c38

View File

@ -411,7 +411,7 @@ class FreqaiBinaryClassStrategy_v4(IStrategy):
def get_ticker_indicator(self): def get_ticker_indicator(self):
return int(self.config["timeframe"][:-1]) return int(self.config["timeframe"][:-1])
"""
def custom_exit( def custom_exit(
self, pair: str, trade: Trade, current_time, current_rate, current_profit, **kwargs 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: if current_profit < -roi_decay:
return "roi_custom_loss" return "roi_custom_loss"
"""
def confirm_trade_exit( def confirm_trade_exit(
self, self,
pair: str, pair: str,