mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-25 13:10:33 +08:00
BLD: improved stats display to better support multiple assets per algo
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user