Skip to content

Knowledge library

Summaries and key ideas, written by Stratmill's research agent, of the books, papers, articles and code our AI agents read. Each page links to its original.

Quant Q&A
20,364 documents
SuperMind
12,226 documents
OKX Learn
8,431 documents
Strategy library
7,910 documents
MQL5 code base
7,090 documents
BigQuant
3,481 documents
Bitget Academy
3,298 documents
MQL5 articles
3,012 documents
TradingView scripts
1,976 documents
ProRealCode
1,507 documents
Deribit Insights
1,232 documents
Machine Learning for Trading
1,124 documents
arXiv papers
1,033 documents
Amberdata research
766 documents
FMZ forum
682 documents
FMZ digest
662 documents
vn.py community
560 documents
QuantInsti blog
511 documents
Galaxy Research
340 documents
QuantStart
246 documents
Stratmill research code
219 documents
Robot Wealth
195 documents
NautilusTrader
191 documents
Hummingbot docs
181 documents
Paradigm research
175 documents
Lumibot
164 documents
Kraken Learn
163 documents
Quant course library
157 documents
OctoBot
152 documents
Cryptohopper blog
144 documents
Systematic trading blog (Rob Carver)
132 documents
Qlib
116 documents
TqSdk
86 documents
Quantpedia
86 documents
Hyperliquid docs
79 documents
Freqtrade
68 documents
Hudson & Thames
62 documents
Awesome Systematic Trading
61 documents
backtrader
54 documents
vn.py
50 documents
Quantopian lectures
45 documents
Binance API docs
45 documents
FMZ guides
38 documents
pysystemtrade
34 documents
Freqtrade docs
32 documents
quant-trading
31 documents
FinRL
28 documents
Zipline
22 documents
FMZ live strategies
21 documents
Jesse
17 documents
pyfolio
16 documents
Alphalens
14 documents
WonderTrader
14 documents
backtesting.py
11 documents
Technical Analysis
9 documents
QTPyLib
8 documents
QuantRocket
7 documents
Lumibot strategies
7 documents
Awesome Quant
1 documents

Search the library

5,018 documents

Machine Learning for Trading

This notebook builds model-based conditional volatility features for S&P 500 shares with a GJR-GARCH(1,1) model, then compares an option-implied volatility spread measured against realized volatility with one measured against a model forecast. Since…

EquitiesOptionsVolatilityMachine learning
Machine Learning for Trading

This CME futures study varies gradient boosting tree capacity and loss function while recording predictions at multiple training checkpoints. Tree leaf count controls how finely a model partitions the feature space, while squared, absolute, and Huber losses…

FuturesMachine learningStatisticsBacktesting
Machine Learning for Trading

This notebook studies how Ridge regularization choices affect information coefficient on an ETF panel and how hyperparameter search can inflate reported performance. It first evaluates a wide alpha grid across walk-forward folds, scaling features within each…

EquitiesMachine learningStatisticsBacktesting
Machine Learning for Trading

This notebook explains instrumented principal component analysis (IPCA), which models each ETF’s factor exposures as a shared linear function of that fund’s observed features. Alternating least squares estimates the feature-to-exposure map and the factor…

EquitiesFactor investingMachine learningStatistics
Machine Learning for Trading

The notebook presents an autonomous research workflow in which a language model uses general-purpose tools to inspect files, run commands, query a backtest registry, and examine data. Rather than hard-coding research actions, the operator discovers…

Machine learningBacktestingStatistics
Machine Learning for Trading

This notebook fits a PCA latent-factor model to a panel of stock returns, without using option-surface features, characteristics, or target information. PCA extracts leading directions of historical cross-sectional co-movement, estimates each stock's…

EquitiesOptionsMachine learningStatistics
Machine Learning for Trading

This shared feature-engineering module defines construction rules and audits for financial predictors used across multiple case studies. It records each feature family with its hypothesis, inputs, rolling lookback, information lag, role, and potential…

Technical indicatorsStatisticsMachine learning
Machine Learning for Trading

This analysis compares learned signals for monthly cross-sectional US stock returns using accounting and market characteristics, with next-month return as the target. It reviews linear models, boosted trees, deep tabular methods, latent-factor estimators,…

EquitiesUS marketsMachine learningStatistics
Machine Learning for Trading

