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

20,364 documents

Quant Q&A

The document explains how an FX options collar can hedge a foreign-currency receivable while preserving some favorable exchange-rate movement. It contrasts the structure with a forward, which locks in a conversion rate, and with leaving the receivable…

ForexOptionsRisk management
Quant Q&A

The document surveys ways to estimate the price impact of large trades in liquid markets. A commonly used family relates impact per unit traded value to volatility and the trade’s share of volume during the execution interval, with an exponent between…

EquitiesExecutionMarket microstructureStatistics
Quant Q&A

The document explains the factor of one half in a mean-variance portfolio objective that subtracts a risk penalty proportional to portfolio variance from expected return. The factor is a mathematical convenience: when differentiating the quadratic variance…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document asks how to compute an option-value expectation expressed as a path integral. The central practical answer is to use Monte Carlo simulation: generate many possible realizations of the stochastic process and estimate the expectation with a…

OptionsDerivatives pricingStatisticsBacktesting
Quant Q&A

The document compares simple price proxies for estimating short-term price movement. One proposal weights the best ask price by bid size and the best bid price by ask size; the last traded price is offered as another useful predictor. These measures are…

Market microstructureHigh-frequency tradingFixed incomeExecution
Quant Q&A

The document explains how to estimate a variance risk premium when the available inputs are probability densities rather than volatility estimates. It defines the premium, loosely, as the difference between objective and risk-neutral variance of future…

OptionsVolatilityStatisticsDerivatives pricing
Quant Q&A

The document considers insurance payoffs that combine a financial asset with survival or death, such as an endowment paying a stock-linked amount if the policyholder survives. Its answer explains a simplifying approach: assume financial and mortality risks…

Risk managementStatisticsDerivatives pricing
Quant Q&A

The document explains how to value the EUR leg of a EUR-GBP cross-currency swap when GBP collateral is specified. The EUR leg needs both a three-month EURIBOR forward curve and a EUR discount curve that are consistent with GBP collateral. In theory, these…

Fixed incomeForexDerivatives pricing
Quant Q&A

The document asks how to estimate execution-price deviations and slippage for stock strategies when only daily OHLCV data is available. The proposed starting point in the question relates the daily high-low range to trading volume, with a restriction on…

EquitiesExecutionBacktesting
Quant Q&A

The document outlines how to build an equity curve for a two-stock pair-trading backtest. It starts from entry and exit signals, assigns long and short portfolio weights, and estimates share quantities using initial capital and prices at entry. It then…

EquitiesPairs tradingBacktestingExecution
Quant Q&A

Implied volatility is the volatility input that makes an option pricing model, such as Black–Scholes, match an option’s market price. Because each strike, maturity, and option type is a distinct contract, each can trade at a different price and therefore…

OptionsVolatilityDerivatives pricing
Quant Q&A

The document explains how obligor asset correlations in a Vasicek single-factor credit model can be assigned under the Basel II Internal Ratings-Based framework. It presents a correlation rule that varies with probability of default, along with an adjustment…

Fixed incomeRisk managementStatisticsMulti-asset
Quant Q&A

The document discusses adding a penalty proportional to absolute portfolio changes to a mean–variance objective, while retaining constraints such as long-only holdings and fully invested weights. Its central modeling idea is to represent each position change…

Portfolio constructionRisk managementBacktesting
Quant Q&A

The document considers whether a trader who needs tight spreads should post non-marketable limit orders inside the quoted bid–ask spread instead of crossing it. It explains why the chance and timing of a fill are difficult to estimate in spot foreign…

ForexExecutionMarket microstructureBacktesting
Quant Q&A

The document describes difficulty obtaining stable parameters when calibrating a two-factor Hull–White interest-rate model to cap prices. The five parameters are two mean-reversion rates, two volatility parameters, and the correlation between factors.…

Fixed incomeDerivatives pricingStatisticsRisk management
Quant Q&A

The document asks whether two assets with equal return volatility can be combined into a product with greater percentage-return volatility, without simply using cash leverage. It considers a long-only linear combination and derives its variance from the…

Multi-assetPortfolio constructionVolatilityOptions
Quant Q&A

The document discusses foresight, or look-ahead, bias in least-squares Monte Carlo valuation of American options. In the Longstaff–Schwartz approach, regression on the same simulated paths used for valuation can overfit continuation values and make estimated…

OptionsDerivatives pricingBacktestingStatistics
Quant Q&A

The document asks how to simulate a credit spread series that tends to tighten when stock returns exceed their average and widen when returns fall below it. It proposes a linear model: a positive baseline spread minus a positive coefficient times the…

Fixed incomeEquitiesStatistics
Quant Q&A

The document considers how to estimate Treasury yields beyond the longest available bond maturities, using a theoretical 40- or 50-year yield as an example. The questioner reports that Nelson–Siegel and Svensson curve fits gave unsatisfactory, unstable…

Fixed incomeStatisticsDerivatives pricing
Quant Q&A

Subadditivity says that the risk assigned to a combined position should be no greater than the sum of the risks assigned to its components. The document explains the right-hand side as the separate risks of two positions, whether those positions are held in…

Risk managementPortfolio constructionStatistics
Quant Q&A

The document asks how to form a confidence interval for a set of long-window moving averages when adjacent values are dependent. The questioner is unsure whether a simple standard deviation based interval is appropriate, given the overlap among observations,…

StatisticsBacktesting
Quant Q&A

The document discusses how to make yield curve stress shocks meaningful when the current rate level differs from the historical level used to define a shock. It contrasts applying a proportional change to rates, which can exaggerate moves at low levels, with…

Fixed incomeRisk managementStatistics
Quant Q&A

The document clarifies a calculation for estimating volatility in a PRIIPs Category 2 stress scenario. The questioner first forms overlapping 63-day log returns, then calculates the standard deviation of those returns. The response says to calculate daily…

StatisticsVolatilityRisk management
Quant Q&A

The question challenges the idea that an American option should always be worth more than its intrinsic value, making sale preferable to early exercise. The key correction is that at an optimal exercise point, the option’s value equals its exercise value.…

OptionsDerivatives pricingRisk management