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 examines a result for equal risk contribution portfolios when every pair of assets has the same correlation. Under that assumption, equal contributions imply that each asset’s weight multiplied by its volatility is equal across assets. The post…

Portfolio constructionVolatilityStatistics
Quant Q&A

The document considers how to reconstruct the historical performance of a stock portfolio. It contrasts a daily return based on prior portfolio value and current holdings’ weights with the simpler calculation of summing each holding’s quantity times its…

EquitiesPortfolio constructionBacktesting
Quant Q&A

The document discusses using principal component analysis to understand portfolio exposures and construct hedge baskets. It corrects an example that applies PCA to equity and ETF returns: the code uses a correlation matrix, while the stated method expects a…

EquitiesPortfolio constructionRisk managementStatistics
Quant Q&A

The document explains that portfolio optimization determines asset weights under a chosen objective; it does not automatically identify a small set of stocks expected to outperform. In mean-variance optimization, the inputs include expected returns,…

Portfolio constructionRisk managementStatisticsEquities
Quant Q&A

The document presents a proxy hedge for a company expecting Norwegian kroner while seeking to manage the dollar value of that future receipt. Because a direct kroner-dollar hedge is assumed unavailable, the company uses euros as a correlated substitute. The…

ForexRisk managementPortfolio constructionStatistics
Quant Q&A

The document explains when a portfolio’s conditional beta can be calculated from the conditional betas of its holdings. For ordinary beta, covariance is linear in portfolio returns, so the portfolio beta equals the sum of each asset’s beta multiplied by its…

Portfolio constructionStatisticsRisk management
Quant Q&A

The note frames value averaging as an investment rule that specifies how much wealth to commit over time to reach a chosen portfolio value path. It characterizes the approach as mean-reverting in spirit: contributions respond to the difference between the…

Mean reversionPortfolio constructionPosition sizing
Quant Q&A

The document asks why a mean-variance optimization formulation uses a cost exponent of five-thirds when incorporating a square root market impact model. The author suspects the exponent may result from converting impact costs between units, but does not…

Market microstructureExecutionPortfolio construction
Quant Q&A

The document raises a question about using exponential differential Shannon entropy as an uncertainty measure in portfolio selection. It asks whether the measure of a sum of random variables is bounded by the sum of their individual measures, and compares…

Portfolio constructionStatistics
Quant Q&A

The document explains why a two-asset portfolio’s standard deviation is not automatically zero when the assets have correlation of negative one. Substituting that correlation into the variance formula yields a perfect square: the absolute difference between…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document shows a maximum-return portfolio optimization with a covariance penalty and intended limits on individual asset weights. Although the author creates absolute-value bounds and a full-investment constraint, the reported portfolio contains…

EquitiesPortfolio constructionRisk management
Quant Q&A

The document poses a methodological question about applying principal component analysis to daily yield curve changes. It compares using observable par rates, as in influential work on common factors in bond returns, with first bootstrapping a curve and…

Fixed incomeStatisticsPortfolio construction
Quant Q&A

The discussion considers how to estimate risk and return for a portfolio whose current holdings are known but whose assets have price histories of unequal lengths, shorter than the desired measurement horizons. One response annualizes estimates from the data…

StatisticsRisk managementPortfolio constructionBacktesting
Quant Q&A

The document examines how many observations are needed to estimate a covariance matrix for portfolio analysis. It distinguishes the sample count needed for a matrix to be full rank from the larger amount of data that may be needed to estimate its entries and…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document explains how to calculate covariance between portfolios, including a global minimum variance portfolio and a mean-variance efficient portfolio. The same covariance definition used for individual securities applies: use the portfolios’ returns…

StatisticsPortfolio construction
Quant Q&A

The document raises a sample-selection question for a value-momentum asset allocation strategy. Its in-sample period includes the global financial crisis, and the strategy optimizes a value cutoff for allocating across asset classes. The concern is that…

BacktestingPortfolio constructionFactor investingRisk management
Quant Q&A

The note considers applying Black–Litterman in an ongoing portfolio rebalancing process. It asks whether previous portfolio weights can serve as the prior when new expected return forecasts arrive. The response says the framework can incorporate market views…

Portfolio constructionPosition sizingRisk managementExecution
Quant Q&A

The document surveys reported portfolio construction approaches at several robo-advisors and asks whether firms rely only on Modern Portfolio Theory or use other methods. The cited descriptions include Black-Litterman expected returns, asset-weight…

Portfolio constructionMulti-assetFactor investingRisk management
Quant Q&A

The discussion derives how to obtain the two multipliers in the first-order condition for a mean-variance efficient portfolio when its target return and fully invested constraint are known. Recasting the condition as the first-order condition of a…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document explains why a two-asset portfolio’s usual return versus standard-deviation curve depends on asset means, variances, and covariance. With those quantities fixed, Pearson correlation determines the covariance term, so additional nonlinear…

Multi-assetPortfolio constructionRisk managementStatistics
Quant Q&A

The document asks how to divide an annualized XIRR among dividends and stock-sale gains, using an example with an initial stock purchase, an interim dividend, and a later sale. The replies distinguish calculating an overall money-weighted return from…

StatisticsPortfolio constructionEquities
Quant Q&A

The discussion examines whether least-squares regression of Nasdaq-100 component prices, returns, or price changes against the index can recover its constituent weights. The original analysis used about 168 market days of adjusted prices for the index’s…

EquitiesStatisticsPortfolio constructionUS markets
Quant Q&A

The document distinguishes the feasible set of randomly sampled portfolios from the efficient frontier. Randomly generated weights populate a cloud of possible risk-return outcomes; points inside that cloud are generally dominated, while its efficient…

Portfolio constructionStatisticsBacktesting
Quant Q&A

The document asks whether combining a volatile underlying asset with options can improve portfolio diversification, measured by a higher Sharpe ratio than holding the asset alone. It motivates the question with a position consisting of one share and one…

OptionsPortfolio constructionRisk management