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

The document considers the data needed for a Dynamic Nelson-Siegel relative-value model, with emphasis on whether zero-coupon rates reflect traded instruments or are interpolated. For US Treasuries, coupon and principal STRIPS are identified as traded…

Fixed incomePortfolio constructionStatistics
Quant Q&A

The document asks whether a portfolio optimization problem can use an equality constraint on the sum of absolute position weights instead of the usual equality constraint on their signed sum. The distinction is that the L1 constraint fixes total absolute…

Portfolio constructionRisk managementPosition sizing
Quant Q&A

The document argues that optimal trade size is not determined by a price forecast alone, even when leverage is treated as unlimited. Position changes should follow from an objective that balances expected alpha against portfolio risk and trading costs,…

Position sizingPortfolio constructionExecutionMarket microstructure
Quant Q&A

The document presents a finite-horizon Merton investment-consumption problem with wealth invested in a risky asset and reduced by consumption. Under CRRA power utility, it states an optimal risky allocation proportional to risk tolerance and gives a…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document explains how to represent and calculate returns for an equal-dollar long-short portfolio. Dollar neutrality means the current market values of the long and short sides have equal magnitude; a short position still has a market value even though…

EquitiesPortfolio constructionBacktestingExecution
Quant Q&A

The document addresses how to select a risk-free return when portfolio performance is measured monthly. Its central point is that a five-year Treasury yield does not provide a known risk-free return over a one-month holding period: the bond’s market price…

Fixed incomePortfolio constructionRisk managementStatistics
Quant Q&A

The document considers whether combining a strategy with 20% annualized volatility and one with 15% volatility, when their returns have zero correlation, can produce a portfolio with volatility below 15%. The accepted response uses the portfolio variance…

Portfolio constructionVolatilityRisk managementStatistics
Quant Q&A

The document considers how to measure relationships between hedge fund returns when distributions are skewed and heavy-tailed, with particular interest in how funds behave together during market declines. It explains why Pearson correlation may be…

StatisticsRisk managementPortfolio constructionMulti-asset
Quant Q&A

The document proves an identity for the variance of a portfolio return. Starting from the portfolio return as a weighted sum of constituent returns, expand its variance into a double sum of weighted pairwise covariances. Covariance is linear in either…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document explains why a portfolio can beat a benchmark even when its estimated CAPM beta is below one. In a time-series regression of excess portfolio returns on excess benchmark returns, beta measures sensitivity to benchmark movements; it does not by…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document surveys Python tools for strategy research, backtesting, portfolio analysis, and live trading. It describes backtrader in the most detail: it supports event-style and vectorized runs, multiple assets and strategies, varied data sources and…

BacktestingPortfolio constructionExecutionTechnical indicators
Quant Q&A

The document explains how minimum-variance and minimum-tracking-error portfolio problems relate to quadratic programming and second-order cone programming. It clarifies that expressing a continuous convex risk constraint as a cone constraint does not remove…

Portfolio constructionRisk managementFactor investingStatistics
Quant Q&A

The document explains how to test whether a signal predicts returns by sorting securities into portfolios according to the signal, then comparing high-signal and low-signal groups. A spread portfolio is formed by going long the high group and short the low…

EquitiesPortfolio constructionFactor investingBacktesting
Quant Q&A

The document considers how to size three long and short currency positions to target a specified annual portfolio volatility while allocating risk equally. The proposed procedure first scales each currency position separately so that each standalone position…

ForexVolatilityPosition sizingPortfolio construction
Quant Q&A

The document asks how to infer the expected returns that would produce a given fully invested portfolio under mean-variance optimization, given its weights, risk aversion, and return covariance matrix. The accepted answer gives a simple relation: implied…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document asks why investors are shown historical price and fund-return data if past performance does not guarantee future results. The responses offer several uses: assessing a manager's record relative to a benchmark, examining consistency or hit rates,…

EquitiesStatisticsRisk managementPortfolio construction
Quant Q&A

The document distinguishes factor returns from the risk premia estimated by the second stage of a Fama-MacBeth regression. After estimating assets’ factor loadings in time-series regressions, the second stage regresses cross-sectional returns on those…

Factor investingStatisticsPortfolio constructionRisk management
Quant Q&A

The document poses a portfolio mapping problem that arises when factor returns are whitened and then reduced or transformed into secondary factors. It distinguishes the time series of original factor returns from the matrix of asset portfolios associated…

Factor investingPortfolio constructionStatistics
Quant Q&A

The document examines whether portfolio Value-at-Risk can be derived by treating asset returns as multivariate t distributed. It explains that each individual component of a multivariate t vector has a univariate t marginal with the same degrees of freedom.…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document surveys ways to estimate covariance matrices when a portfolio universe contains many assets. It identifies two broad approaches: shrinkage, which reduces estimation noise in a conventional sample covariance matrix, and factor models, which…

Portfolio constructionStatisticsRisk managementFactor investing
Quant Q&A

This exchange considers how to update expected asset returns when rebalancing a Markowitz portfolio day by day. The question proposes incorporating each new observation into the historical sample and recalculating the expected returns and portfolio weights.…

Portfolio constructionStatisticsBacktesting
Quant Q&A

The document describes several ways to select bonds for a butterfly trade, depending on the rationale for the position. For a relative-value or mean-reversion trade, a trader can assess whether the middle maturity looks unusually rich or cheap against the…

Fixed incomeMean reversionPortfolio constructionRisk management
Quant Q&A

The document distinguishes dollar neutrality from market neutrality and addresses how to benchmark a dollar-neutral strategy with nonzero market beta. Equal dollar amounts on the long and short sides do not necessarily cancel market exposure. The response…

Portfolio constructionRisk managementStatistics
Quant Q&A

The note reframes the search for an equal-weighted basket of a fixed number of stocks with minimum volatility as a portfolio optimization problem rather than an ordinary knapsack problem. Portfolio variance depends on the full covariance matrix, including…

EquitiesPortfolio constructionRisk managementStatistics