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 examines unexpectedly small cointegration-test p-values obtained by applying a test to log returns from two crypto markets. One response highlights a data-quality problem: equal-length candle arrays are not necessarily synchronized. If an…

CryptoPairs tradingStatistics
Quant Q&A

The document describes frequency-domain methods used to study financial time series, emphasizing wavelets over conventional Fourier analysis. Wavelet methods can examine changing correlations across timescales, estimate time-varying variance as a…

StatisticsVolatilityTechnical indicatorsPairs trading
Quant Q&A

The document examines an apparent contradiction: two identical integrated time series seem to share a stationary relationship, yet a cointegration test may report no cointegration. It explains that the residual from an Engle–Granger regression of one series…

StatisticsPairs tradingBacktesting
Quant Q&A

The document examines whether predictability in a stationary process implies mean reversion or momentum, focusing on how different papers use a predictability ratio to select portfolios. It explains a Box–Tiao decomposition that separates total variation…

StatisticsMean reversionMomentumPairs trading
Quant Q&A

The document addresses how to interpret coefficients after applying the Johansen cointegration test in a linear time-series setting. The answer advises using the original variables rather than truncating or otherwise altering them for interpretation. It also…

StatisticsPairs trading
Quant Q&A

The document presents two Johansen trace test outputs from a pair trading model, using one and two lags, and asks how to interpret them. In both cases, the reported statistics are below their critical values and the p-values exceed the stated significance…

Pairs tradingStatistics
Quant Q&A

The document explains how to interpret a hedge ratio estimated by regressing one stock’s log price on another’s. The ratio describes the relative percentage sensitivity of the two stocks: for example, a ratio of two means that a one percent logarithmic move…

Pairs tradingEquitiesPosition sizingStatistics
Quant Q&A

The document considers how to project future profit and loss and drawdowns for trading strategies and portfolios. It raises several possible approaches: extrapolating a backtest, resampling its empirical returns, forecasting time-varying variance with GARCH…

BacktestingRisk managementStatisticsPortfolio construction
Quant Q&A

The document asks how to calculate returns for a spread that can take negative values, since the logarithm of a negative spread level is undefined. It considers adding a constant large enough to make every observation positive, which keeps absolute…

StatisticsBacktestingPairs trading
Quant Q&A

The document considers using a multiple linear regression of a stock’s price on market, commodity, competitor, and currency variables to estimate a model-implied price. The proposed trade goes long when the observed price is below that estimate, with a…

Pairs tradingEquitiesStatisticsMean reversion
Quant Q&A

The discussion considers whether reversing one currency quote can make two negatively correlated exchange rates suitable for a cointegration or distance based strategy. It uses EUR/USD and USD/JPY as examples, noting that quote direction changes the way…

ForexPairs tradingStatistics
Quant Q&A

In rates trading, an outright position is a trade in an instrument taken on its own, rather than as one leg of a broader paired or hedging structure. When a trader requests a price for a swap, a dealer may ask whether the trade is outright to understand…

Fixed incomePairs trading
Quant Q&A

The document asks how to translate a pairs-trading spread signal into positions in two assets. It defines a spread as one price minus beta times the other and considers entry signals when the spread moves above or below its mean by a standard deviation. The…

Pairs tradingMean reversionPortfolio construction
Quant Q&A

Pairs trading is presented as a relative-value position: take a long position in an asset expected to outperform and a short position in a related asset. A stock example pairs a long position in General Motors with a short position in Ford. The intended gain…

Pairs tradingMean reversionEquitiesRisk management
Quant Q&A

The document explains how to read output from Johansen and Engle–Granger cointegration tests for a pair of time series. In the example, the test indicators fail to reject their null hypotheses, and the reported p-values are high. The answer interprets this…

StatisticsPairs tradingMean reversionBacktesting
Quant Q&A

The document asks how to express forecasts of relative stock performance in a mean-variance portfolio optimizer for a medium-frequency strategy with holding periods of about a day to a week. It frames statistical arbitrage as trading relationships among…

EquitiesArbitragePairs tradingPortfolio construction
Quant Q&A

The document explains why a statistically cointegrated pair can still perform poorly in a trading backtest. It identifies transaction costs as a major obstacle, especially when the spread between related securities is small, and warns that statistical mean…

Pairs tradingMean reversionStatisticsBacktesting
Quant Q&A

The document asks how to extend a Kalman filter regression commonly used to estimate a rolling spread between two asset price series. The proposed relationship models one asset’s price as a linear combination of two other asset prices, with an optional…

EquitiesStatisticsPairs tradingMean reversion
Quant Q&A

The document discusses how to extend pairs trading to baskets of more than two securities. Its central idea is to seek portfolio weights that produce a stationary portfolio series, then trade deviations as they revert. It points to general portfolio methods…

Mean reversionPairs tradingStatisticsPortfolio construction
Quant Q&A

The document addresses how to represent a persistent, nonzero equilibrium spread between prices that are cointegrated, such as the same instrument traded in different markets. In a bivariate vector error-correction model, the proposed approach includes a…

StatisticsPairs tradingMean reversionEquities
Quant Q&A

The document asks how to chart a long-short position when its two stocks have different capital weights or market sensitivities. One response says to combine each stock’s price or profit-and-loss contribution using the same weights as the position, so the…

EquitiesPairs tradingRisk managementPosition sizing
Quant Q&A

The document asks how to turn a factor that tracks price into buy and sell decisions, using the difference between German and US ten-year yields alongside EUR/USD as an example. One response describes a pairs trading approach: first test whether the series…

ForexFixed incomePairs tradingMean reversion
Quant Q&A

The document examines a common pairs-trading heuristic: regress each asset on the other, construct a spread from each regression, and choose the hedge ratio associated with the stronger Augmented Dickey-Fuller result. It argues that this choice lacks a sound…

Pairs tradingStatisticsMean reversionRisk management
Quant Q&A

The document surveys ways to compare stock time series, with the practical suggestion to work with returns or differences rather than trending price levels. It reviews Pearson correlation for linear association and rank-based Spearman and Kendall measures…

EquitiesStatisticsPairs tradingMarket microstructure