Refactoring backtesting to share the same eval function that the bot uses

This commit is contained in:
Jean-Baptiste LE STANG
2018-01-27 10:26:49 +01:00
parent 50402a7805
commit 9844634ac7
3 changed files with 46 additions and 44 deletions

View File

@@ -28,6 +28,7 @@ class Strategy(object):
if 'strategy' in config:
strategy = config['strategy']
else:
print(config)
strategy = self.DEFAULT_STRATEGY
# Load the strategy