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 examines a second-order approximation for the certainty equivalent of a risky payoff. Expanding utility around the payoff’s mean approximates expected utility using the utility curvature and payoff variance; a first-order expansion of utility at…

Risk managementStatisticsPortfolio construction
Quant Q&A

The note addresses whether factors in an asset-pricing model must be returns on traded portfolios. It describes a macroeconomic factor model that includes measures such as industrial production growth and inflation surprises alongside bond return spreads.…

Factor investingFixed incomeStatisticsPortfolio construction
Quant Q&A

The document explains how to estimate an index-futures hedge for a portfolio of stocks under the Capital Asset Pricing Model. For each holding, multiply its market value by its beta to the chosen index, then add those amounts. The resulting exposure…

EquitiesFuturesRisk managementPortfolio construction
Quant Q&A

The discussion considers how to simulate returns for a portfolio containing many equities and bonds while retaining realistic dependence across assets. The initial proposal estimates historical means, standard deviations, and correlations, draws multivariate…

Multi-assetPortfolio constructionStatisticsBacktesting
Quant Q&A

This document collects book recommendations for readers who want to understand the mathematics used in quantitative finance research. The suggestions span introductory mathematical tools, including calculus, optimization, numerical methods, and risk-neutral…

StatisticsDerivatives pricingPortfolio constructionMarket microstructure
Quant Q&A

The document asks how a risky-asset portfolio weight enters wealth dynamics and then the Hamilton-Jacobi-Bellman equation for maximizing expected log wealth. It presents a risky asset whose excess return follows a mean-reverting signal, alongside correlated…

Portfolio constructionRisk managementStatisticsDerivatives pricing
Quant Q&A

The document explains why option delta is generally tied to a particular underlying asset, so a portfolio containing options on different stocks does not have a single ordinary delta obtained by simply adding the component deltas. For a portfolio whose value…

OptionsEquitiesRisk managementPortfolio construction
Quant Q&A

The document concerns how to design a simulation study comparing hierarchical risk parity with the analytical global minimum variance portfolio formula for stocks. The question highlights that results may depend on assumptions about the covariance structure…

EquitiesPortfolio constructionBacktesting
Quant Q&A

The document asks how to assign equal risk contributions across asset classes in a portfolio that includes nonlinear instruments such as options. One response recommends first converting each instrument into a return stream, estimating risk parameters from…

Risk managementPortfolio constructionOptionsStatistics
Quant Q&A

The note clarifies the ingredients in a Hansen–Jagannathan distance calculation and relates the measure to stochastic discount factor pricing. It derives a bound connecting the maximum Sharpe ratio attainable from a set of assets with the volatility-to-mean…

StatisticsRisk managementPortfolio construction
Quant Q&A

The note considers how an NPV function should handle cash flows when the valuation date falls during an instrument’s life. For basic instruments, the accepted answer recommends valuing only future cash flows. For products whose future payoff depends on past…

Fixed incomeDerivatives pricingRisk managementPortfolio construction
Quant Q&A

The discussion considers how to convert assets denominated in different currencies into an account currency during portfolio backtests. The central tradeoff is computational cost versus fidelity: applying an FX rate to every market tick may be expensive,…

ForexBacktestingPortfolio constructionRisk management
Quant Q&A

The document asks how to normalize eigenportfolio weights when some components are negative, in a setting based on statistical arbitrage in U.S. equities. It contrasts dividing each weight by the signed sum with dividing by the sum of absolute weights. The…

Portfolio constructionPairs tradingEquitiesStatistics
Quant Q&A

The document derives an index’s single-period total return from security weights, price changes, and income. It rewrites each holding’s contribution as the sum of its price return and income return, then takes the weighted sum across holdings. This makes the…

Multi-assetPortfolio constructionStatistics
Quant Q&A

The document discusses how to improve a bank’s estimate of the maturity of non-maturing chequing deposits for funds transfer pricing. The starting method assigns active accounts the historical average time until full withdrawal, split by customer…

Fixed incomeStatisticsRisk managementPortfolio construction
Quant Q&A

The document addresses how to construct a zero-coupon Treasury curve when a cash-flow matrix has more coupon-date columns than bond-price rows. One proposed approach is to select a maturity-spaced set of securities, then create hypothetical bonds from nearby…

Fixed incomeStatisticsPortfolio construction
Quant Q&A

The document asks what “global” means in the term global minimum-variance portfolio and how it differs from a minimum-variance portfolio. The accepted answer distinguishes the unconstrained search across all possible return levels from the common…

Portfolio constructionStatistics
Quant Q&A

The document describes a proposed research approach: define learning environments from market microstructure models with known solutions, then use reinforcement learning to see whether agents recover features of those equilibria. As an initial example, the…

Machine learningMarket microstructureExecutionPortfolio construction
Quant Q&A

Black–Litterman needs equilibrium weights for a market portfolio to infer implied returns. When the investment universe contains a mix of assets such as stocks and bonds, market capitalizations may be unavailable or hard to compare, so the document…

Multi-assetPortfolio constructionStatistics
Quant Q&A

The document explains how to calculate variance for a portfolio that is long one stock, short another, and holds the remaining capital in cash. Its example uses weights of 1.0 in stock A and -0.5 in stock B, with cash completing the total portfolio weight.…

EquitiesStatisticsPortfolio construction
Quant Q&A

The document presents a long-short portfolio with a small long position, a much larger short position, and cash held alongside the positions. Its reported portfolio contribution is sharply negative even though the portfolio’s net market value is positive.…

Portfolio constructionRisk managementPosition sizing
Quant Q&A

The document surveys approaches to estimating time-varying dependence with copulas in R. It points to vine copulas with evolving parameters as one research direction and mentions the CDVine package and related materials for statistical inference. It also…

StatisticsMachine learningPortfolio construction
Quant Q&A

The document addresses an attempt to maximize expected portfolio return at a specified volatility using R's optim function. The proposed penalty based on an if statement gives the optimizer a discontinuous objective, and the answer instead describes…

Portfolio constructionRisk managementPosition sizing
Quant Q&A

The document derives an inverse covariance matrix for a single-factor CAPM model with a zero risk-free rate. It represents total asset covariance as the sum of a diagonal matrix of idiosyncratic variances and a rank-one market-factor contribution. The…

StatisticsPortfolio constructionRisk management