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 asks how to adjust existing weights when combining multiple strategies whose returns are correlated. Its answer begins by tying the adjustment to the portfolio objective: if the goal is return diversification, strategies with highly correlated…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document addresses whether portfolio optimization constraints in CVXPY should be expressed using list-like constructions or matrix notation. The answer says both approaches are valid and recommends matrices because they can make the optimization problem…

Portfolio constructionStatistics
Quant Q&A

The document investigates why expected shortfall from the PerformanceAnalytics R package can differ when calculated on a portfolio return series versus component returns and weights. The accepted explanation points to inconsistent volatility normalization in…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document sets up a mean–variance portfolio problem with multiple risky assets and one risk-free asset. It defines the risky-asset mean vector and covariance matrix, assumes the covariance matrix is invertible, and introduces three scalar quantities…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document shows an attempted Black–Litterman calculation in R using a covariance matrix, a view-link matrix, view uncertainty, and equilibrium excess returns. The author’s intermediate figures appear close to a tutorial, but the updated-return vector is…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document asks whether the Herfindahl-Hirschman Index can measure concentration in an FX portfolio built from currency pairs that share USD as a leg. It focuses on the complication that Markowitz portfolio weights may be negative, using a short USDJPY…

ForexPortfolio constructionRisk management
Quant Q&A

The document considers an interview prompt asking for a Monte Carlo method to construct an efficient frontier, minimum-variance portfolio, and maximum-Sharpe portfolio under long-only, fully invested constraints. Expected returns, variances, and covariances…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document gives a rank argument for why a sample covariance matrix cannot be positive definite when the number of observations is smaller than the number of variables. Each centered observation contributes an outer product of a vector with itself, a…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document asks whether investors can find historical records of forecasts for future returns, broken down by asset class and issued at regular intervals. The desired data would preserve what an institution expected at each date for a coming year, quarter,…

Multi-assetPortfolio constructionStatistics
Quant Q&A

The document explains how to calculate the standard deviation of project returns when outcomes depend on discrete market scenarios with given probabilities. For each project, first compute the probability-weighted expected return, then take the square root…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document considers choosing a small subset from a ranked stock list while accounting for diversification. It presents several approaches: derive portfolio weights from the inverse covariance matrix under an equal normalized-return assumption; enumerate…

EquitiesPortfolio constructionRisk managementStatistics
Quant Q&A

The document examines how to interpret the risk aversion coefficient in a Markowitz mean-variance objective. It introduces absolute and relative Arrow-Pratt measures, which require a specified utility function, and considers whether observed portfolio…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document sets out a Bellman problem for a representative investor in an endowment economy. The investor chooses current consumption, money to carry into the next period, and portfolio shares to maximize discounted expected lifetime utility. The budget…

Fixed incomePortfolio constructionStatistics
Quant Q&A

The document asks how a portfolio’s Value at Risk and Expected Shortfall limits should relate to its annual profit target, including a proposed calculation that turns a daily return target and assumed Sharpe ratio into a daily VaR figure. The response points…

Risk managementPortfolio constructionStatistics
Quant Q&A

The document considers forecasting an automotive company’s future cash flows from a short historical record, with proposed uncertain drivers including oil, plastic and steel prices, and consumer disposable income. It asks whether these drivers should be…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document considers two equity portfolios with the same benchmark and investable universe, and asks how to estimate the correlation of their ex ante tracking errors. It describes forming each portfolio’s active weights by subtracting benchmark weights,…

EquitiesPortfolio constructionRisk managementStatistics
Quant Q&A

The document explains the relationship between borrowing, risk-free investment, and a portfolio’s market beta. Scaling exposure to a risky portfolio scales its market sensitivity: borrowing to enlarge the position raises beta, while holding some wealth at…

Portfolio constructionRisk managementPosition sizingEquities
Quant Q&A

The document explains a first-order effect in the context of asset pricing and portfolio consumption risk. If consumption is initially c and an asset pays x, adding a small position of size ξ changes consumption to c + ξx. Expanding the variance gives the…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document clarifies how to calculate returns for portfolios formed by sorting S&P 500 companies on market-to-book ratios. For a value-weighted return within each bucket, each constituent’s monthly return is multiplied by its market capitalization divided…

EquitiesFactor investingPortfolio construction
Quant Q&A

The document considers whether 2-, 5-, 10-, and 30-year GBP swap tenors are suitable risk buckets. It outlines PCA of daily swap-rate changes and suggests examining how much variation the leading components explain, how chosen tenors relate to component…

Fixed incomeStatisticsRisk managementPortfolio construction
Quant Q&A

The document describes how to formulate mean-variance portfolio selection when the portfolio may hold at most a specified number of assets from a larger universe. It introduces a binary inclusion variable for each asset, links that variable to the asset’s…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document asks how to calculate variance and value at risk for a portfolio containing several stocks. It compares two approaches: estimate each asset’s risk and combine the results using portfolio weights and a correlation matrix, or first construct the…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document asks whether dynamic portfolio rebalancing can be optimized without specifying a model for how asset prices evolve. It contrasts this goal with the static Markowitz approach, which estimates asset means and covariances to calculate portfolio…

Portfolio constructionStatistics
Quant Q&A

The document explains the notation in a paper’s test for whether a simulated return sample is arbitrage-free. In the linear system, the symbol 1 denotes a vector of ones, and adding it to a return matrix converts simple returns into gross returns. Solving…

ArbitrageStatisticsPortfolio construction