From 63d94aa5853b78b08d60346b986f6a7870fdf458 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 21 Nov 2021 19:28:53 +0100 Subject: [PATCH] short should be allowed for all non-spot modes --- freqtrade/optimize/backtesting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index 0f4d17fd8..1710c9805 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -124,7 +124,7 @@ class Backtesting: # TODO-lev: This should come from the configuration setting or better a # TODO-lev: combination of config/strategy "use_shorts"(?) and "can_short" from the exchange self.trading_mode = TradingMode(config.get('trading_mode', 'spot')) - self._can_short = self.trading_mode == TradingMode.MARGIN + self._can_short = self.trading_mode != TradingMode.SPOT self.progress = BTProgress() self.abort = False