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

4,613 documents

Quant Q&A

The document asks whether a short-volatility strategy using option strangles should target a fixed premium or a fixed vega, with the aim of improving the strategy’s risk-adjusted return. The responses distinguish the limited premium collected from the…

OptionsVolatilityDerivatives pricingPosition sizing
Quant Q&A

The document defines portfolio exposure measures using the dollar values of long positions, short positions, and cash. Long value is aggregated as a positive amount, while short positions are treated by their absolute dollar value when calculating total…

Portfolio constructionRisk managementPosition sizing
Quant Q&A

The document raises how to estimate a portfolio’s expected daily movement in dollars from historical asset prices and current positions. Its portfolio contains long and short exposures, and some instruments have contract multipliers that make one unit…

Portfolio constructionRisk managementPosition sizingStatistics
Quant Q&A

The document considers a classifier that predicts whether a fixed target or stop is reached first. Since many trades may offer little predictive edge, it questions whether ordinary binary cross-entropy is well suited to selecting only cases with favorable…

Machine learningStatisticsPosition sizingBacktesting
Quant Q&A

The answers describe uses of volatility outside options trading, focusing on risk measurement rather than forecasting the direction of prices. Higher volatility signals that returns may fluctuate more, so a trader targeting a fixed amount of risk may need to…

VolatilityRisk managementPosition sizingPortfolio construction
Quant Q&A

This note considers how to reproduce a binary payoff on the winner of a best-of-seven series when bets are allowed only on individual games. The target pays a fixed amount if one team wins four games first and nothing otherwise. The proposed approach models…

OptionsStatisticsPosition sizing
Quant Q&A

The document asks how to calculate daily returns for a changing, equally weighted long-short stock portfolio. It gives an example with three long positions and one short on the first day, followed by one long and two shorts on the next day. The proposed…

EquitiesPortfolio constructionPosition sizingStatistics
Quant Q&A

The document asks how to choose a wager for a game with several possible payouts without relying solely on the Kelly criterion. It gives a discrete outcome distribution and raises expected value reasoning, similar to evaluating a poker pot, as a possible…

Position sizingRisk managementStatistics
Quant Q&A

The document studies a repeated betting game in which cards of two colors are revealed without replacement, so the chance of the next outcome changes with the remaining deck. It presents two approaches to choosing bets. One answer estimates the win…

Position sizingRisk managementStatistics
Quant Q&A

The document explains how to manage leverage in a mean-variance portfolio optimization with active weights. It reframes holdings as total portfolio weights and adds a penalty proportional to the sum of their absolute values. This absolute-value term is an L1…

Portfolio constructionRisk managementPosition sizingStatistics
Quant Q&A

The document formulates a portfolio allocation problem for a long-short universe of stocks. Each position’s expected return is reduced by a slippage estimate that rises with trade size relative to daily volume. The proposed objective maximizes aggregate…

EquitiesPortfolio constructionExecutionPosition sizing
Quant Q&A

The document poses a portfolio allocation problem for two assets with stated expected returns and equal volatility, asking how the choice might change when their correlation is positive one, zero, or negative one. It raises the idea that when correlation is…

Portfolio constructionRisk managementStatisticsPosition sizing
Quant Q&A

The document uses a repeated dice wager to explain expected value. A roll pays a gain when the die shows six and incurs a loss otherwise. Weighting each outcome by its probability gives an expected profit per roll; over a fixed number of independent rolls,…

StatisticsRisk managementPosition sizing
Quant Q&A

The document addresses why a short position’s return can seem undefined when measured against the zero upfront cost of borrowing an asset. It reframes the short as a liability: the short seller owes an asset whose market value changes over time. The…

Risk managementStatisticsPosition sizing
Quant Q&A

The document explains how to interpret a hedge ratio estimated by regressing one stock’s log price on another’s. The ratio describes the relative percentage sensitivity of the two stocks: for example, a ratio of two means that a one percent logarithmic move…

Pairs tradingEquitiesPosition sizingStatistics
Quant Q&A

The discussion asks whether an asset pricing model can explain observed stock market anomalies and receive broad empirical support. The response does not provide a tested pricing model or a comparative review of empirical results. Instead, it outlines a…

EquitiesStatisticsPortfolio constructionPosition sizing
Quant Q&A

The document raises a position-sizing problem: realized trade returns may correlate only weakly with estimated payoffs in advance. If that relationship is weak, sizing bets strictly according to a Kelly estimate could assign too much capital to trades with…

Position sizingRisk managementStatistics
Quant Q&A

The document asks whether the Kelly criterion can be adjusted to maximize risk-adjusted returns because full Kelly sizing can produce substantial volatility. The answer explains that Kelly chooses leverage to maximize expected geometric growth. Scaling…

Position sizingRisk managementStatistics
Quant Q&A

The note asks how to calculate bankroll growth when the same fraction of the current bankroll is invested in a sequence of opportunities with specified payoff multipliers. Its worked example starts with a bankroll of $100, invests 10% at each step, and…

Position sizingRisk managementStatistics
Quant Q&A

The document addresses why a CDS position with zero initial mark-to-market does not have a meaningful conventional return when profit or loss is divided by initial value. It presents alternative denominators tied to the resources or exposure associated with…

Fixed incomeDerivatives pricingRisk managementPosition sizing
Quant Q&A

The document asks how to size a position in a volatility ETF to offset the market exposure of a long stock position. It compares this proposed hedge with using an at-the-money covered call to bring the position’s delta to zero, and notes the tendency of the…

EquitiesVolatilityOptionsRisk management
Quant Q&A

The answer describes a trading approach for returns generated by a known two-state Gaussian hidden Markov model. Rather than infer regimes from moving averages or other heuristic indicators, it recommends updating the probability of each hidden state from…

Machine learningStatisticsPosition sizingRisk management
Quant Q&A

The document raises a practical question about trend-following backtests using ten-year bond futures. Panama-style back-adjustment can create negative historical prices, making ordinary simple or logarithmic percentage returns unusable for those…

FuturesTrend followingBacktestingPosition sizing
Quant Q&A

The document challenges the idea that frequent turnover makes portfolio optimization irrelevant. It describes an integrated approach in which changing return forecasts feed a portfolio optimizer, and the optimizer itself produces trades. Active strategies…

Portfolio constructionRisk managementPosition sizingExecution