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
QuantRocket
7 documents
Lumibot strategies
7 documents
Awesome Quant
1 documents

Search the library

5,922 documents

Quant Q&A

The note answers a data sourcing question about retrieving the underlying stock positions of ETFs, represented by their CIKs, from SEC EDGAR. Since ETF holdings change over time, the questioner wants to query the information monthly. The proposed source is…

EquitiesPortfolio constructionUS markets
Quant Q&A

The document asks how to test whether rebalancing a portfolio of assets could benefit from mean-reverting behavior. It contrasts this portfolio question with applying a Dickey–Fuller test to a single time series, which can assess evidence of mean reversion…

Mean reversionStatisticsPortfolio construction
Quant Q&A

The document addresses how to identify periods when a portfolio and its benchmark diverge despite having high correlation over a full evaluation period. It offers two exploratory approaches: plot the portfolio-minus-benchmark spread and inspect intervals…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document raises a portfolio optimization issue: a turnover constraint with a target of zero appears not to preserve user-specified starting weights. In the example, the author sets four initial asset weights, applies box and return and risk objectives,…

Portfolio constructionPosition sizingRisk management
Quant Q&A

The document asks how to preserve fair ownership shares when several people jointly hold an asset whose value changes over time. It illustrates an initial pool funded by three contributors, followed by appreciation and a later cash contribution from one…

CryptoPortfolio constructionRisk management
Quant Q&A

This document collects recommended books and papers across quantitative finance, including asset pricing, portfolio allocation, option theory, stochastic calculus, derivatives by asset class, risk management, statistics, machine learning, programming,…

Derivatives pricingPortfolio constructionRisk managementStatistics
Quant Q&A

The document asks how to apply a scenario in which the stock portion of a portfolio falls while the bond and commodity positions are left unchanged. It illustrates a direct repricing approach: apply the assumed percentage loss to the stock holding, retain…

Portfolio constructionRisk managementMulti-assetEquities
Quant Q&A

The document addresses an apparent mismatch between CRRA and Epstein–Zin utility in a two-period consumption problem. In the final period, the stated Epstein–Zin value function is linear in remaining wealth, whereas the CRRA value function appears curved.…

StatisticsPortfolio construction
Quant Q&A

The document asks how to assign returns to five qualitative view levels—very bullish, bullish, neutral, bearish, and very bearish—using standard-deviation thresholds and a time-varying volatility series. It includes an attempted Python procedure that…

StatisticsMachine learningPortfolio construction
Quant Q&A

Portfolio skewness can be calculated either from the portfolio’s return series or by combining asset-level moments with portfolio weights. The document explains that joint third moments form a rank-three co-skewness tensor, with entries estimated from…

StatisticsPortfolio constructionRisk management
Quant Q&A

The discussion considers how to calculate monthly cash flows across a large portfolio of loans with varied terms, including rate resets, caps, floors, balloon payments, and prepayment assumptions. Suggested approaches include using a financial software…

Fixed incomeRisk managementPortfolio constructionBacktesting
Quant Q&A

The note explains how to include an ETF in a Monte Carlo portfolio VaR model when its full holdings are unknown. Its proposed approach is to treat the ETF as one instrument and model its returns like those of an individual stock, rather than estimating and…

Risk managementPortfolio constructionBacktesting
Quant Q&A

The document asks how to divide a fixed history between parameter development and out-of-sample validation when deciding whether to add an independent strategy to a portfolio. It offers no universally supported split: the best choice depends on the data and…

BacktestingStatisticsPortfolio construction
Quant Q&A

The document states a quadratic mean–variance utility objective, with expected portfolio return as the reward and return variance penalized by a risk-aversion coefficient. It asks for a textbook reference supporting the familiar expression for optimal…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document considers how to score portfolio diversification using correlation with a reference portfolio. It asks whether a negative correlation should receive a higher diversification score than correlation near zero. The response argues that, when the…

Portfolio constructionStatistics
Quant Q&A

The document sketches a two-player game between a retail trader and a hedge fund, framing their trading choices as a game-theory assignment to be expressed through linear programming. The retail trader can buy or short, while the fund can buy or sell. The…

EquitiesStatisticsPortfolio construction
Quant Q&A

The document discusses how to calculate portfolio returns when some constituent stocks have missing monthly returns, using a value-weighted portfolio as its example. It contrasts treating a missing return as zero with calculating the portfolio return from…

EquitiesPortfolio constructionStatisticsFactor investing
Quant Q&A

The document considers how a mean-variance investor might allocate capital among assets whose returns are independent and whose expected returns exceed a threshold. With independent returns, the covariance matrix is diagonal, so the tangent portfolio weights…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document presents an attempted mean-variance optimization workflow for a portfolio with lower and upper bounds on asset weights. It first uses a quadratic program to find a global minimum-variance portfolio subject to a budget constraint. It then…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document examines a proposed position-sizing rule that scales exposure using portfolio capital, a target volatility, instrument volatility and price, and a portfolio-level multiplier. That multiplier is based on the ratio of target volatility to lagged…

VolatilityPosition sizingPortfolio constructionRisk management
Quant Q&A

The document addresses how to use SOFR as the risk-free rate when calculating portfolio statistics such as the Sharpe ratio. The question arises from a multifactor portfolio project using weekly price data and asks whether a quoted SOFR value represents a…

Portfolio constructionRisk managementFixed income
Quant Q&A

The document raises a core portfolio risk question: whether historical portfolio volatility can be calculated directly from the portfolio return series or whether each asset’s volatility and the covariances among assets must be calculated separately. It…

VolatilityPortfolio constructionStatistics
Quant Q&A

The document asks how to combine daily equity curves from strategies trading commodities and currencies, with the goal of maximizing the portfolio Sharpe ratio. The reply points to Modern Portfolio Theory and the Markowitz model, which allocates across…

Portfolio constructionRisk managementCommoditiesForex
Quant Q&A

The document examines the claim that any asset with positive volatility must have a negative expected return over a sufficiently long horizon. The argument applies a relation between arithmetic and geometric averages, reasoning that variance drag eventually…

StatisticsRisk managementPortfolio construction