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
WonderTrader
14 documents
Alphalens
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

161 documents

Machine Learning for Trading

This document turns cross-sectional ETF predictions into simulated trades. It distinguishes ranking quality, measured by information coefficient, from realized strategy performance: a top-k portfolio depends on the relative score values, rebalance schedule,…

EquitiesBacktestingPortfolio constructionExecution
Machine Learning for Trading

This notebook describes a read-only comparison of validation predictions from several model families on a US equities panel. It first checks that each predefined prediction set is complete, then assesses cross-sectional ranking with the information…

EquitiesStatisticsBacktestingMachine learning
Machine Learning for Trading

This notebook explains a family of ETF models that represents returns through shared latent directions and estimates how fund features map to exposures. It distinguishes five approaches: unconditional principal components, instrumented PCA with a linear…

EquitiesMachine learningStatisticsFactor investing
Machine Learning for Trading

This notebook uses a synthetic asset panel to demonstrate Instrumented PCA, where factor loadings depend linearly on characteristics observed before returns. Alternating least squares estimates the characteristic-to-loading map and realized factors. Because…

Machine learningStatisticsFactor investingPortfolio construction
Machine Learning for Trading

This case study compares predictive models for monthly cross-asset rotation across ETFs spanning equities, fixed income, commodities, currencies, and real estate. Its central lesson is that information coefficient (IC) and trading performance can rank models…

Multi-assetBacktestingPortfolio constructionMomentum
Machine Learning for Trading

This notebook tests whether standard portfolio allocation can improve an every-bar NASDAQ-100 trading strategy that is already burdened by transaction costs. It selects predictions using validation performance on the declared cost-feasible universe, then…

EquitiesPosition sizingPortfolio constructionExecution
Machine Learning for Trading

This notebook studies how position sizing affects FX backtests after the model has already selected which currency pairs to trade. It preserves the winning baseline’s predictions, signal mapping, costs, and execution settings, then varies allocation rules.…

ForexPosition sizingPortfolio constructionBacktesting
Machine Learning for Trading

This notebook queries backtest registries across nine case studies and assembles comparable tables for downstream analysis. It organizes results by asset class and data frequency, then records performance across signal, allocation, cost, and risk stages,…

BacktestingStatisticsPortfolio constructionRisk management
Machine Learning for Trading

This notebook presents a deployment bridge between an offline machine-learning pipeline and QuantConnect's LEAN trading engine. It selects a model run reproducibly from a registry, exports its holdout predictions as date-indexed JSON, and uses a small…

Machine learningPortfolio constructionExecutionBacktesting
Machine Learning for Trading

This chapter presents portfolio construction as the process of converting return forecasts, risk estimates, and constraints into weights, leverage, and rebalancing decisions. It lays out a research workflow for documenting allocator choices, avoiding…

Portfolio constructionRisk managementPosition sizingBacktesting
Machine Learning for Trading

This notebook explains how to evaluate position-level exits and combine them with portfolio-wide controls. Fixed stop-loss, take-profit, and time exits are contrasted with trailing and tightening stops; a scaled exit reduces a position at successive profit…

Risk managementPosition sizingBacktestingPortfolio construction
Machine Learning for Trading

This notebook synthesizes results from nine market case studies into a cumulative strategy-screening funnel. It tests, in order, whether a model has positive information coefficient, whether its selected configuration has positive validation Sharpe, whether…

BacktestingStatisticsRisk managementExecution
Machine Learning for Trading

This notebook builds a portfolio allocator that places a Temporal Fusion Transformer-style variable-selection network before an LSTM encoder. The selection network embeds each input feature separately and assigns softmax weights, allowing the model to vary…

EquitiesMachine learningPortfolio constructionRisk management
Machine Learning for Trading

This notebook applies principal component analysis to changes in Treasury yields across maturities. Standardizing changes gives each maturity equal influence, and the resulting components are interpreted as level shifts, steepening or flattening, and…

Fixed incomeStatisticsRisk managementPortfolio construction
Machine Learning for Trading

This tutorial derives the Kelly fraction for a binary wager by maximizing expected logarithmic wealth growth, then extends the idea to continuous returns and a multi-asset portfolio. It uses symbolic differentiation and simulations with shared coin-toss…

Position sizingPortfolio constructionRisk managementStatistics
Machine Learning for Trading

This chapter treats transaction costs as a constraint throughout strategy research and deployment, from factor evaluation and backtesting to portfolio construction, risk oversight, and production monitoring. It distinguishes explicit fees, implicit spread…

ExecutionMarket microstructureBacktestingRisk management
Machine Learning for Trading

This notebook turns institutional 13F holdings into a bipartite institution-to-stock graph and derives features for research, including stock co-ownership similarity, ownership breadth and concentration, and changes in reported holdings. It aggregates…

EquitiesStatisticsPortfolio constructionMachine learning
Machine Learning for Trading

This notebook explains how to decompose ETF returns and risk using CAPM and Fama–French factor regressions. It estimates full-sample exposures with heteroskedasticity and autocorrelation robust standard errors, tracks changing betas with rolling windows, and…

EquitiesFactor investingRisk managementStatistics
Machine Learning for Trading

This notebook adapts skip-gram Word2Vec to institutional holdings by treating each 13F portfolio as a sentence, each stock identifier as a token, and position size rank as token order. Nearby positions form the context, so stocks that institutions place in…

EquitiesMachine learningPortfolio constructionStatistics
Machine Learning for Trading

This notebook compares ways to allocate capital across US equity positions while holding the model, checkpoint, rebalance dates, and selected stocks fixed. It examines weights based on prediction strength, prediction-interval width, individual stock…

EquitiesPosition sizingPortfolio constructionRisk management
Machine Learning for Trading

This notebook turns validation predictions from multiple model families into equal-weight, long-short portfolios. It ranks stocks by predicted return, buys the top names and shorts the bottom names, and sweeps several portfolio concentrations using a shared…

EquitiesUS marketsBacktestingPortfolio construction
Machine Learning for Trading

This notebook compares six long-only ETF allocation methods designed to reduce reliance on unstable estimates. It applies Ledoit-Wolf covariance shrinkage to estimators that use covariance, and contrasts mean-variance maximum Sharpe with minimum variance,…

Multi-assetEquitiesFixed incomePortfolio construction
Machine Learning for Trading

This chapter synthesizes nine case studies that take machine-learning signals through portfolio construction, trading costs, risk overlays, and frozen holdout evaluation. It treats each case study’s progression as the unit of analysis instead of ranking…

Machine learningEquitiesBacktestingPortfolio construction
Machine Learning for Trading

This notebook compares ways to size positions in a US equities panel while holding the model, checkpoint, rebalance dates, and selected stocks fixed. Prediction-based methods scale capital by forecast magnitude or interval uncertainty; inverse volatility and…

EquitiesUS marketsPortfolio constructionPosition sizing