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 3b11459a38
commit 9e71d8a75d
3 changed files with 46 additions and 44 deletions

View File

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