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

QuantInsti blog

This project tests a market-neutral pairs strategy on Brazilian equities, grouping stocks by sector and screening pairs with the Johansen cointegration test. It keeps pairs with a consistently signed spread and a half-life no longer than 60 days. Entry and…

EquitiesPairs tradingMean reversionStatistics
QuantInsti blog

This project describes a statistical arbitrage strategy for Chinese futures. It screens contract pairs with an Augmented Dickey-Fuller test for stationary spreads, estimates a dynamic hedge ratio with a Kalman filter, and uses the spread’s half-life to set a…

FuturesChina marketsPairs tradingMean reversion
QuantInsti blog

The guide distinguishes statistical independence, correlation, and cointegration, concepts that are often confused when assessing diversification and trading relationships. Independence means observing one variable does not change the probability…

StatisticsMean reversionPairs tradingPortfolio construction
QuantInsti blog

This project describes a market-neutral pairs-trading approach using NSE-listed stocks from different sectors. It selects candidate pairs within a sector, estimates a hedge ratio with ordinary least squares, forms a price spread, and applies an Augmented…

EquitiesMean reversionPairs tradingBacktesting
QuantInsti blog

This project outlines a mean-reversion strategy for liquid, shortable stocks organized across five sectors. It first screens candidate pairs for correlation, then tests their spread for stationarity with the Augmented Dickey-Fuller test. When a qualifying…

EquitiesPairs tradingMean reversionArbitrage
QuantInsti blog

The document introduces pairs trading as a market-neutral approach that buys one security and shorts another when their relationship diverges. It distinguishes correlation from cointegration: correlated prices can continue trending apart, whereas a…

Pairs tradingMean reversionStatisticsEquities
QuantInsti blog

Presented as a dialogue with a trading expert, the article outlines a beginner’s path into algorithmic trading: learn a programming language, study markets and strategies, identify potential inefficiencies, then backtest ideas on historical data. It…

BacktestingPairs tradingArbitrageRisk management
QuantInsti blog

The article introduces mean reversion through time-series concepts, distinguishing trend, cycles, seasonality, and irregular movements. It explains the intuition of buying when price falls below an average and selling when it rises above one, then relates…

Mean reversionPairs tradingStatisticsEquities
QuantInsti blog

This project describes a mean-reversion pairs strategy implemented and backtested with quantstrat. It uses a stock pair from the same sector as its example and also introduces a separate example involving commodity futures on different exchanges. The…

Pairs tradingMean reversionEquitiesCommodities
QuantInsti blog

The article introduces unsupervised learning as a way to find structure in data without target labels, contrasting it with supervised prediction. Its trading example uses K-means to group stocks by return on equity and market beta. The workflow standardizes…

Machine learningEquitiesStatisticsPairs trading
QuantInsti blog

The article explains K-means clustering as an unsupervised method for grouping stocks with similar feature values, then applies it to candidate selection for statistical arbitrage. It contrasts clustering with manually choosing pairs by sector or industry,…

EquitiesPairs tradingMachine learningStatistics
QuantInsti blog

This project outlines a statistical arbitrage approach to trading cryptocurrency perpetual contracts on Binance. It screens contract price series for stationarity and cointegration, then forms a spread between a selected pair and uses deviations from the…

CryptoPerpetual futuresPairs tradingMean reversion
QuantInsti blog

This project describes a daily statistical arbitrage strategy applied to six INR currency pairs over the stated 2011–2013 sample. It screens pair combinations with cointegration tests, then applies a cointegrated Augmented Dickey–Fuller test to selected…

ForexPairs tradingMean reversionStatistics
QuantInsti blog

This project develops a market-neutral mean-reversion strategy for pairs drawn from 25 large-cap NSE stocks across several sectors. It estimates hedge ratios with ordinary least squares, tests spread residuals for stationarity using a lag-zero ADF procedure,…

EquitiesPairs tradingMean reversionStatistics
QuantInsti blog

The document presents statistical arbitrage as a family of systematic strategies that seek to trade relative mispricing, often using mean reversion in historically related instruments. It describes pairs trading as one approach: identify assets whose prices…

StatisticsMean reversionPairs tradingArbitrage
QuantInsti blog

This project describes a stock pairs strategy that periodically selects candidate pairs based on whether their price spread appears stationary. It estimates a hedge ratio with linear regression, forms a spread, and applies an Augmented Dickey-Fuller test to…

EquitiesPairs tradingMean reversionStatistics
QuantInsti blog

The document introduces the Johansen cointegration test as a way to assess long-run relationships among several time series. It explains that the trace and maximum eigenvalue tests use eigenvalues to estimate the number of cointegrating relationships, and…

StatisticsMean reversionPairs tradingEquities
QuantInsti blog

The document explains simple and multiple linear regression as ways to estimate a target from one or more predictors. It presents Ordinary Least Squares as the method for fitting coefficients by minimizing squared residuals, with coefficients describing the…

StatisticsMachine learningPairs tradingFactor investing
QuantInsti blog

This project compares a Monte Carlo portfolio allocation approach with a mean-reversion pair-trading strategy on Indian equities. It uses three stocks from each of five sectors and evaluates portfolios with Sharpe, Sortino, and Calmar ratios. For allocation,…

EquitiesPortfolio constructionPairs tradingMean reversion
QuantInsti blog

The article introduces time series as observations arranged over time and outlines how traders can analyze and forecast such data. It distinguishes univariate from multivariate series and stationary from nonstationary series. Autocorrelation and partial…

StatisticsMean reversionFuturesPairs trading
QuantInsti blog

The document explains how the Augmented Dickey-Fuller test can help assess whether the residuals between two securities are stationary, a condition used in pairs trading. It introduces stationarity, non-stationarity, unit roots, and the test’s null and…

EquitiesPairs tradingMean reversionStatistics
QuantInsti blog

The guide explains hierarchical clustering as an unsupervised method that builds nested groups and displays their relationships in a dendrogram. It contrasts clustering with supervised classification and compares hierarchical clustering with K-means: K-means…

Machine learningStatisticsEquitiesPairs trading
QuantInsti blog

The project describes a stock pairs strategy that models one price as a time-varying linear function of another. A Kalman filter updates the intercept, hedge ratio, spread, and spread volatility; spread z-scores set entry and exit signals. It screens…

EquitiesPairs tradingMean reversionRisk management
QuantInsti blog

The document outlines a daily pairs-trading strategy for related equities, implemented in R and illustrated with Johannesburg Stock Exchange shares. It selects similar companies, calculates a price ratio as the spread, estimates its mean and standard…

EquitiesPairs tradingMean reversionArbitrage