Py

PyBroker – Algotrading in Python with Machine Learning

Hacker News

PyBroker – Algotrading in Python with Machine Learning

Hello, I am excited to share PyBroker with you, a free and open-source Python framework that I developed for creating algorithmic trading strategies, including those that utilize machine learning. With PyBroker, you can easily develop and fine-tune trading rules, build powerful ML models, and gain valuable insights into your strategy's performance. Some of the key features of PyBroker include: - A super-fast backtesting engine built using NumPy and accelerated with Numba. - The ability to create and execute trading rules and models across multiple instruments with ease. - Access to historical data from Alpaca and Yahoo Finance. - The option to train and backtest models using Walkforward Analysis, which simulates how the strategy would perform during actual trading. The basic concept behind Walkforward Analysis is that it splits your historical data into multiple time windows and then "walks forward" in time in the same way that the strategy would be executed and retrained on new data in the real world. Walkforward Analysis also helps overcome the problem of data mining and overfitting by testing your strategy on out-of-sample data. - More reliable trading metrics that use randomized bootstrapping to provide more accurate results. PyBroker calculates metrics such as Sharpe, Profit Factor, and max drawdown using bootstrapping, which randomly samples your strategy's returns to simulate thousands of alternate scenarios that could have happened. This allows you to test for statistical significance and have more confidence in the effectiveness of your strategy. - Support for strategies that use ranking and flexible position sizing. - Caching of downloaded data, indicators, and models to speed up your development process. - Parallelized computations that enable faster performance. - Additionally, I have written tutorials on the framework and some general algorithmic trading concepts that can be found on https://www.pybroker.com . All of the code is available on Github using the link above. Thanks for reading!

Share card

Actual performance

70points
15comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: para, ios, including · Missing: supports, reddit linkedin, podcasting
96%96% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsStrong engagement from HN community · Strong signals: excited, lua, ide · Missing: https docs, just released, exist
67%67% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Product HuntOn track for Day 1 leaderboard · Strong signals: mac, model, new · Missing: agents, macos, agent
66%66% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
AppSumoStrong fit for a featured deal · Missing: plus, platform, intuitive
60%60% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: ios, trading, way · Missing: mobile apps, personal, entrepreneurs
49%49% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: profit · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: real world · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Re
Relearning basic machine learning in Python54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Relearning basic machine learning in Python

Hacker News1
De
Defiantly – machine learning in Python59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Defiantly – machine learning in Python

Hacker News2
Py
Python Logger for Deployed Machine Learning Models52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Python Logger for Deployed Machine Learning Models

Hacker News2
Py
Python Machine Learning – A Free Machine Learning Course59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Python Machine Learning – A Free Machine Learning Course

Hacker News2
Py
Python Machine Learning – A Crash Course67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Python Machine Learning – A Crash Course

Hacker News350
Le
Learning Machine Learning with Python-A Free Crash Course for Everybody67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Learning Machine Learning with Python-A Free Crash Course for Everybody

Hacker News1
Bu
Build and share machine learning apps with Gradio in Python64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Build and share machine learning apps with Gradio in Python

Hacker News1
Bu
Build Machine Learning Web-Service with Python and Django50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Build Machine Learning Web-Service with Python and Django

Hacker News67
Pa
Pairmaker: Chatroulette + Machine Learning56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pairmaker: Chatroulette + Machine Learning

Hacker News3
go
golearn – Machine Learning for Go56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

golearn – Machine Learning for Go

Hacker News4