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

16,761 documents

Quant Q&A

The document examines whether cross-validation prevents backtest overfitting. It contrasts a common concern about repeatedly applying holdout tests with the claim that results should instead report the average out-of-sample performance across all trials. The…

BacktestingStatistics
Quant Q&A

The document considers a one-sided strategy that repeatedly places buy and sell orders at price levels determined by step counts in a geometric random walk. The question asks how to choose those levels to maximize expected profit over a fixed horizon, but…

StatisticsRisk managementPosition sizingBacktesting
Quant Q&A

The document asks how to assess the accuracy of SABR implied volatility surfaces for a chosen equity index and historical period. Its proposed approach is to calibrate SABR, obtain the model’s implied volatilities, and compare them with historical volatility…

OptionsVolatilityDerivatives pricingBacktesting
Quant Q&A

The post describes an attempted infinite-horizon Avellaneda–Stoikov market-making implementation. It gives a nonlinear equation for an inventory value function, with an inventory penalty, bid and ask arrival rates, fill-decay parameters, and maker rebates or…

Market makingExecutionBacktestingRisk management
Quant Q&A

The document raises a question about the Kupiec unconditional coverage test for value at risk (VaR). It describes counting exceptions over a backtest of a given number of days and comparing the observed count with a binomial distribution parameterized by the…

Risk managementBacktestingStatistics
Quant Q&A

The document explains how to revalue an existing SOFR overnight index swap using a curve built from market quotes on a later valuation date. Rebuilding a curve and pricing engine alone does not update the index and cash flows already embedded in the swap. A…

Fixed incomeDerivatives pricingRisk managementBacktesting
Quant Q&A

The document considers VaR forecasts made monthly for losses through a fixed calendar year-end. Because each forecast covers a different, overlapping interval, a single late-year market decline can breach several forecasts, making the breach indicators…

Risk managementStatisticsBacktesting
Quant Q&A

The document explains how to express a joint hypothesis about selected regression coefficients as a linear restriction. For a regression coefficient vector, a general F-test restriction takes the form of a matrix multiplying that vector and equaling a target…

StatisticsBacktesting
Quant Q&A

The document compares the analytical mean of the Vasicek short-rate model with a Monte Carlo estimate built by stepping rates forward over a time grid. Its initial update formula includes the mean-reversion drift and a Gaussian shock scaled by volatility and…

Fixed incomeStatisticsBacktesting
Quant Q&A

The discussion asks whether a historical VaR can legitimately be positive when a bond portfolio’s total return index rises throughout the observed sample. One response says the main weakness is likely the calibration window: a short history may contain no…

Fixed incomeRisk managementStatisticsBacktesting
Quant Q&A

The document discusses using language models to assist with data cleaning and backtesting, focusing on the difficulty of verifying research logic. Its example is a rolling signal intended to use observations through the prior period; generated code…

Machine learningBacktestingRisk managementStatistics
Quant Q&A

The document considers whether bootstrap resampling can create useful alternate histories for tuning trading-system parameters such as moving-average windows and entry or exit thresholds. Its answer emphasizes controlling overfitting through structured…

BacktestingStatisticsMachine learning
Quant Q&A

The document raises a methodological question about directly optimizing a trading rule or neural network with negative Sharpe ratio as its loss. The author sees a clear use in portfolio optimization but questions its behavior for a single asset with bounded…

StatisticsMachine learningBacktesting
Quant Q&A

The discussion considers how to judge algorithm performance when strategies have different returns and Sharpe ratios across instruments. It argues that Sharpe alone is incomplete: it relates excess return to total return variability, but a high value can be…

StatisticsRisk managementBacktestingPosition sizing
Quant Q&A

The document asks whether the strength of a technical indicator, such as RSI, can be converted into a probability that an asset will move in a given direction. The answer cautions that indicator readings alone do not supply a calibrated likelihood. A model…

Technical indicatorsStatisticsBacktesting
Quant Q&A

The document considers how to build continuous futures price histories for a multi-market backtest. The questioner describes using backward Panama adjustment, rolling when open interest switches, and selecting the first listed contract across a diverse set…

FuturesBacktestingExecution
Quant Q&A

The document investigates why simulated GARCH(1,1) returns can have sample kurtosis well below a theoretical population value. The explanation centers on highly persistent squared returns and the possibility of rare, very large volatility shocks. When the…

StatisticsVolatilityRisk managementBacktesting
Quant Q&A

The document addresses how to generate correlated Wiener processes for geometric Brownian motion simulations from a specified correlation matrix. The reported problem is that one simulated process has unexpectedly low volatility despite a high target…

StatisticsEquitiesBacktesting
Quant Q&A

This discussion outlines possible reasons a value-at-risk estimate may be too high or too low when evaluated against later portfolio outcomes. It emphasizes that VaR depends on the assumed distribution and method, and that in-sample market behavior may…

Risk managementBacktestingStatisticsVolatility
Quant Q&A

The document asks where to obtain a downloadable record of S&P 500 membership over past years for backtesting. It highlights the need to know which tickers belonged to the index at a specified historical point, rather than relying only on its current…

EquitiesUS marketsBacktesting
Quant Q&A

A margin of conservatism is an additional buffer in a model estimate intended to address uncertainty, deficiencies, or risks. The document notes that there is no single rigorous mathematical definition: the meaning and required size depend on the model, the…

Risk managementStatisticsBacktesting
Quant Q&A

The document answers which market capitalization to use when calculating a value-weighted portfolio return for a period. When securities are selected or the portfolio is formed at the start of the month, the starting market capitalizations provide the…

EquitiesPortfolio constructionBacktesting
Quant Q&A

The document asks how to calculate a daily percentage return for a position that is long one stock and short a scaled amount of another. It presents two candidate expressions: one subtracts the scaled log return of the short asset from the long asset’s log…

EquitiesStatisticsPortfolio constructionBacktesting
Quant Q&A

The document asks how to test whether a pairs trading strategy has predictive power, and whether detrending methods used for other trading systems apply when the traded signal is already a linear combination of two price series. The answers outline two…

Pairs tradingStatisticsBacktestingExecution