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

Hudson & Thames

This article explains how stochastic control models can set dynamic positions in a mean-reverting spread. It outlines two investor preference models: constant relative risk aversion over terminal wealth, and Epstein–Zin recursive utility, which can account…

Pairs tradingMean reversionArbitragePortfolio construction
Hudson & Thames

This document surveys methods for estimating and adjusting covariance matrices used in portfolio risk analysis. It covers the empirical estimator, robust Minimum Covariance Determinant, basic and data-driven shrinkage methods, semi-covariance, exponentially…

Portfolio constructionRisk managementStatistics
Hudson & Thames

This article explains why a multi-asset mean-reverting portfolio may be easier to trade when it uses a small number of assets. Sparse baskets can improve interpretability and reduce trading costs; they also avoid the ambiguity that can arise when combining…

Mean reversionPairs tradingPortfolio constructionStatistics
Hudson & Thames

The article surveys four online portfolio selection methods that seek to profit from mean reversion: Passive Aggressive Mean Reversion (PAMR), Confidence Weighted Mean Reversion (CWMR), Online Moving Average Reversion (OLMAR), and Robust Median Reversion…

Mean reversionEquitiesPortfolio constructionBacktesting
Hudson & Thames

The document introduces Modern Portfolio Theory and explains how asset correlation shapes the risk and return of a portfolio. Expected portfolio return is a weighted sum of asset returns, while portfolio variance also depends on covariances. When assets are…

Portfolio constructionRisk managementStatistics
Robot Wealth

The document reflects on Quantopian’s closure through the strengths and constraints of its research platform. It describes benefits for systematic traders, including a team environment for exchanging ideas, training, research technology, peer feedback, and a…

Machine learningPortfolio construction
Robot Wealth

The document contrasts two possible trading outcomes for a strategy described as having a known, substantial edge: a favorable run and an unfavorable run. Its central lesson is that realized profit and loss can vary considerably even when the underlying…

StatisticsRisk managementPortfolio construction
Robot Wealth

This article demonstrates a vector autoregression (VAR) model using daily returns for a basket of U.S. homebuilding stocks. It fits the model on a rolling historical window, forecasts each asset’s next return, and converts the cross-sectional forecasts into…

EquitiesStatisticsBacktestingPortfolio construction
Robot Wealth

This short article uses the long-run nominal growth of US stocks and bonds as a starting point for discussing risk premia. It reports that stocks rose 48,000 times in value and bonds 300 times from 1900 to the article’s present. Its explanation is that…

EquitiesFixed incomeMulti-assetRisk management
Robot Wealth

This article demonstrates a convex optimisation workflow for a crypto perpetual futures portfolio. It combines expected returns estimated from cross-sectional momentum and carry features with a breakout signal, then uses a covariance estimate to represent…

CryptoPerpetual futuresPortfolio constructionRisk management
Robot Wealth

This article addresses whether publishing a trading edge causes it to disappear. It uses an end-of-month Treasury demand effect as an example: price-insensitive buying may temporarily move prices away from fair value, so a trader could enter ahead of the…

Fixed incomePortfolio constructionRisk management
Robot Wealth

This short discussion considers the role of foreign exchange in a systematic trading portfolio. Its central claim is that FX does not offer an inherent risk premium that can provide a persistent return tailwind, so traders must seek returns through active…

ForexPortfolio construction
Robot Wealth

The article presents a research philosophy for systematic trading centered on identifying genuine market mechanisms and combining modest opportunities. An edge should have an explanation for why another participant accepts the other side of the trade, such…

Portfolio constructionRisk managementBacktestingExecution
Robot Wealth

The article examines practical limits of traditional market-neutral pairs trading. Each trade consumes capital on two legs, incurs spreads and commissions on both, and may use capital on a fairly valued leg even when the opportunity is concentrated in the…

Pairs tradingArbitragePortfolio constructionRisk management
Robot Wealth

The article explains why covariance estimates matter for portfolio risk: pairwise asset covariances combine with portfolio weights to determine portfolio variance. Using adjusted-price returns for SPY, TLT, and GLD, it first compares rolling-window…

StatisticsRisk managementPortfolio constructionMulti-asset
Robot Wealth

This article explains how to combine overlapping pair spread signals to infer which individual stocks appear rich or cheap relative to peers. Each spread acts as a relative vote; aggregating votes across a network can help distinguish a likely outlier from a…

EquitiesPairs tradingArbitragePortfolio construction
Robot Wealth

The article illustrates how a put option can limit downside on an equity holding and shows how the premium changes the portfolio’s payoff. It first models a position in an index-tracking fund, identifying the price level associated with a chosen loss and…

OptionsRisk managementPosition sizingPortfolio construction
Robot Wealth

The article explains how to assess candidate equity pairs and estimate a spread for mean-reversion trading. Using XOM and CVX as an example, it fits an ordinary least squares hedge ratio, forms a residual spread, and applies an Augmented Dickey-Fuller test.…

EquitiesPairs tradingMean reversionStatistics
Robot Wealth

The article distinguishes risk premia, which compensate traders for bearing unwanted risks, from inefficiencies caused by participants who must trade for reasons other than price. Forced liquidations, redemptions, reporting practices, index changes, and…

Market microstructureRisk managementBacktestingPortfolio construction
Robot Wealth

This introductory page presents a research philosophy for independent systematic traders: begin by identifying a plausible market edge, then use tools such as backtesting to investigate it. A backtest can show how a set of rules performed historically, but…

BacktestingRisk managementPortfolio constructionStatistics
Robot Wealth

The article defines a trading edge as positive expected value: across many trades, the probability-weighted gains should exceed the losses. A strategy can lose often and still have an edge, or win frequently while carrying occasional losses large enough to…

StatisticsRisk managementPortfolio constructionOptions
Robot Wealth

This article weighs gold’s theoretical status against its observed portfolio behavior. Since gold produces no cash flow and has no clear cash-flow-based valuation anchor, the author argues it does not fit a conventional academic account of a risk premium. In…

Multi-assetCommoditiesPortfolio constructionRisk management
Robot Wealth

The article addresses how to distinguish a durable strategy effect from luck, while acknowledging that certainty is impossible. It recommends starting with a credible economic explanation, such as compensation for bearing risk or a structural imbalance in…

StatisticsRisk managementPortfolio construction
Robot Wealth

The article introduces tidy data principles and shows how to represent financial returns in long and wide formats. In tidy form, each column represents a variable, each row an observation, and each cell one value. Its example uses dates, tickers, and…

StatisticsMulti-assetEquitiesFixed income