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 asks how to combine trades from multiple stocks into a portfolio and track risk measures such as beta, conditional value at risk, and drawdown through time. Replies describe several software approaches, including using R packages for market data…

EquitiesPortfolio constructionRisk managementBacktesting
Quant Q&A

The document outlines a derivation connecting a benchmark's Sharpe ratio, a portfolio's Sharpe ratio, and the portfolio's information ratio. It begins with the identity that the squared portfolio Sharpe ratio is the sum of the squared benchmark Sharpe ratio…

Portfolio constructionRisk managementStatistics
Quant Q&A

The note explains how to incorporate skewness into portfolio optimization when a standard mean-variance objective does not capture the third central moment. It first expresses each portfolio return as a weighted sum of asset returns, then estimates portfolio…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document asks how to estimate an investor’s stock portfolio weights from quarterly SEC 13F filings combined with historical prices. The practical issue is that some reported holdings have periods with zero trading volume. The author asks whether the…

EquitiesPortfolio constructionStatistics
Quant Q&A

The discussion outlines a project to build geometric-average indices for momentum and value stocks, then compare their behavior using correlations, volume and price-range measures, momentum, and moving averages. It weighs Python and R as tools for collecting…

EquitiesMomentumFactor investingStatistics
Quant Q&A

The document asks why portfolio optimization commonly combines expected return with conditional value at risk (CVaR), rather than using median return as the performance input. The answer suggests that mean-CVaR optimization is familiar partly because…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document considers a mean-variance portfolio objective that subtracts a square-root trading cost based on the change from current holdings. It asks how to handle that term with a quadratic programming solver. The answer explains that a quadratic solver…

Portfolio constructionExecutionRisk management
Quant Q&A

The document outlines reasons a portfolio construction study may optimize only among risky assets. A method-focused paper may concentrate on solving a mean-CVaR problem efficiently and leave the choice of a risk-free rate outside its scope. In some markets,…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document compares mean absolute deviation portfolio optimization with classical mean-variance optimization. It describes MAD as a linear-risk approach that can be formulated as a linear program, which may reduce calculation time for large portfolios. The…

Portfolio constructionRisk managementBacktestingStatistics
Quant Q&A

The document asks why a portfolio optimization example fits a quadratic to the efficient frontier, derives a parameter from the fitted coefficients, and then uses that parameter in another quadratic program. The optimization itself balances expected return…

Portfolio constructionStatisticsRisk managementBacktesting
Quant Q&A

The discussion examines whether an unexpected rise in inflation should prompt investors to reduce a conventional stock-and-bond allocation. Its central point is that 60/40 is not inherently optimal: portfolio weights depend on investor objectives, risk…

Multi-assetEquitiesFixed incomePortfolio construction
Quant Q&A

This document describes an attempt to compute minimum-variance weights for a portfolio of three stocks using historical adjusted prices, return series, covariance matrices, and a quadratic programming solver. The proposed workflow first estimates weights…

EquitiesPortfolio constructionStatisticsBacktesting
Quant Q&A

This discussion presents principal component analysis (PCA) as a way to summarize variation in a dataset through orthogonal components. Its usefulness depends on which observations and variables are supplied: a matrix of asset prices can reveal broad…

StatisticsPortfolio constructionEquitiesTechnical indicators
Quant Q&A

The document shows how to calculate portfolio-level value at risk for different candidate allocations using component profit-and-loss observations. For each weight vector, scale each component’s P&L by its weight, sum the weighted values by observation, and…

Risk managementPortfolio constructionStatistics
Quant Q&A

The answer describes a Monte Carlo approach to value-at-risk for a bond portfolio. It recommends modeling historical yield changes through principal components, which represent curve movements such as level, slope, and curvature. Using these factors rather…

Fixed incomeRisk managementPortfolio constructionBacktesting
Quant Q&A

The document outlines a proposed workflow for estimating multivariate covariance under changing market regimes. It begins by fitting a GARCH(1,1) model to each series, removing estimated volatility, and fitting a hidden Markov model to classify observations…

StatisticsVolatilityMachine learningPortfolio construction
Quant Q&A

The document asks how to translate a pairs-trading spread signal into positions in two assets. It defines a spread as one price minus beta times the other and considers entry signals when the spread moves above or below its mean by a standard deviation. The…

Pairs tradingMean reversionPortfolio construction
Quant Q&A

The document asks how to update the weight of a long or short swap after its value changes. It distinguishes a holding’s value relative to the portfolio’s original value from its weight in a portfolio whose total value has also changed. A long position with…

Portfolio constructionPosition sizingRisk management
Quant Q&A

The document asks why adding assets reduces portfolio-specific risk in an arbitrage pricing theory setting. With equal weights and uncorrelated residuals, the portfolio’s residual variance falls as the number of holdings grows. For unequal weights, the…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document addresses how an event-driven allocator can value free capital when future signals arrive unpredictably and positions tie up capacity. It frames the problem as approximate dynamic programming, with a compact state covering available capital,…

Portfolio constructionPosition sizingRisk managementBacktesting
Quant Q&A

The document discusses symmetric orthogonalization as a way to turn correlated equity risk factors into uncorrelated components while seeking to preserve the original factors’ interpretability. It describes constructing a transformation from the inverse…

EquitiesFactor investingStatisticsPortfolio construction
Quant Q&A

The discussion considers a portfolio allocated across stocks, high-yield bonds, and commodities, and asks how to estimate its volatility. One response notes that fixed-income returns need to account for bond characteristics such as duration and spread…

Multi-assetVolatilityPortfolio constructionFixed income
Quant Q&A

The document asks whether two-fund separation still applies when a risk-free asset is added to a portfolio of risky assets. The answer says it does: adding the risk-free asset changes the efficient frontier into the capital market line, and investors can…

Portfolio constructionRisk managementMulti-asset
Quant Q&A

The discussion examines why investors may prefer positively skewed returns and challenges the idea that skewness alone determines which distribution is better. It explains that rare extreme losses in a negatively skewed distribution can reduce expected log…

StatisticsRisk managementPortfolio construction