BLD: improved stats display to better support multiple assets per algo

This commit is contained in:
fredfortier
2017-12-07 20:26:37 -05:00
parent 87428b299f
commit 54dcc58ee8
4 changed files with 109 additions and 40 deletions
+4 -5
View File
@@ -97,10 +97,9 @@ def handle_data(context, data):
# the record() method to save it. This data will be available as
# a parameter of the analyze() function for further analysis.
record(
price=price,
volume=current['volume'],
price_change=price_change,
rsi=rsi[-1],
volume=(context.market, current['volume']),
price_change=(context.market, price_change),
rsi=(context.market, rsi[-1]),
cash=cash
)
@@ -278,6 +277,6 @@ if __name__ == '__main__':
algo_namespace=NAMESPACE,
base_currency='eth',
live_graph=False,
simulate_orders=False,
simulate_orders=True,
stats_output=None
)