Scroll AI Now

Open source repo

machine-learning-for-trading

Code for Machine Learning for Trading, 3rd edition, from data sourcing to live execution.

By stefan‑jansen · MIT · Jupyter Notebook · ★ 22,188

View on GitHubProject siteMore repos in the app

What it is

machine-learning-for-trading is an open source automation tool with AI, published on GitHub by stefan‑jansen and written mainly in Jupyter Notebook. Its maintainers file it under algorithmic‑trading, artificial‑intelligence, backtesting, data‑science.

In its own words on GitHub: “Code for Machine Learning for Trading, 3rd edition, from data sourcing to live execution.”

Who it is for

Operators and small teams who want repeat work to run by itself, such as moving data between apps, sorting email or making reports, with AI steps in the middle.

How to start

  1. Open the repo and read the README from the top, then the license file.
  2. It is mostly notebooks, so you can open them in Jupyter or Google Colab and run them cell by cell.
  3. Its project site, ml4trading.io, has documentation and sometimes a hosted version you can try before you install anything.
  4. Try it first in a test project or a sandbox, and give it only the keys and folders it needs.
  5. Pin a release or a commit, so an update does not change how it behaves without you noticing.

Why it is on our list

The facts

LicenseMIT
What the license allowsYou can use, change and ship it, including in paid products. Keep the copyright notice.
Main languageJupyter Notebook
Stars22,188
Topicsalgorithmic‑trading, artificial‑intelligence, backtesting, data‑science, deep‑learning
CreatedMay 9, 2018
Last checkedDecember 2, 2026

Before you use it

Are you the author?

This repo has its own page on Scroll AI Now.
Show it in your README with the badge below.
It links readers back to this page. How the badge works

Featured on Scroll AI Now

Markdown
[![Featured on Scroll AI Now](https://scrollainow.com/badge/featured.svg)](https://scrollainow.com/repos/stefan-jansen-machine-learning-for-trading/)
HTML
<a href="https://scrollainow.com/repos/stefan-jansen-machine-learning-for-trading/"><img src="https://scrollainow.com/badge/featured.svg" alt="Featured on Scroll AI Now" height="28"></a>

Related repos

All curated AI repos · Agent skills

Try it in your browser

Today's AI news, one card per swipe.
Free to start.

Open the web app