Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
I am confused how to use Quantopian and Zipline

Hi everyone,

I am just in the website. I admire people how they created bunch of cool algorithms here. I need your help to be able to write my own algorithm and backtest it.
I am familiar with Python environment and syntax. I also have finance background.
I just started to learn how to use zipline and Quantopian. When I read and search for documents and tutorials I got confused how to develop my algorithm. When I watched sentdex tutorial on Youtube, which is a great work, I realized the codes to create new algorithm changed. Now I see pipeline at the top of notebook. At this point I am confused about what to use or learn. Because I would like to develop my algorithm also on my IDE. The reason behind that I will try to test my strategy for other countries' equity markets. So I will have my own dataset besides data that Quantopian provides.

I would appreciate for any help.
Regards,

4 responses

Hey Gerard-

I actually just migrated the Sentdex algorithms to Quantopian 2. I posted the first one earlier today. Tomorrow I'll post the one based on fundamental data, and then the machine-learning one. In my posts I'll highlight the major differences between the algorithms in 'Quantopian 2' syntax vs how he does them. (Note that you can click on "Clone Algorithm" in my post so that you can play with it yourself.

I would recommend going through the Getting Started Tutorial first, and then watch the Sentdex videos. Have you already gone through that tutorial?

Hey Michael,

Thanks for highlighting the point 'Quantopian 2'. I wasn't aware of this evolution. I will follow your tutorials to learn.
I have completed Getting Started Tutorial but Sentdex videos. I will complete to watch Sentdex videos today.
Can I develope my algorithms on Zipline at the same time? Is the Zipline same with Quantopian 2? Let's say I want to develop my system on my IDE by using Zipline and after development process I want to copy the code that I write on Zipline and paste it here on Quantopian and test its performance.

Hi Gerard,
I have created the following framework to develop under zipline, and effortlessly generate a single Quantopian 2 script from multiple files designed in Zipline, using the Spyder IDE: https://github.com/florentchandelier/zipline2quantopian

My objective was 2 folds: (1) multiple files development under zipline from which to automatically generate a single Quantopian script, and (2) enable multiple strategies to be managed in a single script.

I have some toy examples provided in the same repo.

This is what I used everyday and works well ... I'm live for the last 18 months.

Hi Florent,

Thanks for help. The documentation looks really good in your repo. I will definetely use it. Keep it up with good work!
After getting familiar with syntax in Quantopian I will start to use Zipline. I guess this would make easier to understand the whole concept.

I would like to thank you to community also. Great people, great environment.