diff --git a/user_data/strategies/Strategy002.py b/user_data/strategies/Strategy002.py index 632b3ea34..224f1430a 100644 --- a/user_data/strategies/Strategy002.py +++ b/user_data/strategies/Strategy002.py @@ -165,9 +165,10 @@ class Strategy002(IStrategy): """ mode = "test" coin = pair.split("/")[0] + brain = "Freq_" + self.__class__.__name__ if IS_BACKTEST: - threading.Thread(target=back_tester, args=(current_time, coin)).start() + threading.Thread(target=back_tester, args=(current_time, coin, brain)).start() else: - threading.Thread(target=launcher, args=(mode, coin)).start() + threading.Thread(target=launcher, args=(mode, coin, brain)).start() return True diff --git a/user_data/strategies/Strategy003.py b/user_data/strategies/Strategy003.py index 2b64cdf15..8ff26a65a 100644 --- a/user_data/strategies/Strategy003.py +++ b/user_data/strategies/Strategy003.py @@ -180,8 +180,9 @@ class Strategy003(IStrategy): """ mode = "test" coin = pair.split("/")[0] + brain = "Freq_" + self.__class__.__name__ if IS_BACKTEST: - threading.Thread(target=back_tester, args=(current_time, coin)).start() + threading.Thread(target=back_tester, args=(current_time, coin, brain)).start() else: - threading.Thread(target=launcher, args=(mode, coin)).start() + threading.Thread(target=launcher, args=(mode, coin, brain)).start() return True \ No newline at end of file diff --git a/user_data/strategies/Strategy004.py b/user_data/strategies/Strategy004.py index ef0b6b87f..a5778d526 100644 --- a/user_data/strategies/Strategy004.py +++ b/user_data/strategies/Strategy004.py @@ -180,8 +180,9 @@ class Strategy004(IStrategy): """ mode = "test" coin = pair.split("/")[0] + brain = "Freq_" + self.__class__.__name__ if IS_BACKTEST: - threading.Thread(target=back_tester, args=(current_time, coin)).start() + threading.Thread(target=back_tester, args=(current_time, coin, brain)).start() else: - threading.Thread(target=launcher, args=(mode, coin)).start() + threading.Thread(target=launcher, args=(mode, coin, brain)).start() return True diff --git a/user_data/strategies/util.py b/user_data/strategies/util.py index 5e0bb60ee..14bb0c71e 100644 --- a/user_data/strategies/util.py +++ b/user_data/strategies/util.py @@ -4,8 +4,8 @@ IS_BACKTEST = False EXECUTION_PATH = "/root/workspace2/execution/" -def launcher(mode, coin): - subprocess.call("python3 "+EXECUTION_PATH+"launcher.py " + mode + " " + coin, shell=True) +def launcher(mode, coin, brain): + subprocess.call("python3 "+EXECUTION_PATH+"launcher.py " + mode + " " + coin + " " + brain, shell=True) -def back_tester(date_time, coin): - subprocess.call("python3 "+EXECUTION_PATH+"back_tester.py " + date_time + " " + coin, shell=True) +def back_tester(date_time, coin, brain): + subprocess.call("python3 "+EXECUTION_PATH+"back_tester.py " + date_time + " " + coin + " " + brain + "0.45 3", shell=True)