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 surveys possible ways to assess whether sampled data are consistent with a Wiener process, motivated by validating models such as geometric Brownian motion or an Ornstein–Uhlenbeck process. Suggested checks include testing marginal normality,…

StatisticsBacktestingEquities
Quant Q&A

The document explains why compounding a portfolio’s monthly excess returns does not generally produce its annual excess return. To measure annual excess performance, calculate the portfolio’s compounded annual return and subtract the benchmark’s compounded…

StatisticsPortfolio constructionBacktesting
Quant Q&A

The document clarifies that “heat-map method” may refer to a way of assessing VaR model performance rather than a procedure for calculating VaR. In the answer provided, historical VaR breaches are counted over a review window and mapped to colored zones: a…

Risk managementBacktestingStatistics
Quant Q&A

The discussion diagnoses an implausibly large cumulative return in a simple moving-average crossover backtest. The strategy uses closing prices and a 10-day simple moving average to set a long or short position, then applies that position to daily asset…

BacktestingTechnical indicatorsTrend followingExecution
Quant Q&A

The document compares two ways to forecast daily variance with a GARCH(1,1) model when five-minute returns are available. In the first approach, the model is fit or applied at the daily horizon, using a realized-variance estimate and a prior daily variance…

VolatilityStatisticsBacktesting
Quant Q&A

The document discusses the purpose of meta-labeling in machine-learning trading systems. It responds to the concern that a secondary model merely filters trades and might overfit historical examples. The proposed framing is to start with a primary strategy…

Machine learningBacktestingTechnical indicators
Quant Q&A

The document explains how to simulate a geometric Brownian motion after changing from the physical measure, where the drift is the expected return, to the risk-neutral measure, where the drift is the risk-free rate. It derives the change in Brownian motion…

StatisticsDerivatives pricingBacktesting
Quant Q&A

The document considers how to simulate correlated asset returns for Monte Carlo mean-variance portfolio optimization. A common approach starts with independent standardized draws and multiplies them by a matrix factor of the target covariance matrix,…

Portfolio constructionStatisticsBacktesting
Quant Q&A

The document asks why fitting an autoregressive model of order one to stock prices can yield a high test-set R-squared while fitting the same form to returns can yield a negative score. An AR(1) regression predicts the current observation from its lag, but…

StatisticsEquitiesBacktestingMachine learning
Quant Q&A

The document presents two ways to price a forward-start call whose payoff depends on the asset price at the start date as well as at expiry. One approach conditions on the information at the forward start date and rewrites the value using the price of an…

OptionsDerivatives pricingVolatilityBacktesting
Quant Q&A

The document considers whether Monte Carlo simulation can be applied directly to discrete stock percentage changes rather than to stock prices. The response highlights a key distinction between simple returns and the log returns used in geometric Brownian…

EquitiesStatisticsBacktesting
Quant Q&A

A backtest that selects stocks using today’s market capitalization can exclude companies that later failed or fell out of the universe, while favoring firms that grew into it. This survivorship bias can make historical performance look too strong. The…

EquitiesBacktestingStatisticsUS markets
Quant Q&A

The document outlines checks for evaluating an ARMA-GARCH model fit. Before using GARCH, test whether the data show ARCH effects; without conditional heteroskedasticity, a GARCH model may not be needed. After fitting, inspect standardized residuals for…

StatisticsVolatilityBacktesting
Quant Q&A

The document explains how daily leverage and compounding shape leveraged ETF returns. An ETF resets its exposure at each rebalance, so its multi-day result is the product of daily leveraged returns, adjusted for fees. This means a 3× fund does not simply…

EquitiesVolatilityRisk managementBacktesting
Quant Q&A

The document asks how to simulate two positively correlated time series when one is a stock modeled with geometric Brownian motion (GBM). It describes estimating GBM inputs from historical stock data and reports a Pearson correlation of 0.5 between the two…

EquitiesStatisticsBacktesting
Quant Q&A

The document asks how to verify the Euler–Maruyama method’s stated mean-square convergence order numerically. It proposes estimating the root mean square error across simulated paths at each time point, taking the maximum over the grid, and comparing results…

StatisticsBacktesting
Quant Q&A

The document concerns a Monte Carlo estimate of a European call option price compared with the Black–Scholes analytical value. The implementation uses antithetic normal draws: each simulated stock path is paired with one generated from the opposite shock,…

OptionsDerivatives pricingStatisticsBacktesting
Quant Q&A

The document explains why an implicit finite-difference solution to the Black–Scholes partial differential equation can still produce large pricing errors when the log-price grid is too narrow. The equation is defined over an unbounded domain, while a…

OptionsDerivatives pricingBacktesting
Quant Q&A

The discussion explains why cointegration test p-values can change sharply when the start and end dates change. If the underlying data-generating process is stable, using the longest available sample can improve a test’s statistical power. If the process…

StatisticsPairs tradingBacktesting
Quant Q&A

The discussion considers what market data to collect when building a Bitcoin price feeder for backtesting. Its practical recommendation is to begin with level-one data, such as trades and best bid and offer, and add order-book data only when a specific…

CryptoBacktestingMarket microstructure
Quant Q&A

The discussion surveys ways to store and query large financial time series without relying on kdb+. Options include memory-mapped binary files, Python with Pandas and PyTables, columnar databases such as Vertica and MonetDB, time-series databases, and newer…

Market microstructureBacktestingExecution
Quant Q&A

The document explains why a stock’s recorded close can exceed its recorded high in historical OHLC data. The apparent inconsistency can arise because data vendors may calculate fields using different trade sets or price definitions. Examples include a…

EquitiesMarket microstructureBacktesting
Quant Q&A

The document asks why an equal risk contribution portfolio built with PortfolioAnalytics does not show equal percentage contributions across its assets. Its example uses a six-asset return series and defines portfolio constraints alongside objectives…

Portfolio constructionRisk managementBacktesting
Quant Q&A

The document asks how to report counts of calculated chi-square values against two critical values: 3.84 for the 5% level and 6.64 for the 1% level. It gives an example with one count for values between the thresholds and another for values above the higher…

StatisticsBacktesting