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

4,613 documents

Quant Q&A

The document poses an allocation problem for a risky investment with two possible returns: a gain or a loss, each occurring with a specified probability. It asks what portfolio fraction maximizes median wealth, using example gain and loss magnitudes, and…

Position sizingRisk managementStatistics
Quant Q&A

The discussion considers how to calculate a trader's win rate when the trader may finish each day flat, but may enter and exit positions through several executions. It distinguishes a period-based measure, such as profitable days, from a trade-based measure.…

Risk managementStatisticsPosition sizing
Quant Q&A

The discussion recommends books for readers who know the mathematical foundations of options but want more guidance on applying them in trading. It highlights Euan Sinclair’s Volatility Trading for its coverage of strategies, liquidity, and position sizing,…

OptionsVolatilityPosition sizing
Quant Q&A

The document examines how to measure the return on a complex options adjustment when cash proceeds, estimated expiration value, and current liquidation value differ. Its answers emphasize that expiration value is uncertain and that the position’s current…

OptionsRisk managementPosition sizingDerivatives pricing
Quant Q&A

The document addresses how to summarize commodity futures volumes by commodity and tenor, with purchases positive and sales negative. The suggested workflow first converts each trade’s volume into a signed quantity using its buy or sell direction. It then…

CommoditiesFuturesPosition sizing
Quant Q&A

The document examines how to assess a causal portfolio controller that allocates capital among event-driven trades with different holding periods. Its root-only model optimizes expected log wealth over sampled scenarios, then follows a fixed base policy for…

Event-drivenPortfolio constructionPosition sizingBacktesting
Quant Q&A

The document addresses portfolio construction when holdings must stay close to a benchmark while the number of trades is constrained. It separates risk estimation from optimization: a factor risk model estimates tracking error from factor exposures, factor…

Portfolio constructionRisk managementPosition sizingExecution
Quant Q&A

The discussion addresses gradual entry into and exit from trend positions. One response points to research on heterogeneous investor expectations, positive feedback trading, and historical bubble behavior, including a case study of a broker riding the South…

Trend followingMomentumPosition sizingSentiment
Quant Q&A

The note considers how to represent the short leg of a pair trade when direct shorting is unavailable, using an inverse ETF as a proxy. Its suggested adjustment is to account for the inverse ETF’s beta when setting the hedge against the long position. This…

EquitiesPairs tradingMean reversionPosition sizing
Quant Q&A

The document considers why a trading signal may become less frequent as order size grows. The trader’s approach evaluates the order-book price that would fill the available balance, so increasing volume can move the relevant price point and change whether…

ExecutionMarket microstructureRisk managementPosition sizing
Quant Q&A

The document distinguishes profit factor from absolute return when comparing trading systems. Profit factor is defined as total winning amounts divided by total losing amounts, so it expresses gains relative to losses. It does not account for position size…

Risk managementStatisticsPosition sizingBacktesting
Quant Q&A

The document shows how to model a dollar cost averaging schedule in the Python bt backtesting framework. The proposed strategy runs monthly, selects the available asset, adds a fixed capital contribution, assigns equal weights, and rebalances. The…

CryptoBacktestingPortfolio constructionPosition sizing
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 clarifies an expectation calculation used when studying the Kelly criterion. For a bet whose outcome has two possible values, the log wealth change takes one value after a win and another after a loss. Its squared expectation is found by…

StatisticsPosition sizingRisk management
Quant Q&A

The document analyzes a finite-horizon game in which a player repeatedly rolls a fair twenty-sided die or collects the current face value. It first evaluates a fixed threshold policy: roll until a result meets the threshold, then collect that face for the…

StatisticsPosition sizingBacktesting
Quant Q&A

The document asks how many shares of one stock to short against a long position in another when their return volatilities and correlation are known. It computes a minimum-variance hedge ratio from the correlation and the ratio of return volatilities, then…

EquitiesRisk managementPosition sizingStatistics
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 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 document uses a fair six-sided dice game to distinguish expected payoff from the amount an individual might rationally pay. Its expected monetary payoff is 3.5 units, but a risk-averse person may assign a lower certainty equivalent because the utility of…

StatisticsRisk managementPosition sizing
Quant Q&A

The document examines a simulated betting game in which each wager is a fraction of current capital and each toss has equal odds of a gain or loss. The original observation is that larger fractional bets and longer sequences reduce the share of paths ending…

Position sizingRisk managementStatisticsBacktesting
Quant Q&A

The discussion considers a strategy that updates short-horizon return forecasts more often than the forecast horizon. When a new signal conflicts with an open position, immediately offsetting the position may leave later parts of the original forecast window…

EquitiesExecutionPosition sizingBacktesting
Quant Q&A

The document poses a trade management problem: how to choose the order for closing a portfolio of open long and short positions when some positions hedge one another and others leave net exposure. The positions have been open for different periods and are…

Risk managementExecutionPosition sizing
Quant Q&A

The document describes a trend-following market maker trading XBTUSD in a highly volatile market. Its current sizing method allocates leverage using a Kelly-style weighting based on recent profit and loss, reducing allocation after poor performance. The…

CryptoMarket makingPosition sizingMarket microstructure
Quant Q&A

The document explains the setup for hedging a spot exposure with a futures position. It models the change in spot price as a linear function of the futures price change, plus an intercept and an error term. For a position long one unit of the spot asset and…

FuturesRisk managementStatisticsPosition sizing