From a78d70499860b523dfbeed7b0858d3a3630be2e6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 14 Aug 2023 17:29:49 +0200 Subject: [PATCH] Fix strategy template typng --- .../strategy_subtemplates/strategy_methods_advanced.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/templates/strategy_subtemplates/strategy_methods_advanced.j2 b/freqtrade/templates/strategy_subtemplates/strategy_methods_advanced.j2 index d30588be3..95c6df2ea 100644 --- a/freqtrade/templates/strategy_subtemplates/strategy_methods_advanced.j2 +++ b/freqtrade/templates/strategy_subtemplates/strategy_methods_advanced.j2 @@ -102,7 +102,7 @@ def custom_stake_amount(self, pair: str, current_time: datetime, current_rate: f use_custom_stoploss = True -def custom_stoploss(self, pair: str, trade: Trade, current_time: datetime, current_rate: float, +def custom_stoploss(self, pair: str, trade: 'Trade', current_time: 'datetime', current_rate: float, current_profit: float, after_fill: bool, **kwargs) -> float: """ Custom stoploss logic, returning the new distance relative to current_rate (as ratio).