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 add an initial-cost limit to an integer linear portfolio optimization problem. Portfolio positions can be positive for purchases or negative for short sales, and the proposed constraint allows initial cost to be capped at a positive,…

OptionsPortfolio constructionRisk management
Quant Q&A

The document asks how to calculate asset-level contributions to portfolio risk when asset weights have drifted over the historical sample. It presents the familiar two-asset portfolio variance formula and describes risk contribution as portfolio weight…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document considers how to turn market-cap weights into an equity index portfolio subject to individual-stock and sector caps. It distinguishes feasibility from preference: constraints specify which portfolios are allowed, but by themselves do not…

EquitiesPortfolio constructionRisk managementStatistics
Quant Q&A

The document addresses how overlapping delivery periods can affect principal component analysis of gas forward curves. A monthly contract may also be included inside a quarterly or calendar contract, so treating all quoted contracts as independent curve…

CommoditiesFuturesStatisticsPortfolio construction
Quant Q&A

The discussion examines why portfolio theory often uses mean-variance utility and whether quadratic utility is a realistic model of investor preferences. Quadratic utility is analytically convenient, but can imply increasing absolute risk aversion and a…

Portfolio constructionRisk managementStatistics
Quant Q&A

For a portfolio with weighted asset returns, the variance can be estimated directly from the resulting portfolio return series or calculated from individual asset variances and their covariances. Under the same weights and return observations, these…

Risk managementStatisticsPortfolio construction
Quant Q&A

The document describes a block-bootstrap workflow for multivariate time series. The author estimates a block size for each series, selects the largest estimate, bootstraps one series with that block size, and uses the resulting index to reconstruct the other…

StatisticsBacktestingPortfolio construction
Quant Q&A

The document explains several ways to identify which positions or strategies contribute most to value at risk. With a covariance-based VaR model, marginal contributions can be estimated from derivatives of portfolio VaR with respect to positions, preserving…

Risk managementPortfolio constructionStatisticsBacktesting
Quant Q&A

When a portfolio is split among sectors and each sector’s return is known for the same period, its aggregate return is the weighted sum of those sector returns. Multiply each sector return by its portfolio allocation and add the results; the weights should…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document considers the terminal wealth distribution when monthly investments rise at a fixed rate while asset returns are independent and identically distributed lognormal variables. It contrasts this regular-contribution plan with a lump-sum investment,…

StatisticsPortfolio constructionEquities
Quant Q&A

The document poses a portfolio construction question: when choosing a subset of stocks with Markowitz mean-variance theory, should stocks with negative average weekly returns be discarded? It provides no proposed selection rule, numerical example, covariance…

EquitiesPortfolio constructionRisk management
Quant Q&A

The document asks how to apply a mean-variance framework for estimating the fee an active fund can charge above a passive index fund. The stated formula aggregates squared alpha-to-residual-risk ratios across securities and adjusts for investor risk…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document points to Markov-switching models as a way to represent changing financial conditions, including market turbulence, inflation, and economic growth. It recommends a study that explains hidden Markov model estimation with the Baum–Welch algorithm…

StatisticsMachine learningPortfolio constructionBacktesting
Quant Q&A

The document explores whether CAPM remains valid when investor preferences follow Prospect Theory, with utility that is concave for gains and convex for losses. It contrasts this pattern with the concave utility and mean-variance assumptions often used to…

Portfolio constructionStatisticsRisk managementFactor investing
Quant Q&A

The document considers maximizing a portfolio’s Sharpe ratio when the portfolio must also satisfy a quadratic risk limit. A standard change of variables turns the ratio objective into minimizing portfolio variance subject to a linear return normalization.…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document distinguishes two meanings of liquidity risk. One concerns whether assets can be sold or repoed quickly enough to meet cash obligations. The other is the price impact or discount that may arise when an investor must sell an illiquid bond, which…

Fixed incomeRisk managementPortfolio construction
Quant Q&A

The document asks how to calculate and compare portfolio performance when positions are opened and closed at different times. It presents a sequence of stock trades with staggered entry and exit dates to illustrate why simply adding each trade’s annualized…

Portfolio constructionStatistics
Quant Q&A

The document contrasts portfolio calculations using simple returns with those using log returns. It gives the familiar weighted covariance formula for variance under linear returns and expresses portfolio log return as the logarithm of the weighted sum of…

Portfolio constructionStatisticsRisk management
Quant Q&A

The discussion considers how an intraday strategy trading S&P 500 stocks can screen new signals against its existing portfolio. The proposed starting point is to estimate each stock’s market beta and restrict trades when aggregate beta exposure crosses a…

EquitiesRisk managementPortfolio constructionMarket microstructure
Quant Q&A

The document distinguishes ensemble learning from pooling forecasts. Ensembles combine related estimates generated within a shared modeling process, while forecast pooling combines predictions that may come from different models. It also separates combining…

StatisticsMachine learningPortfolio constructionBacktesting
Quant Q&A

The document examines whether standard deviation remains a useful risk proxy when returns take only two values, such as zero or a positive payoff. Its central recommendation is to begin with the decision the measure is meant to support. If the practical…

Risk managementStatisticsPortfolio construction
Quant Q&A

The discussion examines how to infer cumulative prospect theory (CPT) parameters from an observed portfolio. The proposed method searches over value-function and probability-weighting parameters, repeatedly optimizing portfolio weights under constraints,…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document outlines a way to test a cross-sectional momentum strategy on monthly bond data. At each rebalancing month, use each eligible bond’s return over the defined lookback period to rank the universe and assign bonds to ten portfolios, from past…

Fixed incomeMomentumBacktestingPortfolio construction
Quant Q&A

The document asks why portfolios selected using three risk or performance criteria—the Sharpe ratio, ulcer performance index, and serenity ratio—appear at the same point on separately constructed efficient frontiers. It states that the risk-free rate is zero…

Portfolio constructionRisk managementStatistics