zipline
vectorbt
zipline | vectorbt | |
---|---|---|
14 | 6 | |
17,471 | 4,171 | |
0.8% | - | |
0.0 | 6.2 | |
7 months ago | about 1 month ago | |
Python | Python | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
zipline
- Ask HN: How to Get into Quantitative Trading?
-
Open source backtesting software
https://github.com/quantopian/zipline (event-driven)
-
10 FinTech APIs every Indian developer should bookmark
Zipline by Quantopian: An Open-Source tool for algorithmic trading. It is a platform for developing and testing quantitative trading strategies using Python.
-
Backtesting Engine Design Primers
For personal use only. I'm currently looking at QuantConnect's LEAN and Quantopian's Zipline (which hasn't seen any updates since 2020, presumably because Quantopian was dissolved).
-
[D] Doing my (bachelor) thesis on RL. Which topic do you like best?
(1) I remember there were decent libraries for this setting a while back. Maybe take a look at Quantopian/Zipline.
-
Best Backtesting Libraries (Python)
zipline – Zipline is a Pythonic algorithmic trading library. It is an event-driven system that supports both backtesting and live trading.
-
How to statistically compare the performance of two strategies?
I found two opensource tools 1. .https://github.com/quantopian/zipline Quantopian 2. https://analyzingalpha.com/backtrader-backtesting-trading-strategies backtrader
- Formula for slippage?
- Online Portfolio Selection - Research paper implementation and backtest
-
Best Backtesting software?
Some of the notable libraries in Python are backtesting.py, bt and zipline. Personally I like bt the most, as its tree model makes the most intuitive sense.
vectorbt
- Show HN: High-Frequency Trading and Market-Making Backtesting Tool with Examples
-
Is there any python libraries to backtest buy and sell signals with dates?
For exactly this I use this https://github.com/polakowo/vectorbt it’s really a powerful tool and you can tons of things with it. Recently the developer decided to maintain it but not adding new features, which from now on will be released on the pro version. However, the free version is still very valuable, incredibly fast and suitable for basic to intermediate tasks.
-
Why Building a Trading Algorithm is More Than Just the Algorithm - 3 Things
It’s super easy to get up and running with code. With the rise of data science as a field, datasets are far and wide. Accessible from just about any venue. Take a look at Kaggle, QuiverQuant, Yahoo Finance, or even directly from the brokerages and exchanges. Developers can easily download data directly as a .csv or .json and quickly get up and running by utilizing frameworks like backtesting.py or vectorbt. “Great, it seems like I can get up and running and I’ll have an awesome money making trading algorithm in no time”.... unfortunately, wrong. Why is this wrong? Well, simulation is NOT the real world. The real world is not a CSV file—the real world is a stream of events. Cause and effect. The real world works in a fashion where new data comes in, you make a decision, and then you figure it out, not “I have all of this data, let me run this all through time and figure it out”. Indeed, the data sources that you get in real-time are almost completely different from the data sources you use in simulation. Rather than .csv you use WebSockets; rather than QuiverQuant you use APIs; rather than backtesting frameworks you use more robust, event driven packages. Without it, you’re stuck duplicating code, rewriting it into an event-based system, and ultimately using that to go into production, and who knows if your code is going to change along the way.
- Vectorbt – Find your trading edge
-
Repost with explanation - OOS Testing cluster
I second the idea of looking through software optimization, but there is no need to jump right to C. I would look at something like vectorbt. You get the speed of C running under the hood while staying in Python for your back testing code
-
Looking for active python backtesting framework
However, it's not the fastest framework. If you need speed, and are good with the data science tool chain in python and the concept of flattening loops into vectorized operations, check out vector-bt. I haven't gotten a chance to play with it yet, but I'm definitely going to as soon as I find some spare time. It seems like a great option with a nicely modernized approach.
What are some alternatives?
backtrader - Python Backtesting library for trading strategies
pyfolio - Portfolio and risk analytics in Python
backtesting.py - :mag_right: :chart_with_upwards_trend: :snake: :moneybag: Backtest trading strategies in Python.
backtrader - Python Backtesting library for trading strategies [Moved to: https://github.com/mementum/backtrader]
fast-trade - low code backtesting library utilizing pandas and technical analysis indicators
PyThalesians - Python library for backtesting trading strategies & analyzing financial markets (formerly pythalesians)
jesse - An advanced crypto trading bot written in Python
quantstats - Portfolio analytics for quants, written in Python
OctoBot - Open source crypto trading bot to automate crypto investments with ease.
qlib - Qlib is an AI-oriented quantitative investment platform that aims to realize the potential, empower research, and create value using AI technologies in quantitative investment, from exploring ideas to implementing productions. Qlib supports diverse machine learning modeling paradigms. including supervised learning, market dynamics modeling, and RL.
Alpaca-API - The Alpaca API is a developer interface for trading operations and market data reception through the Alpaca platform.