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 considers whether ESG can be added as a factor to the Fama–French five-factor model and how such an extension should be interpreted. It distinguishes a factor that captures exposure to priced cash-flow risk from a preference for firms with…

EquitiesFactor investingMomentumBacktesting
Quant Q&A

The document addresses a choice of risk-free rate when calculating CAPM quantities or evaluating a portfolio strategy. The question contrasts a three-month Treasury rate with a ten-year rate for a strategy whose lookback window is one year and asks whether…

EquitiesStatisticsBacktesting
Quant Q&A

The document describes a way to account for recurring time-of-day patterns when estimating volatility with GARCH on hourly returns. It recommends estimating a deterministic intraday periodicity component and filtering returns by that component before fitting…

VolatilityStatisticsBacktesting
Quant Q&A

The document considers prediction of a continuous variable when correctly ordering observations matters more than matching their values in a way that maximizes Pearson correlation. One simple approach is to transform the target into ranks and fit an ordinary…

Machine learningStatisticsBacktesting
Quant Q&A

The answer explains that an MA model represents a series using current and past shocks, rather than past observed values. It suggests comparing simulated AR(1) and ARMA(1,1) series with the same errors to see how the moving-average coefficient changes their…

StatisticsBacktesting
Quant Q&A

The document investigates why a simulated call price comes out as zero when the Black–Scholes calculation gives a positive value. Its proposed remedy is to simulate the underlying under the risk-neutral geometric Brownian motion process, using the risk-free…

OptionsDerivatives pricingStatisticsBacktesting
Quant Q&A

The document outlines a Monte Carlo approach for valuing performance share units whose payout depends on a company’s share-price performance relative to a peer group. It estimates daily log-return means, volatilities, and correlations from historical prices,…

EquitiesStatisticsDerivatives pricingBacktesting
Quant Q&A

The document explains how to aggregate ordinary monthly returns into quarterly returns. For each quarter, add one to every monthly return, multiply those gross returns together, and subtract one. This captures the effect of sequential returns; simply summing…

EquitiesStatisticsBacktestingPortfolio construction
Quant Q&A

For normally distributed asset returns with known means and covariance, the document relates portfolio VaR optimization to familiar portfolio objectives. When VaR is defined as a return quantile centered on the portfolio mean, maximizing it is equivalent to…

Portfolio constructionRisk managementStatisticsBacktesting
Quant Q&A

The document considers how to specify the mean equation when forecasting stock index return volatility with a GARCH model. One workflow first selects AR and MA terms for the mean using an ARIMA procedure, estimates that equation by least squares, and checks…

EquitiesVolatilityStatisticsBacktesting
Quant Q&A

The document describes a proposed way to compare an algorithm’s backtest with a simple benchmark portfolio. The benchmark buys some or all stocks in a selected universe at the start of the test period, then closes positions at the end, with transaction fees…

BacktestingEquitiesExecutionRisk management
Quant Q&A

The document explores why historical replay alone may not faithfully test market-making or other microstructure strategies. A replay uses recorded order-book events, but cannot fully capture how other participants would react to the strategy's orders. The…

Market makingMarket microstructureHigh-frequency tradingBacktesting
Quant Q&A

The document examines how to simulate multiple geometric Brownian motion price paths with a specified correlation structure. The attempted R approach draws independent normal shocks, applies a Cholesky factor of the input correlation matrix, and uses the…

StatisticsBacktestingPortfolio construction
Quant Q&A

The document addresses the lack of long histories for Treasury bond ETFs, especially leveraged funds, when backtesting portfolios over periods earlier than those products existed. It suggests using long bond futures as a proxy source of historical exposure…

Fixed incomeFuturesBacktestingUS markets
Quant Q&A

The document explains why testing the CAPM by regressing individual stocks’ realized excess returns on estimated betas can produce a very low R-squared. Low fit does not by itself show the model is false: CAPM does not predict a particular R-squared, and a…

EquitiesStatisticsFactor investingPortfolio construction
Quant Q&A

The document asks where to obtain long histories of arbitrage basis measures, such as the difference between on-the-run and off-the-run securities. It offers both direct sources for precomputed measures and sources from which researchers could assemble their…

Fixed incomeArbitrageBacktesting
Quant Q&A

The document raises a practical question about annualizing a Sharpe ratio calculated from a strategy that trades on five-minute or hourly bars. It contrasts the familiar daily scaling factor based on 252 trading days with scaling by the square root of the…

StatisticsBacktesting
Quant Q&A

The document discusses how to combine long and short strategies when their signals are ranks with different scales. Directly averaging or adding those signals may not produce sensible portfolio exposures, so the answer frames the task as assigning capital…

Portfolio constructionRisk managementBacktestingStatistics
Quant Q&A

This document explains how to calibrate a pricing model by selecting parameters that bring model prices close to observed market prices, using an error measure such as mean absolute error or root mean square error. It discusses choosing an optimization…

Derivatives pricingStatisticsBacktestingExecution
Quant Q&A

The document asks how to calculate a basic win percentage for a trend-following model that produces long and short signals. The proposed approach is to compare the price when a signal begins with the price when the signal changes, count a trade as a win if…

Trend followingTechnical indicatorsBacktesting
Quant Q&A

The document diagnoses why a Monte Carlo estimate of a European call price differs sharply from its Black–Scholes value. In the simulation, the stock paths use a drift parameter called mu, while the Black–Scholes calculation prices the option using the…

OptionsBacktestingStatisticsDerivatives pricing
Quant Q&A

The discussion distinguishes computational limits by workload. For real-time trading, it argues that network throughput is often the constraint, while historical analysis is more commonly limited by memory capacity or bandwidth; ordinary CPU use may not be…

High-frequency tradingExecutionMarket microstructureDerivatives pricing
Quant Q&A

The document discusses choosing block lengths when resampling returns to simulate long investment horizons for portfolio allocation analysis. Its main principle is to choose a length that preserves dependence patterns relevant to the portfolio, including…

StatisticsBacktestingPortfolio constructionMomentum
Quant Q&A

The document defines vol-vol breakeven as the instantaneous covariation of log implied volatilities for two options. For a local volatility model, when both options are the same contract, it gives a formula relating this quantity to the spot sensitivity of…

OptionsVolatilityDerivatives pricingBacktesting