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

Search the library

129 documents

Machine Learning for Trading

The document explains how a stochastic discount factor (SDF) estimates a pricing kernel that should price every asset, rather than estimating common return factors. It describes adversarial training: one network proposes the discount factor while another…

OptionsDerivatives pricingMachine learningFactor investing
Machine Learning for Trading

This notebook uses Optuna to tune XGBoost, LightGBM, and CatBoost on a time-split firm-characteristics dataset. Each library’s search treats the loss function, either mean squared error or mean absolute error, as a categorical hyperparameter alongside model…

Machine learningStatisticsFactor investingBacktesting
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 reference describes academic factor-return datasets from the Fama-French library and AQR for use in strategy analysis and factor modeling. Fama-French offerings include market, size, value, profitability, investment, and momentum series, alongside…

Factor investingStatisticsBacktestingEquities
Machine Learning for Trading

This notebook explains PCA as a baseline latent-factor model for forecasting ETF returns. It decomposes a training panel of forward returns into leading directions and estimates each fund’s exposure and factor premia. The estimator ignores the available…

Factor investingMachine learningStatisticsBacktesting
Machine Learning for Trading

This notebook explains how a conditional autoencoder extends instrumented principal component analysis (IPCA): it retains the two-stage structure in which fund features map to latent factor exposures and those exposures combine with factor returns, but uses…

EquitiesFactor investingMachine learningStatistics
Machine Learning for Trading

This notebook maps a family of ETF return models that infer common latent directions in a panel, with features used to estimate fund exposures. It distinguishes five approaches: unconditional principal components; instrumented PCA with a linear…

StatisticsMachine learningFactor investing
Machine Learning for Trading

This notebook shows why searching across many signals or strategies makes the top observed result look stronger than its underlying predictive value. A simulation uses factors with no true information to illustrate how selecting the largest information…

StatisticsFactor investingBacktestingMachine learning
Machine Learning for Trading

This notebook explains how to turn a released, cross-sectionally ranked US firm characteristic panel into a keyed feature matrix for a factor study. It groups inputs into declared families, combines characteristics and interactions without fitting…

EquitiesFactor investingBacktestingStatistics
Machine Learning for Trading

The document describes how a trading research pipeline assesses whether latent-factor model fits completed in a usable state. For models trained by gradient descent, it checks that the final recorded training objective is finite; for the stochastic discount…

Machine learningFactor investingRisk management
Machine Learning for Trading

This notebook describes a stochastic discount factor (SDF) model for pricing the cross-section of US firm returns. Instead of first estimating factors and then applying them, it directly learns firm-month weights under a no-arbitrage condition: discounted…

EquitiesFactor investingMachine learningStatistics
Machine Learning for Trading

This notebook evaluates four news-derived signals—weighted surprise, average sentiment, sentiment change, and article coverage—against forward stock returns. It computes a daily cross-sectional Spearman information coefficient, summarizes its mean,…

EquitiesSentimentStatisticsFactor investing
Machine Learning for Trading

This analysis compares predictions from several model families trained on monthly US stock characteristics to forecast next-month returns. It focuses on cross-sectional information coefficient, which measures how well a model ranks stocks within each month.…

EquitiesUS marketsMachine learningStatistics
Machine Learning for Trading

This notebook brings together five latent-factor approaches for modeling the S&P 500 options case study’s equity return cross-section. PCA estimates common movements from returns alone; IPCA maps characteristics to exposures linearly; a conditional…

EquitiesFactor investingMachine learningStatistics
Machine Learning for Trading

This notebook screens financial and model-based features for their ability to rank stocks by a forward return. It computes daily cross-sectional information coefficients, estimates uncertainty while accounting for serial dependence, adjusts significance for…

EquitiesStatisticsFactor investingBacktesting
Machine Learning for Trading

This notebook evaluates four signals derived from news text: weighted surprise, average sentiment, sentiment momentum, and article coverage. It uses forward returns prepared by an earlier feature-building step, then calculates a daily cross-sectional…

EquitiesSentimentStatisticsFactor investing
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 document explains a supervised autoencoder factor model for predicting stock returns in an equity option analytics research setting. Unlike PCA, IPCA, and an unsupervised conditional autoencoder, its training objective combines reconstruction of the…

EquitiesMachine learningFactor investingStatistics
Machine Learning for Trading

This notebook studies linear prediction models for a cross-section of CME futures products using feature columns grouped into related families, including carry, momentum, volatility, and rolling risk measures. Because columns within a family are often…

FuturesMachine learningFactor investingStatistics
Machine Learning for Trading

This notebook presents a conditional autoencoder for equity returns in which a neural network maps stock characteristics to nonlinear factor loadings, while another network extracts contemporaneous latent factors from characteristic-managed portfolio…

EquitiesMachine learningFactor investingStatistics
Machine Learning for Trading

This notebook examines whether published investment factors offer credible return premia and diversify one another. It draws on long-history and cross-asset series from AQR alongside Fama-French equity factors, using serial-correlation-aware statistics and a…

Factor investingStatisticsPortfolio constructionRisk management
Machine Learning for Trading

This notebook implements a daily educational adaptation of an adversarial stochastic discount factor model. A portfolio-weight network constructs a factor from next-day excess returns using characteristics and market state available at the prior close. An…

EquitiesMachine learningStatisticsFactor investing
Machine Learning for Trading

This notebook runs a fixed equity-characteristics strategy on a reserved holdout period using predictions and a portfolio allocator selected earlier. It keeps the configuration, position sizing, concentration, rebalance cadence, and cost assumption…

EquitiesFactor investingBacktestingPosition sizing