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 derives a rough out-of-sample observation length for testing whether a strategy’s mean return exceeds zero. Assuming independent, identically distributed returns, it models the sample mean’s uncertainty as the return standard deviation divided…

StatisticsBacktestingRisk management
Quant Q&A

The document asks why volatility models used to estimate Value at Risk may pass a backtest at a 5% confidence tail while failing at a 1% tail. The response says this pattern is common: as the tail becomes more extreme, the assumed return distribution matters…

Risk managementBacktestingVolatilityStatistics
Quant Q&A

The document asks for free software to price high-dimensional American basket options under the Black–Scholes model using the Longstaff–Schwartz, or least squares Monte Carlo, method. It seeks control over the number of basis functions, simulation paths, and…

OptionsDerivatives pricingBacktesting
Quant Q&A

This note describes a numerical approach to pricing European and American options under Kou’s double-exponential jump-diffusion model. The implementation uses a Crank-Nicolson time scheme for the partial integro-differential equation, a nonuniform spatial…

OptionsDerivatives pricingVolatilityBacktesting
Quant Q&A

This note outlines a transformation of the Black-Scholes option-pricing equation into a diffusion equation, then asks how to simulate the transformed PDE numerically. It gives the variable substitutions, the resulting heat-equation form, and a transformed…

OptionsDerivatives pricingBacktestingStatistics
Quant Q&A

The document answers whether Python trading libraries can support forex strategies. It describes three routes: combine plotting tools with a broker's REST API, use a backtesting framework that accepts OHLC data regardless of instrument, or run Zipline…

ForexBacktestingExecution
Quant Q&A

The document asks about obtaining long historical daily price series across thousands of instruments and several asset classes. The response says that paid vendors do offer historical datasets, but that assembling prices is only part of the task. Data…

Multi-assetBacktestingEquities
Quant Q&A

The document poses an idealized optimization problem: given the historical prices of a small set of assets over a fixed interval, find the sequence of trades that maximizes terminal wealth from an initial cash amount. The investor may hold up to a limited…

EquitiesMulti-assetPortfolio constructionBacktesting
Quant Q&A

The discussion explains why corporate actions can distort daily returns when a price series is adjusted incorrectly. A stock split should be reflected consistently across historical prices; a discontinuity caused by a mismatched close and adjusted close can…

EquitiesStatisticsBacktesting
Quant Q&A

The document describes how to combine three asset return series into a portfolio index with fixed weights of 50%, 25%, and 25%. It recommends calculating each asset's simple percentage return, taking the weighted sum at each time step, adding one to obtain…

Portfolio constructionBacktestingMulti-asset
Quant Q&A

The document explains how to calculate portfolio drawdowns from cumulative returns and find both the deepest decline from a prior peak and the longest period spent below a peak. It identifies a common pandas indexing error: integer access can fail when a…

StatisticsRisk managementBacktesting
Quant Q&A

The document asks whether annualized Sharpe ratios for separate years are enough to calculate a Sharpe ratio across the full period. It explains that, in general, they are not: the ratios alone do not specify the return means, volatilities, or dependence…

StatisticsRisk managementBacktesting
Quant Q&A

The document outlines a proposed historical equity backtest that starts with a total-market portfolio weighted by free-float market capitalization in a chosen year. It would then track that initial set of holdings over later years, reinvesting dividends…

EquitiesBacktestingPortfolio constructionTechnical indicators
Quant Q&A

The document considers how to choose two strategy parameters from an in-sample grid using Sharpe ratio, Sortino ratio, and maximum drawdown. Its central lesson is to assess the pattern across nearby parameter settings rather than automatically selecting the…

BacktestingStatisticsRisk management
Quant Q&A

The post asks how to maximize a portfolio return metric computed by a large R function with one bounded input parameter. The parameter is restricted to a range from 1.0 to 1.5, starts at 1.25, and only needs precision to increments of 0.05. The author…

Portfolio constructionBacktestingStatistics
Quant Q&A

The document asks how to optimize an automated trading strategy when higher expectancy coincides with sharply fewer trades. It also notes that maximum drawdown appears to improve as trade counts fall, making it difficult to judge whether performance gains…

BacktestingStatisticsRisk management
Quant Q&A

This document asks why a 15-period binomial model gives an unexpected value for an American put under specified Black–Scholes assumptions. It does not provide a corrected price or a specific diagnosis. Instead, the response offers a general debugging…

OptionsDerivatives pricingBacktesting
Quant Q&A

The document considers when net income and operating cash flow can legitimately enter a backtest that trades around quarterly reports. Its key principle is to use information only after it became public. An earnings date may identify a press release, but…

EquitiesBacktestingEvent-drivenRisk management
Quant Q&A

The document presents a time-series modeling problem: an ARFIMA(12,0,12) mean with an eGARCH volatility specification produces plausible one-step forecasts on a sample of 2,000 observations, but extreme mean and variance forecasts after fitting the same…

StatisticsVolatilityMachine learningBacktesting
Quant Q&A

This discussion examines why a return calculated from an adjusted share-price series may differ from a reported total shareholder return with dividends reinvested. It explains that a total-return series is a constructed price history: dividends are treated…

EquitiesBacktestingStatisticsUS markets
Quant Q&A

The document considers a process formed by summing the squares of several Brownian motions and derives its stochastic differential using Itô's formula. It then presents a simulation that accumulates the Brownian increments and the corresponding drift, asking…

StatisticsBacktesting
Quant Q&A

The document presents a slow nested-loop implementation for pricing European calls, Asian options, digital calls, and up-and-in barrier calls under the Merton jump-diffusion model. It motivates the problem as a comparison with the exponential variance-gamma…

OptionsDerivatives pricingMachine learningBacktesting
Quant Q&A

The document asks how computational cost scales for standard mean-variance portfolio optimization, whether minimum-variance portfolios are easier, and what runtimes or faster alternatives to expect. It characterizes MVO as a quadratic program and gives a…

Portfolio constructionStatisticsBacktesting
Quant Q&A

The document considers how much historical data to use when monthly portfolio rebalancing is based on Sharpe-ratio or mean-variance optimization. It does not identify a universally suitable window. One response emphasizes that expected returns and volatility…

Portfolio constructionStatisticsRisk managementBacktesting