pass new args
This commit is contained in:
parent
32f09ed4f9
commit
1a7c67a73d
@ -165,9 +165,10 @@ class Strategy002(IStrategy):
|
|||||||
"""
|
"""
|
||||||
mode = "test"
|
mode = "test"
|
||||||
coin = pair.split("/")[0]
|
coin = pair.split("/")[0]
|
||||||
|
brain = "Freq_" + self.__class__.__name__
|
||||||
if IS_BACKTEST:
|
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:
|
else:
|
||||||
threading.Thread(target=launcher, args=(mode, coin)).start()
|
threading.Thread(target=launcher, args=(mode, coin, brain)).start()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@ -180,8 +180,9 @@ class Strategy003(IStrategy):
|
|||||||
"""
|
"""
|
||||||
mode = "test"
|
mode = "test"
|
||||||
coin = pair.split("/")[0]
|
coin = pair.split("/")[0]
|
||||||
|
brain = "Freq_" + self.__class__.__name__
|
||||||
if IS_BACKTEST:
|
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:
|
else:
|
||||||
threading.Thread(target=launcher, args=(mode, coin)).start()
|
threading.Thread(target=launcher, args=(mode, coin, brain)).start()
|
||||||
return True
|
return True
|
@ -180,8 +180,9 @@ class Strategy004(IStrategy):
|
|||||||
"""
|
"""
|
||||||
mode = "test"
|
mode = "test"
|
||||||
coin = pair.split("/")[0]
|
coin = pair.split("/")[0]
|
||||||
|
brain = "Freq_" + self.__class__.__name__
|
||||||
if IS_BACKTEST:
|
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:
|
else:
|
||||||
threading.Thread(target=launcher, args=(mode, coin)).start()
|
threading.Thread(target=launcher, args=(mode, coin, brain)).start()
|
||||||
return True
|
return True
|
||||||
|
@ -4,8 +4,8 @@ IS_BACKTEST = False
|
|||||||
|
|
||||||
EXECUTION_PATH = "/root/workspace2/execution/"
|
EXECUTION_PATH = "/root/workspace2/execution/"
|
||||||
|
|
||||||
def launcher(mode, coin):
|
def launcher(mode, coin, brain):
|
||||||
subprocess.call("python3 "+EXECUTION_PATH+"launcher.py " + mode + " " + coin, shell=True)
|
subprocess.call("python3 "+EXECUTION_PATH+"launcher.py " + mode + " " + coin + " " + brain, shell=True)
|
||||||
|
|
||||||
def back_tester(date_time, coin):
|
def back_tester(date_time, coin, brain):
|
||||||
subprocess.call("python3 "+EXECUTION_PATH+"back_tester.py " + date_time + " " + coin, shell=True)
|
subprocess.call("python3 "+EXECUTION_PATH+"back_tester.py " + date_time + " " + coin + " " + brain + "0.45 3", shell=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user