dolgok
This commit is contained in:
parent
c25d7fb13e
commit
3536ff67da
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user