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

Search the library

765 documents

Quant Q&A

The document outlines several ways cointegration can inform trading and portfolio analysis. For two traded securities, a stable long-run relationship can motivate a pairs strategy: estimate the relationship, monitor the spread, and take opposing positions…

Pairs tradingMean reversionStatisticsPortfolio construction
Quant Q&A

The document explains why cointegration-based pairs trading research often regresses log prices instead of raw prices. In an Engle–Granger approach, cointegration is assessed through the regression residuals; logging prices may make their relationship more…

Pairs tradingStatisticsEquitiesMean reversion
Quant Q&A

The document asks how to test whether a pairs trading strategy has predictive power, and whether detrending methods used for other trading systems apply when the traded signal is already a linear combination of two price series. The answers outline two…

Pairs tradingStatisticsBacktestingExecution
Quant Q&A

The document explains how to identify candidate pairs for trading relative moves in equity-option implied volatility, even when the individual volatility series are already stationary. Cointegration is not essential: the relevant question is whether a spread…

OptionsVolatilityMean reversionPairs trading
Quant Q&A

The document discusses a pairs-trading spread formed from the log prices of two stocks, with a hedge ratio estimated by rolling ordinary least squares. The questioner treats deviations in the spread as mean-reversion signals and asks whether a negative…

Pairs tradingEquitiesStatisticsMean reversion
Quant Q&A

The document raises a question about how to interpret a Kalman filter signal in a mean-reverting spread strategy. In the cited setup, the latent spread follows a mean-reverting process, while observed spread values include measurement noise. The proposed…

Pairs tradingMean reversionStatistics
Quant Q&A

The document explains how to interpret differences in government bond Z-spreads when comparing bonds of similar maturity. A higher Z-spread means the bond’s price is lower relative to the reference zero-coupon curve, because a larger discount spread is…

Fixed incomePairs tradingMean reversion
Quant Q&A

The document explains why cointegration is tested on price levels rather than on price differences or returns. Cointegration applies when two nonstationary series have a linear combination that is stationary. Since differences and log returns are often…

StatisticsPairs tradingEquities
Quant Q&A

The document considers how to express a long Mexican peso versus Japanese yen position using separate currency futures. It compares the dollar-equivalent notionals of two yen contracts and one peso contract, then asks whether the proposed direction is to…

FuturesForexPairs tradingRisk management
Quant Q&A

The document outlines a proposed automated foreign-exchange strategy built around cointegration and forecasting a spread. Its listed workflow transforms price data into log returns, treats outliers, performs linear regression, tests for cointegration with an…

ForexPairs tradingMean reversionBacktesting
Quant Q&A

The document examines why equal-dollar long and short positions are sometimes compared with cash-like benchmarks, while emphasizing that dollar neutrality does not make a portfolio riskless. A long-short portfolio can reduce broad market exposure and seek…

EquitiesPairs tradingRisk managementPortfolio construction
Quant Q&A

The document discusses how to turn an Engle–Granger cointegration test into a pairs trade. It estimates a hedge ratio by regressing one asset’s price on the other without an intercept, forms the residual spread as the first price minus the…

Pairs tradingMean reversionStatisticsTechnical indicators
Quant Q&A

The document presents ways to simulate multiple price series whose log prices share stationary long-run relationships. One approach specifies an error-correction mechanism: deviations from a chosen cointegrating combination pull the series back toward…

StatisticsPairs tradingMean reversionBacktesting
Quant Q&A

This question examines how to manage simultaneous pair trades that each use the same ETF as a hedge. One signal calls for a long position in a stock against a short ETF position, while another calls for a short stock position against a long ETF position. The…

EquitiesPairs tradingPortfolio constructionPosition sizing
Quant Q&A

The question asks why eigenvectors from the Johansen cointegration procedure can serve as hedge ratios for a portfolio intended to be stationary. The answer offers a geometric account of eigenvectors and relates the weights to historical dependence among…

Pairs tradingMean reversionStatisticsPortfolio construction
Quant Q&A

The discussion asks whether cointegration between two pairs of series implies cointegration between the outer pair, and whether test statistics can bound that relationship. It highlights a key condition: if X and Y share a stationary residual, and Y and Z…

StatisticsPairs trading
Quant Q&A

The note distinguishes gross return on traded notional from return on capital employed for a long-short pair trade. In its example, the long and short legs each have the same initial dollar notional, and their combined gains produce a gross return calculated…

Pairs tradingEquitiesRisk management
Quant Q&A

The discussion considers why experienced human traders can earn money using familiar approaches such as pairs trading, trend following, and factor investing. It offers several possible explanations: chance can leave a visible group of winners, strategy…

StatisticsRisk managementPairs tradingTrend following
Quant Q&A

The document considers replacing a stock pair trade based on cointegration with long at-the-money options: calls on the underperforming stock and puts on the outperforming stock, sized using the cointegration hedge ratio. The response highlights three key…

EquitiesOptionsPairs tradingVolatility
Quant Q&A

The document asks why a spread formed from an in-sample OLS regression of one asset on another diverges out of sample, even though the assets appear cointegrated and their simple price difference stays relatively bounded. The proposed spread scales one…

Pairs tradingEquitiesStatistics
Quant Q&A

The document describes difficulties backtesting a simple intraday pairs strategy on 30-minute bars. The author has calculated a spread, hedge ratio, and standard deviation, and uses spread thresholds to create long and short signals. Treating the spread…

Pairs tradingBacktestingEquities
Quant Q&A

The document considers three cointegrated stocks with known portfolio weights and a mean-reversion view: when the weighted portfolio falls unusually low, a trader may expect it to recover. It first describes matching the portfolio’s directional exposure by…

EquitiesOptionsMean reversionPairs trading
Quant Q&A

The document describes a proposed statistical arbitrage workflow: enumerate combinations of assets, estimate hedge weights by regressing one asset on the others, and seek a spread with substantial high-frequency variation but little low-frequency drift. A…

CryptoMean reversionPairs tradingStatistics
Quant Q&A

The document explains why funds paired short positions in Volkswagen ordinary shares with long positions in preference shares during Porsche’s takeover campaign. The two classes had similar economic cash flows, but only the ordinary shares carried voting…

EquitiesPairs tradingMean reversionEvent-driven