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
Quantpedia
86 documents
TqSdk
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
Lumibot strategies
7 documents
QuantRocket
7 documents
Awesome Quant
1 documents

Search the library

5,922 documents

Machine Learning for Trading

This notebook uses principal component analysis on a liquid subset of US stocks to build gross-normalized eigenportfolios and study their role as latent risk factors. It examines explained variance, interprets components through sector ETF correlations,…

EquitiesFactor investingStatisticsRisk management
Machine Learning for Trading

This configuration describes monthly long-short US equity portfolios ranked on firm characteristics. It specifies a complete-case universe with 46 characteristics, month-end decisions, next-open execution, equal weighting within the long and short legs, and…

EquitiesFactor investingMomentumBacktesting
Machine Learning for Trading

This notebook builds a monthly ETF rotation backtest from portfolio returns through to simulated trades. It ranks ten funds using trailing risk-adjusted returns, applies a Treasury yield-curve regime to choose between the leaders and a defensive bond…

BacktestingMomentumExecutionPortfolio construction
Machine Learning for Trading

This configuration describes a daily, long-short US equity strategy that ranks a broad stock universe by model predictions, buys the top decile, and shorts the bottom decile with equal weights within each group. It specifies next-session open execution,…

EquitiesUS marketsPortfolio constructionExecution
Machine Learning for Trading

This notebook turns model rankings into simple crypto perpetual portfolios. At each funding timestamp, an entry rule selects contracts from the top or bottom of the ranking and assigns equal weights. Equal weighting provides a reference point: comparisons…

CryptoPerpetual futuresBacktestingPortfolio construction
Machine Learning for Trading

This notebook shows how to translate gross returns into net performance under explicit trading, financing, and fund-expense assumptions. Its cost stack includes spread and market impact, commissions and exchange fees, margin interest, stock borrow,…

EquitiesExecutionBacktestingRisk management
Machine Learning for Trading

This study re-prices leading ETF allocation and risk-control combinations across two cost grids while holding each registered strategy configuration fixed. One grid uses basis points per trade; the other uses per-share commission and half-spread, the…

BacktestingExecutionPortfolio constructionRisk management
Machine Learning for Trading

This notebook compares six long-only portfolio allocations for a multi-asset ETF universe. It uses Ledoit–Wolf covariance shrinkage to reduce the sampling variation that can destabilize optimization, and compares maximum Sharpe, minimum variance, risk…

Portfolio constructionRisk managementMulti-assetBacktesting
Machine Learning for Trading

This material explains how to evaluate a strategy chosen on validation data using predictions from a separate 2021 holdout. It keeps the selected allocation, concentration, risk controls, trading schedule, and costs fixed, changing only the predictions…

EquitiesBacktestingRisk managementPortfolio construction
Machine Learning for Trading

This notebook explains a conditional autoencoder that models stock returns as characteristic-dependent factor loadings multiplied by latent factors. It first estimates characteristic-managed portfolio returns with a joint cross-sectional least-squares fit,…

EquitiesFactor investingMachine learningPortfolio construction
Machine Learning for Trading

This notebook studies how allocation rules affect ETF strategies after a model has already ranked assets. It holds the prediction sets and rebalance calendar fixed, selects the same top-k basket for each comparison, and varies the weights assigned within…

EquitiesPortfolio constructionPosition sizingRisk management
Machine Learning for Trading

This notebook tests whether portfolio construction can rescue a cost-defeated, every-bar NASDAQ-100 strategy. It selects leading baseline predictions using the declared selection universe, then runs the allocation comparisons on the full universe. The sweep…

EquitiesPortfolio constructionPosition sizingExecution
Machine Learning for Trading

This notebook takes leading validation prediction configurations from an equal-weight signal-stage baseline and tests alternative allocation methods on the same predictions. It compares score-based and conformal weighting with inverse volatility, risk…

EquitiesPortfolio constructionPosition sizingBacktesting
Machine Learning for Trading

This notebook evaluates how registered ETF prediction sets perform when converted into portfolios. It crosses each validation prediction set with declared entry schemes, such as different top-k holdings, while keeping the trading calendar, rebalance cadence,…

EquitiesBacktestingPortfolio constructionRisk management
Machine Learning for Trading

This document introduces two latent-factor approaches for futures returns. Principal component analysis finds uncorrelated directions that explain the most return variation, while a neural stochastic discount factor seeks combinations related to the…

FuturesMachine learningStatisticsBacktesting
Machine Learning for Trading

This notebook evaluates validation predictions as long-only equity portfolios, using equal-weight top-K selection and a decision schedule determined by each label's cadence. It checks the close-to-next-open event ordering with a seeded random-signal run,…

EquitiesOptionsBacktestingPortfolio construction
Machine Learning for Trading

This document describes ways to turn dated entity records into arrays for latent-factor case studies. One method keeps only entities that meet a coverage threshold learned from an eligibility dataset, producing a consistent entity axis with missing…

Factor investingPortfolio constructionStatistics
Machine Learning for Trading

This shared utility module provides a common gradient-boosting pipeline for quantitative research. It defines capacity presets and maps canonical parameter names into the corresponding settings for LightGBM, XGBoost, CatBoost, and scikit-learn histogram…

Machine learningBacktestingPortfolio construction
Machine Learning for Trading

This notebook explains Tail-GAN, a generative adversarial approach for creating financial return scenarios while targeting value at risk (VaR) and expected shortfall (ES). It uses differentiable sorting so gradients can pass through quantile estimates, and…

Machine learningRisk managementVolatilityPortfolio construction
Machine Learning for Trading

This Python module describes methods for quantifying uncertainty in strategy backtests using daily out-of-sample returns. It combines stationary block bootstrap intervals for return-series statistics, a Sharpe standard error adjusted for autocorrelation and…

BacktestingStatisticsRisk managementPortfolio construction
Machine Learning for Trading

This notebook synthesizes registered validation results for five latent-factor estimators across a set of case studies. It first maps which estimators have results for each panel, then identifies the leading estimator by mean daily Spearman rank information…

Machine learningStatisticsFactor investingBacktesting
Machine Learning for Trading

This notebook selects a CME futures case study from registered validation backtests spanning signal rules, allocation, and risk overlays. It compares candidates across both return horizons and chooses the configuration with the highest validation Sharpe.…

FuturesBacktestingRisk managementPortfolio construction
Machine Learning for Trading

This notebook explains an ETF stochastic discount factor model that fits a single series of weights to price returns across funds. Unlike models that separately estimate fund exposures and factor returns, it trains two networks against pricing errors: one…

EquitiesStatisticsMachine learningPortfolio construction
arXiv papers

The document describes using the Graph-based Coalition Structure Generation algorithm, GCS-Q, to cluster assets represented as a signed, weighted graph of return correlations. The motivation is that common clustering approaches can lose information when they…

Multi-assetPortfolio constructionStatisticsMachine learning