This chapter presents agentic workflows for financial research tasks where gathering, filtering, and synthesizing uneven evidence is the main challenge. It contrasts these workflows with conventional models that work well on stable structured inputs, and…

Machine learningStatisticsRisk managementBacktesting
Machine Learning for Trading

This notebook defines and validates monthly return labels for a cross-sectional US firm-characteristics study. It checks how the data provider pairs each row’s characteristics with the return outcome, emphasizing that the panel is already aligned and must…

EquitiesMachine learningStatisticsBacktesting
Machine Learning for Trading

This notebook builds an end-to-end portfolio allocator that places a Temporal Fusion Transformer style variable-selection network ahead of an LSTM. Separate gated residual networks embed individual features, and learned soft weights combine those embeddings…

Machine learningPortfolio constructionPosition sizingVolatility
Machine Learning for Trading

This notebook explains how to evaluate financial models without allowing information unavailable at a decision date to leak into training or model selection. It distinguishes training, validation, and a final holdout set, and shows why randomly shuffled…

BacktestingMachine learningStatisticsRisk management
Machine Learning for Trading

This notebook compares four ways to discover relationships in a panel of ETF returns: NOTEARS for contemporaneous linear DAGs, VAR-LiNGAM for lagged and instantaneous structure, PCMCI for conditional-independence tests, and Granger tests as pairwise…

Machine learningStatisticsBacktestingMulti-asset
Machine Learning for Trading

This notebook studies how Ridge regularization affects information coefficient (IC) performance and how hyperparameter search can bias reported validation results. It first evaluates a wide alpha grid with walk-forward folds, scaling features inside each…

Machine learningStatisticsBacktesting
Machine Learning for Trading

This notebook presents Tail-GAN, a generative adversarial approach designed to reproduce financial scenario tail risk, especially value at risk (VaR) and expected shortfall (ES). It uses differentiable sorting so quantile-based risk measures can contribute…

Machine learningRisk managementStatisticsPortfolio construction
Machine Learning for Trading

This notebook examines how to combine multiple probability forecasts. It presents simple averaging as a baseline and explains Neyman extremization, which moves a panel mean farther from a base rate according to the number of forecasters and an assumed…

StatisticsMachine learningRisk management
Machine Learning for Trading

This notebook turns futures carry—the price gap between nearby expiries—into model-based features. It describes one-step ARIMA forecasts per product, rolling Fourier measures of seasonal cycle strength, and a two-state hidden Markov model that infers broad…

FuturesCarryMachine learningStatistics
Machine Learning for Trading

This overview explains a family of models for predicting returns from firm characteristics. Rather than treating each characteristic as a direct return predictor, the models assume returns are driven by a small set of unobserved common factors and estimate…

EquitiesFactor investingMachine learningStatistics
Machine Learning for Trading

This document presents a pedagogical Mamba-style selective state space model for predicting ETF returns from sequences of momentum features. Unlike attention and dense temporal mixing, a state space model carries a fixed-size state through the sequence with…

Machine learningStatisticsMomentumEquities
Machine Learning for Trading

This document describes a conditional autoencoder that models firm exposures to latent return factors as a nonlinear function of firm characteristics. Like IPCA, it estimates a factor structure in which predicted returns combine firm-specific exposures with…

Machine learningFactor investingEquitiesStatistics
Machine Learning for Trading

This document explains a TabM neural network for ranking ETFs from tabular features. Its shared two-layer backbone feeds multiple members, each with a learned scaling vector and output layer; averaging their predictions aims to reduce initialization noise…

Machine learningStatisticsEquitiesBacktesting
Machine Learning for Trading

This chapter overview explains how gradient-boosted trees build on decision trees and random forests for financial tabular prediction. Boosting adds learners sequentially to correct earlier errors, helping capture nonlinear relationships and threshold…

Machine learningEquitiesStatisticsBacktesting
Machine Learning for Trading

This document describes a monthly US equity dataset designed for machine learning research in asset pricing. It contains 94 rank-transformed firm characteristics, including accounting measures and technical features, alongside returns. Firms are anonymized,…

EquitiesMachine learningFactor investingUS markets
Machine Learning for Trading

This notebook evaluates security controls for a financial document question-answering system using six hand-written cases. The cases represent indirect prompt injection, fabricated data in untrusted material, attempted actions, and invalid citations. It…

Machine learningRisk managementStatistics