machine-learning-for-trading

Code for Machine Learning for Algorithmic Trading, 2nd edition.

14 articles 18.1k View on GitHub ↗
14 articles
How to Use RNNs for Multivariate Time Series Prediction in Trading

Master multivariate time series prediction in trading using RNNs and LSTM or GRU layers. Learn to capture non-linear dependencies and improve your trading strategies with this practical guide.

how-to-guide
Jun 2, 2026
How to Implement Topic Modeling for Financial News: A Complete LDA Pipeline

Learn to implement topic modeling for financial news using LDA. Preprocess, vectorize, train, and visualize your results for actionable insights.

tutorial
Jun 2, 2026
How to Use BERT for Financial Text Sentiment Analysis: A Complete Guide

Learn to use BERT for financial text sentiment analysis. Fine-tune transformers on SEC filings or earnings calls for accurate insights. Complete guide available.

how-to-guide
Jun 2, 2026
How to Implement Autoencoders for Asset Pricing: A Complete Guide to Conditional Risk Factors

Implement autoencoders for asset pricing to extract conditional risk factors. Discover hidden data-driven factors by learning compressed latent representations of asset returns.

tutorial
Jun 2, 2026
How to Implement Autoencoders for Conditional Risk Factors: A Deep Learning Approach for Asset Pricing

Learn to implement autoencoders for conditional risk factors using deep learning for asset pricing. Extract latent risk factors by conditioning on firm characteristics. Explore machine learning for trading.

how-to-guide
Jun 2, 2026
How to Evaluate Alpha Factors with Alphalens: A Step-by-Step Python Tutorial

Learn to evaluate alpha factors with Alphalens in this Python tutorial. Alphalens offers a standardized workflow to measure factor predictive power and generate statistical tear-sheets.

tutorial
Jun 2, 2026
How to Extract Alpha Factors Using TA-Lib in Python: A Complete Guide

Easily extract alpha factors with TA-Lib in Python. Learn how to load OHLCV data, compute vectorized indicators like RSI and MACD, clean, and standardize them for your trading models.

how-to-guide
Jun 2, 2026
How to Implement Pairs Trading with Kalman Filter: A Python Guide

Implement pairs trading with Kalman filter using Python. Build a robust statistical arbitrage strategy using a dynamic hedge ratio and trade the z-score of the mean-reverting spread for profitable results.

how-to-guide
Jun 2, 2026
How to Implement Pairs Trading with Cointegration: A Complete Python Workflow

Implement pairs trading with cointegration using Python. Learn to test asset pairs, select stable ones, and execute mean-reversion trades with backtrader.

how-to-guide
Jun 2, 2026
How to Backtest ML-Driven Trading Strategies Using Backtrader

Learn to backtest ML-driven trading strategies with Backtrader. Extend PandasData and create custom strategies for dynamic capital allocation based on ML model outputs.

how-to-guide
Jun 2, 2026
How to Backtest ML-Driven Trading Strategies Using Zipline

Learn to backtest ML-driven trading strategies using Zipline. Register custom data, wrap your model, and convert predictions to portfolio allocations for robust testing.

how-to-guide
Jun 2, 2026
How to Use LightGBM for Intraday Trading Strategies with SHAP Values: A Complete Implementation Guide

Master LightGBM for intraday trading. Implement time-series CV, generate signals, and use SHAP values to uncover key features driving your trading decisions. Get the complete guide.

how-to-guide
Jun 2, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →