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
WonderTrader
14 documents
Alphalens
14 documents
backtesting.py
11 documents
Technical Analysis
9 documents
QTPyLib
8 documents
Lumibot strategies
7 documents
QuantRocket
7 documents
Awesome Quant
1 documents

Search the library

16,761 documents

Quant Q&A

The document discusses how to weight a small set of stocks to track the S&P 500. One approach is to estimate weights from historical returns, seeking strong correlation with the index or low tracking error. Regression, principal component methods, and…

EquitiesPortfolio constructionStatisticsBacktesting
Quant Q&A

The document asks how to backtest and plot a strategy whose signals indicate long, flat, or short exposure, using historical prices. The proposed calculation forms log price returns, multiplies them by the prior period’s signal to represent the position held…

BacktestingExecutionStatistics
Quant Q&A

The document raises practical questions for researching and backtesting crypto or forex strategies when exchange pairs use different quote currencies. It asks how to value holdings in a common currency, such as USD, whether to use a direct market or a chain…

CryptoForexBacktestingPortfolio construction
Quant Q&A

The document gives Bloomberg-based routes for locating swap rates and historical swap data, with GBP as its example. It recommends using the Curve Finder to filter for GBP, entering a tenor-specific swap query such as a five-year GBP swap and following the…

Fixed incomeBacktestingUS markets
Quant Q&A

The document responds to a request for news archives extending beyond a short recent window. It names three possible sources: AYLIEN’s historical news API, Bloomberg news and sentiment data used in historical backtesting, and Webhose.io, which an answer says…

SentimentEvent-drivenBacktesting
Quant Q&A

The document considers whether signals from a long-only equity momentum system could be used to sell puts. One response suggests choosing a high-momentum stock using a risk-adjusted return measure and selling a near-the-money put with a later expiration,…

OptionsEquitiesMomentumBacktesting
Quant Q&A

The discussion clarifies how to choose a time increment when simulating stock prices with geometric Brownian motion. For a daily model expressed in annual units, the drift scales with elapsed time and volatility with the square root of elapsed time. A step…

EquitiesStatisticsBacktestingRisk management
Quant Q&A

The document asks whether leverage should multiply an index or ETF’s tracking difference by the leverage factor. The response explains that this equality need not hold when leverage is applied each day or over another subperiod, because compounded returns…

EquitiesBacktestingRisk management
Quant Q&A

The document examines what an annualized Sharpe ratio can imply about the chance of a losing year. It standardizes annual PnL by its mean and standard deviation, then uses a symmetry assumption and Chebyshev’s inequality to derive an upper bound. For the…

StatisticsRisk managementBacktesting
Quant Q&A

The document describes an effort to reproduce parameter estimates from continuous-time stochastic models of US inflation. It lists reported estimates for log-normal models with constant, local, and mean-reverting Vasicek drift, using historical CPI data and…

Fixed incomeStatisticsMachine learningBacktesting
Quant Q&A

The note surveys ways to approximate a hedge fund’s return stream using a different, potentially passive strategy. It groups prior research into linear factor models, nonlinear or less transparent models, and work emphasizing the difficulty of reliable…

Factor investingPortfolio constructionStatisticsBacktesting
Quant Q&A

The document considers how to fit a predicted distribution of future stock log returns using the realized profit and loss of European calls and puts at expiration. It asks how this objective translates mathematically and compares it with likelihood-based…

OptionsStatisticsBacktesting
Quant Q&A

The document asks how to evaluate exponential moving averages as a forex trading strategy and requests research on their effectiveness. The response offers two starting references on technical analysis in foreign exchange: a 1992 study of technical analysis…

ForexTechnical indicatorsBacktesting
Quant Q&A

The document discusses the edge ratio as a tool for evaluating the entry component of an algorithmic trading system. It presents two limitations: unlike the Sharpe ratio, the edge ratio is not commonly requested by investors, and its statistical properties…

BacktestingStatisticsRisk management
Quant Q&A

The document compares estimating portfolio value at risk from a multivariate normal model with using historical returns or a copula. Historical simulation applies the observed joint return series directly, so it can reflect cross-asset dependence and…

Risk managementStatisticsPortfolio constructionBacktesting
Quant Q&A

The post considers how to allocate capital across more than fifty backtested strategies that trade ETFs, mostly equities, with daily signals and next-day open execution. The strategies are mainly short-horizon mean-reversion systems, with different trading…

Portfolio constructionBacktestingMean reversionEquities
Quant Q&A

The document asks whether a proposed method is suitable for evaluating an equity trading strategy when only about ten years of historical returns are available. The researcher resamples the returns with a stationary bootstrap, evaluates candidate strategies…

EquitiesBacktestingStatistics
Quant Q&A

The document explains that adjusted historical prices incorporate corporate actions that occur after each observation date. Because later dividends and other events are applied cumulatively, older adjusted closes can differ increasingly from the raw closes…

EquitiesBacktestingPortfolio construction
Quant Q&A

The document discusses whether Interactive Brokers can provide enough historical intraday data for statistical modeling, using S&P 500 exposure as the example. It points to the R IBrokers package and its historical data request function, which can specify an…

EquitiesUS marketsBacktesting
Quant Q&A

The document asks how to measure monthly returns for two S&P 500 equity portfolios formed from the highest- and lowest-scoring ESG companies. The proposed portfolios are reconstituted annually using the prior year’s ESG scores, and the author wants to…

EquitiesFactor investingPortfolio constructionBacktesting
Quant Q&A

The document describes estimating incremental value at risk by calculating portfolio VaR from simulated scenario returns, removing one position’s scenario returns, and recalculating VaR. Incremental VaR is the difference between the original and reduced…

Risk managementStatisticsPortfolio constructionBacktesting
Quant Q&A

The document examines why win rates become ambiguous when a strategy accumulates or liquidates positions over multiple transactions. It gives a proposed comparison based on total capital invested, total proceeds, and the elapsed time from the first purchase…

EquitiesStatisticsBacktestingRisk management
Quant Q&A

The document compares a Python Least Squares Monte Carlo (LSM) implementation for American options with QuantLib pricing engines. The answer emphasizes that LSM continuation-value regression should use in-the-money paths, and that regression is an…

OptionsDerivatives pricingStatisticsBacktesting
Quant Q&A

The document addresses why repeated geometric Brownian motion simulations produce different price paths, even when the model inputs remain unchanged. The randomness comes from newly drawn Brownian shocks on each run. The accepted response gives a practical…

EquitiesStatisticsBacktesting