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

This note explains how to read a historical Value at Risk estimate from a sorted sample of profit and loss outcomes. For a stated confidence level, the relevant tail observation is selected from the loss end of the distribution; gains do not become VaR…

Risk managementStatisticsBacktesting
Quant Q&A

The document discusses how to compare Vasicek and Cox–Ingersoll–Ross (CIR) models for fitting zero-rate curves. Rather than judging the models from a single observed curve, it recommends calibrating each across many curves with varied shapes, including flat,…

Fixed incomeStatisticsBacktesting
Quant Q&A

The document explains why historical share prices in a data series may appear inconsistent with prices remembered from the time. Data vendors may adjust prices and possibly volumes for corporate actions such as stock splits. A split changes the number of…

EquitiesBacktestingStatistics
Quant Q&A

The discussion questions whether reinforcement learning is useful when a portfolio model is trained on fixed historical prices. In that setup, market states advance independently of the chosen action, and next-period rewards can be deterministic given the…

Machine learningPortfolio constructionBacktestingRisk management
Quant Q&A

The document asks how to price a bond with an embedded option in a Black–Derman–Toy short-rate tree when the exercise date does not coincide with a time step. In the aligned case, the tree is built with a fixed step and bond values are rolled backward; at…

Fixed incomeOptionsDerivatives pricingBacktesting
Quant Q&A

The discussion explains how to include cash dividends when calculating an asset’s year-to-date return for performance analysis or backtesting. If dividends are not reinvested, the suggested calculation adds dividends received during the period to the ending…

EquitiesBacktestingPortfolio construction
Quant Q&A

The document explains how to handle companies that fail during a historical stock study, such as an analysis comparing returns by corporate social responsibility ratings. Its answer recommends defining an investable universe using information available at…

EquitiesBacktestingRisk managementPortfolio construction
Quant Q&A

The document considers how to align closing-price histories for indices traded on exchanges with different holidays and weekly schedules. It outlines several treatments for missing observations and explains the trade-offs of each. Keeping only dates shared…

EquitiesStatisticsBacktesting
Quant Q&A

The document asks how to compute an option-value expectation expressed as a path integral. The central practical answer is to use Monte Carlo simulation: generate many possible realizations of the stochastic process and estimate the expectation with a…

OptionsDerivatives pricingStatisticsBacktesting
Quant Q&A

The document asks how to estimate execution-price deviations and slippage for stock strategies when only daily OHLCV data is available. The proposed starting point in the question relates the daily high-low range to trading volume, with a restriction on…

EquitiesExecutionBacktesting
Quant Q&A

The document outlines how to build an equity curve for a two-stock pair-trading backtest. It starts from entry and exit signals, assigns long and short portfolio weights, and estimates share quantities using initial capital and prices at entry. It then…

EquitiesPairs tradingBacktestingExecution
Quant Q&A

The document discusses adding a penalty proportional to absolute portfolio changes to a mean–variance objective, while retaining constraints such as long-only holdings and fully invested weights. Its central modeling idea is to represent each position change…

Portfolio constructionRisk managementBacktesting
Quant Q&A

The document considers whether a trader who needs tight spreads should post non-marketable limit orders inside the quoted bid–ask spread instead of crossing it. It explains why the chance and timing of a fill are difficult to estimate in spot foreign…

ForexExecutionMarket microstructureBacktesting
Quant Q&A

The document discusses foresight, or look-ahead, bias in least-squares Monte Carlo valuation of American options. In the Longstaff–Schwartz approach, regression on the same simulated paths used for valuation can overfit continuation values and make estimated…

OptionsDerivatives pricingBacktestingStatistics
Quant Q&A

The document asks how to form a confidence interval for a set of long-window moving averages when adjacent values are dependent. The questioner is unsure whether a simple standard deviation based interval is appropriate, given the overlap among observations,…

StatisticsBacktesting
Quant Q&A

The discussion asks whether a strategy with many successful trades gives stronger evidence of skill than one with few trades but similar returns. One answer invokes the law of large numbers: as independent observations accumulate, a sample average tends to…

StatisticsBacktestingRisk management
Quant Q&A

The document describes a portfolio-selection problem: individual strategies can be profitable yet generate trades in bursts, leaving gaps in activity and uneven profit growth. The author wants to combine strategies so that trades and returns are distributed…

Portfolio constructionBacktestingRisk management
Quant Q&A

The document explores how to include callable bonds in a historical-simulation risk model. For plain bonds, the questioner proposes applying historical changes in the currency zero curve and issuer or rating spreads, then repricing. Callable bonds add…

Fixed incomeRisk managementBacktesting
Quant Q&A

The discussion addresses a backtest in which a mean-reversion pairs strategy scales positions as the spread moves farther from its mean. Its central recommendation is to track daily profit and loss in currency terms, reflecting the strategy’s actual position…

Pairs tradingMean reversionBacktestingRisk management
Quant Q&A

The document considers how to assess trading-signal performance across instruments, sectors, volatility levels, and combinations of market conditions, while managing a large number of possible segments. One response warns that increasingly fine-grained…

StatisticsMachine learningBacktestingRisk management
Quant Q&A

The document outlines a rolling-window procedure for comparing portfolios by out-of-sample variance. At each step, returns within a fixed estimation window are used to construct portfolios; the window then advances by one month, dropping the oldest…

Portfolio constructionBacktestingRisk managementStatistics
Quant Q&A

The post attempts to fit a log-periodic power-law model to Kuala Lumpur stock index closing levels from 1991–1994, treating price deviations as possible signs of bubbles and seeking to forecast a recession or crash. It uses a nonlinear least-squares routine…

EquitiesStatisticsBacktesting
Quant Q&A

The note considers how to compare stock ranking models intended to surface candidates for later fundamental analysis. Its central recommendation is to define the predictor and its outcome separately, then test whether the predictor ranks or classifies future…

EquitiesStatisticsBacktesting
Quant Q&A

The document asks how to simulate a mean-reverting Ornstein–Uhlenbeck process driven by a Lévy process. It proposes a basic Euler step: approximate the drift over each time interval using the current process value, then add an increment sampled from the Lévy…

StatisticsBacktesting