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
WonderTrader
14 documents
Alphalens
14 documents
backtesting.py
11 documents
Technical Analysis
9 documents
QTPyLib
8 documents
Lumibot strategies
7 documents
QuantRocket
7 documents
Awesome Quant
1 documents

Search the library

5,922 documents

Quant Q&A

For normally distributed asset returns with known means and covariance, the document relates portfolio VaR optimization to familiar portfolio objectives. When VaR is defined as a return quantile centered on the portfolio mean, maximizing it is equivalent to…

Portfolio constructionRisk managementStatisticsBacktesting
Quant Q&A

The document asks how to compare strategies whose capital usage differs over time. It contrasts strategies with stable allocations against an event-triggered strategy whose invested capital varies, noting that return as a percentage of capital is easier to…

EquitiesRisk managementPortfolio construction
Quant Q&A

The document examines how to simulate multiple geometric Brownian motion price paths with a specified correlation structure. The attempted R approach draws independent normal shocks, applies a Cholesky factor of the input correlation matrix, and uses the…

StatisticsBacktestingPortfolio construction
Quant Q&A

The document asks whether volume-based bars can make fixed-parameter strategies more responsive to changing market activity. It starts from the observation that equal calendar periods may represent very different conditions, then suggests volume bars as a…

Portfolio constructionVolatilityTrend following
Quant Q&A

The document explains why testing the CAPM by regressing individual stocks’ realized excess returns on estimated betas can produce a very low R-squared. Low fit does not by itself show the model is false: CAPM does not predict a particular R-squared, and a…

EquitiesStatisticsFactor investingPortfolio construction
Quant Q&A

The document compares two ways to describe a hedge fund or portfolio’s performance. Cumulative return measures the change in value over a chosen period, while the Sharpe ratio relates returns to the variability of returns, giving a risk-adjusted view. The…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document discusses how to combine long and short strategies when their signals are ranks with different scales. Directly averaging or adding those signals may not produce sensible portfolio exposures, so the answer frames the task as assigning capital…

Portfolio constructionRisk managementBacktestingStatistics
Quant Q&A

The document asks how to allocate a fixed budget across several investment opportunities whose occurrence is independent, whose returns depend on allocated amounts, and whose parameters may be uncertain. It distinguishes this setup from single-bet Kelly…

Portfolio constructionPosition sizingRisk managementStatistics
Quant Q&A

Factor timing means adjusting portfolio exposure to factors in anticipation of how their returns may change. The document uses growth stocks as an example, noting that their relative performance may vary between economic expansion and crisis. It also…

Factor investingPortfolio constructionStatisticsMulti-asset
Quant Q&A

The document discusses choosing block lengths when resampling returns to simulate long investment horizons for portfolio allocation analysis. Its main principle is to choose a length that preserves dependence patterns relevant to the portfolio, including…

StatisticsBacktestingPortfolio constructionMomentum
Quant Q&A

The question concerns a stochastic wealth equation that appears to produce inconsistent expressions when a portfolio strategy is substituted into it. The answer identifies a distinction between the number of asset shares held and the fraction of wealth…

Portfolio constructionPosition sizingRisk management
Quant Q&A

The note explains how numbered Bloomberg crude oil indices represent exposure to futures contracts at different points along the Brent or WTI futures curve. The number indicates the contract’s forward position relative to the front month. The example…

CommoditiesFuturesBacktestingPortfolio construction
Quant Q&A

The document summarizes a geometric approach to the Sharpe ratio distribution of uniformly sampled portfolios. Because multiplying portfolio weights by a positive constant leaves the Sharpe ratio unchanged, portfolios can be represented by directions on a…

Portfolio constructionStatisticsRisk management
Quant Q&A

The question concerns finding minimum-variance portfolio weights when short sales are prohibited, with a particular focus on using an inverse covariance matrix directly. It presents the usual constraints: weights sum to one, achieve a target expected return,…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document responds to a request for rigorous resources that connect portfolio-optimization theory with practical implementation. It points readers to several books using R, Matlab, or S, and briefly compares their audiences and coverage. Topics mentioned…

Portfolio constructionRisk managementBacktesting
Quant Q&A

The document addresses portfolio optimization where conditional value at risk must stay below a specified portfolio-wide limit. Its central setup is to choose variance as the objective while imposing CVaR as a constraint, alongside a budget constraint and…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document offers a reading guide for someone moving from foundational portfolio theory toward practical portfolio management. It starts with Markowitz’s portfolio selection work and Sharpe’s capital asset pricing model, then points to research on Bayesian…

Portfolio constructionFactor investingMomentumTrend following
Quant Q&A

The document explains how to find the weights of a three-asset portfolio that minimize variance while requiring the weights to sum to one. It expresses portfolio variance using each asset’s variance and the pairwise covariances, then presents two solution…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document formulates a maximum expected return portfolio as minimizing negative expected return, subject to fully invested weights and nonnegative positions. It asks how to construct the Lagrangian and derive a closed-form solution for the portfolio…

Portfolio constructionStatisticsRisk managementEquities
Quant Q&A

The document asks whether correlations should be calculated from simple returns, log returns, or log prices, and whether the choice is merely conventional. The response ties the answer to the intended use: when correlations will drive a simulation, estimate…

StatisticsPortfolio constructionBacktestingRisk management
Quant Q&A

The document proposes estimating portfolio profit distributions by simulating monthly generation for each energy asset and electricity forward prices, multiplying generation by price to estimate asset revenues, summing across assets, and taking lower-tail…

CommoditiesFuturesStatisticsRisk management
Quant Q&A

The document interprets ATOP in a strategy presentation as a likely abbreviation for annual portfolio turnover, expressed as a percentage of portfolio value. It describes a common calculation: compare total purchases with total sales over a year, use the…

ExecutionRisk managementPortfolio construction
Quant Q&A

The document explains why mean-variance optimization can assign nearly all capital to one asset as the asset universe grows. Its account centers on covariance structure: many assets share a small number of meaningful risk factors, leaving other variance…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document examines how to annualize a cumulative return when capital was invested during separated intervals. It contrasts annualizing over the 450 days actually invested with annualizing over the full three-year span. The responses distinguish a…

StatisticsBacktestingPortfolio construction