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 raises a portfolio-return calculation question: how to compare long-short stock strategies that hold positions for more than one month. The investor has monthly stock returns and wants to evaluate a shared holding period for the long and short…

EquitiesPortfolio constructionBacktestingPosition sizing
Quant Q&A

The document frames a product-selection problem over multiple weeks. Binary decision variables indicate which products are chosen, while the objective sums production quantities multiplied by prices across weeks. Future prices are unknown, and the question…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document asks how to model feature–return correlations that fluctuate around zero over time while remaining within the valid correlation range. One proposed construction starts with an unbounded diffusion, such as a mean-reverting Ornstein–Uhlenbeck…

StatisticsMachine learningPortfolio construction
Quant Q&A

The discussion outlines a historical Value at Risk approach for a portfolio of futures and options. It proposes applying past instrument returns to current positions to estimate historical dollar profit and loss, then selecting a lower-tail percentile as the…

FuturesOptionsCommoditiesRisk management
Quant Q&A

The document explains how to think about carry and roll-down when modeling a bond index. It distinguishes carry, the bond’s return effect under an unchanged yield curve, from roll-down, the part of carry associated with moving along the curve as time passes.…

Fixed incomeCarryPortfolio construction
Quant Q&A

The document discusses storage architecture for a buy-side firm handling company fundamentals, aggregations, cross-sectional snapshots, and factor research. One contributor advocates storing immutable time-series data in serialized files divided into…

EquitiesBacktestingPortfolio constructionExecution
Quant Q&A

The document raises a question about calculating portfolio variance when portfolio performance is expressed as a logarithmic return. It gives a portfolio log-return expression formed by taking the logarithm of the weighted sum of assets’ exponentiated…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document asks how to forecast future correlations between securities, contrasting this problem with more familiar volatility and return forecasting. Its brief answer identifies constant conditional correlation as a baseline modeling assumption, as used…

StatisticsVolatilityPortfolio construction
Quant Q&A

The document explains that Black–Litterman views can come from any researched source of expected excess return. Examples include published forecasts, broker recommendations, machine-learning models, technical analysis that produces target prices, and…

Portfolio constructionMachine learningTechnical indicatorsStatistics
Quant Q&A

The discussion examines why mean-variance optimization is often called an error maximizer. Estimated expected returns and risk inputs feed into portfolio weights, and small changes in those estimates can produce large changes in the allocations. In the…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document asks how to turn the leading principal component of asset returns into portfolio weights when its eigenvector contains negative entries. It notes that dividing eigenvector entries by their sum creates weights that sum to one, but this…

EquitiesStatisticsPortfolio constructionRisk management
Quant Q&A

The document asks whether linear combinations of two efficient portfolios in a universe of risky assets cover the efficient frontier. One response reports a numerical example in which combinations of two frontier portfolios, including combinations with short…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document asks how to assess a cointegration-based pairs strategy when trades overlap and remain open for different lengths of time. It questions whether to average trade returns, divide each trade return by its holding days, or compare aggregated trade…

Pairs tradingBacktestingPortfolio constructionRisk management
Quant Q&A

The document addresses how to learn to build project finance spreadsheets, including modeling debt and equity, hurdle rates, internal rates of return, and alternative financing structures. The replies recommend constructing models from scratch so the learner…

Fixed incomePortfolio construction
Quant Q&A

The document presents a proposed equity alpha expression built from estimated earnings per share, cash flow per share, estimated sales per share, and estimated dividend per share. It reports using a United States top-stock universe with a one-period delay, a…

EquitiesFactor investingPortfolio constructionRisk management
Quant Q&A

The response outlines a simple way to separate stable and volatile portions of non-contractual deposit balances for behavioral analysis. It proposes smoothing daily balances with a moving average to reduce seasonal effects while retaining the underlying…

Fixed incomeRisk managementStatisticsPortfolio construction
Quant Q&A

The document explains how to summarize stock-level correlations by industry group. First, represent each pairwise stock correlation as a row in a long-form table, with fields for date, the industry of each stock, and the correlation value. Grouping by date…

EquitiesStatisticsPortfolio construction
Quant Q&A

The document examines whether the continuous-outcome Kelly approximation, expressed as mean return divided by return variance, can guide capital allocation across trading strategies. One response distinguishes this approximation from the familiar Kelly…

Position sizingPortfolio constructionRisk managementStatistics
Quant Q&A

The document considers how to estimate joint risk for multiple stocks from historical log returns. The proposed workflow computes the variance-covariance matrix, annualizes it, and applies a Cholesky decomposition. The resulting factor can be used to…

EquitiesStatisticsVolatilityPortfolio construction
Quant Q&A

The document asks how to estimate the parameters of an asymmetric dynamic conditional correlation model from already standardized residuals, without fitting meaningful univariate GARCH models. The model updates a covariance proxy using lagged residual…

StatisticsVolatilityPortfolio construction
Quant Q&A

The document explains how to formulate a mean-variance portfolio problem for a quadratic programming solver. To maximize expected return minus a risk penalty based on covariance, the objective must be converted to the solver’s minimization form: use a…

Portfolio constructionRisk managementPosition sizingStatistics
Quant Q&A

The discussion distinguishes combining expected losses from estimating portfolio risk. If two factor returns have stated expected losses, their combined expected loss is determined by their portfolio weights and the linearity of expectation; correlation does…

Risk managementPortfolio constructionStatistics
Quant Q&A

The document considers why a fictional company’s share value differs when calculated with the Dividend Discount Model (DDM) and an Earnings Recapitalization Model (ERM). The response argues that the setup is inconsistent if projected dividends exceed the…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document examines why mean-variance optimization remains influential even though equal-weight portfolios have often performed competitively in empirical comparisons. One explanation is that Markowitz’s framework established the theoretical value of…

Portfolio constructionStatisticsFactor investingRisk management