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

5,922 documents

Quant Q&A

The document clarifies how to combine bonds to immunize a liability using present value and Macaulay duration. Duration is not added directly across assets: a portfolio’s duration is the value-weighted average of the component durations. To form a linear…

Fixed incomeRisk managementPortfolio construction
Quant Q&A

The document discusses how to account for liquidation, transaction, and market impact costs in a constrained mean-variance portfolio problem. It notes that a square-root relationship between trade size and per-share market impact implies total impact costs…

Portfolio constructionExecutionMarket microstructureRisk management
Quant Q&A

The document discusses mean-variance portfolio choice when trading costs are proportional to the absolute change in asset weights. Its proposed objective balances expected return against variance and total rebalancing cost. The formulation represents buys…

Portfolio constructionRisk managementPosition sizingExecution
Quant Q&A

The document asks how to constrain the total short weight in a mean–variance portfolio when short selling is allowed. It defines short exposure as the sum of the negative parts of the asset weights and asks whether this constraint can be linearized with…

Portfolio constructionRisk managementPosition sizing
Quant Q&A

The document compares relative momentum against country-specific factor models for allocating among four international equity ETFs based on performance versus the US market. It favors ranking the country funds against the US benchmark, arguing that separate…

EquitiesMomentumFactor investingPortfolio construction
Quant Q&A

The document addresses whether a fund's management fee applies to gross market value or investor capital in a dollar-neutral long-short portfolio. The answers say that management fees are commonly based on the investor's net asset value or capital account,…

Portfolio constructionRisk managementEquities
Quant Q&A

The document formulates a portfolio-construction problem that balances closeness to a risk-budgeted target portfolio against a tracking-error limit relative to a benchmark. Some benchmark holdings are unavailable, so the candidate portfolio must assign zero…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document addresses equal-weight portfolio returns when assets begin trading at different dates, creating missing returns early in the sample. Treating unavailable observations as zero can assign weight to assets before they existed, while restricting the…

Portfolio constructionStatisticsBacktestingRisk management
Quant Q&A

The document explains how marginal distributions and a copula combine to define a multivariate distribution. Under Sklar’s theorem, each observation is first mapped through its marginal cumulative distribution functions to uniform values; a chosen copula…

StatisticsMulti-assetPortfolio constructionRisk management
Quant Q&A

The document asks how to convert Ang et al.’s daily volatility-mimicking factor, FVIX, into a monthly measure. The factor is constructed by regressing daily changes in the VIX on returns of five portfolios sorted by their sensitivity to those changes, then…

VolatilityFactor investingPortfolio constructionStatistics
Quant Q&A

The document discusses choosing a fixed number of highly correlated stocks from a larger universe. One suggested procedure is to calculate pairwise correlations, rank the pairs, and add stocks from the strongest pairs until the desired count of distinct…

EquitiesStatisticsPortfolio construction
Quant Q&A

The document considers combining portfolio weights produced by several allocation strategies. Its motivation is that estimation error can undermine sophisticated portfolio methods out of sample, so blending candidates might spread that risk. It frames the…

Portfolio constructionBacktestingRisk managementExecution
Quant Q&A

The document addresses how to construct a benchmark yield from bonds grouped by similar risk, maturity, and duration. The investor has calculated each bond’s yield to maturity and wants a representative index from a group of bonds considered comparable to…

Fixed incomeStatisticsPortfolio construction
Quant Q&A

The document shows how to recover period returns from cumulative returns formed by compounding a series of asset returns. It starts from the relationship that cumulative wealth is the product of one plus each period’s return, minus one. To retrieve a missing…

BacktestingStatisticsPortfolio construction
Quant Q&A

The document asks how to calculate expected log growth when the drift and volatility of a geometric Brownian motion depend on the stock’s past path. In the Markov case, where both coefficients depend only on the current price and time, it states that the…

StatisticsPortfolio construction
Quant Q&A

The document explains how to calculate a portfolio’s expected return when the expected returns of its component assets and their portfolio weights are known. The method is a weighted sum: multiply each asset’s expected return by its portfolio weight, then…

Multi-assetPortfolio constructionStatistics
Quant Q&A

The document addresses unintended large-cap or small-cap concentration in a constrained portfolio optimization problem. Its main proposal is to add linear equality constraints that match the portfolio’s exposure to capitalization groups with the benchmark’s…

Portfolio constructionEquitiesRisk management
Quant Q&A

The document considers whether quantitative teams should build statistical and financial libraries in-house or rely on maintained commercial products. Its central arguments for external libraries are reduced implementation and testing effort, access to…

StatisticsRisk managementBacktestingPortfolio construction
Quant Q&A

The note addresses how to form a loss distribution for a portfolio of loans when each loan has the same probability of default and each default causes a fixed loss. It recommends modeling the default count with a binomial distribution, using the number of…

Fixed incomeStatisticsRisk managementPortfolio construction
Quant Q&A

The note explains how to model a fixed real withdrawal from a portfolio when returns and wealth are represented in nominal terms. It defines real wealth as nominal wealth divided by a price index, then expresses a withdrawal as a fraction of that real…

Portfolio constructionRisk managementBacktesting
Quant Q&A

The document distinguishes mean-variance optimization from the Capital Asset Pricing Model. Mean-variance optimization is a portfolio choice problem: it selects weights to minimize variance subject to a target expected return. CAPM, by contrast, describes…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document derives an investment amount for an investor with capital who can place a chosen amount in a portfolio with normally distributed returns. It uses exponential utility, whose absolute risk-aversion parameter controls the investor’s aversion to…

Portfolio constructionPosition sizingRisk managementStatistics
Quant Q&A

The document considers portfolio optimization where an investor may hold at most one asset from each country. It presents two approaches. One uses a quadratic program to optimize weights for a chosen set of assets, with an outer local search that swaps the…

Multi-assetPortfolio constructionBacktestingRisk management
Quant Q&A

The document asks how to decompose a security’s compounded annual return into alpha, factor return, and interaction contributions. For each period, the security return is expressed as alpha plus net factor contribution; compounding across periods creates…

Factor investingStatisticsPortfolio construction