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 answer proposes estimating future bond defaults with a Bayesian predictive distribution, then discounting expected losses at the investor’s marginal cost of funds. It illustrates the approach with a simplified all-or-nothing, zero-coupon bond model:…

Fixed incomeStatisticsRisk managementPortfolio construction
Quant Q&A

The document describes a practical issue in implementing Meucci’s entropy pooling model. A user reports that imposing two inequality views on the expected return of the same asset causes an overflow in the SciPy optimization routine, although applying either…

Portfolio constructionMachine learningStatistics
Quant Q&A

The document discusses how portfolio optimization changes when skewness and kurtosis are added to mean and variance. It emphasizes that mean-variance optimization does not itself require normally distributed returns: the chosen portfolio can differ across…

Portfolio constructionStatisticsRisk managementBacktesting
Quant Q&A

The document considers how to compare strategies with different instruments, trade sizes, leverage, and capital needs. It argues that price movement or pip counts alone can misrepresent performance when strategies face different spreads, trading costs,…

BacktestingRisk managementStatisticsExecution
Quant Q&A

The document asks how to estimate the option-adjusted spread (OAS) of a portfolio when only the OAS of each security can be calculated. It identifies several possible weighting bases, including balance, duration, and dollar duration, but does not establish a…

Fixed incomeStatisticsPortfolio constructionRisk management
Quant Q&A

The document asks how to allocate a portfolio’s total Value at Risk across its constituents without the large number of calculations required by a Shapley-value approach. It names efficiency, symmetry, the dummy axiom, and linearity as desired properties for…

Risk managementPortfolio constructionStatistics
Quant Q&A

The document explains how to construct a portfolio of stock and a risk-free bond that matches an option's payoff in a one-period, two-outcome binomial model. In the up state, the portfolio's stock and bond values must equal the option value; the same…

OptionsDerivatives pricingPortfolio construction
Quant Q&A

This answer compares frequentist, maximum-likelihood, and Bayesian approaches as ways to estimate unknown quantities and guide financial decisions. It characterizes frequentist methods as offering long-run performance guarantees under repeated use, while…

StatisticsPortfolio constructionDerivatives pricing
Quant Q&A

The question concerns the no-trading condition in a one-day Value at Risk statement. The answer explains that VaR describes the potential loss distribution of a specified portfolio over a stated horizon. If positions change during that horizon, the…

Risk managementStatisticsPortfolio construction
Quant Q&A

The document discusses which reference rate to subtract when calculating historical excess returns for a portfolio’s efficient frontier. It contrasts short Treasury bill rates, rates matched to the investment horizon, and rates based on historical…

Portfolio constructionRisk managementMulti-assetFixed income
Quant Q&A

This document compares two ways of writing a self-financing portfolio in a discrete-time market with a stock and a money-market account. In one convention, the bond position is expressed as the amount of money invested; in the other, it is expressed as the…

Fixed incomePortfolio constructionRisk management
Quant Q&A

The document questions whether portfolio optimization should focus on present value in a base currency or on meeting future liquidity needs in specified currencies. It motivates the question with observations about negative interest rates and the relative…

Portfolio constructionFixed incomeRisk managementMulti-asset
Quant Q&A

The document describes a proposed way to adapt long-horizon simulated stock returns to alternative climate scenarios. The author plans to use shocks for factors such as temperature and carbon prices. For temperature, the question cites existing literature…

EquitiesFactor investingStatisticsPortfolio construction
Quant Q&A

The document discusses mean-variance portfolio optimization with a target return, a fully invested constraint, and a limit on the sum of absolute portfolio weights. That absolute-weight constraint limits gross leverage while allowing short positions. It…

Portfolio constructionPosition sizingRisk managementEquities
Quant Q&A

The document addresses two practical interpretation questions about principal component analysis in statistical arbitrage. First, it asks whether loadings in the leading eigenvector must all be positive and whether negative loadings can be changed to…

StatisticsPortfolio constructionMean reversion
Quant Q&A

The document considers how to calculate the distribution of a sum of dependent risks when their joint dependence is specified with a copula. It asks whether Fourier methods or the mixture representation of Archimedean copulas can produce the result without…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document examines how to model a fixed-rate loan when interest accrues using actual days and a 360- or 365-day year, while payments are monthly. A standard level-payment calculation assumes equal periods, so applying actual-day interest to that fixed…

Fixed incomeRisk managementPortfolio construction
Quant Q&A

The document explains how to translate mean-variance portfolio weights into holdings. Given total capital and asset prices, allocate capital in proportion to each optimized weight, then divide each allocation by the asset price to obtain the number of…

Portfolio constructionPosition sizingRisk management
Quant Q&A

The document raises a question about a textbook method for hedging a diversified equity portfolio with index futures. The described approach divides the portfolio’s value by the value of one futures contract to determine a contract count. The questioner asks…

EquitiesFuturesPortfolio constructionRisk management
Quant Q&A

The document describes a proposed local exchange for algorithms sharing a computer. The envisioned system would maintain virtual accounts, check available balances, route eligible orders through broker gateways, and match compatible orders internally. Such a…

BacktestingExecutionMarket microstructurePortfolio construction
Quant Q&A

The document asks whether the geometric mean is an appropriate way to average returns from different indices during one period. One answer connects it to an equally weighted portfolio that is continuously rebalanced: gains from stronger performers are…

StatisticsPortfolio construction
Quant Q&A

The document asks how to evaluate a technical strategy across an entire stock portfolio using the Systematic Investor Toolbox in R. The example strategy enters when a lagged 50-day moving average exceeds a lagged 100-day moving average and the 25-day RSI is…

EquitiesBacktestingTechnical indicatorsPortfolio construction
Quant Q&A

The document presents additional measures for comparing algorithmic trading strategies beyond annual return, maximum drawdown, and Sharpe ratio. It lists Sortino, Sterling, Calmar, Omega, and Treynor ratios, which characterize downside variability, drawdown…

Risk managementStatisticsPortfolio construction
Quant Q&A

The document asks whether S&P 500 sector weights change only as constituent stocks move in value, or whether S&P also adjusts them through index maintenance. It describes a simple historical proxy based on the relative values of sector exchange-traded funds,…

EquitiesUS marketsPortfolio constructionStatistics