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 enforce a minimum terminal wealth in a continuous-time consumption and investment problem with CRRA utility. It presents a proposed construction: scale down the unconstrained Merton strategy and use the remaining initial capital to…

OptionsPortfolio constructionRisk management
Quant Q&A

The note explains why a sample covariance matrix may have unreliable or zero eigenvalues and summarizes ways to address the problem. Even with balanced observations drawn independently from one distribution, sample eigenvalues differ from population values.…

StatisticsPortfolio constructionRisk management
Quant Q&A

The note discusses the practical challenge of obtaining low-frequency historical and ongoing data across index providers, including index levels, constituents, and weights. The response highlights licensing as a central constraint: agreements may limit how…

EquitiesPortfolio constructionExecution
Quant Q&A

The note explains why Joel Greenblatt’s Magic Formula uses a roughly one-year holding period. It cites the book’s tax rationale: in taxable accounts, selling losing positions just before the one-year mark and winners just after it can give losses short-term…

EquitiesFactor investingPortfolio constructionRisk management
Quant Q&A

The question asks how to separate the approximate return of a coupon-bearing bond into yield income, roll-down, duration-driven price change, and pull-to-par effects. The response gives a compact decomposition: return is associated with yield minus repo over…

Fixed incomeCarryRisk managementPortfolio construction
Quant Q&A

The document explains a practical way to price several fixed-rate bonds described in a pandas table. A row-wise function converts each bond’s dates and coupon into a QuantLib bond object. The bonds are assigned a shared discounting engine built from a flat…

Fixed incomePortfolio constructionDerivatives pricing
Quant Q&A

The document addresses a practical portfolio selection problem: several backtested strategies may produce more stock picks than can be traded in live operation. The response suggests ranking candidate strategies or setups using risk-adjusted performance…

BacktestingRisk managementExecutionPortfolio construction
Quant Q&A

The document explains how to choose a fixed-size, equally weighted basket from a larger asset universe using estimated returns and a covariance matrix. It formulates the selection as a binary optimization problem: indicators represent whether assets are…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document explores whether a one-step binomial model must use the option’s underlying stock in a replicating portfolio. The response explains replication from the seller’s perspective: construct and, where possible, rebalance a portfolio so its future…

OptionsDerivatives pricingArbitragePortfolio construction
Quant Q&A

The document describes a portfolio robustness exercise using a Markowitz model. The author estimates expected returns and covariances from historical monthly stock data, finds portfolios associated with minimum and maximum expected returns, and then perturbs…

EquitiesPortfolio constructionRisk managementStatistics
Quant Q&A

The document addresses a two-asset portfolio problem: how to allocate a fully invested portfolio between independent stocks to minimize volatility. Under the independence assumption, portfolio variance is the sum of each asset’s variance weighted by the…

EquitiesPortfolio constructionRisk managementStatistics
Quant Q&A

The document gathers suggested books and papers for learning quantitative alpha design and advanced quantitative finance. Its starting list includes texts on active and quantitative portfolio management, expected returns, financial machine learning,…

Portfolio constructionMachine learningFactor investingBacktesting
Quant Q&A

The document asks why a regression of an unequally weighted stock portfolio on a market index produces a lower R-squared and a beta nearer zero than a regression of one constituent stock. The response offers possible explanations rather than a definitive…

EquitiesStatisticsPortfolio construction
Quant Q&A

The document considers whether an empirical covariance matrix calculated from returns imputed by an expectation-maximization procedure can be trusted. Although the questioner reports good covariance estimates in simulations with substantial missing data, the…

StatisticsRisk managementBacktestingPortfolio construction
Quant Q&A

The document explains how to obtain the locally optimal portfolio control in the finite-horizon Merton expected-utility problem. In the Hamilton–Jacobi–Bellman equation, the control is chosen to maximize a function of the value function’s first and second…

Portfolio constructionDerivatives pricingStatistics
Quant Q&A

The document asks how to calculate the correlation between two portfolios built from the same three assets. It provides each portfolio’s weights and the assets’ pairwise correlations, and the questioner has already calculated portfolio means and variances.…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document explains what a quoted basket correlation can mean when a trader gives a single percentage instead of a matrix of pairwise correlations. For a weighted basket, its variance depends on each component's variance and on the weighted contributions…

EquitiesStatisticsPortfolio construction
Quant Q&A

The document asks how to simulate returns for an allocation among equities, bonds, and cash, including how to handle a lower bound of zero for cash returns and how to combine return and risk assumptions for the two defensive assets. An answer suggests…

Multi-assetFixed incomeEquitiesPortfolio construction
Quant Q&A

The document raises a portfolio construction issue for arbitrage strategies that rely on mean reversion. Price deviation indicates the potential profit if a position is held until convergence, but it does not show how quickly that profit may be realized. The…

ArbitrageMean reversionPortfolio construction
Quant Q&A

The document compares two common mean-variance formulations: minimizing variance for a target return and minimizing variance minus a weighted expected return. With an equality constraint on target return, Lagrange multipliers show how the return constraint’s…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document raises the problem of calculating coskewness and cokurtosis for a multivariate lognormal distribution from the parameters of an underlying multivariate normal distribution of log returns. The motivation is portfolio optimization: these…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document surveys ways to use the eigenvalues and eigenvectors of an estimated covariance matrix to improve portfolio optimization. It points to random matrix theory as a way to distinguish noisy eigenvalues from informative structure. In particular, the…

Portfolio constructionStatisticsRisk managementEquities
Quant Q&A

The document considers portfolio annualization when assets trade on different calendars, using traditional stocks and cryptocurrency as examples. Its central recommendation is to annualize each asset's expected return and covariance contributions using the…

Multi-assetPortfolio constructionRisk managementStatistics