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

765 documents

Stratmill research code

This documentation describes interactive tear sheets for examining pairs research. The cointegration view presents individual asset stationarity test results and normalized prices, then reports Engle–Granger analysis for both portfolio orientations. It…

Pairs tradingArbitrageMean reversionStatistics
Stratmill research code

This implementation uses a Kalman filter to update the intercept and hedge ratio between two assets as each new observation arrives. It treats one asset as the response and estimates the coefficient for the other, producing a residual spread and its…

Pairs tradingMean reversionStatisticsArbitrage
Stratmill research code

This document explains a method for choosing entry boundaries in a cointegration-based pairs trade. The strategy fades a spread when it crosses a preset upper or lower threshold, then closes when it returns to its mean. With position weights set by the…

Pairs tradingMean reversionStatisticsPortfolio construction
Stratmill research code

The code implements an Ornstein–Uhlenbeck model for mean-reverting portfolios and pairs of assets. It fits the model’s long-run mean, reversion speed, and noise variance to historical prices, then uses an optimal double-stopping framework to calculate entry…

Mean reversionPairs tradingStatisticsRisk management
Amberdata research

This article explains how to compare Bitcoin and Ether options volatility surfaces across strikes and expirations to identify relative-value trades. Traders can examine differences in implied-volatility level, skew, and term structure, then investigate…

CryptoOptionsVolatilityPairs trading
FMZ forum

The document introduces cointegration as a way to model related time series that are individually nonstationary. If a linear combination of such series is stationary, that combination represents a stable long-run relationship, even though the component…

StatisticsPairs tradingArbitrage
TqSdk

This code builds a synthetic steel mill profit spread from daily futures prices for rebar, iron ore, and coke. It calculates the spread as rebar minus weighted quantities of the two inputs, smooths it with a 15-day moving average, and estimates a standard…

FuturesCommoditiesMean reversionPairs trading
MQL5 code base

The document describes a charting indicator for viewing two symbols together. Its main panel overlays their price charts, while a lower panel plots a price spread line adjusted by a spread factor. This layout can help users visually compare relative price…

Technical indicatorsPairs tradingStatistics
vn.py community

This discussion explains how to connect a spread-trading strategy with single-contract execution algorithms such as TWAP or best-limit. It distinguishes spread-level execution, which coordinates multiple legs, from algorithms that execute orders for one…

ExecutionPairs tradingRisk management
MQL5 code base

The document describes an indicator that calculates linear regression coefficients between each selected symbol and the other symbols in a user-provided list. It presents the resulting relationships as curves measured in standard deviations. A dashed…

Pairs tradingStatisticsTechnical indicators
SuperMind

This document describes a Bollinger-style trading rule for a constructed spread, commonly used in pairs strategies. It calculates a z-score by comparing the current spread with its rolling moving average and scaling by rolling standard deviation. A position…

Pairs tradingMean reversionStatisticsBacktesting
Stratmill research code

This introduction reviews stochastic control models for allocating wealth between a mean-reverting spread and a risk-free asset. It describes the spread with an Ornstein–Uhlenbeck process and outlines work by Jurek and Yang, which considers investors with…

Pairs tradingMean reversionArbitrageStatistics
Stratmill research code

The module describes a first-stage screening method for pairs trading strategies built around copulas. It compares every two-asset combination in a supplied price panel and ranks the pairs using Spearman rank correlation, Kendall rank correlation, or the…

Pairs tradingStatisticsArbitrageBacktesting
Stratmill research code

This module fits an Ornstein–Uhlenbeck (OU) process to either one price series or a spread formed from two asset price series. It estimates the long-run level, reversion speed, and volatility by maximizing a likelihood for discretely sampled observations,…

StatisticsMean reversionPairs trading
Stratmill research code

This module implements analytic methods for selecting entry and exit thresholds for a mean-reverting spread, following a published optimal-threshold framework. It transforms thresholds into dimensionless units using the model’s mean-reversion speed, long-run…

Pairs tradingMean reversionStatisticsRisk management
Stratmill research code

The document describes a bivariate Nelsen 14 copula, a model for dependence between two variables after expressing them on uniform scales. It provides analytical forms for the copula cumulative distribution, density, and conditional probability, along with a…

StatisticsArbitragePairs trading
vn.py community

This forum discussion concerns a spread reversal strategy whose two legs sometimes fill together in backtests and sometimes fill days apart. One reply points to a spread-strategy module as a way to address legging. A longer response suggests possible causes:…

Pairs tradingArbitrageBacktestingExecution
MQL5 code base

This indicator description explains how to plot the relationship between two broker-listed instruments in a separate chart window. Users specify each instrument by its broker symbol and can apply a multiplier to either leg. A setting selects whether the…

FuturesTechnical indicatorsPairs trading
BigQuant

The document summarizes research on pairs trading among liquid large- and mid-cap stocks in Mainland China and Hong Kong from 1996 to 2017. It compares strategies confined to each market with strategies that form pairs across the two markets, assessing…

Pairs tradingEquitiesChina marketsMean reversion
Stratmill research code

This introduction explains how copulas separate dependence between variables from their individual marginal distributions, then presents vine copulas as a way to model dependence across many variables. Rather than impose one rigid high-dimensional copula, a…

StatisticsArbitragePairs trading
Stratmill research code

The document outlines a pairs selection framework that first reduces security-return features with principal component analysis, then clusters the compact representations using OPTICS or DBSCAN. OPTICS can identify clusters without a fixed cluster count;…

Pairs tradingMachine learningMean reversionStatistics
MQL5 code base

This indicator calculates the Pearson product-moment correlation between moving-average values for two selected financial instruments. Its reading ranges from negative one to positive one: positive values indicate that the two series move together linearly,…

StatisticsTechnical indicatorsPairs trading
vn.py

The document explains how a spread-trading module can define synthetic combinations of futures legs, calculate their spread price, and execute them through taker, maker, or exchange-spread algorithms. It walks through constructing a spread from leg…

FuturesArbitragePairs tradingExecution
MQL5 code base

The document introduces a statistical-arbitrage approach to pairs trading. It argues that simple price correlation does not ensure a stable relationship between two assets, and presents cointegration as a basis for expecting a pair’s spread to revert toward…

Pairs tradingArbitrageStatisticsMean reversion