Jan-20-2021, 07:09 AM
(This post was last modified: Jan-20-2021, 07:10 AM by Evalias123.)
After a day and a half rasslin' with getting zipline to work, let me tell you, that was fun, got a whole bunch of these:
I'd post the code that generated it but it wasn't written by me, I figure it would be considered proprietary but if no one can tell me what's going on here I may have to, not that the program is a marvelous money-making machine it's a simple dang moving average and chart. Let me know anything you guys can think of.
Error:---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-1-e7c21329eab2> in <module>()
56 handle_data=handle_data,
57 capital_base=10000,
---> 58 data_frequency = 'daily', bundle='quandl'
59 )
C:\Users\M S\anaconda3\envs\env_zipline\lib\site-packages\zipline\utils\run_algo.py in run_algorithm(start, end, initialize, capital_base, handle_data, before_trading_start, analyze, data_frequency, bundle, bundle_timestamp, trading_calendar, metrics_set, benchmark_returns, default_extension, extensions, strict_extensions, environ, blotter)
407 environ=environ,
408 blotter=blotter,
--> 409 benchmark_spec=benchmark_spec,
410 )
411
C:\Users\M S\anaconda3\envs\env_zipline\lib\site-packages\zipline\utils\run_algo.py in _run(handle_data, initialize, before_trading_start, analyze, algofile, algotext, defines, data_frequency, capital_base, bundle, bundle_timestamp, start, end, output, trading_calendar, print_algo, metrics_set, local_namespace, environ, blotter, benchmark_spec)
201 trading_calendar=trading_calendar,
202 capital_base=capital_base,
--> 203 data_frequency=data_frequency,
204 ),
205 metrics_set=metrics_set,
C:\Users\M S\anaconda3\envs\env_zipline\lib\site-packages\zipline\finance\trading.py in __init__(self, start_session, end_session, trading_calendar, capital_base, emission_rate, data_frequency, arena)
36 arena='backtest'):
37
---> 38 assert type(start_session) == pd.Timestamp
39 assert type(end_session) == pd.Timestamp
40
AssertionError:
WTF does any of that even mean? Am I supposed to go back and learn from start to scratch how to code python from indexes arrays and onwards to be able to run a simple freaking program, for 3-6 months? I posted something earlier re: Installing modules, I'm not giving up yet but this is the first program to use zipline and it's sitting there laughing at me. Running this in my 3.5 env, it was "suggested" to have nb_conda installed However there is currently no version that I can see that is compatible with 3.5, and there's no version of zipline that seems to work with anything besides this little 3.5 env I set up, 3.6 was supposed to work but no, it didn't.I'd post the code that generated it but it wasn't written by me, I figure it would be considered proprietary but if no one can tell me what's going on here I may have to, not that the program is a marvelous money-making machine it's a simple dang moving average and chart. Let me know anything you guys can think of.