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
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 document explains that a long-short portfolio’s volatility and Sharpe ratio can be computed from its excess-return or profit-and-loss stream, as for other portfolios. First account for financing, including the difference between cash borrowing and…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document presents a bond-based approach to creating exposure to a five-year-five-year forward rate. The proposed portfolio is short a five-year bond and long a ten-year bond, with relative weights determined using duration-based interest-rate…

Fixed incomePosition sizingPortfolio construction
Quant Q&A

The document develops a first-order approach to immunizing a bond portfolio against nonparallel interest-rate shifts. It approximates each bond’s price change by differentiating its discounted cash flows with respect to rates at each maturity, producing…

Fixed incomeRisk managementPortfolio constructionFactor investing
Quant Q&A

The document concerns how to compress a portfolio of long and short commodity forward or futures positions across delivery months into a single front-month-equivalent exposure. The goal is to approximate portfolio profit and loss using that exposure and the…

CommoditiesFuturesRisk managementPortfolio construction
Quant Q&A

The document asks how to interpret the Hansen-Jagannathan bound, which relates the volatility of a stochastic discount factor to the Sharpe ratio of excess returns. The question focuses on constructing a lower bound on discount-factor volatility when its…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document asks how an expected shock to one asset should affect the weights of other holdings, and whether portfolio substitutability can explain those changes. It proposes that assets with more similar characteristics might receive more of the…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document asks why a leverage or volatility-scaling factor changes the turnover ratio of a momentum portfolio, citing the approach associated with Barroso and Santa-Clara. It distinguishes the intuitive idea of multiplying portfolio exposures by a scale…

MomentumPortfolio constructionExecution
Quant Q&A

The document addresses how to account for upcoming corporate actions when implementing a long-short equity statistical arbitrage strategy using a Bloomberg data license. The strategy holds positions across many stocks, and the author asks how to find events…

EquitiesEvent-drivenPortfolio construction
Quant Q&A

The document proposes a way to compare mutual funds grouped by holdings-based investment style. For each style, construct both an equally weighted portfolio and a value-weighted portfolio from the funds’ quarterly returns. These alternative aggregations show…

Factor investingPortfolio constructionStatistics
Quant Q&A

The document clarifies the difference between compounding simple returns across periods and scaling returns for an annualized portfolio statistic. For a constant average daily simple return, compounding converts it to a yearly level return by applying the…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document describes a proposed portfolio procedure: draw samples from a random vector of asset returns, optimize weights for each draw subject to linear constraints, and average the resulting allocations. Because the feasible set defined by the…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document asks whether portfolios minimizing Value at Risk or expected shortfall must lie on the mean–variance efficient frontier. It explains that when asset returns follow an elliptical distribution, including Gaussian and Student t examples, minimizing…

Portfolio constructionRisk managementStatistics
Quant Q&A

Without a risk-free asset, investors cannot draw the usual capital allocation line from that asset or identify an optimal risky portfolio as its tangency with the efficient frontier. The document points to Black’s zero-beta CAPM as a framework for this…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document contrasts arithmetic returns and log returns for portfolio analysis. Arithmetic returns preserve cross-sectional weighting, so they are appropriate for combining asset returns into a portfolio return for a period. Log returns add across time,…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document asks whether Bloomberg Barclays monthly total and excess returns can be reproduced from constituent-level index data, including constituent returns, market values, and excess returns. The author reports a close but imperfect tie-out for a broad…

Fixed incomeBacktestingPortfolio construction
Quant Q&A

The document proposes clustering stocks using financial statement ratios such as price-to-book, price-to-earnings, and return on equity, potentially alongside market measures such as beta and annual price change. The suggested workflow is to form groups from…

EquitiesMachine learningPortfolio construction
Quant Q&A

The document describes connections between actuarial science and quantitative finance, using insurance portfolios and life insurance contracts as examples. Its central distinction is that actuarial work often estimates future distributions from observed…

StatisticsPortfolio constructionDerivatives pricingRisk management
Quant Q&A

The document examines why robust portfolio allocation can be useful and distinguishes choosing a portfolio for a worst-case market outcome from choosing a portfolio rule that performs well under uncertain parameters. One proposed frequentist framing…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document asks whether a rolling Value at Risk backtest is appropriate for returns from a winner-minus-loser (WML) momentum strategy. The described procedure estimates a mean and variance from a moving historical window, computes a normal VaR threshold,…

MomentumRisk managementBacktestingPortfolio construction
Quant Q&A

The document investigates a claim that portfolio positions proportional to forecast returns maximize an alpha strategy’s information ratio. It relates the question to mean-variance portfolio theory, treating returns relative to a benchmark as analogous to…

Portfolio constructionStatisticsFactor investing
Quant Q&A

The document explains how to add a market-neutrality condition to a long-only, fully invested minimum-variance portfolio in CVXPY. Given a vector of asset betas and portfolio weights, neutrality is imposed by requiring their dot product to equal zero. The…

Portfolio constructionRisk managementStatistics
Quant Q&A

The discussion considers how to estimate covariance when historical relationships may shift with observable conditions. Although framed around selecting a portfolio of athletes, its examples—player matchups and racing-track characteristics—illustrate why…

StatisticsPortfolio constructionRisk managementMachine learning
Quant Q&A

The document asks how to interpret dollar neutrality when a portfolio shorts an index ETF and uses the resulting proceeds to finance long-only holdings. The investor describes gross positions whose long exposure exceeds the short exposure, despite the short…

EquitiesPortfolio constructionRisk management
Quant Q&A

The document raises a portfolio-theory question about whether including government bonds as an available asset makes the global minimum-variance portfolio an all-bond allocation. It connects this question to the efficient frontier: the global…

Portfolio constructionFixed incomeRisk managementStatistics