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 addresses how to incorporate technical indicators, such as RSI, ATR, and moving averages, alongside historical returns when assigning portfolio weights. Its central suggestion is to use a model that converts selected inputs into expected returns…

Portfolio constructionEquitiesTechnical indicatorsMachine learning
Quant Q&A

The document frames selecting a fixed number of assets with low mutual correlation as a subset optimization problem. It defines a score based on the squared correlations among chosen assets and describes a Threshold Accepting search: start from a candidate…

Portfolio constructionStatisticsRisk management
Quant Q&A

The post formulates Kelly sizing for multiple simultaneous bets whose returns may be correlated. It represents the outcomes as a joint return vector with a probability density and the bet sizes as a vector. Expected logarithmic wealth is then expressed as an…

Position sizingRisk managementPortfolio constructionStatistics
Quant Q&A

The document considers rolling portfolio optimization when some assets have shorter histories and therefore lack observations within the full estimation window. It begins from the pairwise structure of a covariance matrix: each asset pair may have a…

Portfolio constructionStatisticsEquities
Quant Q&A

The document distinguishes two ways to build low-volatility equity portfolios: ranking stocks by standalone volatility or beta, and minimizing portfolio variance using a covariance matrix subject to constraints. It asks whether optimized minimum-volatility…

EquitiesFactor investingPortfolio construction
Quant Q&A

The document distinguishes money management as the broad activity of managing an investor's assets from asset allocation and portfolio optimization as parts of that activity. It describes decisions at three levels: strategic allocation across broad asset…

Portfolio constructionMulti-assetRisk management
Quant Q&A

The document asks how to set market capitalization weights for a Black–Litterman portfolio holding international and emerging-market equities, gold, long-term Treasury bonds, and real estate. Its central advice is not to use the market values of the ETFs…

Portfolio constructionMulti-assetEquitiesCommodities
Quant Q&A

The document explains how to estimate asset exposures to factors and how to interpret factor-attributed returns in an Arbitrage Pricing Theory framework. For a single factor, exposure is the covariance between factor and asset returns divided by the factor’s…

Factor investingStatisticsPortfolio construction
Quant Q&A

The document explains how to choose a representative benchmark when a trading strategy is opaque but has extensive historical data. A clear strategy, such as one holding only long positions in technology stocks, can be compared with a closely related market…

BacktestingPortfolio constructionMulti-asset
Quant Q&A

The document asks why portfolio beta is often calculated as the weighted sum of the component betas instead of being estimated directly from the portfolio’s aggregate return. It gives the definition of an asset’s beta as its covariance with the market…

StatisticsPortfolio constructionEquities
Quant Q&A

The document outlines a workflow for constructing and evaluating factor models of asset returns. Begin by selecting factors with an economic rationale, then gather factor and test-asset data. For portfolio-based factors, construction choices include…

Factor investingStatisticsPortfolio constructionRisk management
Quant Q&A

The document considers whether performance ratios should penalize upside volatility as well as losses. It identifies the Sortino ratio as a downside-focused alternative to the Sharpe ratio and also discusses expected shortfall, conditional value at risk, and…

Risk managementStatisticsPortfolio construction
Quant Q&A

The document describes a historical simulation for a sovereign bond portfolio. Each bond is repriced under country yield curves shifted by historical scenarios, with shifts applied across markets together to retain their co-movement. Scenario price returns…

Fixed incomePortfolio constructionRisk managementBacktesting
Quant Q&A

The discussion examines why a stock can have value even when its company pays no dividend and an investor holds too few shares to influence management. Replies describe several sources of value: expected future cash flows, retained earnings, buybacks,…

EquitiesFixed incomeEvent-drivenPortfolio construction
Quant Q&A

The discussion compares optimizing over the S&P 500 with optimizing over the broader S&P 1500. Because the smaller index is contained within the larger one, the larger-universe optimization can reproduce any feasible S&P 500 portfolio by assigning zero…

EquitiesPortfolio constructionBacktestingUS markets
Quant Q&A

The document derives portfolio risk and marginal risk contributions under a factor model. Asset returns are represented by factor exposures plus specific residual risk, giving the asset covariance matrix as the factor covariance projected through the loading…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document describes a two-asset portfolio exercise using monthly prices to calculate returns, means, variances, standard deviations, covariance, and correlation. The investor uses those inputs to trace a mean-variance frontier, identify the…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document compares two neural-network asset pricing models that use firm characteristics and macroeconomic variables to estimate time-varying stochastic discount factors and tangency portfolios. It reports differing out-of-sample performance, portfolio…

EquitiesMachine learningFactor investingPortfolio construction
Quant Q&A

The document asks how to combine separately calculated long and short portfolio returns to compare their performance visually with an index. It defines each side’s return as a weighted average of constituent returns, normalized by the sum of weights within…

Portfolio constructionEquitiesStatistics
Quant Q&A

The document presents a question about constructing a self-financing portfolio that replicates a call option in a two-period binomial tree. The investor has option payoffs at the terminal date, arbitrage-free option prices at the intermediate nodes, and the…

OptionsDerivatives pricingPortfolio construction
Quant Q&A

The document asks when the Kelly criterion is optimal outside familiar distributional assumptions. One response derives the criterion from repeated bets: under suitable long-run frequency assumptions, the growth rate is governed by expected log wealth, and…

Position sizingPortfolio constructionStatistics
Quant Q&A

The question describes extreme long and short weights produced when mean returns are scaled by an inverse covariance matrix and then normalized to sum to one. The displayed covariance matrix has positive eigenvalues, so the example is not explained by a…

Portfolio constructionRisk managementStatistics
Quant Q&A

This document raises a portfolio optimization question about setting an aspirational skewness target in a mean-variance-skewness-kurtosis framework. The example code maximizes a weighted sum of each asset’s individual skewness, subject to fully invested,…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document asks whether the probability density of portfolio returns can be obtained by weighting and adding the return densities of its constituent assets. It starts from the familiar expression for portfolio return as a weighted sum of asset returns,…

StatisticsPortfolio constructionRisk management