Python & Quantopian Zipline: Installation in Windows

Introduction

Python:
Python has emerged as one of the most popular languages for programmers in financial trading, due to its ease of availability, user-friendliness, and the presence of sufficient scientific libraries like Pandas, NumPy, PyAlgoTrade, Pybacktest and more.

Python serves as an excellent choice for automated trading when the trading frequency is low/medium, i.e. for trades which do not last less than a few seconds. It has multiple APIs/Libraries that can be linked to make it optimal, cheaper and allow greater exploratory development of multiple trade ideas.

Quantopian Zipline

Quantopian, is a Boston-based algorithmic trading platform and Zipline is a Pythonic algorithmic trading library(Open Source). Quantiopian Zipline is currently used in production as the backtesting engine powering Quantopian.

Zipline comes “batteries included” as many common statistics like moving average and linear regression can be readily accessed from within a user-written algorithm. Zipline supports data import from Google Finance too. You can get more info about Zipline her.

 Step I
Download & install Python 3.4
https://www.python.org/download/releases/3.4.0/

Then Go to Advanced System Setting. Create new System Variable "PythonPath"
C:\Python27\;C:\Python27\Scripts\;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;c:\Program Files (x86)\AMD APP\bin\x86_64;c:\Program Files (x86)\AMD APP\bin\x86;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Universal Extractor;C:\Program Files (x86)\Universal Extractor\bin






Step II

Download & install Anaconda:
https://www.anaconda.com/download/

I have installed Anaconda 4.4.0

Step III: 

Install PiP. then go to "Advanced System Setting" --> create New variable
"PYTHON_HOME" Path: c:/Python34\Scripts.

write below code in Anaconda Command Prompt.

conda create -n zipline-env -c quantopian zipline python=3.4
 
and Hit "enter".
 
Done.
 
 
Hope above post help to others specially non-programmers. 
 
Any Feedback or comments are highly welcome.
 
Regards 
 

Comments