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
Quantpedia
86 documents
TqSdk
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 note explains why a Black–Litterman model does not itself prevent negative portfolio weights. The model combines a prior return estimate with investor views to produce expected returns; weight constraints belong to the subsequent portfolio optimization…

Portfolio constructionRisk managementEquities
Quant Q&A

The document shows how to calculate daily returns for a portfolio whose target weights are reset monthly. Begin with the capital allocated to each asset at the start of the month, apply each asset's daily return to its current dollar value, and sum the…

Portfolio constructionBacktestingEquities
Quant Q&A

The document sets up an approach for choosing a debt-to-equity ratio by minimizing weighted average cost of capital (WACC). It combines the tax-adjusted costs of debt and equity, estimates the cost of equity with CAPM, and adjusts unlevered beta for leverage…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document formulates sector performance attribution as a constrained fit of S&P 500 returns using sector return time series. The proposed coefficients sum to one and are each restricted to the interval from zero to one. The author interprets larger…

EquitiesStatisticsPortfolio construction
Quant Q&A

This collection surveys apparent contradictions and counterintuitive results in quantitative finance. Its most detailed example is post-crisis interest-rate valuation: pricing swaps may require separate curves for discounting cash flows and projecting…

Fixed incomeOptionsStatisticsPortfolio construction
Quant Q&A

The question asks whether consistent covariance estimates require every asset’s volatility to use the same model and parameter values, and what to do when assets appear to follow different volatility processes. The responses point toward a full multivariate…

StatisticsVolatilityPortfolio construction
Quant Q&A

The document addresses how to calculate liquidation tracking error in an equity fund liquidity stress test. Under horizontal, or waterfall, liquidation, assets are sold according to available daily capacity, which can distort portfolio weights. The proposed…

EquitiesRisk managementPortfolio constructionStatistics
Quant Q&A

The document derives how the mean-variance tangency portfolio depends on expected asset returns, their covariance matrix, and the risk-free rate. With a riskless asset available for borrowing or lending, the optimal risky-asset weights are proportional to…

Portfolio constructionFixed incomeEquitiesRisk management
Quant Q&A

The document sets up a long-only portfolio with weights summing to one and distinguishes period-by-period price returns from cumulative returns measured since the start of a sample. Under its fixed-weight setup, portfolio cumulative returns are linear in the…

Portfolio constructionStatisticsEquities
Quant Q&A

The document identifies the described portfolio risk calculation as Delta-Normal Value at Risk. It combines portfolio weights with a forecast covariance matrix to obtain predicted portfolio variance, then scales a distribution quantile by the resulting…

Risk managementStatisticsPortfolio construction
Quant Q&A

The document asks how to backtest a modern convertible bond arbitrage strategy, with particular interest in R or Matlab packages and affordable data. The response separates strategy research tools by task: fPortfolio for simpler weight-based allocation,…

ArbitrageBacktestingPortfolio construction
Quant Q&A

The document examines a counterintuitive property of return-to-risk ratios such as the Sharpe and Treynor ratios: when excess returns are negative, dividing by a larger risk estimate can make the ratio less negative and appear better. It presents an…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document contrasts a Total Portfolio Approach (TPA) with strategic asset allocation (SAA) based on mean-variance optimization. The question describes TPA as using equities and bonds as a reference portfolio, with other allocations treated as active…

Portfolio constructionFactor investingMulti-asset
Quant Q&A

The document examines whether ranking portfolios by the smoothness and risk-adjusted performance of their historical returns can identify future winners. The questioner groups daily results into 20-day intervals, accumulates the interval returns, and applies…

StatisticsBacktestingRisk managementPortfolio construction
Quant Q&A

The document explains that fixed-income spreads serve several purposes, including quoting bonds, comparing relative value, attributing profit and loss, and measuring or hedging market risk. Simple yield spreads compare a bond’s yield with a selected…

Fixed incomeDerivatives pricingRisk managementPortfolio construction
Quant Q&A

The document asks how to interpret asset-level volatility contributions in a portfolio built from return covariance and asset weights. It contrasts a conventional long-only case, where contributions are expected to guide weight changes for raising or…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document presents a portfolio allocation problem involving three assets, with expected returns, volatilities, and a correlation specified for two of them. One asset is described as having zero volatility. The questioner writes a portfolio variance…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document asks whether downside deviation has practical value for measuring risk or guiding portfolio allocation. The only response describes it as a coherent risk measure and notes its connection to Markowitz’s work. It says practitioners use the…

Risk managementPortfolio constructionStatistics
Quant Q&A

The question asks whether mean-variance portfolio weights have a closed-form solution when weights must sum to one and each asset weight must lie between zero and one. The response gives the familiar inverse-covariance expression for the global…

Portfolio constructionStatisticsRisk management
Quant Q&A

The discussion outlines a basic historical-data workflow for choosing portfolio weights: calculate asset returns, estimate their covariance matrix, and optimize for minimum variance or for minimum variance at a target expected return. It also points to…

Portfolio constructionStatisticsRisk managementBacktesting
Quant Q&A

The document addresses whether maximum Sharpe ratio portfolio weights have a closed-form solution when short selling is allowed. It presents the result that, for risky asset returns with covariance matrix Σ and expected excess returns, the tangency portfolio…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document introduces the Treynor–Black model, which combines a market portfolio with an active portfolio that is assumed to offer alpha. It gives formulas for the active allocation using the active portfolio’s alpha and residual variance, along with…

Portfolio constructionRisk managementStatistics
Quant Q&A

The exchange connects mean-variance portfolio choice to the CAPM decomposition of asset returns into market exposure and idiosyncratic residuals. Under the answer’s assumptions that residuals have zero mean and are mutually independent, the covariance matrix…

Portfolio constructionFactor investingRisk managementStatistics
Quant Q&A

The document compares two ways to revalue a composite index after changing the values of its underlying indices. One formula takes the ratio of shocked to base weighted totals; the other adds each underlying index’s percentage change multiplied by its…

Multi-assetStatisticsPortfolio construction