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
Quantpedia
86 documents
TqSdk
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
Quantopian lectures
45 documents
Binance API docs
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 describes a QuantLib calibration problem for the G2++ interest-rate model in a negative-rate environment. The reported error arises because the cap helper uses shifted lognormal volatility with zero displacement, which requires the strike plus…

Fixed incomeDerivatives pricingOptionsBacktesting
Quant Q&A

The document describes how to enumerate every sequence of up, middle, and down moves in a trinomial tree. Its example uses recursive depth-first search: extend a partial path with each of the three moves until the desired number of steps is reached, then…

BacktestingStatistics
Quant Q&A

The accepted answer explains how to minimize conditional value-at-risk, also called expected tail loss, using a scenario-based linear program. It introduces portfolio weights, a variable representing the value-at-risk threshold, and one auxiliary variable…

Portfolio constructionRisk managementStatisticsBacktesting
Quant Q&A

The document describes a simulation designed to compare covariance transformations for minimum-variance portfolio construction. For each lookback window, the author samples portfolios of 100 assets, estimates a sample covariance matrix, transforms it, and…

Portfolio constructionStatisticsRisk managementBacktesting
Quant Q&A

The document frames an out-of-sample estimation question for a cointegration pairs strategy. In sample, the proposed workflow applies the Engle–Granger two-step procedure, estimates a hedge coefficient for the spread, and standardizes that spread using its…

Pairs tradingMean reversionStatisticsBacktesting
Quant Q&A

The discussion collects several ways to transform stock prices for analysis. Suggested measures include log prices, price deviations from a mean, standardized deviations using a standard deviation, log-price deviations from a mean, log returns, percentage…

EquitiesStatisticsPairs tradingBacktesting
Quant Q&A

The discussion considers a daily strategy that holds positions for one day while using an indicator built from a five-year price history. Because adjacent indicator readings share much of the same input data, they are strongly serially dependent. The…

BacktestingTechnical indicatorsStatistics
Quant Q&A

The document asks which risk-free rate to use when constructing a maximum Sharpe ratio portfolio from a rolling estimation window of monthly returns. It frames the problem within mean-variance portfolio theory, where the Sharpe ratio measures expected…

Portfolio constructionBacktestingRisk managementFixed income
Quant Q&A

The document compares smoothing based on moving averages with two outlier detection approaches: global winsorization and local outlier factor analysis. Winsorization caps values at selected distribution quantiles, while a local method can flag unusual…

StatisticsBacktestingRisk management
Quant Q&A

The discussion describes several ways traders apply the Kelly criterion, while questioning how well its assumptions fit real trading. One approach links Kelly sizing to volatility targeting: expected return divided by a chosen Sharpe ratio sets a volatility…

Position sizingRisk managementBacktesting
Quant Q&A

The document describes difficulties implementing Black-Litterman with analyst-consensus views. The author reports portfolio weights that become negative or exceed the full portfolio allocation, as well as returns below a market-weighted benchmark. In one…

Portfolio constructionEquitiesRisk managementBacktesting
Quant Q&A

The document raises the hypothesis that trend-following strategies may perform better in low-volatility conditions and asks how a trader might switch between trend and range-bound approaches. It defines volatility as the standard deviation of the price rate…

VolatilityTrend followingMean reversionTechnical indicators
Quant Q&A

The document considers a Monte Carlo portfolio analysis in which changing the weights and strikes of put options reduces measures such as expected return and volatility, while Value at Risk sometimes rises. The response says this outcome can be plausible…

OptionsRisk managementPortfolio constructionBacktesting
Quant Q&A

The document describes reducing the pricing of a fixed-strike Asian call to a partial differential equation in time and a transformed state variable. The state variable tracks the remaining strike after accounting for the average accumulated so far, scaled…

OptionsDerivatives pricingBacktesting
Quant Q&A

The document explains why a Monte Carlo estimate for an up-and-out call can be too high when simulated paths use discrete time steps. A path may cross the barrier between sampled points and return below it before the next observation, so checking only the…

OptionsDerivatives pricingStatisticsBacktesting
Quant Q&A

This note describes the gap between theoretical online portfolio selection (OLPS) models and live implementation. It points to assumptions often used in research, such as no transaction fees or market impact, ample liquidity, and the ability to trade…

Portfolio constructionBacktestingExecutionRisk management
Quant Q&A

The discussion considers back-testing a portfolio of individual stocks intended to track an equity index or ETF. It emphasizes that matching constituent trades alone is insufficient: a faithful simulation must reproduce the index’s rules, rebalance timing,…

EquitiesPortfolio constructionBacktestingExecution
Quant Q&A

The question asks how to model high-frequency asset returns with a Student-t distribution after estimating two-scale realized volatility, and how to annualize the result and choose a sampling frequency. The response focuses on degrees-of-freedom estimation…

StatisticsVolatilityBacktesting
Quant Q&A

The document investigates systematic profit-and-loss errors in a simulated dynamic hedge of an American put. It describes pricing and recalculating delta with a fine-step binomial tree while simulating the stock as geometric Brownian motion, financing the…

OptionsDerivatives pricingBacktestingRisk management
Quant Q&A

The document explains how to evaluate a history of overlapping trades as a portfolio, including cumulative profit and loss, drawdowns, and period returns. Its central method is to value each open position over time using market prices, then aggregate the…

Multi-assetPortfolio constructionBacktestingRisk management
Quant Q&A

This document asks how to size trades in back-adjusted continuous futures data when historical prices can be near zero or negative. It contrasts two attempted approaches: scaling position size inversely with price subject to a unit cap, and allocating a…

FuturesPosition sizingBacktestingRisk management
Quant Q&A

This document describes a question about how realized returns from a Constant Proportion Portfolio Insurance strategy change as its floor is varied. The investor compares a fully bond-invested portfolio at a 100% floor, a fully risky-market portfolio at a 0%…

Portfolio constructionRisk managementBacktesting
Quant Q&A

The document considers how to convert long-run U.S. dollar return series into euros when the euro did not exist for the full sample. It suggests using the Deutsche Mark against the U.S. dollar as an approximate predecessor series for EUR/USD, giving…

ForexBacktestingMulti-asset
Quant Q&A

The document asks whether daily trading strategy returns have a reasonable upper bound as a way to detect faulty backtests. One answer frames the issue through information coefficient, the correlation between forecasts and subsequent returns. Under perfect…

EquitiesBacktestingStatisticsRisk management