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
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

765 documents

BigQuant

This document outlines a two-stock pairs strategy based on a presumed long-term cointegrating relationship. It fits a linear relationship between the stocks’ prices, calculates the residual, and standardizes that residual over a rolling history. When the…

EquitiesPairs tradingMean reversionBacktesting
MQL5 code base

The document proposes watching for divergences in the relationship between two currency pairs and taking opposing positions when a gap appears. It focuses on AUD/JPY, CAD/JPY, and NZD/JPY, and gives AUD/JPY versus NZD/JPY as an example. A pip-value…

ForexPairs tradingArbitragePosition sizing
Stratmill research code

The document describes three ways to refine spread trading signals. A threshold filter enters or maintains a long or short spread position only when the predicted spread change crosses a chosen boundary; an asymmetric version allows different boundaries for…

Pairs tradingTechnical indicatorsVolatilityRisk management
MQL5 code base

The document describes a forex cross-pair setup using a correlation calculator panel to compare a cross with its two component currency pairs. Its example considers EUR/JPY alongside EUR/USD and USD/JPY. The proposed signal is a change in which component…

ForexTechnical indicatorsPairs trading
FMZ forum

This retrospective describes an early Bitcoin trading effort that began with cross-exchange price gaps and evolved into a statistical arbitrage strategy. Directly buying on one venue and transferring coins to another exposed traders to transfer delays and…

CryptoArbitragePairs tradingExecution
FMZ forum

The document introduces the Ornstein–Uhlenbeck (OU) process as a continuous-time model for a variable that is pulled toward a long-run mean while exposed to random shocks. It explains the roles of the mean, reversion speed, and volatility, contrasts OU…

StatisticsMean reversionFixed incomePairs trading
Stratmill research code

The document introduces copulas as a way to model how two stocks move together in pairs trading. Unlike distance and cointegration approaches, which focus on price gaps or long-run relationships, copulas combine each series’ marginal distribution with a…

Pairs tradingStatisticsMean reversion
Stratmill research code

This document explains how to model a mean-reverting portfolio with a Cox-Ingersoll-Ross (CIR) process, whose volatility scales with the square root of its value. It describes fitting the process by maximum likelihood and selecting portfolio weights to…

Mean reversionStatisticsRisk managementPairs trading
Stratmill research code

The introduction presents a machine-learning framework for selecting securities for pairs trading. It frames pair discovery as a search-space problem: limiting candidates to securities in the same sector may exclude useful relationships, while searching…

Pairs tradingMachine learningEquitiesArbitrage
BigQuant

This short forum exchange addresses how to use a custom benchmark for a strategy such as pair trading, where a portfolio of two stocks may be a more relevant comparison than a broad market index. The suggested approach is to construct an index from the two…

EquitiesPairs tradingPortfolio construction
Stratmill research code

The module implements a finite-horizon dynamic allocation approach for a mean-reverting arbitrage spread, drawing on a published model by Jurek and Yang. It constructs total-return indices from two price series, estimates cointegrating spread weights, and…

Pairs tradingMean reversionArbitragePortfolio construction
MQL5 code base

The document explains a correlation indicator for comparing price changes in two symbols. It describes values from positive one to negative one: positive values indicate prices tending to move together, negative values indicate movement in opposite…

Technical indicatorsStatisticsPairs trading
vn.py community

The post describes a timing issue in a live spread engine for a two-leg arbitrage. At startup, each leg has zero bid and ask volume, so the engine waits until both have received data. Afterward, however, it may calculate a spread as soon as either leg…

ArbitragePairs tradingMarket microstructureExecution
BigQuant

This page presents a beginner-oriented quantitative trading curriculum for readers who may lack finance background. It points to introductory material on Python, Pandas, historical market data, financial data handling, and data visualization. It also lists…

EquitiesPairs tradingFactor investingTechnical indicators
SuperMind

This indicator overlays the price history of two currencies or other assets on one chart so a trader can inspect their relative movement. The example describes viewing USDCHF alongside EURUSD and presents the tool as potentially useful when studying…

ForexTechnical indicatorsPairs tradingStatistics
SuperMind

This implementation describes a systematic filter for candidate equity pairs or larger baskets. It first constructs a spread using a chosen hedge-ratio method, including ordinary or total least squares, minimum half-life, minimum ADF, Johansen, or Box–Tiao…

Pairs tradingMean reversionStatisticsEquities
vn.py community

A trader asks how to open two related futures spread positions only when both signals are valid: a forward arbitrage in one contract pair and a reverse arbitrage in another. If either condition is missing, neither position should be opened. The reply points…

FuturesArbitragePairs tradingExecution
WonderTrader

This strategy tests whether two price series can support a mean-reverting spread. It applies augmented Dickey–Fuller tests to each series and their first differences, then uses a linear regression to estimate a hedge ratio and intercept when the series…

Pairs tradingMean reversionStatisticsFutures
Stratmill research code

This strategy uses a fitted copula and marginal cumulative distribution functions to estimate conditional probabilities for two assets. During a formation period, the model is trained on historical prices. As new prices arrive, their marginal distributions…

Pairs tradingMean reversionStatisticsBacktesting
Stratmill research code

This module describes a candidate-selection process for pairs trading based on dimensionality reduction and clustering. It starts from a panel of asset prices, converts prices to returns, standardizes them, and applies principal component analysis to create…

Pairs tradingMachine learningStatisticsEquities
vn.py community

This event announcement introduces spread trading as a relative-value approach that focuses on price differences between related futures contracts or between futures and spot instruments. The idea is to trade whether a spread has moved outside a reasonable…

FuturesCommoditiesArbitragePairs trading
Stratmill research code

This document describes methods for selecting long-short portfolios that aim to mean-revert while holding only a small subset of assets. Sparsity can reduce trading costs and make portfolio exposures easier to interpret than dense portfolios that include the…

Mean reversionPortfolio constructionStatisticsPairs trading
Stratmill research code

This note explains a long-short pairs strategy that uses a copula to model the dependence between two stocks. After selecting a pair, for example with a cointegration test, the method fits the copula and each stock’s empirical distribution on a formation…

Pairs tradingArbitrageStatisticsBacktesting
MQL5 code base

This indicator measures whether two instruments that usually move together are beginning to diverge. It calculates rolling Pearson correlation between their returns and a rolling z-score for the log-price spread. A signal appears only when correlation falls…

StatisticsPairs tradingMean reversionTechnical indicators