2/16/2016 This tutorial is out-dated, please view the new versions here: https://www.quantopian.com/posts/quantopian-tutorials
Welcome to the second lesson in the Quantopian Tutorial Series. In this lesson we extensively cover the universe of securities that will be in your algorithm, using fetcher to load in data to create your universe, and a portfolio rebalancing algorithm that uses schedule_function for minutely mode.
As a refresher, these videos covered the basics of the IDE.
Summary
We covered:
- Universe of Stocks: What actually belongs there and how you set your securities using multiple methods
- How to use Fetcher to set your Universe
- A daily rebalancing portfolio algorithm with schedule_function
Links
- Youtube: http://bit.ly/1swuNpW
- PDF Documentation and Guide: http://bit.ly/1Kvw03r
- First Quantopian Tutorial Series - Basics of the IDE: http://bit.ly/1wTmW7m
- Third Quantopian Tutorial Series - Basics of Fundamentals: http://bit.ly/16HhrNR
FEEDBACK
We're still building this out so I'd love to hear what you guys think. What was helpful? What wasn't helpful? What would you like to see next? Feel free to email us at [email protected] with your comments and suggestions.
** Credits to Jessica Stauth for writing up the algorithm found here
**EDIT:
On line 28 please use this new line instead:
symbols = [s.symbol for s in sids if s != 0] # instead of [s.symbol for s in sids]