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

765 documents

Amberdata research

This introduction to crypto pairs trading argues that correlation alone does not establish a durable relationship between two assets. A pair may move together because of shared market forces, yet its price spread can continue drifting. Cointegration offers a…

CryptoPairs tradingMean reversionStatistics
Stratmill research code

This guide explains how unit-root and cointegration tests can help identify mean-reverting combinations of asset prices. It presents the Augmented Dickey–Fuller test as a test of whether price changes depend on the current level, and relates the estimated…

Pairs tradingMean reversionStatisticsBacktesting
Amberdata research

This guide outlines a crypto pairs mean-reversion strategy built around cointegration rather than correlation alone. It proposes testing logged price series with the Engle–Granger method, estimating a regression hedge ratio, and checking the resulting spread…

CryptoPairs tradingMean reversionStatistics
Stratmill research code

This module describes ways to select groups of stocks for vine copula analysis, a component of a statistical arbitrage approach. It starts from price histories, calculates daily returns and ranked returns, and narrows candidate partners for each target stock…

EquitiesArbitragePairs tradingStatistics
MQL5 code base

This document explains a spread indicator formed from the quoted prices of two symbols. When the symbols are expected to move inversely, it reverses the second symbol before combining the quotes, effectively turning the calculation into a sum. Inputs include…

ForexPairs tradingMean reversionTechnical indicators
vn.py community

This forum exchange concerns tick-level backtesting of a spread between a cash bond instrument and a futures contract. The questioner has externally downloaded tick data in CSV form because the data source lacks cash-bond ticks, and asks how to import and…

Fixed incomeFuturesPairs tradingBacktesting
vn.py

The document demonstrates a vn.py workflow for backtesting a statistical arbitrage strategy on a two-leg futures spread. It defines a spread as the price difference between two futures contracts, sets the backtest interval and trading assumptions, loads…

FuturesPairs tradingArbitrageBacktesting
vn.py community

A trader reports an error while running an rb-hc spread strategy in a simulated environment. The failure occurs when the strategy attempts to convert its current grid position into an integer target position, but the value is NaN. The trader suspects that a…

CommoditiesPairs tradingStatisticsExecution
Stratmill research code

This module describes two ways to estimate hedge ratios from security price data. Ordinary least squares (OLS) treats one selected asset as the dependent variable and fits coefficients for the remaining assets, optionally including an intercept. It returns…

StatisticsPairs trading
BigQuant

This project outlines a mean-reversion pairs strategy for Chinese futures. It screens candidate contract pairs for cointegration with an Augmented Dickey-Fuller test, estimates a changing hedge ratio with a Kalman filter, and measures spread behavior with…

FuturesChina marketsPairs tradingMean reversion
BigQuant

The study describes a machine-learning approach for classifying the optimal rebalance frequency of a two-asset portfolio strategy. It uses minute-level prices for 50 Binance crypto assets from 2022 and 2023, forms asset pairs, and groups them by correlation.…

CryptoPairs tradingMachine learningBacktesting
Stratmill research code

The introduction frames pairs trading as a way to create a mean-reverting portfolio by holding one risky asset and shorting another correlated or co-moving asset. Such a spread may offer statistical arbitrage opportunities, but the central challenge is…

Mean reversionPairs tradingArbitragePortfolio construction
MQL5 code base

The document describes a multicurrency expert advisor that automatically selects and trades currency pairs from a configurable currency list, with the advisor attached to a single chart. Users can reduce the selected currencies to limit the number of open…

ForexPairs tradingRisk managementBacktesting
vn.py community

This forum exchange clarifies how VeighNa’s spread trading callbacks relate. For live operation, the strategy receives a complete spread data structure through `on_spread_data`; that structure can be converted into a tick before the tick-handling logic is…

FuturesPairs tradingBacktesting
TqSdk

This futures strategy tracks the ratio of copper to aluminum contract values, adjusting each contract’s daily close by its volume multiplier. It calculates the historical mean and standard deviation of that ratio, then uses the current ratio’s z-score to…

FuturesCommoditiesPairs tradingMean reversion
vn.py community

This forum exchange discusses a VeighNa spread-trading strategy that cannot calculate a historical spread moving average because no data service is configured. A respondent advises checking the data-feed fields in the application’s global configuration. The…

FuturesPairs tradingTechnical indicators
Stratmill research code

The document explains how to form and evaluate long-short stock portfolios, focusing on pairs trading. It compares hedge-ratio methods: ordinary least squares minimizes portfolio variance under a correlated random-walk and Gaussian framework, while total…

EquitiesPairs tradingPortfolio constructionBacktesting
BigQuant

The document introduces cointegration as a long-run relationship in which individually nonstationary series can have a linear combination that is stationary. It explains stationarity through stable statistical properties over time and contrasts it with…

Pairs tradingStatisticsMean reversion
Awesome Systematic Trading

The document describes a mean-reversion strategy for international equity ETFs. It builds dividend-inclusive cumulative return series normalized to a common starting value, ranks candidate pairs by the sum of squared differences between their normalized…

EquitiesPairs tradingMean reversionBacktesting
Stratmill research code

This implementation describes a pairs-trading method based on modeling the log price relationship between two stocks as an Ornstein–Uhlenbeck process. It constructs the spread as the difference between the stocks’ log prices, fills missing observations…

EquitiesPairs tradingMean reversionStatistics
Stratmill research code

This module describes a trading rule built around a pre-estimated multivariate cointegration vector. It calculates the weighted sum of log prices, differences that series across recent observations, and uses the sign of the summed changes to set trade…

Pairs tradingMean reversionPosition sizingPortfolio construction
FMZ forum

The article describes an intraday pairs strategy for SPY and IWM, using one-minute bars from April 2007 through February 2014. It aligns timestamps, estimates a rolling regression hedge ratio, forms a price spread, and converts that spread to a z-score. The…

EquitiesPairs tradingMean reversionBacktesting
FMZ forum

This case study follows a live statistical-arbitrage strategy trading the residual between the EWY Korea ETF and Samsung Electronics and SK Hynix. A rolling log-price regression estimates hedge ratios; the residual is standardized into a z-score, with…

EquitiesArbitragePairs tradingMean reversion
MQL5 code base

The indicator overlays a selected symbol’s price bars in a separate window beneath the chart where it is launched. The displayed symbol can be chosen through an input parameter, and multiple copies can be configured to examine different instruments within…

ForexPairs tradingMarket microstructure