def main_run(): cpu_num = 1 codes = stock.get_codes(stock.myenum.randn, cpu_num) #agl.startDebug() if agl.IsDebug(): codes = [jx.HCGD] exec(agl.Marco.IMPLEMENT_MULTI_PROCESS)
def test_strategy(): codes = stock.get_codes(flag=myenum.randn, n=4) cpu_num = 2 #codes = ['300434'] agl.startDebug() if agl.IsDebug(): codes = [jx.ZCKJ.b] #backtest_policy.MultiProcessRun(cpu_num, codes, Run, __file__) exec(agl.Marco.IMPLEMENT_MULTI_PROCESS)
def test_strategy(self): codes = stock.DataSources.getCodes() cpu_num = 5 agl.startDebug() if agl.IsDebug(): codes = [codes[0]] codes = [jx.XYCZ] codes = [jx.THS] #codes = [jx.LTGF.b] exec agl.Marco.IMPLEMENT_MULTI_PROCESS
def test_strategy(self): codes = stock.DataSources.getCodes() cpu_num = 5 codes = stock.get_codes(stock.myenum.randn, cpu_num * 2) agl.startDebug() if agl.IsDebug(): codes = [codes[0]] codes = [jx.XRSW] #codes = ['000001'] codes = [jx.THS] exec agl.Marco.IMPLEMENT_MULTI_PROCESS
def test_strategy(self): codes = stock.DataSources.getCodes() cpu_num = 5 agl.startDebug() if agl.IsDebug(): codes = [codes[0]] codes = [jx.XYCZ] codes = [jx.LTGF.b] codes = [jx.THS] #key = agl.getModuleName(__file__)+'.selectcodes' #myredis.delkey(key) #codes = myredis.createRedisVal(key, lambda : SelectCodes()).get() #codes = myredis.createRedisVal(key, lambda: select_code2()).get() #backtest_policy.MultiProcessRun(cpu_num, codes, Run, __file__) exec agl.Marco.IMPLEMENT_MULTI_PROCESS