Questions tagged [zipline]

Zipline is a financial backtester for trading algorithms written in Python.

Zipline is a financial backtester for trading algorithms written in Python.The system is fundamentally event-driven and a close approximation of how live-trading systems operate.

http://zipline.io

149 questions
0
votes
1 answer

Zipline in Ubuntu - Install error

So i am trying to install zipline, and i am getting an error i don't know how to handle. Firstly i run the following commands: virtualenv -p python3.5 zipline source /zipline/bin/activate Then as the guide suggests sudo apt-get install…
Steffen Hvid
  • 187
  • 1
  • 10
0
votes
2 answers

Zipline Error: AttributeError: 'NoneType' object has no attribute 'index'

I'd like to automate my manual trading strategies. However, for the beginning, I tried to reproduce Zipline's simple example of buying Apple stocks. I struggled running the algorithm with run_algorithm(). When I was trying to run the 'dual moving…
user8619348
0
votes
1 answer

Panel constructor not properly called

I have code as following: import pandas as pd import numpy as np import datetime from datetime import datetime from datetime import timedelta import pytz start_date = '2015-01-01' end_date = '2017-09-15' def data_symbol(): …
Furqan Hashim
  • 1,304
  • 2
  • 15
  • 35
0
votes
2 answers

Ingesting data into zipline

I want to use Zipline, but Zipline does not financial data that I need. Now to make my my own data bundle I went through the following link: http://www.zipline.io/bundles.html From what I understood I passed the following command on my ubuntu…
Furqan Hashim
  • 1,304
  • 2
  • 15
  • 35
0
votes
2 answers

Error in installing zipline in Python 3.4

I need your help to install zipline. I am beginner in Python coding but I faced with huge barrier now... I tried to zipline in my python and I followed below process. my python version is 3.6 but zipline supports 2.7 and 3.4. So I installed 3.4…
0
votes
0 answers

python 2.7 on windows 10 with zipline

What is the best way to install python 2.7 on windows 10 with zipline for stock trading I have downloaded it several way and I can not get zipline to work. I have tried for 14 days and I finally crashed my mbr and had to do a reinstall of windows…
0
votes
1 answer

Can't import zipline.transforms

I'm trying to import zipline.transforms, but the output message says No module named transforms. I'm using python2.7 and downloaded zipline via conda. from zipline.transforms import batch_transforms ImportErrorTraceback (most recent call…
Kann7
  • 63
  • 1
  • 4
0
votes
1 answer

Running zipline causes urlopen error [Errno 11001] getaddrinfo failed

I am trying to run the zipline buyapple.py example as described here through terminal: zipline run -f ../../zipline/examples/buyapple.py --start 2000-1-1 --end 2014-1-1 -o buyapple_out.pickle But it causes the following error: request.py", line…
sunwarr10r
  • 4,420
  • 8
  • 54
  • 109
0
votes
2 answers

pip install zipline fails on Windows 10

I can't install zipline on Windows 10 with Python 3.6. I tried it with Pycharm and the terminal, both fail with this error message: Command "python setup.py egg_info" failed with error code 1 in C:...\AppData\Local\Temp\pip-build-x6gaykzm\zipline\ I…
sunwarr10r
  • 4,420
  • 8
  • 54
  • 109
0
votes
1 answer

Where is the python code for the methods used for zipline?

I'm quite a beginner to Python but in java, you normally have these imports showing exactly where the objects are coming from. For example, the import statement below tells me the SpringBootApplication object comes directly from the Spring Boot…
Simon
  • 19,658
  • 27
  • 149
  • 217
0
votes
3 answers

Using quantopian for data analysis

I want to know were Quantopian gets data from? If I want to do an analysis on a stock market other than NYSE, will I get the data? If not, can I manually upload the data so that I can run my algorithms on it.
user7616021
0
votes
1 answer

zipline error KeyError:

When I try to execute a simple crossover strategy algorithm outside quantopian framework using zipline, I get the following error. KeyError: This is a simple crossover strategy where 50-100 day moving averages…
abhi_phoenix
  • 387
  • 1
  • 5
  • 19
0
votes
1 answer

No module named zipline (Python 64 bit and Windows 64 bit)

I am unable to use Zipline via import zipline as zp as I get the following error No module named zipline I also checked python installation on my windows machine and found it is 64 bit import platform platform.architecture() and i get the…
abhi_phoenix
  • 387
  • 1
  • 5
  • 19
0
votes
1 answer

Can I use zipline gem to download from s3 without model associations with paperclip or carrierwave

I want to allow my user to download a bundle of files that are stored on s3 using the zipline gem. The files are already hosted on an s3 server but they aren't there as part of a paperclip or carrierwave attachment in my app. Will I need to create…
0
votes
1 answer

I can't replicate the code from book "Mastering pandas for Finance" - Zipline - KeyError: 'Cost'

I'm reading the book "Mastering pandas for Finance". Up until where the Zipline module is involved all was very smooth and interesting, but now when I need to recreate the books code in the Jupyter Notebook, I'm getting and error from Zipline…
kuatroka
  • 562
  • 7
  • 18
1 2 3
9
10