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
Binance API docs
45 documents
Quantopian lectures
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 estimate the degrees of freedom for a multivariate Student t distribution used to simulate asset returns. The questioner already has a sample mean vector and covariance matrix and notes that, when the degrees of freedom exceed two,…

StatisticsMachine learningPortfolio constructionRisk management
Quant Q&A

The document addresses whether Conditional Value at Risk (CVaR) is convex or concave and what that means for optimization. The response explains that the answer depends on the quantity used as the function’s input and the sign convention: CVaR expressed as a…

Risk managementPortfolio constructionStatistics
Quant Q&A

The document raises a portfolio-optimization problem: an Excel Solver calculation intended to maximize the Sharpe ratio produces very large long and short weights. The author asks what constraints might be appropriate, why unconstrained extreme positions may…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document examines a disconnect between improving a statistical forecasting model and improving the portfolio built from its estimates. In a hypothetical two-asset example, returns are usually at a baseline volatility, but one asset experiences a…

Portfolio constructionStatisticsRisk management
Quant Q&A

This collection of practitioner observations links asset returns to discount-rate and cash-flow shocks, aggregate risk, and changing economic regimes. It argues that risk depends on how returns covary with investors’ circumstances, and that regime shifts can…

StatisticsRisk managementPortfolio constructionBacktesting
Quant Q&A

The discussion presents several quantitative ideas for changing portfolio exposures across assets or building active portfolios. Momentum-based timing is introduced as a way to switch between major asset classes. Other suggestions include combining valuation…

Multi-assetMomentumFactor investingPortfolio construction
Quant Q&A

The document considers a cross-sectional equity mean-reversion idea: rank index constituents by past returns, pair the strongest performers with the weakest, and allocate more capital to the most extreme pairs using a linear weighting scheme. The main sizing…

EquitiesMean reversionPairs tradingPortfolio construction
Quant Q&A

The document sets up a portfolio problem that minimizes variance while constraining weights to sum to one and expected return to equal a chosen target. It describes applying Lagrange multipliers to express the portfolio weights using the expected-return…

EquitiesPortfolio constructionStatisticsRisk management
Quant Q&A

The document outlines two ways to create return samples for Monte Carlo analysis of mean–variance portfolios. One approach resamples rows from historical multivariate returns: collect asset prices, convert them to returns, use a lower frequency suited to the…

Multi-assetPortfolio constructionBacktestingStatistics
Quant Q&A

The document surveys the role of skewness in portfolio optimization and distinguishes it from the standard mean-variance framework. Higher moments become relevant when asset returns are not normally distributed and investors care about properties of return…

Portfolio constructionStatisticsRisk managementOptions
Quant Q&A

The document explains when skewness can matter in portfolio construction: asset returns must depart from normality, and investors must care about asymmetry beyond expected return and volatility. Positive skewness may be desirable to investors with that…

Portfolio constructionStatisticsRisk managementOptions
Quant Q&A

The document outlines a Monte Carlo procedure for estimating portfolio Value at Risk, using correlated stock returns generated from a historical covariance matrix and a Cholesky factorization. Simulated terminal prices are used to revalue the portfolio; the…

Risk managementStatisticsBacktestingEquities
Quant Q&A

The document contrasts how corporate and public pension plans account for liabilities and asks whether public plans need tail-risk protection. Under the simplified description, corporate plans discount liabilities using market interest rates, so rate changes…

Fixed incomeRisk managementOptionsPortfolio construction
Quant Q&A

The document considers how to combine a coupon bond and a perpetuity to create a portfolio with zero duration. It identifies an error in multiplying weighted durations and replaces it with a linear duration condition: the sum of each bond’s weight times its…

Fixed incomePortfolio constructionRisk management
Quant Q&A

The document raises the problem of interpreting portfolio turnover when market stress causes trading activity to rise. It asks whether a turnover threshold should be adjusted for market or portfolio volatility, perhaps using a benchmark and beta, while…

EquitiesPortfolio constructionVolatilityStatistics
Quant Q&A

The document explains why a mean-CVaR portfolio optimization may fail to meet a specified return: the target can be infeasible given the return scenarios and portfolio constraints. In the example, the assets have daily returns, so a 4% daily target exceeds…

Portfolio constructionRisk managementBacktestingStatistics
Quant Q&A

The document proposes a general-equilibrium approach to modeling a small economy and its stock market. In its simplified exchange economy, a fully equity-financed firm has one share and pays dividends at a stochastic rate. A representative risk-averse agent…

EquitiesPortfolio constructionDerivatives pricingStatistics
Quant Q&A

The document asks whether portfolio theory can accommodate weights that change frequently, including at a tick-level timescale. The answer describes a rolling mean-variance procedure: estimate asset returns and their covariance matrix from historical data,…

Portfolio constructionStatisticsRisk management
Quant Q&A

The question concerns the Bates–Granger combination of two forecasts and asks why its optimal weight can produce expected squared error below the smaller of the two individual forecast variances. The answer treats the combined error as a quadratic function…

StatisticsPortfolio constructionBacktesting
Quant Q&A

The document explains CRSP’s value-weighted return series as returns on a market portfolio proxy. In a value-weighted portfolio, securities contribute according to their market values, so a defined set of traded stocks can be combined into an aggregate…

EquitiesPortfolio constructionFactor investingUS markets
Quant Q&A

The document introduces coherence as a set of properties for portfolio risk measures: zero risk for an empty position, subadditivity, positive homogeneity, and translation invariance. These axioms express expectations such as diversification reducing…

Risk managementStatisticsPortfolio construction
Quant Q&A

The discussion asks whether correlated Brownian motions are an appropriate way to simulate correlated geometric Brownian motion (GBM) stock prices. It describes using a Cholesky decomposition to generate Brownian drivers with a chosen correlation matrix,…

EquitiesStatisticsVolatilityPortfolio construction
Quant Q&A

The document presents a long-short risk-budgeting formulation attributed to a UBS paper on trend-following and risk parity. It maximizes a signal-weighted sum of logarithms of absolute portfolio weights, limits portfolio volatility, requires each position’s…

Portfolio constructionRisk managementPosition sizing
Quant Q&A

The document distinguishes portfolio exposure from the capital invested by showing a common gross leverage measure for long-short portfolios: the sum of long and short position values divided by equity. In the example, an investor with $100 of equity holds…

EquitiesPortfolio constructionRisk management