From 861fa3d9ea4129a5f7b10304f03fb41cee1910bc Mon Sep 17 00:00:00 2001 From: MoonGem <34537029+MoonGem@users.noreply.github.com> Date: Sun, 25 Mar 2018 11:14:16 -0500 Subject: [PATCH] Update backtesting.py --- user_data/random/backtesting.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/user_data/random/backtesting.py b/user_data/random/backtesting.py index 4354abeb2..2ba532610 100644 --- a/user_data/random/backtesting.py +++ b/user_data/random/backtesting.py @@ -19,7 +19,8 @@ from freqtrade.logger import Logger from freqtrade.misc import file_dump_json from freqtrade.persistence import Trade import sys - +import os +import time class Backtesting(object): """ Backtesting class, this class contains all the logic to run a backtest @@ -257,8 +258,8 @@ class Backtesting(object): results ) ) - sys.exit(1) - + time.sleep(2) + os.close(1) def setup_configuration(args: Namespace) -> Dict[str, Any]: """ Prepare the configuration for the backtesting