mirror of
https://github.com/wassname/catalyst.git
synced 2026-09-12 12:12:04 +08:00
BLD: modified algo for testing
This commit is contained in:
@@ -29,25 +29,25 @@ def handle_data(context, data):
|
|||||||
print(e)
|
print(e)
|
||||||
|
|
||||||
|
|
||||||
# run_algorithm(
|
|
||||||
# capital_base=250,
|
|
||||||
# start=pd.to_datetime('2017-1-1', utc=True),
|
|
||||||
# end=pd.to_datetime('2017-10-22', utc=True),
|
|
||||||
# data_frequency='daily',
|
|
||||||
# initialize=initialize,
|
|
||||||
# handle_data=handle_data,
|
|
||||||
# analyze=None,
|
|
||||||
# exchange_name='bitfinex',
|
|
||||||
# algo_namespace='simple_loop',
|
|
||||||
# base_currency='btc'
|
|
||||||
# )
|
|
||||||
run_algorithm(
|
run_algorithm(
|
||||||
|
capital_base=250,
|
||||||
|
start=pd.to_datetime('2017-1-1', utc=True),
|
||||||
|
end=pd.to_datetime('2017-10-22', utc=True),
|
||||||
|
data_frequency='minute',
|
||||||
initialize=initialize,
|
initialize=initialize,
|
||||||
handle_data=handle_data,
|
handle_data=handle_data,
|
||||||
analyze=None,
|
analyze=None,
|
||||||
exchange_name='poloniex',
|
exchange_name='bitfinex',
|
||||||
live=True,
|
|
||||||
algo_namespace='simple_loop',
|
algo_namespace='simple_loop',
|
||||||
base_currency='eth',
|
base_currency='btc'
|
||||||
live_graph=False
|
|
||||||
)
|
)
|
||||||
|
# run_algorithm(
|
||||||
|
# initialize=initialize,
|
||||||
|
# handle_data=handle_data,
|
||||||
|
# analyze=None,
|
||||||
|
# exchange_name='poloniex',
|
||||||
|
# live=True,
|
||||||
|
# algo_namespace='simple_loop',
|
||||||
|
# base_currency='eth',
|
||||||
|
# live_graph=False
|
||||||
|
# )
|
||||||
|
|||||||
Reference in New Issue
Block a user