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 explains why a quadratic programming portfolio optimizer may use twice as many decision variables as there are assets. Each asset’s exposure is represented by a positive part and a nonpositive part, which together reconstruct the signed…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document compares two ways to construct portfolios that track observable macroeconomic factors. Its naive proposal regresses each factor’s time series on returns from a base universe of assets; the resulting coefficients define weights that minimize…

Factor investingPortfolio constructionStatistics
Quant Q&A

The document examines why compounding the asset’s period returns does not match the holding-period return of a short position when the short is evaluated using its initial notional. Its example uses a price path of 5, 6, 4, and 2.5, with the short asset…

StatisticsPosition sizingPortfolio construction
Quant Q&A

The document asks which portfolio optimization methods are considered most robust out of sample, especially when assets have price histories that begin on different dates. It points to a 2002 paper on robust portfolio selection as a possible approach, but…

Portfolio constructionBacktestingRisk management
Quant Q&A

The document discusses calculating average portfolio turnover from beginning-of-period and end-of-period weights. It warns that random return data can produce extreme or unrealistic results because the simulated asset returns include very large losses. In an…

Portfolio constructionRisk managementBacktesting
Quant Q&A

The discussion explains why options strategies often lack a standard benchmark: each strategy may trade a different basket of contracts, and the VIX is a price index rather than a return index. For a long-only strategy, it suggests building a custom index…

OptionsBacktestingPortfolio constructionRisk management
Quant Q&A

The document distinguishes a leveraged ETF’s net asset value from its market exposure. NAV per share comes from the market value of assets, less liabilities, divided by shares outstanding. Cash, cash equivalents, stocks, and liabilities such as margin loans…

EquitiesDerivatives pricingPortfolio constructionRisk management
Quant Q&A

The post asks whether the ratio of upside deviation to downside deviation can guide portfolio weights. Its author informally calls the ratio “acceleration” and imagines using it to size a momentum strategy, on the intuition that upside variation represents…

Portfolio constructionRisk managementMomentumStatistics
Quant Q&A

The document explains why calculating beta in both directions between a portfolio and a benchmark does not generally produce reciprocal values. It defines beta as the covariance of the two return series divided by the variance of the variable used as the…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document clarifies why different Ledoit–Wolf covariance estimators can produce different diagonal values. Shrinkage is not one unique procedure: the result depends on the target matrix. The constant-variance approach used by scikit-learn shrinks toward a…

StatisticsPortfolio constructionRisk management
Quant Q&A

This discussion collects learning resources on applying hidden Markov models to financial markets. Suggested applications include detecting market regimes and forecasting changes in turbulence, inflation, and economic growth. The references describe…

EquitiesMachine learningStatisticsPortfolio construction
Quant Q&A

The document considers how to determine whether a fund or portfolio has momentum exposure or tends to add to positions after strong past performance. It assumes access to a year of monthly holdings and returns. The question proposes regressing portfolio…

MomentumFactor investingPortfolio construction
Quant Q&A

The document gives a brief orientation to calculating portfolio risk and return in R from historical holdings data. It points to computational finance materials and portfolio analytics resources, and names common tasks: measuring the standard deviation of a…

Portfolio constructionRisk managementBacktesting
Quant Q&A

The document addresses whether two Markowitz portfolio formulations are equivalent when one requires expected return to equal a target and the other requires it to be at least that target. Its argument considers a candidate minimum-variance portfolio whose…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document presents the common-factor and specific-risk components of covariance between a portfolio and the market in a predicted beta framework. Common covariance is expressed through portfolio and market factor exposures and a factor covariance matrix.…

Factor investingPortfolio constructionRisk managementStatistics
Quant Q&A

The document explains how to build a time series of portfolio log returns from constituent stock returns when portfolio weights are specified. Because log returns do not combine linearly across assets in the same way as simple returns, directly taking a…

Portfolio constructionStatisticsEquities
Quant Q&A

The document explains how to calculate portfolio risk when asset weights can be negative. For independent or uncorrelated assets, portfolio variance is the sum of each asset’s variance multiplied by the square of its weight; standard deviation is the square…

Portfolio constructionRisk managementStatisticsPosition sizing
Quant Q&A

The document distinguishes portfolio choice among risky assets from allocating wealth between a risky portfolio and a risk-free asset. It explains that adding a tradable risk-free asset creates a capital allocation line from the risk-free return through the…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document considers what expected return to assign a momentum strategy when using mean-variance portfolio optimization. It presents empirical estimation by backtesting the strategy, then updating the estimate with live trading results. Estimates may also…

MomentumPortfolio constructionBacktestingMachine learning
Quant Q&A

The document discusses how to choose weights for two risky assets to maximize the portfolio Sharpe ratio when short selling is prohibited. One answer expresses the unconstrained optimum using each asset’s Sharpe ratio, volatility, and the correlation between…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document asks how to construct industry portfolios for markets such as the UK and Japan when a familiar US industry classification may not be available or current. The intended use is to study relationships between stock returns and economic variables at…

EquitiesPortfolio constructionFactor investingStatistics
Quant Q&A

The document explains how to recover portfolio weights after solving a transformed optimization problem for the maximum Sharpe ratio. In Markowitz portfolio theory, the tangency portfolio is associated with the highest ratio of expected excess return to…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document asks how a common equal-risk-contribution (ERC) objective compares with a formulation that maximizes the sum of log weights under a unit variance constraint. The first method computes each asset’s share of portfolio variance, then minimizes…

Portfolio constructionRisk management
Quant Q&A

The document considers the set of portfolio weights that sum to one and produce a specified volatility under a given covariance matrix. It explains that the target-volatility condition is a quadratic constraint, so the solution set is generally a continuous…

Portfolio constructionRisk managementStatistics