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 combine several dollar-neutral portfolios using nonnegative blend weights that sum to one while minimizing total turnover. The answer recommends expressing absolute-value constraints through nonnegative slack variables. A position is…

Portfolio constructionExecutionBacktesting
Quant Q&A

The document explains why a long-short portfolio can hold substantial cash even when its positions are described as weights of net asset value. Short-sale proceeds increase the account’s cash balance, while the short positions remain liabilities with their…

EquitiesPortfolio constructionRisk management
Quant Q&A

The discussion addresses sizing long and short stock positions generated by a daily strategy when trades overlap and signals arrive unevenly. One proposed approach budgets exposure using the number of concurrent long and short positions. If a signal has an…

EquitiesPosition sizingPortfolio constructionRisk management
Quant Q&A

The question concerns estimating covariance and correlation across investment horizons using overlapping historical returns. Rolling windows create serial dependence, which affects estimated volatility and correlation; the author asks whether generalized…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document explains why high trading volume in a short-term Treasury ETF does not imply large price moves. Volume measures trading activity, while price movement reflects changes in the value of the holdings. Short Treasury securities generally have…

Fixed incomeUS marketsPortfolio construction
Quant Q&A

The document considers how to choose buy, sell, or hold actions from historical stock data while accounting for transaction costs, bid-ask spread, and slippage. It cautions that the problem cannot be judged by the apparent size of its search space alone: a…

EquitiesBacktestingPortfolio constructionExecution
Quant Q&A

The discussion distinguishes risk models, which explain return variation and support covariance estimation and hedging, from alpha models, which seek to forecast expected returns. Risk models can use a relatively small set of factors to estimate a large…

Factor investingPortfolio constructionRisk managementStatistics
Quant Q&A

The document presents a question about interpreting principal components as portfolios of securities. The questioner applies PCA to a matrix of stock returns, rescales each component’s weights so they sum to one, and then compares the resulting portfolio…

EquitiesStatisticsPortfolio construction
Quant Q&A

The discussion asks whether portfolio mean and variance can be represented as distributions rather than single estimates. It describes two ways to quantify estimator uncertainty. A Bayesian approach assigns distributions to unknown mean and variance…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document discusses a mixed-integer formulation for rebalancing a stock portfolio toward mean-variance target weights while limiting the number of traded positions. It represents each trade with a signed change variable and uses a binary indicator to mark…

EquitiesPortfolio constructionPosition sizingRisk management
Quant Q&A

The document discusses how to evaluate a stock-sorting strategy whose portfolio returns appear to have different Fama–French three-factor alphas. It recommends using Newey–West standard errors to account for autocorrelation and heteroskedasticity, and…

EquitiesFactor investingStatisticsPortfolio construction
Quant Q&A

The document considers whether monthly data for a small set of Swedish stocks can support Fama-French portfolio construction and regression. It warns that sorting a limited universe by characteristics may leave only one or two stocks in some portfolios,…

EquitiesFactor investingStatisticsPortfolio construction
Quant Q&A

The document discusses two ways to estimate an exchange-traded fund’s fair value from its underlying portfolio. One approach divides the fund’s net assets by shares outstanding to estimate net asset value per share, then compares that figure with the ETF’s…

EquitiesPortfolio constructionMarket microstructureUS markets
Quant Q&A

The document examines whether option-implied volatility can replace historical volatility in mean-variance portfolio optimization. It cautions that vanilla option implied volatility varies by strike and has a specific risk-neutral interpretation tied to…

Portfolio constructionVolatilityOptionsStatistics
Quant Q&A

The document explains why dependence between defaults matters differently across credit products. For a linear portfolio such as a CDS index, the answer says default correlation does not affect the portfolio's payoff in the same way it does for structures…

Fixed incomeStatisticsPortfolio constructionRisk management
Quant Q&A

The document introduces two R packages for maintaining a record of portfolio trades and calculating positions and profit and loss: blotter and PMwR. It focuses on PMwR, showing how trades can be organized as a journal with instrument, date, quantity, and…

EquitiesPortfolio constructionRisk management
Quant Q&A

The document compares shrinking a sample covariance matrix with shrinking a sample correlation matrix before using the result to forecast variance. Correlation shrinkage can be transformed back using sample variances, while direct covariance shrinkage also…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document derives a two-variable single-factor model from regressions in which both variables share a common factor and each has an idiosyncratic error. The derivation requires equal factor loadings and equal residual coefficients for the two variables.…

StatisticsFactor investingPortfolio construction
Quant Q&A

The document gives a recursive method for simulating portfolio value when an initial lump sum is combined with periodic investments. At each step, add the contribution arriving during that period to the previous portfolio value, then apply the next period’s…

Portfolio constructionBacktestingStatistics
Quant Q&A

The document examines a return attribution regression that includes an intercept, country dummy variables, industry dummy variables, and factor exposures. Country and industry indicators can be linearly dependent, making the design matrix rank deficient and…

Portfolio constructionFactor investingStatisticsRisk management
Quant Q&A

The document shows how to turn daily stock probability rankings into an equal-weighted portfolio that holds the five highest-ranked names and rebalances every ten days. The example uses a table of dates, stock names, returns, and model probabilities. The…

EquitiesMachine learningPortfolio constructionBacktesting
Quant Q&A

The document shows how to compute the covariance of a weighted return index with one of its component assets or with another asset. Using the linearity of covariance, the covariance between a weighted sum and a variable is the sum of each component’s…

StatisticsPortfolio constructionMulti-asset
Quant Q&A

The document asks why corporate finance treatments use different discount rates for tax shields. It contrasts a textbook discussion that treats depreciation tax shields as safe nominal cash flows, discounted at the firm’s after-tax borrowing rate, with an…

Fixed incomeRisk managementPortfolio construction
Quant Q&A

The document describes the inputs needed for periodic portfolio rebalancing: current weights, updated expected returns or alpha forecasts, forecast uncertainty, transaction costs, risk aversion, objective function, and portfolio constraints. Its central…

Portfolio constructionExecutionRisk managementBacktesting