olmar.py example gives me AttributeError: 'TradingAlgorithm' object has no attribute 'symbol'

98 views
Skip to first unread message

Ivan Chee

unread,
Jun 22, 2015, 7:19:23 PM6/22/15
to zip...@googlegroups.com

I get this error:
  File "P:/pp/agency/p4/ichee/pc/rv/olmar.py", line 27, in initialize
    algo.sids = [algo.symbol(symbol) for symbol in algo.stocks]
AttributeError: 'TradingAlgorithm' object has no attribute 'symbol'

Can anyone advise on how I should get past this?

thanks
Ivan

James Kirk

unread,
Jun 23, 2015, 10:20:56 AM6/23/15
to zip...@googlegroups.com
Hi Ivan,

Are you running the algo with the newest version of Zipline? (HEAD of the Master branch)? 

-James
Reply all
Reply to author
Forward
0 new messages