mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-19 11:22:06 +08:00
1.3 KiB
1.3 KiB
Zipline 0.6.2 Release Notes
Highlights
-
Command line interface to run algorithms directly.
-
IPython Magic %%zipline that runs algorithm defined in an IPython notebook cell.
Enhancements (ENH)
-
CLI: Adds a CLI and IPython magic for zipline. PR325
Example:
python run_algo.py -f dual_moving_avg.py --symbols AAPL --start 2011-1-1 --end 2012-1-1 -o dma.pickleGrabs the data from yahoo finance, runs the file dual_moving_avg.py (and looks for
dual_moving_avg_analyze.pywhich, if found, will be executed after the algorithm has been run), and outputs the perfDataFrametodma.pickle. -
IPython magic command (at the top of an IPython notebook cell). PR325
%%zipline --symbols AAPL --start 2011-1-1 --end 2012-1-1 -o perf
> Does the same as above except instead of executing the file looks for the algorithm in the cell and instead of outputting the perf df to a file, creates a variable in the namespace called perf.
Bug Fixes (BUG)
- Fix alignment of trading days and open and closes in trading environment. PR331