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 explains how to aggregate daily log returns into a weekly return and why the endpoints must match the intended holding period. Adding consecutive daily log returns telescopes: intermediate prices cancel, leaving the log price difference between…

EquitiesStatisticsBacktesting
Quant Q&A

The document discusses obtaining market capitalization for S&P 500 stocks on a historical date using low-cost data sources. Suggested approaches include extracting data with R, downloading data from a general-purpose service, or combining historical prices…

EquitiesUS marketsBacktestingStatistics
Quant Q&A

The discussion offers starting points and practical cautions for optimizing portfolios against value at risk (VaR). It recommends Euler capital allocation as an introduction, then describes a simulation approach: hold a large set of scenarios fixed and…

Portfolio constructionRisk managementStatisticsBacktesting
Quant Q&A

The document considers a European call in a three-period recombining binomial tree and asks how to price it efficiently by hand. It presents the risk-neutral valuation principle: discount the expected terminal payoff, using the binomial probability of each…

OptionsDerivatives pricingBacktesting
Quant Q&A

The document asks whether alternative component weighting schemes can improve a volatility index’s forecasts of realized volatility. The question describes a simple trade-weighted emerging-market index that was highly correlated with the VIX over a stated…

VolatilityStatisticsBacktesting
Quant Q&A

The document compares rolling and expanding estimation windows for GARCH volatility forecasts. A rolling window emphasizes recent observations, which may help when volatility shifts between regimes. An expanding window keeps the full history and may capture…

VolatilityStatisticsBacktesting
Quant Q&A

This exchange explains why buying when a short-term exponential moving average crosses above a longer-term average may appear effective on a chart but fail as a trading strategy. The main failure mode described is a market moving sideways rather than…

Technical indicatorsTrend followingExecutionBacktesting
Quant Q&A

The document diagnoses a JavaScript implementation of an internal rate of return calculation using Newton’s method. It evaluates dated cash flows by discounting each amount according to its time from the initial date, then updates the rate using the ratio of…

StatisticsBacktesting
Quant Q&A

The answer presents an empirical framework for comparing realized volatility measures when the latent true volatility is unobservable. It recommends specifying data cleaning, sampling frequency, candidate measures, a volatility proxy, and ranking and…

VolatilityStatisticsBacktestingEquities
Quant Q&A

The document explains why feeding historical order-book updates into a fresh matching engine can produce cancellations or executions for orders the engine never saw. The underlying issue is incomplete initial state or limited market-by-order coverage: a data…

Market microstructureBacktestingExecution
Quant Q&A

The document outlines a basic workflow for testing an equity strategy: encode it in a platform or record discretionary trades manually, optimize parameters on one portion of historical data, and evaluate the chosen approach on separate out-of-sample data.…

BacktestingEquitiesStatistics
Quant Q&A

The document considers how to calculate a daily Sharpe ratio when a strategy is invested during only part of the measurement period. The accepted answer says to include zero returns for periods when the portfolio is not held, then calculate the daily Sharpe…

StatisticsBacktestingRisk management
Quant Q&A

The document considers how to chart performance for a portfolio rebalanced quarterly when the input series contains daily log returns. It compares geometric and non-geometric settings in a performance summary and asks whether the non-geometric result…

Portfolio constructionStatisticsBacktesting
Quant Q&A

The document asks whether the claim that the investing crowd is usually wrong can be made precise and tested. It sketches a simple definition of the crowd as the larger of two groups betting on whether an index will rise or fall over the next period. The…

SentimentStatisticsBacktestingUS markets
Quant Q&A

The document considers a strategy that holds stocks for six months and rebalances monthly, evaluated through six staggered starting dates. It suggests combining the monthly performance streams and annualizing them, rather than averaging the separate compound…

BacktestingStatisticsRisk managementEquities
Quant Q&A

The document compares two R backtesting options: Quantstrat, which works with related portfolio and financial-instrument packages, and the Systematic Investor Toolbox (SIT). It does not provide a formal benchmark; instead, it collects user impressions about…

BacktestingPortfolio constructionPosition sizingExecution
Quant Q&A

The note addresses a non-finite initial-value error when estimating a Markov-switching vector autoregression in R. One answer suggests that the model may require stationary input and recommends removing trends, for example by subtracting a mean or a fitted…

StatisticsMachine learningBacktesting
Quant Q&A

The document discusses why risk managers and portfolio managers may handle extreme return observations differently. Retaining genuine extremes gives a more conservative view of realized risk, while robust estimates that reduce their influence may better…

StatisticsRisk managementPortfolio constructionBacktesting
Quant Q&A

The document asks whether historical evidence can show how profitable technical analysis is in practice. It calls for evaluation across multiple years and market conditions, with returns and loss sizes considered rather than signal hit rates alone. It also…

Technical indicatorsBacktestingExecutionRisk management
Quant Q&A

The document considers whether stock and bond histories can help extend the limited return records available for illiquid assets such as private equity, real estate, and hedge funds. It recommends first addressing serial correlation caused by appraisal…

Multi-assetRisk managementStatisticsPortfolio construction
Quant Q&A

The discussion considers how to compare two strategies with the same number of winning and losing trades when the order of outcomes differs. It explains that there is no single performance measure that captures every criterion; a trader can instead combine…

BacktestingRisk managementStatistics
Quant Q&A

The discussion asks why a logistic regression strategy can show acceptable backtest and walk-forward performance even when its coefficients have insignificant p-values. It cautions that standard significance tests assume a single model was specified in…

StatisticsMachine learningBacktesting
Quant Q&A

The document discusses using Monte Carlo simulation to examine uncertain inputs in a financial model and the resulting range of business outcomes. Examples of inputs include product price, initial customer demand, growth, and market size; outputs include…

StatisticsRisk managementBacktestingPortfolio construction
Quant Q&A

The document asks how to compare a quarterly regression of GDP changes on business investment changes with a regression using rolling five-year percentage changes. It observes that the rolling series produces a much higher adjusted fit, while raising concern…

StatisticsBacktesting