From eac6e0539224908d6cdf6da2bd5767219999bbbf Mon Sep 17 00:00:00 2001 From: Gerald Lonlas Date: Thu, 18 Jan 2018 22:37:06 -0800 Subject: [PATCH] Fix error when config does not have stoploss --- 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 93ff295c5..a21bdb61a 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -222,7 +222,7 @@ def start(args): 'realistic': args.realistic_simulation, 'sell_profit_only': sell_profit_only, 'use_sell_signal': use_sell_signal, - 'stoploss': config.get('stoploss'), + 'stoploss': strategy.stoploss, 'record': args.export }) logger.info(