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
Quantopian lectures
45 documents
Binance API docs
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 asks why a portfolio’s simple return is expressed as a weighted sum of its assets’ simple returns, since directly comparing portfolio value at the start and end appears to produce a different formula. The resolution is that portfolio weights…

Portfolio constructionStatisticsMulti-asset
Quant Q&A

The discussion corrects an annualized Sharpe ratio calculation based on 36 monthly observations. For monthly returns, the risk-free rate should also be expressed monthly, and the monthly Sharpe ratio is conventionally scaled by the square root of the number…

Risk managementStatisticsPortfolio construction
Quant Q&A

The document asks whether portfolio optimizers should reshape the covariance of expected-return forecasts, given that forecast covariance can be transformed independently of the market-return risk matrix. The response cautions that raw forecast covariance is…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document raises a question about factor exposures when constructing equal-weighted and value-weighted benchmark portfolios from a cleaned set of U.S. listed firms. The portfolio universe contains firms across AMEX, NYSE, and NASDAQ, with membership…

EquitiesFactor investingPortfolio constructionStatistics
Quant Q&A

The document considers a Monte Carlo portfolio analysis in which changing the weights and strikes of put options reduces measures such as expected return and volatility, while Value at Risk sometimes rises. The response says this outcome can be plausible…

OptionsRisk managementPortfolio constructionBacktesting
Quant Q&A

The discussion explains why a long-short portfolio can have a higher market beta than a long-only portfolio. Scaling exposure to the market scales beta, while short positions can offset some of that exposure. The example compares a portfolio beta of 0.5 with…

EquitiesFactor investingPortfolio constructionRisk management
Quant Q&A

The post asks whether the volatility of a stock portfolio can be compared with the volatility of the S&P 500 when one is calculated from constituent volatilities and correlations and the other from observed index returns. The accepted answer says the direct…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document presents a Markowitz-style mean-CVaR portfolio optimization setup. It defines scenario losses from portfolio returns, uses a confidence level to form CVaR, and balances expected return against tail risk with a risk preference parameter. The…

Portfolio constructionRisk management
Quant Q&A

This note considers how to estimate value-at-risk for a stock-and-bond portfolio when one stock has only a short post-IPO return history. It raises two possible workarounds: bootstrap the stock's observed returns to create a longer series, or substitute…

EquitiesFixed incomeStatisticsRisk management
Quant Q&A

This note describes the gap between theoretical online portfolio selection (OLPS) models and live implementation. It points to assumptions often used in research, such as no transaction fees or market impact, ample liquidity, and the ability to trade…

Portfolio constructionBacktestingExecutionRisk management
Quant Q&A

The discussion considers back-testing a portfolio of individual stocks intended to track an equity index or ETF. It emphasizes that matching constituent trades alone is insufficient: a faithful simulation must reproduce the index’s rules, rebalance timing,…

EquitiesPortfolio constructionBacktestingExecution
Quant Q&A

The document asks whether performance statistics such as profit factor and Sharpe ratio should be computed for each leg of a pairs trade separately or for the combined position. Its example shows that the measured profit factor differs depending on whether…

Pairs tradingStatisticsPortfolio construction
Quant Q&A

The document explains how to evaluate a history of overlapping trades as a portfolio, including cumulative profit and loss, drawdowns, and period returns. Its central method is to value each open position over time using market prices, then aggregate the…

Multi-assetPortfolio constructionBacktestingRisk management
Quant Q&A

This document presents a bond portfolio duration calculation and asks how to hedge its interest-rate exposure with a fourth bond. The accepted answer distinguishes Macaulay duration, which measures the weighted timing of cash flows, from modified duration,…

Fixed incomeRisk managementPortfolio constructionDerivatives pricing
Quant Q&A

This document describes a question about how realized returns from a Constant Proportion Portfolio Insurance strategy change as its floor is varied. The investor compares a fully bond-invested portfolio at a 100% floor, a fully risky-market portfolio at a 0%…

Portfolio constructionRisk managementBacktesting
Quant Q&A

The document explains why a global minimum variance portfolio has the same covariance with any fully invested asset or portfolio. Its algebra starts with the GMV portfolio weights, proportional to the inverse covariance matrix applied to a vector of ones.…

Portfolio constructionStatisticsRisk management
Quant Q&A

The response offers several theoretical research areas for someone seeking mathematical finance problems grounded in analysis, probability, and optimization rather than statistical modeling. It suggests investigating convergence questions in simulation-based…

Derivatives pricingOptionsStatisticsPortfolio construction
Quant Q&A

The discussion addresses portfolio analysis when stocks have different listing dates and incomplete monthly return histories. It warns that interpolating irregular observations to create an even time series, often by linear interpolation, can introduce…

EquitiesStatisticsPortfolio constructionRisk management
Quant Q&A

The document presents a validation question for a machine-learning portfolio strategy evaluated out of time against a strong benchmark. Its custom rolling metric reflects portfolio value and additional state variables such as inventory and time. The observed…

Machine learningBacktestingStatisticsPortfolio construction
Quant Q&A

The document explains why the Fama–French model represents size and value effects with portfolio returns such as SMB and HML instead of using firm characteristics directly. In the asset-pricing framework discussed, expected returns are linked to covariance…

Factor investingEquitiesPortfolio constructionStatistics
Quant Q&A

The document asks how to handle bonds that mature while backtesting a fixed-income portfolio strategy, particularly when trying to reproduce a published study. It focuses on how a maturing bond contributes to returns and how the portfolio should account for…

Fixed incomeBacktestingPortfolio construction
Quant Q&A

The document compares two portfolio optimization objectives: expected return penalized by variance, and expected return penalized by standard deviation. It derives a parameter mapping, δ = η divided by the portfolio’s standard deviation, that makes their…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document discusses unstable coefficient estimates when returns-based style analysis uses many correlated indices or factors. Suggested tools include ridge and lasso regression, which add penalties to coefficient estimates; lasso can also encourage factor…

StatisticsFactor investingPortfolio constructionRisk management
Quant Q&A

The document distinguishes return measures according to their use. To summarize a monthly portfolio series as an annual growth rate, it recommends compounding the simple monthly returns and converting that compounded growth into an annualized simple return.…

StatisticsPortfolio constructionRisk management