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
Quantpedia
86 documents
TqSdk
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
Lumibot strategies
7 documents
QuantRocket
7 documents
Awesome Quant
1 documents

Search the library

765 documents

QuantStart

This article describes a mean-reversion strategy trading the spread between TLT, a long-duration Treasury ETF, and IEI, an intermediate-duration Treasury ETF. A recursive Kalman filter estimates a time-varying linear relationship between the pair, along with…

Pairs tradingMean reversionFuturesFixed income
QuantStart

The article explains how a Kalman filter can estimate a changing linear relationship between two related assets. In a pairs trading setup, the regression intercept and slope define the spread and hedge ratio; treating them as hidden states allows the…

Pairs tradingMean reversionFixed incomeStatistics
QuantStart

The document explains how cointegration can identify a mean reverting relationship between non-stationary asset price series. A linear combination of two series that share a stochastic trend may be stationary; deviations of that combination from its mean can…

Mean reversionPairs tradingStatisticsEquities
QuantStart

The article introduces the Johansen procedure for testing cointegration among multiple time series and estimating stationary linear combinations. It describes expressing a vector autoregressive model as a vector error correction model, then using the rank of…

StatisticsMean reversionPairs tradingPortfolio construction
QuantStart

This tutorial introduces the Ornstein-Uhlenbeck (OU) process as a continuous-time model for a variable that fluctuates around a long-term mean. It explains the roles of the mean, reversion speed, and volatility, and contrasts mean-reverting behavior with…

Mean reversionStatisticsPairs tradingDerivatives pricing
QuantStart

The document introduces linear state space models, where an underlying state evolves over time and observations provide noisy, indirect information about it. It defines the state and observation equations, their transition and measurement noise, and the…

StatisticsPairs tradingArbitrage
QuantStart

The article presents the Cointegrated Augmented Dickey–Fuller procedure as a way to estimate a regression hedge ratio for two assets and then test whether the resulting spread is stationary. It fits a linear regression, treats its residuals as the candidate…

Pairs tradingMean reversionStatisticsEquities
QuantStart

This article derives a batch Bayesian method for estimating the intercept and slope of a univariate linear regression. It assumes normally distributed observation noise with known variance and assigns the regression parameters a normal prior with a specified…

StatisticsMachine learningPairs trading
QuantStart

The article classifies common systematic fund approaches by trading style and instrument. It describes trend following as holding positions while trends persist, often accepting frequent small losses in exchange for occasional large moves, and countertrend…

Trend followingMean reversionArbitragePairs trading
QuantStart

The document describes an intraday pairs strategy that trades SPY against IWM. It estimates a changing hedge ratio with rolling linear regression, constructs a price spread, and standardizes that spread as a z-score. The strategy enters a long spread when…

EquitiesPairs tradingMean reversionBacktesting
QuantStart

The article defines algorithmic backtesting as applying a strategy to historical market data, producing signals and calculating trade and cumulative profit or loss. It describes its uses in screening ideas, modeling market conditions, optimizing parameters,…

BacktestingStatisticsMarket microstructureExecution
QuantStart

The article explains how the Cointegrated Augmented Dickey-Fuller approach can assess whether a linear combination of two price series is stationary, a property that may support a mean-reversion pairs strategy. It contrasts this with applying an ordinary…

EquitiesMean reversionPairs tradingStatistics
MQL5 articles

This article describes adding a switchable cyberpunk display mode to an existing MQL5 graph for pair analysis and linear regression. The presentation adds neon colors, glow effects, animated elements, a starry background, and a theme toggle while retaining a…

Pairs tradingStatisticsMarket microstructure
MQL5 articles

The article explains how to search for slower lead/follower behavior between related assets, where one instrument’s returns may precede another’s by minutes or longer. It frames the setup as a potential mean-reversion opportunity for cointegrated assets and…

EquitiesMean reversionPairs tradingStatistics
MQL5 articles

This article proposes opening a daily hedge across GBP/JPY and EUR/JPY, using EUR/JPY as the base position and GBP/JPY as the offsetting position. A TD Sequential signal supplies the directional bias, and the author suggests requiring strong positive…

ForexPairs tradingRisk managementBacktesting
MQL5 articles

The article outlines a MetaTrader 5 Expert Advisor that accepts a configurable list of currency pairs and uses one designated pair as the signal source for trading the others. Its proposed relationship logic distinguishes pairs that share a selected base or…

ForexTechnical indicatorsPairs trading
MQL5 articles

The article explains how trading activity shifts across the Asian, European, and American sessions and how those shifts can shape intraday price movement, liquidity, and volatility. It introduces the ISI ProSpread SMA indicator as a way to study hourly…

ForexPairs tradingVolatilityStatistics
MQL5 articles

This final installment in a retail statistical arbitrage series explains why larger cointegrated stock portfolios can strain a workflow built around SQLite. It distinguishes SQLite’s role in transactional tasks from an OLAP database’s role in analytical…

ArbitragePairs tradingStatisticsPortfolio construction
MQL5 articles

This article presents PairPlot, a graphical tool for examining relationships among multiple trading time series. It arranges a histogram for each series and scatter plots for each pair in a cross-table layout, with trend lines as visual aids. The design uses…

ForexStatisticsPairs tradingArbitrage
MQL5 articles

This installment explains how to simulate changing portfolio weights for a cointegrated stock basket in MetaTrader 5 backtests. Since the live Expert Advisor reads strategy parameters from a database but the Tester cannot access that database directly, the…

EquitiesPairs tradingArbitrageBacktesting
MQL5 articles

This article adapts angle-based analysis to trading indicators and trend estimation. For comparing two currency instruments, it scales prices into comparable point units and interprets their relative values as an angle, with the indicator intended to show…

ForexPairs tradingTechnical indicatorsStatistics
MQL5 articles

This article outlines a forex pair-trading system that compares two instruments through their price ratio. It calculates a Z-score to measure how far the ratio has moved from its historical mean, then uses the sign of the score to choose which instrument to…

ForexPairs tradingMean reversionStatistics
MQL5 articles

The document explains two statistical arbitrage approaches for trading related currency pairs: correlation and cointegration. In the correlation method, traders select historically related pairs, monitor changes in their correlation, and enter opposing…

ForexPairs tradingMean reversionStatistics