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 document explains how to combine volatility estimates from consecutive periods. If returns across the periods are uncorrelated, their variances add, so the standard deviation over the full two-year span is the square root of the sum of the two annual…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document discusses implementing the nine Piotroski F-score signals with company financial data. The response treats the questions as accounting and data-mapping issues, and recommends consulting the original research for precise definitions. It suggests…

EquitiesFactor investingStatisticsBacktesting
Quant Q&A

The document asks whether a proposed constrained portfolio optimization setup correctly represents Kelly growth, how its portfolio curve relates to the familiar Kelly parabola, and how Kelly allocation differs from Markowitz mean-variance analysis. The…

Portfolio constructionRisk managementStatisticsPosition sizing
Quant Q&A

The discussion explains why estimating returns and covariances from historical prices for Modern Portfolio Theory (MPT) does not, by itself, contradict the weak Efficient Market Hypothesis (EMH). MPT prescribes how to allocate assets given expectations about…

Portfolio constructionStatisticsEquitiesRisk management
Quant Q&A

The discussion presents stochastic portfolio theory (SPT) as a framework for portfolio growth that accounts for asset variances and co-movements. It contrasts arithmetic expected returns with long-run logarithmic growth, explaining that volatility can reduce…

Portfolio constructionStatisticsPosition sizingEquities
Quant Q&A

The discussion addresses how to keep a portfolio’s normalized value continuous when holdings are added or sold. Simply summing each stock’s normalized value using current portfolio weights can create an artificial jump at a trade, obscuring gains accumulated…

EquitiesPortfolio constructionRisk management
Quant Q&A

The response describes Markowitz mean-variance optimization as a model that remains in use because its logic is familiar and easy to explain, while its sensitivity to forecast assumptions is widely recognized. It compares extreme portfolio weights caused by…

Portfolio constructionRisk managementMulti-assetStatistics
Quant Q&A

The question asks to show that a tangency portfolio does not exist when the risk-free rate equals the expected return of the global minimum variance portfolio. One algebraic answer defines standard covariance-matrix quantities and assumes a solution to the…

Portfolio constructionStatisticsRisk management
Quant Q&A

The question asks why an asset should be added when its Sharpe ratio exceeds the existing portfolio’s Sharpe ratio multiplied by the asset’s correlation with that portfolio. One answer expresses portfolio Sharpe as a weighted combination of asset Sharpe…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document distinguishes two claims that are often treated as if one automatically proves the other: that investors hold the same tangency portfolio among risky assets, and that this portfolio is the market portfolio. In the mean–variance framework,…

Portfolio constructionStatisticsEquities
Quant Q&A

The document describes a portfolio-construction approach that substitutes a connectedness matrix for the covariance matrix and active returns for expected returns within a mean-variance optimization framework. The matrix is built from pairwise dependence…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document asks how to choose portfolio objectives for investors with different risk preferences. It questions whether the Sharpe ratio suits a risk-neutral investor and whether replacing standard deviation in its denominator with value at risk or…

Risk managementPortfolio constructionStatistics
Quant Q&A

The document discusses how to organize historical equity data so backtests can handle delistings, acquisitions, ticker changes, dividends, and splits. One proposed design assigns stable internal identifiers to companies and separately tracks stock series and…

EquitiesBacktestingEvent-drivenStatistics
Quant Q&A

This note contrasts the analytical minimum-variance portfolio with portfolio optimization for maximum skewness. The minimum-variance problem has a closed-form solution under a full-investment constraint. The skewness objective instead depends on a coskewness…

Portfolio constructionStatistics
Quant Q&A

The document considers whether value-at-risk or conditional value-at-risk (also called expected shortfall) is better suited to portfolio construction, focusing on a long/short equity portfolio without options. It summarizes a debate over risk measure…

Risk managementPortfolio constructionStatisticsEquities
Quant Q&A

The post asks whether expected utility portfolio optimization can be formulated when market models permit arbitrage. It references work on pricing under a weakened no-arbitrage assumption, while noting that the cited approach does not resolve utility…

ArbitragePortfolio constructionRisk management
Quant Q&A

The document says short-horizon curve construction depends on the market and intended use. For a USD swap curve, builders can incorporate actively traded instruments with different maturities and frequencies, including monthly fed funds futures, short-dated…

Fixed incomeStatisticsPortfolio construction
Quant Q&A

The document explains how to choose weights for two risky assets when their returns are highly correlated and their volatilities differ. It gives the variance of a weighted return portfolio in terms of the asset weights, individual variances, and cross-asset…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document presents two matrix expressions for portfolio risk attribution: one labeled asset risk contribution and another labeled correlation-weighted asset risk contribution. It defines the identity matrix, diagonal weight and volatility matrices, asset…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document treats replication of an option payoff using options at a different set of strikes as a constrained function approximation problem. It represents the target call payoff as a weighted combination of calls at available strikes, then chooses the…

OptionsDerivatives pricingStatisticsPortfolio construction
Quant Q&A

The discussion questions whether reinforcement learning is useful when a portfolio model is trained on fixed historical prices. In that setup, market states advance independently of the chosen action, and next-period rewards can be deterministic given the…

Machine learningPortfolio constructionBacktestingRisk management
Quant Q&A

The discussion explains how to include cash dividends when calculating an asset’s year-to-date return for performance analysis or backtesting. If dividends are not reinvested, the suggested calculation adds dividends received during the period to the ending…

EquitiesBacktestingPortfolio construction
Quant Q&A

The discussion distinguishes standard conditional value at risk (CVaR), also called expected shortfall, from a separate copula-based measure called CCVaR. Standard CVaR is described as a coherent risk measure, whose properties include subadditivity: the risk…

Risk managementStatisticsPortfolio construction
Quant Q&A

The document explains how to handle companies that fail during a historical stock study, such as an analysis comparing returns by corporate social responsibility ratings. Its answer recommends defining an investable universe using information available at…

EquitiesBacktestingRisk managementPortfolio construction