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
Binance API docs
45 documents
Quantopian lectures
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

742 documents

Machine Learning for Trading

The notebook diagnoses how a fixed monthly ETF momentum strategy performed across volatility, trend, and yield-curve conditions. Regime labels are designed to be known before the return they describe: volatility and index trend use prior closes and are…

Multi-assetMomentumVolatilityBacktesting
Machine Learning for Trading

This notebook turns cross-sectional stock predictions into long-short portfolios by ranking stocks at each rebalance, buying the top k and shorting the bottom k with equal capital per position. Equal weighting provides a baseline that isolates differences in…

EquitiesMachine learningBacktestingPortfolio construction
Machine Learning for Trading

This notebook presents a feature-selection workflow for ETF research, intended to narrow many candidate transforms and lookbacks to a smaller set for later modeling. It computes cross-sectional Spearman information coefficients between features and forward…

Machine learningStatisticsFactor investingBacktesting
Machine Learning for Trading

This notebook evaluates model predictions as NASDAQ-100 trading strategies using a shared backtest engine. It first runs a plumbing check with random signals: persistent profits after costs would point to issues such as lookahead, misaligned data, or…

EquitiesUS marketsBacktestingExecution
Machine Learning for Trading

This notebook checks whether a fifteen-minute cross-sectional stock-ranking strategy is feasible before fitting a model or making forecasts. It uses NASDAQ-100 quote data, midpoint returns, and a pre-holdout development window to examine the strategy’s…

EquitiesUS marketsMarket microstructureBacktesting
Machine Learning for Trading

This code describes how backtest settings are resolved from case study configuration and how run identity accounts for changes to the traded universe and prediction age. Its central lesson is that any filter that changes the portfolio or prediction set must…

BacktestingExecutionRisk managementPosition sizing
Machine Learning for Trading

The document outlines ways to compare strategy returns with two external benchmarks: daily SPY total returns and Fama-French market returns formed by adding the market risk premium and risk-free rate. It provides date filtering and alignment helpers,…

BacktestingStatisticsRisk managementUS markets
Machine Learning for Trading

The document describes fitting a simple linear sequence model to NASDAQ-100 one-minute features to forecast forward returns at several horizons. Each input contains the preceding hour for one stock, expressed as changes from the latest observation, and the…

EquitiesMachine learningMarket microstructureBacktesting
Machine Learning for Trading

The document presents a machine-learning trading research workflow that carries ideas from data and feature construction through model training, backtesting, transaction costs, portfolio and risk decisions, deployment, and monitoring. It emphasizes an…

Machine learningBacktestingRisk managementPortfolio construction
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 how to construct one-, five-, and 21-session forward spot returns for a fixed FX-pair universe. It first maps four-hour bars into trading sessions using a New York rollover calendar, then builds returns without removing rows before…

ForexSpot marketsMomentumMean reversion
Machine Learning for Trading

This notebook runs the already selected FX strategy specification against registered holdout predictions. It preserves the strategy’s signal, allocation, risk controls, rebalance rule, costs, and account settings; the prediction set and price-frame identity…

ForexBacktestingRisk managementPortfolio construction
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

This notebook studies six allocation methods applied to selected crypto perpetual strategy configurations. The rankings and entry rules remain fixed while the capital assigned to each position changes. The methods use model scores, individual contract…

CryptoPerpetual futuresPosition sizingPortfolio construction
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 explains why a reported Sharpe ratio is an uncertain estimate, not a definitive measure of strategy quality. It develops confidence intervals and the probabilistic Sharpe ratio, which estimates the chance that a strategy's true Sharpe exceeds a…

StatisticsBacktestingRisk management
Machine Learning for Trading

This notebook compares equal weighting with two allocation rules for US firm characteristic strategies: score weighting, which assigns more capital to higher model predictions, and conformal weighting, which reduces capital for predictions with wider…

EquitiesPosition sizingPortfolio constructionBacktesting
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 audit compares Backtrader and Zipline with ML4T on real strategy cases, using only asset and contract combinations that each engine and the frozen data bundle can represent natively. It covers ETF allocation and a US equity panel for both engines, plus…

BacktestingExecutionFuturesForex
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 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