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 considers how to allocate capital among several assets when one trading strategy can generate signals for multiple assets on the same day. It proposes using historical daily returns to estimate each asset’s variance and cross-asset covariances,…

Multi-assetPortfolio constructionRisk managementBacktesting
Quant Q&A

The document derives the covariance between two portfolios on the mean-variance efficient frontier. It expresses each frontier portfolio as a weighted combination of the global minimum variance portfolio and a second reference portfolio, then relates the…

Portfolio constructionStatistics
Quant Q&A

The document examines the efficient frontier when a risk-free asset is available. It formulates minimum-variance portfolio selection for a target excess return and derives risky-asset weights using the inverse covariance matrix and expected excess returns.…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document presents a continuous-time portfolio problem in which an investor divides wealth between a risky stock and cash. Wealth follows a diffusion with stock drift and volatility, and the objective is to maximize expected log wealth at a future…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document asks how to combine several securities’ NAV time series into one series for comparing simulation results. It presents an example that takes the arithmetic mean of three NAV values on each date, with each series starting near the same baseline,…

BacktestingPortfolio constructionStatistics
Quant Q&A

The document reviews a strategy-selection pipeline that fits models on training data, tunes hyperparameters using validation-period simulated profit and loss, selects top-performing instruments or strategies, and evaluates the resulting portfolio on a…

BacktestingPortfolio constructionMachine learningStatistics
Quant Q&A

The document asks how to express the terminal value of a stock portfolio over five years when annual price returns and dividends follow separate lognormal models. It proposes adding a price return and a dividend amount for one period, then asks whether that…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document explains how to adjust a portfolio so its exposure to selected principal components is neutral. It frames portfolio positions and PCA eigenvectors as vectors, with component exposures calculated by projecting positions onto the eigenvectors. For…

Fixed incomeStatisticsRisk managementPortfolio construction
Quant Q&A

The document considers the terminal value of periodic deposits when each contribution grows according to a lognormal return model. It asks whether the desired quantile of the total accumulated amount can be found by calculating each deposit’s quantile…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document describes a portfolio construction approach that uses ordinal rankings instead of explicit expected return estimates. In a portfolio of sorts, the centroid of each ranked group supplies the inputs, while the optimization retains a…

Portfolio constructionFactor investingStatistics
Quant Q&A

The document compares two portfolio optimization formulations used to describe the efficient frontier. In the first, portfolio variance is minimized subject to a target expected return and a full-investment constraint. In the second, expected return is…

Portfolio constructionStatistics
Quant Q&A

The document compares two approaches to estimating factor returns: cross-sectional regression using asset returns and factor exposures, and sorting assets by a characteristic to form a long-short portfolio. The answer says these approaches do not necessarily…

Factor investingStatisticsPortfolio construction
Quant Q&A

The document considers minimizing a ratio of two quadratic forms in portfolio weights, subject to a weights-sum equality constraint. It gives the Lagrangian derivatives with respect to the weights and multiplier, then explains why the denominator’s…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document explains the role of risk tolerance in a portfolio optimization problem that maximizes expected return minus a variance penalty, subject to linear equality constraints. Its closed-form weight expression includes a term scaled by risk tolerance,…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document demonstrates how to retrieve an iShares ETF holdings file directly from a data endpoint and load it into a dataframe, either by saving the file first or by reading it from the endpoint. The example skips introductory rows before displaying the…

EquitiesUS marketsPortfolio construction
Quant Q&A

The discussion compares regression-based alpha with the simpler return-minus-benchmark measure used in some fund reporting. In a market model, regression alpha estimates performance after accounting for benchmark exposure, while the simple difference also…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document presents a proposed ex-post Sharpe calculation using daily portfolio returns and S&P benchmark returns. It subtracts the benchmark return from each portfolio return, computes the arithmetic mean and sample standard deviation of those daily…

BacktestingPortfolio constructionRisk management
Quant Q&A

The document outlines practical measures for assessing interest rate exposure beyond duration and convexity. It frames risk in terms of how prescribed rate shocks affect fair value, economic value of equity, or net interest income, and describes reverse…

Fixed incomeRisk managementDerivatives pricingPortfolio construction
Quant Q&A

The document surveys practical ways to measure interest rate risk beyond duration and convexity, emphasizing that the right measure depends on the portfolio and use case. It describes scenario impacts on fair value, economic value of equity, or net interest…

Fixed incomeRisk managementDerivatives pricingPortfolio construction
Quant Q&A

The document presents a portfolio attribution problem across four periods. It gives sector returns and weights for a portfolio and benchmark, then reports their compounded returns and active return. The author calculates Carino linking coefficients and…

Portfolio constructionStatisticsBacktesting
Quant Q&A

The document poses a two-risky-asset equilibrium problem in which some investors are unaware that the second asset exists. It gives the benchmark equilibrium price vector for the case where all investors know both assets, then asks how equilibrium prices…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document describes how to optimize portfolio allocations against objectives such as drawdown or the Sortino ratio. It recommends expressing the chosen risk or reward measure as a scalar function of portfolio weights, then using an optimizer suited to…

Portfolio constructionRisk managementPosition sizingBacktesting
Quant Q&A

The document asks whether a portfolio’s vector of total risk contributions uniquely determines its asset weights. It defines each contribution as the asset weight multiplied by the derivative of portfolio volatility with respect to that weight, and frames…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document distinguishes exposure measured as a currency amount from exposure expressed relative to assets under management. In common long–short fund reporting, gross or net market exposure generally counts the risky positions, such as stock longs and…

Risk managementPortfolio constructionFixed income