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
Quantpedia
86 documents
TqSdk
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 document asks how to construct quantity values associated with an already ordered price series, while controlling their dependence, to study how correlation changes a total-revenue curve. The responses offer two approaches. For a short fixed vector, one…

StatisticsEquitiesPortfolio construction
Quant Q&A

The document explains how annualization differs across common performance ratios calculated from monthly returns. Under an independent and identically distributed monthly-return assumption, Sharpe and Information ratios scale by the square root of twelve:…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document presents a portfolio optimization modeling problem. The decision variables represent net asset weights and separate gross long and short positions, with constraints linking net weights to those positions and bounding total gross exposure. The…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document reviews risk-neutral valuation in a binomial model with constant or adapted, time-varying interest rates. It describes valuing a payoff by taking its conditional expectation under the risk-neutral measure and discounting by the relevant sequence…

Derivatives pricingFixed incomePortfolio construction
Quant Q&A

The document explains that beta’s sign is determined by covariance, or equivalently correlation, with the chosen reference market. The market portfolio in the CAPM is an idealized aggregate; empirical analysis usually uses a narrower index, such as a stock…

StatisticsPortfolio constructionRisk managementMulti-asset
Quant Q&A

The document explains the inputs and calculation used by MATLAB’s PORTVAR function. Asset data are arranged with one security’s historical observations in each column, and portfolio weights correspond to those columns. If weights are omitted, the function…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document asks how to reduce a covariance matrix for 100 stocks to a five-by-five matrix after grouping the stocks into five clusters. The intended use is a two-stage asset allocation process: first allocate across clustered returns, then perform a…

Portfolio constructionEquitiesStatistics
Quant Q&A

The document presents questions about a continuous-time Kelly allocation derived for a risky asset modeled as a diffusion and a risk-free asset. Under the stated assumptions of self-financing trading, continuous rebalancing, and no market frictions, the…

Position sizingStatisticsRisk managementPortfolio construction
Quant Q&A

Money-weighted return is an internal rate of return computed from an investment’s dated cash flows. When those flows change sign multiple times, the return equation can have more than one solution, so the reported rate may not uniquely describe performance.…

StatisticsPortfolio construction
Quant Q&A

This discussion examines whether downside market capture should use compounded returns or sums of periodic returns. One answer explains that simple percentage returns do not add to produce cumulative wealth: compounding uses the product of one plus each…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document discusses ways to reduce the runtime of repeated mean-variance portfolio optimizations, such as daily rebalancing for a universe of fewer than one hundred assets. It suggests first considering whether the work can be parallelized, then using the…

Portfolio constructionEquitiesBacktesting
Quant Q&A

The document examines a convex optimization formulation for constructing a portfolio with a target risk budget. The stated objective combines portfolio variance with a logarithmic penalty weighted by each asset’s desired budget. The questioner imposes a…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document considers how to assess performance when an investor adds money at uneven intervals and holds a mix of securities, including ETFs and options, potentially with leverage. Its response separates investor cash flows from the return series used for…

StatisticsRisk managementPortfolio constructionOptions
Quant Q&A

The document explains how to calculate each asset’s contribution to a portfolio’s volatility from the covariance matrix and portfolio weights. For covariance matrix Σ and weight vector w, portfolio variance is wᵀΣw. The covariance between asset i and the…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document explains how to convert a correlation matrix and a set of standard deviations into a covariance matrix. For each pair of variables, multiply their correlation by both standard deviations. On the diagonal, each variable’s covariance with itself…

StatisticsPortfolio construction
Quant Q&A

The note asks how to measure the relationship between a portfolio of assets and an external series, such as housing prices. Averaging each asset’s correlation with the external metric, weighted by portfolio holdings, may seem appropriate, but the response…

Portfolio constructionStatisticsMulti-asset
Quant Q&A

The document poses a quantitative finance problem: how portfolio values evolve when the underlying investment follows geometric Brownian motion and a fixed dollar amount is withdrawn at the beginning of each year. It asks whether an approximate analytical…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document examines daily returns for a portfolio holding one stock long and another short, with cash proceeds from the short sale included in net asset value. It shows that the portfolio return for a later day should be calculated from the change in total…

EquitiesPortfolio constructionRisk management
Quant Q&A

The discussion examines why rational investors may dislike risk in the CAPM framework and challenges the claim that holding a risky investment for many years makes it effectively safer. It distinguishes the expected annual return from realized returns: a…

Risk managementStatisticsPortfolio construction
Quant Q&A

The document explains what serves as collateral in a collateralized loan obligation. A special purpose vehicle buys leveraged loans and issues debt tranches as well as a junior equity security. The loan pool is held by the vehicle; the manager is paid to…

Fixed incomeRisk managementPortfolio construction
Quant Q&A

The document considers whether the optimal risky-asset weight in the classical Merton portfolio problem must lie between zero and one. In the setup described, the investor allocates a fraction of wealth to a risky asset, with zero interest rates assumed for…

Portfolio constructionPosition sizingRisk management
Quant Q&A

The document addresses the tedious process of downloading adjusted closing prices for several stocks individually and merging the resulting files. It presents two programmatic alternatives: using a Python data-reader library to request multiple symbols over…

EquitiesBacktestingPortfolio construction
Quant Q&A

The document proposes studying a quantity formed by multiplying the difference in expected returns of two return series by the square root of the variance of their return difference. This reverses the variance term’s placement in the conventional information…

StatisticsMulti-assetPortfolio construction
Quant Q&A

The document clarifies how group constraints differ from general linear inequality constraints in portfolio optimization. Both can express limits on a weighted sum of asset positions. A group constraint is a specialized case in which every included asset has…

Portfolio constructionRisk management