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 document describes adding an L2 penalty to a minimum-variance portfolio objective. The penalty is proportional to the squared asset weights, discouraging concentrated allocations and creating a trade-off between minimizing modeled variance and keeping…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document defines portfolio exposure measures using the dollar values of long positions, short positions, and cash. Long value is aggregated as a positive amount, while short positions are treated by their absolute dollar value when calculating total…

Portfolio constructionRisk managementPosition sizing
Quant Q&A

The document asks how to model VIX futures for portfolio risk management, with emphasis on estimating volatility and correlations rather than pricing. The answer favors empirical historical return distributions because they reflect real-world probabilities,…

VolatilityRisk managementPortfolio constructionStatistics
Quant Q&A

The document raises how to estimate a portfolio’s expected daily movement in dollars from historical asset prices and current positions. Its portfolio contains long and short exposures, and some instruments have contract multipliers that make one unit…

Portfolio constructionRisk managementPosition sizingStatistics
Quant Q&A

The document addresses how to quantify diversification for a portfolio with more than two securities. It presents portfolio return variance as a function of asset weights, individual return variances, and pairwise correlations. This captures how co-movement…

Portfolio constructionStatisticsRisk managementEquities
Quant Q&A

The document explains how in-sample and out-of-sample estimates apply to mean-variance optimization (MVO). In-sample results evaluate portfolio weights on the same historical data used to estimate or optimize them, while out-of-sample results evaluate…

Portfolio constructionBacktestingStatisticsRisk management
Quant Q&A

The answers describe uses of volatility outside options trading, focusing on risk measurement rather than forecasting the direction of prices. Higher volatility signals that returns may fluctuate more, so a trader targeting a fixed amount of risk may need to…

VolatilityRisk managementPosition sizingPortfolio construction
Quant Q&A

The document compares a conditional Markowitz optimization, using estimated expected returns and a covariance matrix to choose next-period weights, with an approach that maximizes average realized portfolio returns penalized by squared deviations from the…

Portfolio constructionStatisticsRisk managementEquities
Quant Q&A

The document asks whether correlations for a portfolio holding stocks quoted in Brazilian reais, euros, and US dollars should be calculated from each stock’s local-currency returns or from returns converted into the portfolio’s base currency. One response…

EquitiesStatisticsPortfolio constructionForex
Quant Q&A

The document asks whether portfolio optimization could use the mode of asset-return distributions instead of expected returns. Its motivation is that, for a skewed lognormal distribution, the mean can exceed the mode, and the author reasons that an investor…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document explains why Fama-French factor portfolios use NYSE stocks to set market-value breakpoints instead of sorting all stocks across exchanges together. The historical CRSP coverage of NYSE stocks began earlier than its coverage of Amex and Nasdaq.…

EquitiesFactor investingPortfolio constructionUS markets
Quant Q&A

This document formulates continuous dollar-cost averaging when the stock price follows geometric Brownian motion. With a constant contribution rate, each contribution buys shares at the prevailing price; the final portfolio value can be represented as the…

EquitiesStatisticsPortfolio construction
Quant Q&A

The document discusses a portfolio optimization problem with several risky assets, a covariance matrix, and different rates for risk-free lending and borrowing. The questioner has computed a minimum-variance portfolio and tries to use covariance-matrix…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document asks how to calculate daily returns for a changing, equally weighted long-short stock portfolio. It gives an example with three long positions and one short on the first day, followed by one long and two shorts on the next day. The proposed…

EquitiesPortfolio constructionPosition sizingStatistics
Quant Q&A

The document examines whether standard deviation and variance can be treated as equivalent measures of portfolio risk. In mean-variance optimization with a fixed target for one measure, the other gives the same ranking because each is a one-to-one…

Portfolio constructionRisk managementStatisticsVolatility
Quant Q&A

The document considers selecting a small, equally weighted currency-pair universe from a larger candidate set, aiming to reduce average pairwise correlation. The original approach enumerates every fixed-size combination, computes each basket's correlation…

ForexPortfolio constructionStatisticsRisk management
Quant Q&A

The document explains a direct way to represent custom amortization when constructing a fixed versus floating interest rate swap in QuantLib. The key idea is to provide each leg with a sequence of notionals aligned with its payment schedule, allowing…

Fixed incomeDerivatives pricingPortfolio construction
Quant Q&A

The document asks how macroeconomic indicators might inform long/short equity positions, stock or sector weights, and sector rotation. It frames macro data as a potential input to an existing quantitative allocation process, such as mean-variance allocation,…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document asks why a principal component analysis of currency returns does not produce an eigenportfolio resembling a steadily rising chart shown in an external example. The question describes synchronizing asset prices, converting them to returns,…

ForexStatisticsPortfolio construction
Quant Q&A

The document presents an infinite-horizon portfolio-control problem with time-varying covariance risk, quadratic trading costs, a discount factor, and a constraint that portfolio weights sum to one. The question asks how to use a quadratic value-function…

Portfolio constructionRisk management
Quant Q&A

The document describes an Excel setup for finding a portfolio with a specified annual volatility from three risky assets and a risk-free asset. It outlines how to use estimated expected returns and an annual covariance matrix, account for the risk-free…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document addresses benchmark selection for comparing multi-asset strategies when separate equity, commodity, and fixed-income indices do not provide a single global reference. The question also considers constructing a blended benchmark, such as an…

Multi-assetPortfolio constructionRisk management
Quant Q&A

The document discusses two practical choices in historical scenario analysis for stressed value at risk using a crisis period: what to do when a portfolio asset lacks price history for the selected scenario, and which portfolio exposures to apply. The…

Risk managementBacktestingPortfolio constructionEquities
Quant Q&A

The document addresses how to calculate the future value of recurring deposits made monthly when the deposit amount increases once per year while interest accrues monthly. It presents two approaches for handling the mismatch between payment frequency and…

StatisticsPortfolio constructionFixed income