Merge pull request #3 from tef-github/fix2

fixed passing values issue
This commit is contained in:
tef-github 2022-01-21 06:27:36 -05:00 committed by GitHub
commit 3baa7d9268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,13 @@
import subprocess import subprocess
IS_BACKTEST = False IS_BACKTEST = False
WORKSPACE_PATH = "workspace2" if IS_BACKTEST else "workspace"
EXECUTION_PATH = "/root/workspace/execution/" EXECUTION_PATH = "/root/" + WORKSPACE_PATH + "/execution/"
def launcher(mode, coin, brain): def launcher(mode, coin, brain):
subprocess.call("python3 "+EXECUTION_PATH+"launcher.py " + mode + " " + coin + " " + brain, shell=True) subprocess.call("python3 "+EXECUTION_PATH+"launcher.py " + mode + " " + coin + " " + brain, shell=True)
def back_tester(date_time, coin, brain): def back_tester(date_time, coin, brain):
date_time = date_time.replace(" ", "#") date = str(date_time)
subprocess.call("python3 "+ EXECUTION_PATH + "back_tester.py " + date_time + " " + coin + " " + brain + "0.45 3", shell=True) date = date.replace(" ", "#")
subprocess.call("python3 "+ EXECUTION_PATH + "back_tester.py " + date + " " + coin + " " + brain + " 0.45 3", shell=True)