This commit is contained in:
Torma Kristóf 2020-11-20 00:07:19 +01:00
parent c25d7fb13e
commit 3536ff67da
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -61,11 +61,13 @@ class Sim:
results = {} results = {}
folder = 'Strats' folder = 'Strats'
sys.path.append(folder) sys.path.append(folder)
strats = os.listdir(folder) strats = os.listdir(folder)
strats_py = [x.split('.')[0] for x in strats if x.split('.')[-1] == "py"] strats_py = [x.split('.')[0] for x in strats if x.split('.')[-1] == "py"]
# strats_py=['tut_mymy'] # strats_py=['tut_mymy']
for _ in range(10): for _ in range(10):
events = eg.event_gen(2000) events = eg.event_gen(2000)
""" """
@ -94,7 +96,9 @@ for _ in range(10):
results[strat] = 0 results[strat] = 0
results[strat] += sim.budget results[strat] += sim.budget
for key in results: for key in results:
results[key] /= 10.0 results[key] /= 10.0
print(results) print(results)