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 calculate a daily percentage return for a position that is long one stock and short a scaled amount of another. It presents two candidate expressions: one subtracts the scaled log return of the short asset from the long asset’s log…

EquitiesStatisticsPortfolio constructionBacktesting
Quant Q&A

The discussion considers whether a risk model can include only selected industry factors, using tobacco and healthcare as examples, and whether an additional category for all other industries is required. The answer gives a basic redundancy principle: a…

Risk managementPortfolio constructionEquities
Quant Q&A

The document describes a bond portfolio optimizer that maximizes yield subject to allocation limits, including duration, issuer, sector, and rating constraints. The author adds a requirement that a specified number of bonds must receive at least a minimum…

Fixed incomePortfolio constructionRisk management
Quant Q&A

The discussion offers starting points and practical cautions for optimizing portfolios against value at risk (VaR). It recommends Euler capital allocation as an introduction, then describes a simulation approach: hold a large set of scenarios fixed and…

Portfolio constructionRisk managementStatisticsBacktesting
Quant Q&A

The document derives a proposed upper bound for expected log growth in a one-period market with a riskless asset, a risky asset, and enough derivatives to replicate arbitrary terminal payoffs. It compares the real-world distribution of the asset price with a…

Portfolio constructionDerivatives pricingStatisticsRisk management
Quant Q&A

This exchange considers whether CAPM or a multi-factor asset-pricing regression requires the portfolio being analyzed to be efficiently diversified. The answer says statistically significant coefficients can still be interpreted when the portfolio does not…

Factor investingPortfolio constructionStatistics
Quant Q&A

The document asks how to find a tangency portfolio when weights must lie between negative one and one while summing to one. It frames the objective as maximizing the portfolio’s expected return divided by its volatility, and asks whether the added bounds…

Portfolio constructionRisk managementEquities
Quant Q&A

The document examines Stambaugh’s method for combining asset returns when one asset has a longer history than another. It considers a full-history asset X and a later-starting asset Y, focusing on how the shorter sample’s regression of Y on X contributes to…

StatisticsPortfolio constructionEquities
Quant Q&A

The document considers which MATLAB toolboxes are useful for a risk analyst, including optimization, global optimization, econometrics, financial, and statistics tools, alongside database and market-data access. One practitioner reports that their team…

Risk managementStatisticsPortfolio construction
Quant Q&A

The document poses a risk management question: how to choose a withdrawal fraction and a profit threshold for taking money out of a trading account while balancing ruin risk against compounding. It gives an illustrative proposal based on withdrawing part of…

Risk managementPosition sizingPortfolio construction
Quant Q&A

The document formulates a linear optimization problem for portfolio allocations. Its objective maximizes a weighted measure of portfolio spread under a budget constraint and other unspecified limits. A further constraint requires the sum, across assets, of…

Portfolio constructionStatistics
Quant Q&A

The document asks how to revise a historical correlation matrix when one pairwise correlation receives new information, while retaining as much of the original matrix as possible. Its example considers changing the equity–Treasury relationship and asks how…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document raises a practical estimation question about the diffusion matrix in a multivariate financial model. It focuses on a setup in which factor or eigenportfolios are constructed to have zero covariance, making a covariance estimate based directly on…

StatisticsPortfolio constructionMachine learning
Quant Q&A

The document explains why a long-only minimum-variance optimizer may assign positive weights to only a few assets, even when the investment universe contains many ETFs. The question concerns a portfolio built from monthly returns for U.S. equity and bond…

EquitiesFixed incomePortfolio constructionRisk management
Quant Q&A

The question asks whether securities in an efficient portfolio share the portfolio’s Sharpe ratio and how this relates to a covariance-based return measure. The response gives the portfolio standard deviation as the square root of the portfolio weights…

Portfolio constructionRisk managementStatistics
Quant Q&A

The note explains a procedure for building annual industry portfolios from individual stock returns. Stocks are assigned to industries by their four-digit SIC classifications, using NYSE, AMEX, and NASDAQ listings. The industry assignment is made at the end…

EquitiesPortfolio constructionUS markets
Quant Q&A

The document considers how to chart performance for a portfolio rebalanced quarterly when the input series contains daily log returns. It compares geometric and non-geometric settings in a performance summary and asks whether the non-geometric result…

Portfolio constructionStatisticsBacktesting
Quant Q&A

This question sets up a two risky-asset example for learning the Black–Litterman portfolio model. It starts with CAPM estimates for the assets, including a market return, asset betas, residual volatility inputs, and a risk-free rate, then asks how to derive…

Portfolio constructionFactor investingStatistics
Quant Q&A

The discussion distinguishes minimizing a portfolio’s own volatility from replicating an index, where minimizing tracking error is usually the more relevant objective. One proposed formulation selects at most a specified number of nonzero stock weights,…

EquitiesPortfolio constructionStatisticsRisk management
Quant Q&A

The answer explains how to bootstrap a forecasting curve separately from an overnight-indexed discount curve in QuantLib. In the example, an OIS curve is built first for discounting, while a LIBOR curve is bootstrapped for forecasting. Swap-rate helpers for…

Fixed incomeDerivatives pricingPortfolio construction
Quant Q&A

The document asks whether every mean-variance efficient portfolio has another efficient portfolio with zero correlation to it. The proposed construction combines a chosen portfolio with the minimum-variance portfolio, varying the combination weight to make…

Portfolio constructionStatistics
Quant Q&A

The document frames European call pricing on a finite binomial stock tree as a superhedging problem. With zero interest, the goal is to find the least initial wealth that can fund a bond-and-stock portfolio, adjusted at the tree’s nodes without later cash…

OptionsDerivatives pricingPortfolio constructionRisk management
Quant Q&A

For assets with equal expected returns and no correlations, the response derives the global minimum-variance portfolio weights. It begins with the general solution: multiply the vector of ones by the inverse covariance matrix, then normalize so the weights…

Portfolio constructionRisk managementStatistics
Quant Q&A

The response explains why covariance information alone cannot determine the Markowitz efficient frontier, which describes the trade-off between portfolio risk and expected return. Since expected returns affect optimal portfolio weights, removing them leaves…

Portfolio constructionStatisticsRisk management