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 how to combine monthly Fama–French factor returns into multi-month returns. Rather than taking an arithmetic average, the response compounds the monthly returns: convert each percentage return to a growth factor, multiply those factors…

Factor investingStatisticsPortfolio construction
Quant Q&A

The document describes an R error that occurs when the PerformanceAnalytics Return.portfolio function is asked to rebalance a portfolio on a calendar frequency. The reported call fails with a subscript error, while the function works when rebalancing is…

Portfolio constructionBacktesting
Quant Q&A

The document asks how to make the absolute position weights in a six-stock long-short portfolio as equal as possible while respecting gross exposure, long exposure, and beta-adjusted net exposure limits. It proposes minimizing the variance of absolute…

Portfolio constructionPosition sizingEquitiesRisk management
Quant Q&A

The document asks whether an efficient-frontier portfolio must also lie on the capital market line (CML), and whether a portfolio’s standard deviation can be inferred from its expected return using the CML equation. It presents a CAPM setup with a risk-free…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document discusses how to calculate a portfolio’s cumulative return from asset prices and weights that change monthly. It distinguishes a portfolio rebalanced to target weights every day from one whose holdings are allowed to drift between monthly…

BacktestingPortfolio constructionPosition sizing
Quant Q&A

The document asks why Harry Markowitz described algorithms for finding efficient portfolios without deriving a closed-form equation for the efficient frontier in the unconstrained case. It contrasts this approach with a later analytical derivation by Robert…

Portfolio constructionStatistics
Quant Q&A

The note explains how to interpret a portfolio weight greater than one in a combination of a risky market portfolio and a risk-free asset. A positive risky-asset weight above 100% is funded by a negative weight in the risk-free asset, which represents…

Portfolio constructionPosition sizingRisk management
Quant Q&A

The document asks how to infer expected asset returns from observed portfolio weights, a covariance matrix, risk aversion, and weight limits. Its response first considers the unconstrained mean-variance problem with weights summing to one. The first-order…

Portfolio constructionStatisticsRisk management
Quant Q&A

The discussion challenges the claim that cost of capital alone determines whether a business should invest. It distinguishes profit maximization from utility maximization: decision makers may value power, reputation, innovation, or other personal and…

Portfolio constructionRisk managementStatistics
Quant Q&A

The note gives an intuition for approximating a portfolio’s log return by the weighted sum of its assets’ log returns. For portfolio weights that sum to one, it expands each asset’s gross return, represented by the exponential of its log return, around zero.…

Portfolio constructionStatistics
Quant Q&A

The document explains why classical portfolio construction usually takes asset return estimates as inputs rather than starting from a portfolio return distribution. In the Markowitz mean-variance framework, historical asset returns are used to estimate…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document explains rolling correlation for two asset return series: calculate correlation over successive windows and plot the resulting time series. It clarifies that the choice of window depends on assumptions about stationarity. If returns are weakly…

StatisticsEquitiesPortfolio constructionBacktesting
Quant Q&A

The document asks whether a stock forecast based on real-world return probabilities can support decisions among owning shares, buying protective puts, or substituting calls, and what risk-neutral pricing adds. Its proposed real-world model extrapolates…

OptionsEquitiesStatisticsPortfolio construction
Quant Q&A

The document shows how to formulate a search for arbitrage as an optimization problem using asset prices and state-contingent payoffs. A linear program can minimize portfolio cost subject to nonnegative payoffs in every state. A negative-cost solution…

ArbitragePortfolio constructionStatistics
Quant Q&A

The document explains why a portfolio built through mean-variance optimization for a target expected return may finish a holding period with a different realized return. It addresses whether the gap between the target and the outcome is necessarily caused by…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document defines portfolio variance as the quadratic form of asset weights and their return covariance matrix. It then proposes using a matrix square root multiplied by the weight vector to obtain signed asset contributions whose squared values sum to…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document explains scenarios as market outcomes used to assess or optimize a portfolio. One approach takes asset returns from a historical window and applies that return pattern to the portfolio under consideration. Rolling or overlapping windows can…

Portfolio constructionRisk managementBacktesting
Quant Q&A

The document addresses how to use PortfolioAnalytics in R to run portfolio optimization on intervals such as semiannual or nine-month schedules. The question describes attempts to pass a spacing parameter through the rebalance setting, which continued to…

Portfolio constructionBacktestingEquities
Quant Q&A

The document asks whether an agent trained to play Atari games from screen images and scores could learn to trade by observing market data and choosing actions. It introduces deep Q-networks as an example of reinforcement learning, where the agent improves…

Machine learningCryptoPortfolio construction
Quant Q&A

The document raises a factor-investing question about the divergence in equity factor performance around the final quarter of 2016. It reports that low volatility had recently outperformed broad capitalization-weighted indices before weakening after the US…

EquitiesFactor investingPortfolio construction
Quant Q&A

The document asks how to extend mean-variance portfolio optimization to include skewness and kurtosis. It presents an objective with expected return, a variance penalty, and a third-order co-skewness term based on the portfolio weights and co-skewness…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document frames a portfolio-selection problem in which rows represent candidate bets and columns represent binary win-or-loss scenarios. Because bets may be correlated, selecting the highest individual win rates is not necessarily sufficient. The author…

Portfolio constructionRisk managementStatisticsBacktesting
Quant Q&A

The document asks why a self-financing strategy’s discounted wealth remains a local martingale when the discounted asset price is a local martingale under an equivalent martingale measure. It frames the gain process as a stochastic integral of the trading…

StatisticsDerivatives pricingRisk managementPortfolio construction
Quant Q&A

The document clarifies that the standard Markowitz framework is broader than a single portfolio objective. Its original formulation considers risky assets, forbids short selling, and uses expected returns and covariances to describe the risk-return…

Portfolio constructionRisk managementStatistics