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 outlines practical inputs and sample rules for calculating the Fama–French factors. It gives example Compustat formulas for book equity, operating profitability, market equity, and the book-to-market ratio, then describes how to form portfolios…

EquitiesFactor investingUS marketsPortfolio construction
Quant Q&A

The document explains how dependence among loan defaults affects a portfolio’s loss distribution. If portfolio loss is the sum of individual loan losses, its expected value is the sum of their expected values, so changing correlation alone does not change…

Fixed incomeStatisticsRisk managementPortfolio construction
Quant Q&A

The document presents chart options for examining how ten sector returns contribute to a portfolio over time. One approach is to compound each sector’s returns separately, starting each cumulative series at one, and plot the resulting lines against dates.…

Portfolio constructionEquitiesStatistics
Quant Q&A

Adjusted closing prices account for dividends so historical returns can reflect the shareholder’s total return rather than price movement alone. On the ex-dividend date, the stock price is expected to fall by roughly the dividend amount, all else equal,…

EquitiesUS marketsPortfolio construction
Quant Q&A

The document outlines a framework for stressing a bank’s net interest income (NII) with three yield curve factors: shift for level, twist for slope, and butterfly for curvature. It proposes estimating the factors, shocking them, constructing a stressed…

Fixed incomeRisk managementStatisticsPortfolio construction
Quant Q&A

The document discusses how to interpret the sign and magnitude of value at risk (VaR). In common practice, VaR is reported as a positive loss amount, so a figure such as 100 denotes the amount at risk rather than a signed portfolio loss. Another answer…

Risk managementStatisticsPortfolio construction
Quant Q&A

The discussion explains how to translate a global minimum variance portfolio problem into the inputs expected by R's quadratic programming solver. The example has three asset weights, a budget constraint requiring weights to sum to one, and lower and upper…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document explains how to calculate the gain on a foreign-currency investment from the perspective of an investor whose home currency differs from the asset’s trading currency. The relevant comparison is between the home-currency amount originally paid…

Multi-assetEquitiesForexPortfolio construction
Quant Q&A

The document explains why compounding a portfolio’s monthly excess returns does not generally produce its annual excess return. To measure annual excess performance, calculate the portfolio’s compounded annual return and subtract the benchmark’s compounded…

StatisticsPortfolio constructionBacktesting
Quant Q&A

The document considers when an investor should exit an underperforming hedge fund or private equity investment. It highlights practical frictions: exit windows can be long, fees may be substantial, and re-entry can be costly. It also notes the possibility…

Risk managementPortfolio constructionTrend following
Quant Q&A

The explanation frames interest-rate hedging as offsetting the sensitivity of a portfolio’s market value to movements in the risk-free curve. It values a debt instrument by discounting its dated cash flows using factors that reflect rates and other…

Fixed incomeDerivatives pricingRisk managementPortfolio construction
Quant Q&A

The document considers how to simulate correlated asset returns for Monte Carlo mean-variance portfolio optimization. A common approach starts with independent standardized draws and multiplies them by a matrix factor of the target covariance matrix,…

Portfolio constructionStatisticsBacktesting
Quant Q&A

The document uses a one-period, two-outcome stock model to show how stock and call positions can produce a payoff that is the same in either market outcome. With the stock ending above or below the strike, the call’s payoff differs across states. Choosing a…

OptionsEquitiesDerivatives pricingPortfolio construction
Quant Q&A

The document explains how factor models can help identify risks and return patterns in an equity portfolio. It contrasts return-based analysis, which regresses portfolio returns on candidate factors, with holdings-based analysis, which aggregates exposures…

EquitiesFactor investingPortfolio constructionRisk management
Quant Q&A

Equity mutual funds may have different rules governing how much they can invest in particular industries. The document explains that investors can look for those rules in a fund’s prospectus. A broadly managed fund may have no hard industry limits stated,…

EquitiesPortfolio constructionRisk management
Quant Q&A

The document explains how factor models can reduce the complexity of modelling returns and covariance across many assets. It represents each asset’s return as exposures to a smaller set of common factors plus an idiosyncratic component. When the factor count…

Factor investingPortfolio constructionStatistics
Quant Q&A

The document asks how to incorporate company size when constructing the Fama-French winner-minus-loser (WML) equity factor. It notes that winner and loser groups are formed using cumulative returns over the period from month t-12 to t-2, then raises a timing…

EquitiesFactor investingMomentumPortfolio construction
Quant Q&A

The document asks whether adjusted closing prices for ETFs or mutual funds account for fund expense ratios, in the context of comparing returns from market data. The response explains that fund expenses are deducted from the fund’s assets over time, reducing…

EquitiesPortfolio construction
Quant Q&A

The discussion asks whether portfolio returns can be compared using semi-standard deviation, which focuses on downside variation, instead of ordinary standard deviation. The answer frames the Sharpe ratio more generally as excess return divided by a chosen…

Risk managementPortfolio constructionStatistics
Quant Q&A

The answer explains the distinction between averaging periodic simple returns and calculating a compounded return over multiple periods. Because wealth evolves multiplicatively, the geometric average gives the constant per-period return equivalent to the…

StatisticsPortfolio construction
Quant Q&A

The document raises the problem of estimating stock return correlation matrices when the number of assets is large relative to the available history. It asks about implementing the unbiased rotationally invariant estimator described by Bun, Bouchaud, and…

EquitiesStatisticsPortfolio construction
Quant Q&A

The question compares two optimization objectives: minimizing the logarithm of the expected exponential of a random outcome, and minimizing its expectation subject to a variance bound. It asks whether the exponential criterion is preferable because its…

Risk managementStatisticsPortfolio construction
Quant Q&A

This discussion collects reference books suggested for quantitative portfolio management and risk management. The original question names works on portfolio construction, risk budgeting, active management, asset allocation, Monte Carlo methods, asset…

Risk managementPortfolio constructionStatistics
Quant Q&A

The document asks why an equal risk contribution portfolio built with PortfolioAnalytics does not show equal percentage contributions across its assets. Its example uses a six-asset return series and defines portfolio constraints alongside objectives…

Portfolio constructionRisk managementBacktesting