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
Quantopian lectures
45 documents
Binance API docs
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 discussion examines whether a year or several years of daily returns can provide reliable inputs for a mean-variance portfolio of multiple assets. Its central warning is that sample means are imprecise: the uncertainty around an estimated mean remains…

Portfolio constructionStatisticsRisk managementMomentum
Quant Q&A

The document considers choosing nonnegative stock allocations under a fixed budget to maximize a portfolio’s historical Sharpe ratio. The response identifies the target as the tangency portfolio and recommends formulating the problem with asset returns,…

EquitiesPortfolio constructionRisk managementStatistics
Quant Q&A

The document asks whether a custom global index can serve as the market portfolio in a CAPM-based Black–Litterman estimate of expected returns for regional equity and bond ETFs. The response explains that if CAPM holds for individual assets, its relationship…

Multi-assetFactor investingPortfolio constructionRisk management
Quant Q&A

The answer describes how to choose the floating-leg spread that makes a swap’s initial value zero when the fixed leg’s value is known. It values each floating coupon using its discount factor and accrual fraction, with the coupon rate equal to the reference…

Derivatives pricingFixed incomeRisk managementPortfolio construction
Quant Q&A

The document considers whether an actively constructed corporate bond portfolio can target a yield premium over a benchmark while still seeking to outperform it. The proposed starting point is to collect historical returns for corporate bonds and form a…

Fixed incomePortfolio constructionStatisticsRisk management
Quant Q&A

The document examines an argument that derives the Capital Asset Pricing Model from the Capital Market Line by multiplying the CML return equation by the correlation between a portfolio and the market. Under the standard setup with a risk-free asset,…

Portfolio constructionStatisticsFactor investing
Quant Q&A

The document asks how to calculate historical portfolio returns when a strategy spans thousands of securities and supplies target weights for each trading day. It contrasts this task with event-driven backtesters that process instruments individually, which…

BacktestingPortfolio constructionEquities
Quant Q&A

The discussion asks whether a fund’s average allocations to two equities can be inferred from the fund’s cumulative performance and the equities’ performance, given the assumption that the fund only holds those securities. The substantive answer recommends…

Portfolio constructionStatisticsEquities
Quant Q&A

The document asks how to measure risk for a portfolio of correlated assets under a multivariate return model. It contrasts the familiar portfolio standard deviation, formed from weights and the covariance matrix, with a proposed Mahalanobis distance that…

Portfolio constructionRisk managementStatistics
Quant Q&A

For assets with uncorrelated returns, the discussion derives the maximum attainable portfolio Sharpe ratio and the corresponding relative weights. With diagonal covariance, each asset contributes its squared individual Sharpe ratio to the portfolio’s maximum…

Portfolio constructionStatisticsRisk management
Quant Q&A

The answers distinguish differences in investors’ forecasts from differences in their current cost of capital, while also treating preferences as a separate source of heterogeneity. Tax treatment, funding sources, utility preferences, and transaction costs…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document clarifies the meaning of the correlation term in a risk-parity allocation formula. Each ρ term represents the correlation between a pair of assets and is one entry in the portfolio’s correlation matrix. These values describe how asset returns…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document connects equally weighted risk contributions with risk parity. Instead of assigning assets equal amounts of capital, a risk parity portfolio aims to allocate equal shares of the portfolio’s expected risk to its components. The response…

Portfolio constructionRisk managementMulti-asset
Quant Q&A

The document presents a static replication method for a continuous, piecewise-linear European payoff. It begins with a zero-coupon bond paying the payoff at the lowest underlying value. At each breakpoint, the change in the payoff’s slope determines a…

OptionsDerivatives pricingPortfolio construction
Quant Q&A

The document surveys ways to compare covariance forecasts for a fixed asset universe, with emphasis on their use in mean-variance portfolios. Direct approaches include forecast bias statistics and Mincer-Zarnowitz-style regressions that compare predicted and…

StatisticsPortfolio constructionRisk managementBacktesting
Quant Q&A

The document contrasts bond portfolio immunization with cash-flow matching and speculative positions on large interest-rate moves. Cash-flow matching aims to align asset inflows with liability dates, while immunization relies on matching present values and…

Fixed incomeRisk managementOptionsPortfolio construction
Quant Q&A

The document discusses valuation of a pre-revenue biotech company expected to fund operating costs through future equity issuance. The answer cautions that cash raised through financing does not belong in free cash flow, which is intended to capture…

EquitiesPortfolio constructionRisk management
Quant Q&A

The document explains how to calculate monthly strategy returns when a momentum strategy forms a new winner portfolio each month and holds each one for K months. Under the equal-subportfolio buy-and-hold method associated with Jegadeesh and Titman, the…

MomentumPortfolio constructionBacktesting
Quant Q&A

The document explains how to manage leverage in a mean-variance portfolio optimization with active weights. It reframes holdings as total portfolio weights and adds a penalty proportional to the sum of their absolute values. This absolute-value term is an L1…

Portfolio constructionRisk managementPosition sizingStatistics
Quant Q&A

The document explains why Black-Litterman implementations often use a diagonal view-error covariance matrix, while emphasizing that this is a modeling choice rather than a requirement of the framework. A diagonal matrix treats investor views as uncorrelated.…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document discusses how to allocate capital across strategies that span assets and holding periods. It frames the challenge as controlling shared market exposures while diversifying risks unique to individual strategies, such as a single-name failure or a…

Portfolio constructionRisk managementStatisticsBacktesting
Quant Q&A

The document formulates a portfolio allocation problem for a long-short universe of stocks. Each position’s expected return is reduced by a slippage estimate that rises with trade size relative to daily volume. The proposed objective maximizes aggregate…

EquitiesPortfolio constructionExecutionPosition sizing
Quant Q&A

The document introduces portfolio risk premium as compensation investors may require for accepting uncertain returns instead of a stable cash flow with the same average return. It explains this preference through risk aversion: an investor may give up some…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document outlines a two-step approximation for reporting yield across a bond portfolio denominated in multiple currencies. First, to express a bond’s yield in another currency, it proposes matching the bond’s cash flows with one leg of a cross-currency…

Fixed incomeMulti-assetPortfolio construction