backtesting.py
zipline
Our great sponsors
backtesting.py | zipline | |
---|---|---|
25 | 14 | |
4,825 | 17,060 | |
- | 0.8% | |
0.0 | 0.0 | |
about 1 month ago | 3 months ago | |
Python | Python | |
GNU Affero General Public License v3.0 | Apache License 2.0 |
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.
backtesting.py
-
Python developers -- what broker and api do you use?
We chose backtesting.py for a backtesting framework. There are several to choose from but that one seems like the most well-supported and actively worked on at the moment.
-
How do you backtest with IBKR Data?
The process might vary a bit based on what you want to trade, but I've had some success with back-testing by using the IBKR API to download historical data for the stocks I want, then plugging in that data to some other back-testing framework, like https://kernc.github.io/backtesting.py/
-
Anyone here built backtest/alpha visualization/exploration dashboard(s)?
https://kernc.github.io/backtesting.py/ offers nice way to zoom backtesting. It has some bugs, but good for visualization.
-
What platform do you use to backtest historical millisecond tick data?
Are there any free trading platform options to import and backtest millisecond historical tick data? Do you use something like https://github.com/kernc/backtesting.py and then translate algorithms into mql4/5 or pinescript?
- GitHub - kernc/backtesting.py: Backtest trading strategies in Python.
-
Where/how do I “import backtesting” and other programs? TY!
But even if you don't know that, you can Google the library to find its documentation and installation instructions - in this case, here where it does indeed tell you to run pip install backtesting.
-
What are your 2022 success stories? It's been a long year. You deserve to brag.
Sure. My strategy is actually very simple using common indicators like MACD and RSI. Most of the code is actually based on https://github.com/kernc/backtesting.py and I use it to check whether I should buy or sell on a particular day. Hope this helps!
- Backtesting.py - interpreting the generated chart
- How hard would this be?
-
Bot development best practices for making backtesting easier?
I'm leaning towards using the backtesting.py library, but from the example on their main page, it looks like you need to program your strategy using their library?
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.
What are some alternatives?
backtrader - Python Backtesting library for trading strategies
vectorbt - Find your trading edge, using the fastest engine for backtesting, algorithmic trading, and research.
pyfolio - Portfolio and risk analytics in Python
PyTrader-python-mt4-mt5-trading-api-connector-drag-n-drop - Open Source Trading Strategies & End-to-End solution connecting Metatrader4 & Metatrader5 💹 with Python with a simple drag and drop EA. Fully tested bug free & efficient solution for live & paper trading⭐ Full Documentation ready. Lightweight, efficient and stable implementation 🔥 [UnavailableForLegalReasons - Repository access blocked]
backtrader - Python Backtesting library for trading strategies [Moved to: https://github.com/mementum/backtrader]
ccxt - A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
PyThalesians - Python library for backtesting trading strategies & analyzing financial markets (formerly pythalesians)
lumibot - Backtesting and Trading Bots Made Easy for Crypto, Stocks, Options, Futures, FOREX and more
quantstats - Portfolio analytics for quants, written in Python
gym-anytrading - The most simple, flexible, and comprehensive OpenAI Gym trading environment (Approved by OpenAI Gym)