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,922 documents

Machine Learning for Trading

This notebook compares six allocation methods on crypto perpetual strategies that have already passed a baseline selection funnel. It keeps each strategy’s predictions and entry rules fixed, then changes how capital is assigned: one allocator uses model…

CryptoPerpetual futuresPosition sizingPortfolio construction
Machine Learning for Trading

This module defines how a holdout selection field is assembled across validation stages and strategy labels. It addresses discrepancies that can make frozen candidate sets and live reconstruction select different configurations, or cause later analysis to…

BacktestingRisk managementPortfolio constructionStatistics
Machine Learning for Trading

This notebook derives Kelly sizing for a binary wager by maximizing expected log wealth, then illustrates how stake size changes the distribution of simulated wealth paths. It extends the framework to continuous returns and multi-asset portfolios, where the…

Position sizingRisk managementPortfolio constructionStatistics
Machine Learning for Trading

This notebook evaluates a previously selected ETF strategy on a reserved holdout period. It retrieves the matching predictions from their training identity and checkpoint, applies the strategy specification and trading costs established earlier, and…

BacktestingPortfolio constructionRisk managementPosition sizing
Machine Learning for Trading

This module builds a mean forecast ensemble from registered prediction sets, with particular attention to reproducibility and avoiding selection bias. It resolves qualifying model configurations from the registry rather than maintaining a hand-written member…

Machine learningStatisticsBacktestingPortfolio construction
Machine Learning for Trading

This notebook uses principal component analysis on a liquid subset of US equities to extract latent factors and form long-short eigenportfolios. It explains how standardized PCA vectors are converted to raw-return weights and normalized by gross exposure,…

EquitiesFactor investingStatisticsRisk management
Machine Learning for Trading

This notebook examines linear-model regularization for a universe of currency pairs whose returns are linked because each pair is a quote between shared currencies. It distinguishes feature collinearity, which ridge, lasso, and elastic net can address, from…

ForexStatisticsMachine learningBacktesting
Machine Learning for Trading

This notebook uses historical US equity returns to build a correlation network and explore portfolio construction. It selects a liquid universe using estimation-window data, converts pairwise correlations into distances, and extracts a minimum spanning tree…

EquitiesUS marketsPortfolio constructionRisk management
Machine Learning for Trading

This case study examines whether information from listed options can help select S&P 500 stocks. It combines daily equity prices with option-implied volatility levels, skew, term structure, and variance risk premium measures across 633 stocks from 2017 to…

EquitiesOptionsBacktestingRisk management
Machine Learning for Trading

The document describes an FX portfolio allocation sweep designed to isolate position sizing from signal selection. It starts from frozen equal-weight baseline candidates ranked by validation backtest performance, then advances configurations while preserving…

ForexPortfolio constructionBacktestingRisk management
Machine Learning for Trading

This cross-case analysis examines how predictive information, measured by information coefficient (IC), translates into portfolio Sharpe across nine trading case studies. Its central point is that implementation mediates the relationship: entry rules,…

Multi-assetStatisticsBacktestingPortfolio construction
Machine Learning for Trading

This case study compares alternative position sizing methods for CME futures against an equal weight baseline. It explains how inverse volatility sizing uses each contract’s own volatility, while covariance based methods also account for relationships…

FuturesPosition sizingPortfolio constructionRisk management
Machine Learning for Trading

This notebook turns currency-pair prediction rankings into a traded baseline. At each decision time, it forms equal-sized long and short sleeves from the highest- and lowest-ranked pairs, then evaluates them with an FX backtest engine. Equal weighting is…

ForexPairs tradingBacktestingPortfolio construction
Machine Learning for Trading

This module defines a differentiable objective for end-to-end portfolio learning. It turns bounded asset-level risk weights into portfolio exposures using volatility scaling, computes average gross returns over available assets, and optionally subtracts…

Machine learningPortfolio constructionRisk managementExecution
Machine Learning for Trading

This notebook establishes a signal-stage baseline for evaluating model predictions on CME futures. At each weekly decision, it ranks products by predicted return, buys the top group, shorts the bottom group, and gives each position equal weight. It varies…

FuturesBacktestingPortfolio constructionExecution
Machine Learning for Trading

This configuration specifies a long-only ETF ranking and rebalancing experiment. It defines a broad 100-ETF universe spanning equity, bond, commodity, and regional exposures, with monthly decisions and next-open execution. The main label forecasts a 21-day…

EquitiesMulti-assetBacktestingExecution
Machine Learning for Trading

This notebook adapts Word2Vec skip-gram to institutional equity holdings. It treats each institution’s portfolio as a sentence, stock identifiers as tokens, and positions ordered by reported holding value as word order. Stocks that repeatedly appear in…

EquitiesMachine learningPortfolio constructionStatistics
Machine Learning for Trading

This notebook tests whether model-based position sizing improves on equal weighting in a US firm characteristics strategy. It compares score weighting, which allocates more to names with higher predicted scores, with conformal weighting, which reduces…

EquitiesPosition sizingPortfolio constructionBacktesting
Machine Learning for Trading

This shared analysis utility supports comparing trading-model predictions through registry metrics and prediction-level diagnostics. It loads precomputed information-coefficient results, optionally filters by label or model family, and by default excludes…

StatisticsBacktestingMachine learningPortfolio construction
Machine Learning for Trading

This document explains a validation baseline for model predictions on CME futures. At each weekly decision, products are ranked by predicted return; the top group is held long and the bottom group short, with equal weight within each leg. The number of…

FuturesBacktestingPortfolio constructionRisk management
Machine Learning for Trading

This notebook sets out a process for evaluating a challenger model in shadow mode before it receives capital. It compares stored predictions from a fixed incumbent and candidate, constructs equal-weight ranked long-short books, applies the same…

Machine learningRisk managementBacktestingPortfolio construction
Machine Learning for Trading

This notebook presents a framework for assessing an ETF allocation backtest using daily portfolio returns and a matched SPY benchmark. It covers risk and return measures such as Sharpe, Sortino, Calmar, and maximum drawdown; rolling metrics; drawdown…

BacktestingPortfolio constructionRisk managementStatistics
Machine Learning for Trading

This notebook compares portfolio weighting rules for an S&P 500 options strategy that sells straddles. It holds the selected symbols and other strategy settings fixed while replacing the equal-weight baseline with allocators that use either model predictions…

OptionsEquitiesPortfolio constructionPosition sizing
Machine Learning for Trading

This notebook explains risk-premium PCA, which modifies the return covariance matrix by adding a weighted outer product of the training-period mean returns. Its leading eigenvectors define static factor portfolios; raising the weight tilts the factors toward…

Factor investingStatisticsPortfolio constructionBacktesting