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 compares two ways to forecast a stock’s performance relative to a benchmark: model each asset’s returns separately and subtract the forecasts, or model the relative return directly. It frames the problem as a weekly time-series forecasting task…

EquitiesStatisticsBacktesting
Quant Q&A

The document describes an apparent discontinuity in weekly historical prices retrieved through quantmod for an Indian equity. The response traces the discrepancy to the underlying Yahoo Finance history rather than to quantmod itself: the same inconsistent…

EquitiesBacktesting
Quant Q&A

The document asks how to backtest a stock-direction model that is retrained on historical price windows and used to generate trades. The author reports prediction accuracy and wants to test a strategy over multiple years, including risk controls such as stop…

Machine learningBacktestingEquitiesRisk management
Quant Q&A

The document explains how to obtain one-step-ahead conditional mean and volatility forecasts across a time series after fitting an sGARCH model with rugarch. A standard call to the forecast function returns a forecast at the end of the fitted sample, which…

VolatilityStatisticsBacktesting
Quant Q&A

The document describes a continuous futures series built by adding a cumulative roll adjustment to settlement prices and applying the contract multiplier. With this additive adjustment, the resulting notional can become negative even when the underlying…

FuturesCommoditiesStatisticsBacktesting
Quant Q&A

The document addresses poor Monte Carlo pricing accuracy for deep out-of-the-money options under a stochastic volatility model. The question focuses on Euler simulation of the Heston process and asks whether importance sampling can reduce variance and speed…

OptionsDerivatives pricingStatisticsBacktesting
Quant Q&A

The document considers how to assess long-volatility strategies with frequent small losses and occasional large gains, where mean return, Sharpe ratio, and hit rate may not capture the payoff pattern. The response recommends beginning with a long history of…

VolatilityBacktestingRisk managementPortfolio construction
Quant Q&A

The document explains why cumulative returns depend on how profits and losses affect the capital base. If gains and losses remain invested and change the amount exposed to later returns, calculate the total by multiplying each period’s gross return and…

StatisticsBacktestingPortfolio construction
Quant Q&A

The discussion looks for free historical end-of-day prices for US stocks, especially S&P 500 constituents, with a database that avoids survivorship bias. It mentions several paid databases and notes that Yahoo Finance access remained possible through an R…

EquitiesUS marketsBacktesting
Quant Q&A

This explanation clarifies why Cover’s universal portfolio does not generally remain equally weighted after its initial allocation. It starts with equal weights, then estimates the next allocation as a performance-weighted average of constant-rebalanced…

Portfolio constructionStatisticsBacktesting
Quant Q&A

The document turns a set of bets with different success probabilities and payouts into a portfolio-optimization problem. It proposes minimizing portfolio variance using the covariance matrix of the investments, with each bet’s expected value and variance…

Portfolio constructionRisk managementStatisticsPosition sizing
Quant Q&A

The question asks how to calculate returns and a Sharpe ratio for a systematic options strategy that may open positions with no net premium paid. The response emphasizes that zero initial cost does not mean the strategy requires no capital: the trader must…

OptionsRisk managementBacktesting
Quant Q&A

The document raises questions about why daily and monthly portfolio return plots derived from a data provider’s return index might differ. It describes calculating daily returns as consecutive index changes and monthly returns from month-end index values. It…

EquitiesStatisticsBacktesting
Quant Q&A

The document outlines a filtered historical simulation approach to market risk for vanilla swap portfolios. Historical observations should be represented as changes in selected curve risk factors, such as discounting and forwarding zero rates at chosen…

Fixed incomeRisk managementBacktestingStatistics
Quant Q&A

The document asks whether monthly factor returns should be aggregated into overlapping quarterly, semiannual, or annual returns before regressing them on lagged market- and funding-liquidity variables. The proposed motivation is that monthly observations may…

Factor investingStatisticsBacktesting
Quant Q&A

The document describes a long–short factor backtest that ranks assets into top and bottom quintiles. The signal has positive performance at monthly, quarterly, and annual rebalancing frequencies, with returns improving as rebalancing becomes less frequent.…

BacktestingFactor investingPortfolio constructionRisk management
Quant Q&A

The document considers how to reduce the worst losses of a bullish call spread by adding a bearish option position in a later expiry. It discusses balancing hedge size, the hedge’s cost, and the different rates of time decay across expiries. The proposed…

OptionsRisk managementBacktestingPosition sizing
Quant Q&A

The discussion addresses why a request for index history beginning in 1960 returned data only from 2010 onward. Its practical recommendation is to locate a source that covers the missing period, preserve that historical segment locally, and periodically…

EquitiesBacktesting
Quant Q&A

The document presents a European call pricing comparison under the Heston stochastic volatility model. It gives a characteristic-function integral for the closed-form price and a Milstein-style discretization for simulating variance and log spot, then…

OptionsDerivatives pricingVolatilityBacktesting
Quant Q&A

The discussion addresses two distinct validation needs for mean–variance portfolio allocation. One reply challenges the assumptions behind mean–variance finance, arguing that return distributions may be heavy-tailed and that sample means and variances may…

Portfolio constructionBacktestingStatisticsRisk management
Quant Q&A

The document considers how to compare approaches intended to address parameter uncertainty in portfolio optimization, including Bayesian methods with diffuse, asset-pricing-based, or economic-objective priors. Its response recommends evaluating forecasts…

Portfolio constructionStatisticsBacktesting
Quant Q&A

The document discusses the provenance of Quandl Open Data, also called Wiki Data, and asks whether the data are purchased from exchanges or derived by comparing and transforming other free sources. It presents the dataset as a possible testbed for…

EquitiesBacktestingMarket microstructure
Quant Q&A

The document distinguishes GARCH forecasts from realized volatility (RV) measures. GARCH models use discrete observations, commonly squared returns, to estimate conditional variance and forecast volatility. RV instead aggregates high-frequency observations…

VolatilityStatisticsBacktesting