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
Quantpedia
86 documents
TqSdk
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 how to choose bond positions that replicate the issuer exposures of an equally weighted CDS index. Its two-issuer example contrasts investing equal bond notionals, which produces unequal market-value weights when the bonds trade at…

Fixed incomePortfolio constructionDerivatives pricing
Quant Q&A

The document explains which risk-free rates to use when discounting project cash flows to today. A cash flow arriving at a future horizon should be discounted with the spot rate for that horizon, raised to the matching number of periods. A forward rate is…

Fixed incomeStatisticsPortfolio construction
Quant Q&A

The document addresses whether an internal rate of return should be described as a nominal or effective interest rate. It distinguishes a quoted rate with a specified compounding frequency from an effective rate converted to a different period. For instance,…

StatisticsFixed incomePortfolio construction
Quant Q&A

The discussion asks how small correlations might support reliable financial gains, while observing that strong correlations alone do not guarantee a dependable strategy. One answer links the idea to the Kelly criterion, which sizes bets according to expected…

StatisticsPosition sizingPortfolio construction
Quant Q&A

The document describes how to encode an index-tracking portfolio in a genetic algorithm. The proposed chromosome represents which benchmark securities are selected, rather than their portfolio weights. For each selected subset, a separate quadratic…

Portfolio constructionBacktesting
Quant Q&A

The document asks how to choose weights in a weighted Frobenius norm when using alternating projections to adjust an equity correlation matrix that is not positive definite. It raises the possibility of weighting entries according to portfolio exposures, so…

EquitiesStatisticsPortfolio constructionRisk management
Quant Q&A

The document explains what it means for SPY to track the S&P 500. The fund seeks to hold component weights close to those in the index, so its net asset value changes with the weighted returns of its holdings, after fees and expenses. The difference between…

EquitiesUS marketsArbitragePortfolio construction
Quant Q&A

The document considers how to estimate a Basel long-run average default rate when exposures enter and leave a portfolio during the year. It describes a simple estimator: at each year end, count the exposures still active, measure defaults among them over the…

Fixed incomeStatisticsRisk managementPortfolio construction
Quant Q&A

The discussion distinguishes the first and second fundamental theorems of asset pricing. In the account provided, the first connects absence of arbitrage with the existence of a linear valuation rule that assigns zero value to traded cash flows. The second…

ArbitrageDerivatives pricingPortfolio construction
Quant Q&A

The document examines why adapting a long-only risk-parity objective to a dollar-neutral portfolio is difficult. Long-only risk parity seeks equal risk contributions, often by minimizing the dispersion of each asset’s weight multiplied by its marginal…

Portfolio constructionRisk managementPosition sizingStatistics
Quant Q&A

The document describes solving for the risk-aversion parameter in a mean–variance portfolio setup. Portfolio weights are expressed as a function of the parameter, expected returns, the covariance matrix, and a budget constraint. Those weights are substituted…

Portfolio constructionStatisticsRisk managementBacktesting
Quant Q&A

The document discusses portfolio optimization using an ETF and VIX futures, comparing minimum-variance and Sharpe-maximizing approaches across different rebalancing schedules. The response focuses on minimum-variance intuition: an asset’s weight is…

Portfolio constructionVolatilityFuturesRisk management
Quant Q&A

The document outlines a variance-covariance approach to estimating volatility for a portfolio of cryptocurrencies. It starts from daily price changes, forms a covariance matrix of daily returns, and scales that matrix by 365 to estimate annual variance,…

CryptoStatisticsVolatilityPortfolio construction
Quant Q&A

The document considers how to calculate the correlation between a stock and an index reconstructed without that stock. It defines the reduced index return by removing the stock’s weighted return from the full index return and rescaling by the remaining index…

EquitiesStatisticsPortfolio construction
Quant Q&A

The document raises an unresolved scaling question for dynamic portfolio optimization using the Modified Sharpe ratio. Because that ratio depends on portfolio skewness and kurtosis, the author needs co-skewness and co-kurtosis arrays to construct the…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document presents a mathematical way to screen stock pairs before computing every pairwise correlation. For three variables, their correlation matrix must be positive semidefinite, meaning its eigenvalues cannot be negative. That constraint links the…

EquitiesStatisticsPortfolio construction
Quant Q&A

The document poses a portfolio-replication problem for a derivative whose terminal payoff is the time average of an underlying asset's price over the contract period, less a fixed strike. It assumes continuously sampled prices and a zero interest rate, then…

Derivatives pricingOptionsPortfolio constructionStatistics
Quant Q&A

The document formulates the value of a portfolio that keeps equal weights in a set of stocks through continuous trading. For two stocks, it represents portfolio value as a function of their share prices and proposes partial-derivative conditions: each price…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document demonstrates a fundamental valuation calculation for a pharmaceutical company using expected net income, book equity, a cost of equity, and long-run growth. It first subtracts interest expense from EBIT and applies the corporate tax rate to…

EquitiesFactor investingPortfolio construction
Quant Q&A

The document describes an attempt to check the optimal consumption and investment policy in Merton’s portfolio problem by simulating wealth paths and comparing average terminal utility with an analytical value function. It gives a discretized wealth update,…

Portfolio constructionBacktestingStatisticsRisk management
Quant Q&A

The document presents standard matrix formulas for the global minimum variance and tangency portfolios, including their expected returns, volatilities, and weights. The question concerns a portfolio built from daily Dow Jones stock returns: its tangency…

EquitiesPortfolio constructionStatisticsRisk management
Quant Q&A

The document examines why adding a gross-exposure constraint to a return-maximizing, risk-constrained portfolio can produce weights concentrated in a few assets. It describes a mean-variance setup that maximizes expected return subject to a covariance-based…

Portfolio constructionRisk managementStatisticsPosition sizing
Quant Q&A

The document distinguishes maximum drawdown, measured from a running portfolio-value peak to a subsequent trough, from a longest run of negative returns. A drawdown can remain unrecovered at the end of the sample; recovery is tracked separately. The answer…

Risk managementStatisticsPortfolio construction
Quant Q&A

The document addresses how to estimate a portfolio’s beta when some holdings, such as recently listed companies, lack enough historical returns for reliable individual beta estimates. It considers estimating beta by regressing portfolio returns on index…

EquitiesStatisticsPortfolio constructionRisk management