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

Quant Q&A

The document compares two regressions of Whiting Petroleum and Approach Resources prices over the same period. It estimates a spread as one price minus an OLS hedge ratio times the other, then applies an Augmented Dickey–Fuller test. In one direction the…

Pairs tradingMean reversionStatisticsEquities
Quant Q&A

The document investigates why two Australian bank share prices that appear to move closely together fail a cointegration test. The proposed workflow estimates a hedge ratio with a regression through the origin, forms the price residual spread, and applies an…

EquitiesPairs tradingMean reversionStatistics
Quant Q&A

The discussion considers whether market conditions can indicate when to use mean-reversion strategies across a broad stock universe. One answer frames reversal as primarily an individual-stock effect that may average out across stocks, and points to research…

EquitiesMean reversionMomentumPairs trading
Quant Q&A

The document asks whether a tighter linear relationship between two equity prices leaves fewer opportunities for pairs trading. It distinguishes the quality of a cointegrating fit from the behavior of the residual spread, and asks whether a residual with…

EquitiesPairs tradingMean reversionStatistics
Quant Q&A

The document raises a theoretical question about cointegration when each component time series has strictly stationary first differences, but the differenced series are not assumed to be jointly stationary. It defines a cointegration vector as a vector whose…

StatisticsPairs trading
Quant Q&A

The document explains key parts of Johansen trace-test output for assessing cointegration in a vector time series. It identifies the loading matrix as alpha and describes comparing trace statistics with critical values under successive rank hypotheses. In…

StatisticsPairs tradingMean reversion
Quant Q&A

The document examines how FIFO trade matching can produce different realized P&L and residual inventory when trades from two locations are concatenated in different orders. Its example uses offsetting trades at locations A and B: the order changes which…

Pairs tradingBacktestingRisk managementStatistics
Quant Q&A

The discussion explains why high correlation between two price series does not by itself show that a pairs trade will converge. A nonlinear example, where one series is the square of another, can produce strong correlation even though their relationship does…

Pairs tradingStatisticsRisk managementEquities
Quant Q&A

The document explains how price differences across separate markets can support paired relative-value positions when only one currency can move between venues. It converts quoted exchange rates into the cost of each traded currency in terms of the…

ArbitragePairs tradingForexExecution
Quant Q&A

The document examines whether a random-walk state transition is suitable when a Kalman filter estimates dynamic weights for a cointegrated portfolio. It proposes a diagonal transition matrix in which the component associated with the stationary portfolio…

Pairs tradingMean reversionMachine learningBacktesting
Quant Q&A

The note considers how to represent the short leg of a pair trade when direct shorting is unavailable, using an inverse ETF as a proxy. Its suggested adjustment is to account for the inverse ETF’s beta when setting the hedge against the long position. This…

EquitiesPairs tradingMean reversionPosition sizing
Quant Q&A

The document asks how to replace a rolling regression with a Kalman filter to estimate a time-varying beta between two stocks. It identifies R’s dlm package as a possible tool, but does not provide an implementation, specify a state-space model, or explain…

EquitiesPairs tradingStatistics
Quant Q&A

The document asks how to translate a stop level on the spread between two securities into separate stop prices for each leg of a pair trade. Its example gives two stock prices and a spread stop, then asks whether each issue can have its own price stop before…

Pairs tradingRisk managementEquities
Quant Q&A

The document asks how to assess a cointegration-based pairs strategy when trades overlap and remain open for different lengths of time. It questions whether to average trade returns, divide each trade return by its holding days, or compare aggregated trade…

Pairs tradingBacktestingPortfolio constructionRisk management
Quant Q&A

The document considers why hedge ratios are usually tied to changes in asset value rather than a direct regression of raw price levels. A return regression estimates how one asset’s returns tend to vary with another’s, making its slope interpretable as a…

StatisticsPairs tradingRisk management
Quant Q&A

The question asks how to simulate two cointegrated asset prices to evaluate a spread trading rule. It considers modeling only the spread, simulating both prices, or using a vector autoregression, while noting that the individual assets need not be mean…

Pairs tradingMean reversionBacktestingStatistics
Quant Q&A

The document describes zero-crossing frequency as a formation-period measure for selecting pairs in a mean-reversion strategy. A crossing is counted when the pair spread changes sign, moving from positive to negative or negative to positive. The cited…

Pairs tradingMean reversionStatistics
Quant Q&A

The note summarizes the Engle–Granger two-step procedure for assessing whether two time series are cointegrated. First test each series for its integration order, using an augmented Dickey–Fuller test to check that each is nonstationary in levels but…

StatisticsPairs tradingMean reversionEquities
Quant Q&A

The discussion surveys ways machine learning can be applied to quantitative finance and points readers toward introductory resources. It names supervised prediction of returns and alpha-factor selection, classification-based strategy research, and…

Machine learningEquitiesPairs tradingMean reversion
Quant Q&A

The discussion explains why combining the separate OHLC values of two assets does not generally produce a reliable spread bar. Opens and closes can be paired when their timestamps align, but each instrument’s high and low may have occurred at different…

EquitiesPairs tradingMarket microstructureStatistics
Quant Q&A

The document explains how to turn a cumulative dollar-return series from a pairs strategy into observations for a Sharpe ratio. One approach takes day-to-day differences in cumulative dollar returns; another divides each change by the prior cumulative value…

Pairs tradingStatisticsRisk management
Quant Q&A

This discussion challenges the intuition that a constant mean forces a process to return toward that mean after deviations. It gives a discrete-time counterexample: a process randomly initialized at either of two values and then fixed there can be stationary…

StatisticsMean reversionPairs trading
Quant Q&A

The document considers how to choose entry and exit thresholds for a cointegration-based mean-reversion strategy on transaction-level series that may contain only about 1,600 observations, or seconds. It explains why thresholds based on a rolling standard…

Mean reversionPairs tradingStatisticsTechnical indicators
Quant Q&A

The discussion compares two backtest approaches for a mean-reverting pair trade in liquid ETFs: generating signals from estimated bid and ask prices, or generating them from closes and subtracting spread costs from profit and loss. It explains that the…

BacktestingPairs tradingMean reversionExecution