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
WonderTrader
14 documents
Alphalens
14 documents
backtesting.py
11 documents
Technical Analysis
9 documents
QTPyLib
8 documents
Lumibot strategies
7 documents
QuantRocket
7 documents
Awesome Quant
1 documents

Search the library

4,613 documents

Quant Q&A

The document explains why idealized leverage leaves the Sharpe ratio unchanged. If borrowing and lending occur at the risk-free rate, leverage scales excess return and volatility by the same amount, so their ratio remains constant. The statistical argument…

StatisticsRisk managementPosition sizing
Quant Q&A

The document answers a question about calculating weekly turnover for a portfolio that rebalances regularly. It gives a basic measure: take the smaller of total purchases or total sales and divide by the portfolio’s market value. This convention measures one…

Portfolio constructionPosition sizingBacktesting
Quant Q&A

The document examines how to choose a position when forecasts provide expected returns and volatility over multiple future horizons. It starts with the growth-oriented rule of sizing in proportion to expected return divided by variance, then considers…

Position sizingRisk managementBacktesting
Quant Q&A

The document considers how much of a $1 million bankroll to wager on a coin game that pays a stated amount on tails and loses the stake on heads. It compares a single play with repeated plays and discusses Kelly sizing, which maximizes expected logarithmic…

Position sizingRisk managementStatistics
Quant Q&A

The document discusses how to hedge a long American put in a two-period binomial stock and cash market while repaying a loan used to buy the option. The central method is dynamic replication: calculate the option's stock hedge at each node, then rebalance as…

OptionsDerivatives pricingRisk managementPosition sizing
Quant Q&A

The document examines whether a mortgage-backed securities book should include 30-year Treasuries in its curve hedges. The proposed setup bootstraps a yield curve, models prepayments and option-adjusted spread, and calculates key-rate DV01s before sizing…

Fixed incomeRisk managementPosition sizingUS markets
Quant Q&A

The answer explains how the sign of a hedge-adjusted spread can guide the direction of a pair trade. Under the stated spread definition, a positive spread prompts a short position in the first asset and a long position in the second; a negative spread…

Pairs tradingMean reversionPosition sizingStatistics
Quant Q&A

The answer treats a cointegration spread as a synthetic position: going long the spread means buying one leg and shorting a hedge-ratio-weighted amount of the other, with the reverse positions for a short spread. It then discusses practical sizing across…

Pairs tradingPosition sizingPortfolio constructionBacktesting
Quant Q&A

The document asks whether binary options can produce a position that doubles on success and halves on failure when the event is close to equally likely. Its algebra shows that the desired payoffs imply a particular option quantity and purchase price, but…

OptionsPosition sizingRisk managementDerivatives pricing
Quant Q&A

This discussion considers quoting strategy in market-making games where the counterparty may know more about the eventual payoff. It distinguishes ordinary uncertainty from informed trading. When both sides lack an information advantage, the questioner’s…

Market makingMarket microstructureRisk managementPosition sizing
Quant Q&A

The document considers how to choose among many Kelly-based betting strategies after testing a UFC fight prediction model. The model outputs win probabilities, and the user evaluates parameter combinations using bookmaker odds, return on investment, and…

BacktestingPosition sizingRisk managementStatistics
Quant Q&A

The document explains why bond duration is not a straightforward measure for Eurodollar futures. A bond’s duration relates its percentage price change to a yield change, while a futures contract has no meaningful cash value at inception for calculating that…

FuturesFixed incomeRisk managementPosition sizing
Quant Q&A

The document describes a proposed way to evaluate a multi-asset portfolio using weekly returns and a time-varying matrix of portfolio weights. The intended test samples start dates, measures performance over a one-year period, rebalances at regular…

BacktestingPortfolio constructionPosition sizingExecution
Quant Q&A

The document shows how to backtest a portfolio of ETFs using inverse-volatility weights estimated from recent returns. A target-weight function obtains closing prices for the preceding 20 trading days, computes returns, estimates each asset’s volatility, and…

BacktestingPortfolio constructionVolatilityPosition sizing
Quant Q&A

The question compares the long-run behavior of leveraged exchange-traded funds with a buy-and-hold portfolio using borrowed money, especially when the underlying asset ends a period near its starting price. The replies challenge the claim that leveraged…

Risk managementPosition sizingEquities
Quant Q&A

The discussion addresses sizing long and short stock positions generated by a daily strategy when trades overlap and signals arrive unevenly. One proposed approach budgets exposure using the number of concurrent long and short positions. If a signal has an…

EquitiesPosition sizingPortfolio constructionRisk management
Quant Q&A

The document investigates whether Vince’s optimal f can be used for futures position sizing without look-ahead bias. The author assumes log utility and is reluctant to estimate expected returns, then reproduces a historical profit-and-loss example in which…

FuturesPosition sizingRisk managementBacktesting
Quant Q&A

The note examines how to hedge an inverse-price product using a second instrument whose payoff changes linearly with the same underlying. It distinguishes a finite-period payoff, based on the change in the reciprocal of price, from a possible continuously…

Risk managementDerivatives pricingPosition sizingFutures
Quant Q&A

The document frames a mortgage from the borrower's perspective, expressing the value of the house less the present value of remaining mortgage payments. The original question asks how down payment, interest rate, and maturity affect that value, and how to…

Fixed incomeRisk managementPosition sizing
Quant Q&A

The document asks whether machine learning needs to predict option gamma when a trader can rebalance delta hedges over time. It frames a portfolio containing a call, shares, and a second option, with target conditions for zero delta and zero gamma at a later…

OptionsDerivatives pricingRisk managementPosition sizing
Quant Q&A

The document discusses a mixed-integer formulation for rebalancing a stock portfolio toward mean-variance target weights while limiting the number of traded positions. It represents each trade with a signed change variable and uses a binary indicator to mark…

EquitiesPortfolio constructionPosition sizingRisk management
Quant Q&A

The discussion addresses how to estimate a trading strategy’s capacity using historical data and market depth. The question notes that standard broker market-impact tools may not capture strategies with complex entries and exits or those whose opportunities…

ExecutionMarket microstructureRisk managementPosition sizing
Quant Q&A

The document clarifies how to calculate portfolio turnover from monthly asset weights. It considers the absolute changes in each holding’s weight between consecutive months and explains why their sum should be divided by two for a one-way turnover measure.…

Portfolio constructionRisk managementPosition sizing
Quant Q&A

The document distinguishes forecasting a security’s daily high and low from deciding how to trade on those forecasts. The author reports using an ensemble of forecasting methods and evaluating historical errors, including their dispersion and frequency of…

EquitiesPosition sizingRisk managementBacktesting