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
QuantRocket
7 documents
Lumibot strategies
7 documents
Awesome Quant
1 documents

Search the library

16,761 documents

Quant Q&A

The document asks whether a pairs trading strategy should retest cointegration each day using a rolling window, rather than test once during an initial formation period and then trade the selected pair for a fixed holding period. The proposed approach uses…

Pairs tradingStatisticsMean reversionBacktesting
Quant Q&A

The document addresses uncertainty in a Monte Carlo estimate of conditional value at risk (CVaR), which depends both on estimating a tail quantile and averaging outcomes beyond that threshold. It recommends bootstrap confidence intervals: repeatedly resample…

Risk managementStatisticsBacktesting
Quant Q&A

The document raises the problem of selecting a risk-free rate when valuing historical option data. It notes that rates such as Treasury or constant-maturity yields, OIS, SOFR, LIBOR, and policy rates have all been suggested, and asks which benchmark fits…

OptionsDerivatives pricingFixed incomeBacktesting
Quant Q&A

The discussion examines how missing observations can affect comparisons between observed and model-generated time series, including running RMSE. It warns that interpolation may preserve the series’ central level while understating uncertainty, and that…

StatisticsBacktesting
Quant Q&A

The document asks how to interpret the integral of a stochastic process's intensity over the interval between two consecutive arrivals. It contrasts the usual interpretation of integrated intensity as an expected event count over a fixed time window with a…

StatisticsBacktesting
Quant Q&A

The document asks how to build a multi-year time series for a three-month futures contract while handling contract rolls. The author is concerned that prices are volatile on roll days and asks about interpolation or using calendar spreads to create…

FuturesStatisticsBacktesting
Quant Q&A

The document considers the reciprocal of a stock price modeled by geometric Brownian motion (GBM). It gives the standard GBM solution and uses the moment-generating identity for a Gaussian variable to derive the reciprocal’s mean. For initial price S₀, drift…

StatisticsVolatilityBacktesting
Quant Q&A

The post questions how White’s Reality Check handles strategies that generate different numbers of trades. Its example compares one strategy with two observed returns and another with ten, then describes bootstrapping returns, taking the maximum strategy…

StatisticsBacktestingRisk management
Quant Q&A

The discussion describes what makes options strategy backtesting more demanding than testing a simple underlying asset. A credible simulation needs historical option chains, including contract terms and market prices, alongside underlying prices used to…

OptionsBacktestingDerivatives pricingVolatility
Quant Q&A

The document asks how to estimate a stochastic volatility model from historical daily returns without using an implied volatility surface or computationally intensive MCMC. It specifies a latent log variance that follows an autoregressive process with…

VolatilityStatisticsRisk managementBacktesting
Quant Q&A

This discussion considers whether a candle-based strategy backtest can rely on mid-prices, especially when modeling stop losses, or should use bid and ask prices to reflect the side at which a trade executes. The author reports that replacing mid-price highs…

BacktestingExecutionMarket microstructureRisk management
Quant Q&A

The document compares AAPL historical data from two vendors and asks why their recorded activity differs. The examples show discrepancies in timestamps, reported trades or quotes, and prices. Replies propose several possible causes: one vendor may provide a…

EquitiesMarket microstructureBacktestingStatistics
Quant Q&A

The document discusses ways to reduce the runtime of repeated mean-variance portfolio optimizations, such as daily rebalancing for a universe of fewer than one hundred assets. It suggests first considering whether the work can be parallelized, then using the…

Portfolio constructionEquitiesBacktesting
Quant Q&A

The document discusses whether Yahoo Finance data accessed through a Python package is reliable for historical daily open and close prices. The questioner distinguishes actual closing prices from adjusted closes and asks about alternatives. Responses suggest…

EquitiesStatisticsBacktesting
Quant Q&A

The document discusses a machine-learning return forecast evaluated with walk-forward validation while varying training-window length, prediction horizon, step size, and embargo. The reported out-of-sample results deteriorate as the step or embargo…

Machine learningBacktestingStatistics
Quant Q&A

The document discusses ways to assess whether a strategy’s live profits reflect a repeatable signal or chance, especially when market volatility is large relative to the observed gains. One proposed test, attributed to Alfred Cowles, preserves the trader’s…

StatisticsBacktestingFactor investingRisk management
Quant Q&A

The document asks how to construct weekly returns from daily price data using Wednesday closing prices. When Wednesday has no valid trading price, the question proposes using the next available valid closing price. It refers to log returns between selected…

StatisticsBacktesting
Quant Q&A

The document considers whether measuring geometric Brownian motion at weekly rather than daily intervals lowers annualized volatility. Under the stated assumption of independent, normally distributed returns, variance grows linearly with time. Scaling the…

StatisticsVolatilityBacktesting
Quant Q&A

The document asks how to include lags when applying least squares Monte Carlo to a timing real option. The project can be started at monthly decision dates over a five-year window, while revenue follows a non-Markov ARMA process sampled hourly over a…

OptionsCommoditiesBacktestingStatistics
Quant Q&A

The document addresses why historical values from Yahoo Finance’s API may differ from those shown in its interactive chart. The answer focuses on the distinction between Close and Adjusted Close: the chart may display adjusted values that account for events…

EquitiesBacktestingStatistics
Quant Q&A

The document addresses the tedious process of downloading adjusted closing prices for several stocks individually and merging the resulting files. It presents two programmatic alternatives: using a Python data-reader library to request multiple symbols over…

EquitiesBacktestingPortfolio construction
Quant Q&A

The document asks whether transaction records and candlestick summaries can reveal the highest bid, lowest ask, or quote sizes in the foreign exchange market. The available data includes trade times, amounts, prices, and bar-level measures such as highs,…

ForexMarket microstructureExecutionBacktesting
Quant Q&A

The document asks how to convert dollar P&L into percentage returns for a two-leg straddle strategy sized by vega notional. The strategy aims to stay vega neutral by balancing its legs, while positions are adjusted and delta hedged over time. The central…

OptionsDerivatives pricingRisk managementBacktesting
Quant Q&A

The document discusses how to choose the observation window and retesting frequency for cointegration methods such as the ADF and Johansen tests when designing a pairs strategy. It rejects a universal lookback standard and relates the choice to data…

Pairs tradingStatisticsBacktestingMean reversion