From 90017998fccca51e335bf10547376bad1ffa1b94 Mon Sep 17 00:00:00 2001 From: Gerald Lonlas Date: Thu, 4 Jan 2018 22:27:55 -0800 Subject: [PATCH] Use named argument for backtest() --- freqtrade/optimize/backtesting.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index 54cf59ac7..811ba8d63 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -183,9 +183,13 @@ def start(args): # Execute backtest and print results results = backtest( - config['stake_amount'], preprocessed, max_open_trades, args.realistic_simulation, - config.get('experimental', {}).get('sell_profit_only', False), config.get('stoploss'), - config.get('experimental', {}).get('use_sell_signal', False) + stake_amount=config['stake_amount'], + processed=preprocessed, + max_open_trades=max_open_trades, + realistic=args.realistic_simulation, + sell_profit_only=config.get('experimental', {}).get('sell_profit_only', False), + stoploss=config.get('stoploss'), + use_sell_signal=config.get('experimental', {}).get('use_sell_signal', False) ) logger.info( '\n====================== BACKTESTING REPORT ================================\n%s',