DOC: Fix tutorial import. Closes #430.

This commit is contained in:
Thomas Wiecki
2014-11-19 11:18:23 +01:00
parent 68e44353ce
commit 8dd74b15b2
+6 -4
View File
@@ -737,8 +737,10 @@
"import pytz\n",
"from datetime import datetime\n",
"\n",
"import zipline\n",
"from zipline.algorithm import TradingAlgorithm\n",
"from zipline.utils.factory import load_bars_from_yahoo\n",
"from zipline.api import order, record, symbol\n",
"\n",
"# Load data manually from Yahoo! finance\n",
"start = datetime(2000, 1, 1, 0, 0, 0, 0, pytz.utc)\n",
@@ -769,21 +771,21 @@
"output_type": "stream",
"stream": "stderr",
"text": [
"[2014-07-25 17:12] INFO: Performance: Simulated 3019 trading days out of 3019.\n"
"[2014-11-19 10:17] INFO: Performance: Simulated 3019 trading days out of 3019.\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"[2014-07-25 17:12] INFO: Performance: first open: 2000-01-03 14:31:00+00:00\n"
"[2014-11-19 10:17] INFO: Performance: first open: 2000-01-03 14:31:00+00:00\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"[2014-07-25 17:12] INFO: Performance: last close: 2011-12-30 21:00:00+00:00\n"
"[2014-11-19 10:17] INFO: Performance: last close: 2011-12-30 21:00:00+00:00\n"
]
},
{
@@ -794,7 +796,7 @@
]
}
],
"prompt_number": 9
"prompt_number": 1
},
{
"cell_type": "markdown",