Hello
I am testing the pandas datareader together with the dual_moving_average-example (please see attached example):
data=DataReader( 'AAPL' , 'yahoo' , start= pd.datetime(1999, 1, 1, 0, 0, 0, 0, pytz.utc))
Unfortunately I get this error message:
Error message
====================================================================================================
Traceback (most recent call last):
File "dual_moving_average_pandas.py", line 77, in <module>
results = dma.run(data)
File "build\bdist.win32\egg\zipline\algorithm.py", line 186, in run
File "build\bdist.win32\egg\zipline\utils\factory.py", line 114, in create_trading_environment
File "build\bdist.win32\egg\zipline\finance\trading.py", line 86, in __init__
File "datetime.pyx", line 405, in pandas.lib._Timestamp.__richcmp__ (pandas\src\tseries.c:31147)
File "datetime.pyx", line 455, in pandas.lib._Timestamp._assert_tzawareness_compat (pandas\src\tseries.c:31754)
Exception: Cannot compare tz-naive and tz-aware timestamps
Compilation exited abnormally with code 1 at Thu Dec 13 21:18:52
Does anyone have a hint what I am doing wrong?
Best Regards
Fab