Rajandran R Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in)

How to Install Quantopian Zipline in Windows

1 min read

Quantopian logo

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

Zipline comes with “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 Yahoo Finance too. You can get more info about Zipline here

Installation Guidelines for Setting up Python for the First time

 
How to Install PIP and Guidelines for Setting up Quantopian Zipline and its Dependencies

List of Required Dependencies

1)NumPy is a fundamental package needed for scientific computing with Python
2)SciPy is software for mathematics, science, and engineering.
3)Pandas is a cross-section and time series data analysis toolkit.
4)IPython is an interactive computing environment.
5)TA-Lib is a wrapper for the TA-LIB Technical Analysis Library.
6)Scikit-learn integrates classic machine learning algorithms.
7)Statsmodels provides classes and functions for the estimation of statistical models.
8)Zipline is a pythonic algotrading library.

Installation of TA-Lib, Scikit-learn, Statsmodels are not shown in the video for time constratint and you can download all the above Python Library Windows binaries here. And Zipline installation can be done using direct pip command.

pip install zipline

Other Dependencies which Come with Zipline Installation

1)Logbook
2)pytz
3)requests
4)six
5)python-dateutil

Dependencies for IPython and Matplotlib Installation

pyzmp, jinja2, tornado,pyparsing are some of the dependencies which are required for running IPython and you can use the pip command to install it.

pip install pyzmq
pip install jinja2
pip install tornado
pip install pyparsing

Once the dependencies are installed go to Windows Powershell and enter to start IPython Notebook

ipython notebook –pylab inline

In the next video will try to come up with few more concepts on how to use quantiopian zipline in IPython Notebook Interactive computing environment.

Rajandran R Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in)

[Live Coding Webinar] Build Your First Trading Bridge for…

In this course, you will be learning to build your own trading bridge using Python. This 60-minute session is perfect for traders, Python enthusiasts,...
Rajandran R
1 min read

How to Place Orders Concurrently using ThreadPoolExecutor – Python…

Creating concurrent orders is essential for active traders, especially those handling large funds, as it allows for executing multiple trade orders simultaneously, thereby maximizing...
Rajandran R
2 min read

Host your Python Flask Web Application using pyngrok and…

Ngrok offers several significant advantages for developers, especially when it comes to testing applications or hosting machine learning models. Ngrok allows you to expose...
Rajandran R
1 min read

4 Replies to “How to Install Quantopian Zipline in Windows”

  1. hi

    can we have same type of vedio in perl ?
    i was a bit familiar with perl.python / jython never tried.

    this python can have a quandle package for data.can you extend this demo upto that level also?

    thx
    sayantan

    [NB:- i used to scare with its name as it is name of some reptile ]

    1. There are no much of open source libraries for a Backtesting Engine in Perl. Most of the Quant based development works happened with Python/R and there is one With .Net too (Quantconnect) where you can play around with quant algorithms.

  2. hi

    2ndly the komodo IDE is not free.we need a proper IDE.
    I can not remember the support matrix of netbeans although.
    but python/perl is very hectic with such stuff. tried before 2009.

    thx
    sayantan

    1. Why you need to go with Komodo IDE when you are able to solve with Ipython? Moreoever the license is free for open source lovers when comes to Komodo IDE too.

      Rajandran R

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More