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 compares two ways to estimate performance relative to factors. In a two-stage approach, asset exposures are first estimated from time-series regressions, then factor risk premiums are estimated from cross-sectional regressions at each date and…

Factor investingStatisticsPortfolio construction
Quant Q&A

The document asks how to turn a sequence of per-trade percentage returns into a cumulative return. It proposes multiplying the gross returns, then subtracting one, which is the standard way to compound sequential returns when each return applies to the…

StatisticsBacktestingPortfolio construction
Quant Q&A

The question challenges the use of return standard deviation as the sole basis for allocating capital across uncorrelated assets. It asks what principles might support equal weights, growth-based weights, or another allocation rule when conventional…

Portfolio constructionRisk managementMulti-asset
Quant Q&A

The document compares adding long- or short-duration Treasuries to an equity portfolio, including whether to use leverage. For an investor optimizing across stocks and both bond maturities, the first answer recommends evaluating expected returns, risks, and…

Multi-assetFixed incomeEquitiesPortfolio construction
Quant Q&A

The note considers how to calculate monthly and cumulative returns for three stocks and an equally weighted hedge fund portfolio. Its answer emphasizes that portfolio weights matter: an equal-weight allocation at the start does not by itself establish that…

EquitiesPortfolio constructionBacktestingStatistics
Quant Q&A

The document sets up a comparison between investing with one exponential-utility optimization over a full horizon and reoptimizing at an intermediate date before the final horizon. It presents the martingale-method terminal wealth expression for a complete…

OptionsDerivatives pricingBacktestingPortfolio construction
Quant Q&A

The document examines two formulas for measuring average correlation among assets in a weighted portfolio. It presents an R example using simulated returns to build a covariance matrix, correlation matrix, and portfolio variance, then compares the two…

StatisticsPortfolio construction
Quant Q&A

The document explains how to choose a self-financing hedge portfolio when an investor already holds positions in part of an asset universe. It partitions the full return covariance matrix into blocks for the existing holdings and the assets available for…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document raises two practical questions about turning cointegration relationships into a pairs trading portfolio. It compares a regression of log prices with one using raw prices, each expressed as a fitted relationship between assets and a residual…

Pairs tradingStatisticsPortfolio constructionPosition sizing
Quant Q&A

The discussion seeks a derivation for the portfolio weights often written as the inverse covariance matrix multiplied by expected returns. One answer applies Lagrange multipliers to a Sharpe-ratio objective with weights summing to one. Another uses the…

Portfolio constructionStatisticsRisk management
Quant Q&A

The discussion asks whether CAPM is suitable for valuing a stock when the analyst believes the market price is wrong. It outlines a common valuation use: estimate beta from historical returns, use CAPM to estimate the equity return investors require, and…

EquitiesStatisticsPortfolio construction
Quant Q&A

The document examines a proposed way to summarize the return of a single security position built through purchases at different prices. The method calculates each purchase’s return to the present, weights those returns by the purchase’s fraction of current…

EquitiesStatisticsPortfolio construction
Quant Q&A

The document asks how to define portfolio shares whose values sum to one at every time, and how their period-to-period growth factors must relate. It treats each share as a proportion of the total and defines its growth as the ratio of its next-period value…

Portfolio constructionStatistics
Quant Q&A

The document asks whether negative interest rates require separate pricing models for electronic and physical cash flows. It proposes treating physical settlements as observed portfolio cash flows, discounting outgoing and incoming amounts using…

Fixed incomeRisk managementPortfolio construction
Quant Q&A

A financial benchmark provides a reference for judging a portfolio manager’s performance, such as a broad equity index or a risk-free asset. The document offers SAMURAI as a set of selection criteria: a benchmark should be specified in advance, appropriate,…

Portfolio constructionRisk managementUS markets
Quant Q&A

The note describes a factor-investing approach that begins with a diversified, market-cap-weighted index portfolio. Practitioners can adjust stock weights according to their estimated exposures to the Fama–French size and value factors, increasing weights in…

Factor investingPortfolio constructionEquities
Quant Q&A

The note explains how a portfolio gain process can be written using undiscounted asset prices while still displaying excess returns over the risk-free rate. It starts from risky assets whose proportional returns contain drift and diffusion terms, then…

Multi-assetPortfolio constructionStatistics
Quant Q&A

The document discusses how to evaluate stock-return factor models and whether information criteria should be applied to time-series regressions for individual assets or to cross-sectional models. It explains that the answer depends on the model’s purpose and…

EquitiesFactor investingStatisticsPortfolio construction
Quant Q&A

The question concerns portfolio optimization over a large investment universe under long-only, equal-weight, and asset-count restrictions. It seeks both a maximum-Sharpe portfolio and a minimum-standard-deviation portfolio at a target return, and reports…

Portfolio constructionPosition sizingRisk managementBacktesting
Quant Q&A

The document presents an approach to allocating partial fills across a sequence of stock trades when the final position must stay within a fixed share limit. The original formulation uses dynamic programming over possible positions and execution amounts, but…

EquitiesPosition sizingExecutionPortfolio construction
Quant Q&A

The document frames a portfolio problem involving N assets, each modeled as a geometric Brownian motion with drift and volatility. It asks how to express the stochastic differential equation for a function of all asset prices, with clear drift and diffusion…

StatisticsDerivatives pricingPortfolio construction
Quant Q&A

The document addresses how to test whether one factor can be removed from a multi-factor asset pricing model. A factor’s average return alone is not a sufficient criterion: omitting it changes the estimated exposures to the remaining factors. The proposed…

Factor investingStatisticsPortfolio construction
Quant Q&A

The document explains how to choose a risky-asset weight for a one-period portfolio when the investor has power utility, a risk-free return, and a probability distribution for the risky asset’s return. The return distribution is represented by possible…

Portfolio constructionPosition sizingOptionsStatistics
Quant Q&A

The document poses a portfolio construction question about equally weighting short put positions by option price across different stocks with a shared maturity. The author describes Monte Carlo results in which portfolios involving more highly correlated…

OptionsEquitiesPortfolio constructionRisk management