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

219 documents

Stratmill research code

This implementation describes a bivariate Student-t copula for modeling dependence between two variables represented by uniform pseudo-observations. It explains sampling from a correlated Student-t distribution, evaluating copula density and cumulative…

StatisticsArbitragePortfolio construction
Stratmill research code

This document explains copula-based measures for comparing financial return series by separating marginal distributions from dependence. It presents Spearman’s rho as a rank-based dependence measure and contrasts it with Pearson correlation, which captures…

Multi-assetStatisticsPortfolio constructionRisk management
Stratmill research code

This document extends a cointegration-based spread strategy from pairs to three or more assets. It forms a weighted combination of log prices using a cointegration vector, then derives a spread return from the same weights. Under stated stationarity…

Multi-assetMean reversionPairs tradingPortfolio construction
Stratmill research code

This code implements a bivariate Gumbel copula for representing dependence between two uniform variables. It provides methods to generate paired samples from independent uniform inputs, calculate the copula density and cumulative distribution, and evaluate a…

StatisticsMachine learning
Stratmill research code

This document describes a latency interface for high-frequency trading backtests, separating the delay from submitting an order to exchange processing from the delay between exchange processing and receiving a response. A constant model assigns fixed values…

High-frequency tradingBacktestingExecutionMarket microstructure
Stratmill research code

Threshold autoregression (TAR) extends a standard unit-root test to allow a series to adjust differently depending on whether it is above or below a threshold. The document illustrates the idea with the gasoline crack spread, defined as unleaded gasoline…

CommoditiesStatisticsMean reversion
Stratmill research code

The document presents a simplified high-frequency grid market-making approach inspired by GLFT. Rather than dynamically estimating order-arrival intensity to set spreads and skew, it uses recent price volatility to determine quote distance. Inventory is…

CryptoHigh-frequency tradingMarket makingGrid trading
Stratmill research code

The document describes processing Bybit’s compressed raw feed files into event data compatible with a high-frequency backtesting system. It handles order book snapshots and updates, as well as public trades, and offers two approaches: combine multiple book…

CryptoMarket microstructureBacktestingExecution
Stratmill research code

This experiment runner configures repeated, rolling train-and-test evaluations for LSTM and Temporal Fusion Transformer models on a multi-asset Quandl dataset. It offers variants with different input sequence lengths and optional changepoint feature…

Machine learningBacktestingMulti-assetStatistics
Stratmill research code

The document describes a bivariate Clayton copula as a way to model dependence between two uniform variables. It provides methods to generate dependent pairs from independent uniform draws, calculate the copula density and cumulative distribution, and…

StatisticsRisk management
Stratmill research code

This documentation describes a function for estimating the half-life of a mean-reverting process under an Ornstein-Uhlenbeck assumption. The model represents changes in a variable as a pull toward a level, plus Gaussian noise. The half-life is a way to…

Mean reversionStatisticsPairs trading
Stratmill research code

This implementation describes an equity pairs strategy that selects stocks with highly correlated historical returns, then compares each stock’s return with a portfolio of its selected peers. It estimates a regression coefficient during a formation period…

EquitiesPairs tradingMean reversionStatistics
Stratmill research code

This document describes a backtest reporting framework that computes metrics over a full record and, optionally, across daily, hourly, or monthly partitions. Metric classes can be instantiated with relevant supplied parameters, then receive the record and a…

BacktestingStatisticsRisk management
Stratmill research code

This stock-screening note selects companies in the beverage and alcohol import-export industry, requiring daily turnover between 3% and 12% and displayed best-bid volume greater than best-ask volume. It characterizes the turnover range as a liquidity filter…

EquitiesChina marketsMarket microstructureExecution
Stratmill research code

This guide explains why futures contracts for the same underlying can have different prices at successive expiries. It defines contango and backwardation and links the price gap to carrying costs such as financing, dividends, or storage. Because a continuous…

FuturesBacktestingExecutionMarket microstructure
Stratmill research code

The document presents a literature-search workflow for financial machine learning and quantitative finance, where relevant work may be spread across econometrics, machine learning, and other fields. It describes using a paper-mapping service to find related…

Machine learningStatisticsPortfolio construction
Stratmill research code

This module generates synthetic pairs whose relationship is defined by a hedge ratio and a mean-reverting cointegration error. It first simulates the change in one asset’s price as an autoregressive process, cumulatively sums those changes into a price…

StatisticsPairs tradingMean reversionBacktesting
Stratmill research code

This reference explains two utilities for copula-based trading research: a linearly interpolated empirical cumulative distribution function (ECDF), and a quick selector for candidate pairs. A standard empirical CDF is a step function, which can map sparse…

Pairs tradingStatisticsBacktestingEquities
Stratmill research code

This tutorial demonstrates how to inspect market depth and trade flow in an event-driven backtest. It first reads the nearest visible bid and ask levels, then shows a region-of-interest vector representation that limits depth access to a configured price…

Market microstructureBacktestingTechnical indicatorsCrypto
Stratmill research code

This module supports copula analysis by mapping observations to marginal empirical cumulative probabilities, with optional linear interpolation and probability bounds. It provides a multivariate row-wise transform, fits a supplied copula to two series after…

StatisticsPairs tradingDerivatives pricingRisk management
Stratmill research code

The document presents a market-depth implementation that stores bid and ask quantities by integer price ticks in ordered B-tree maps. It tracks the best bid and ask, converts prices to ticks using a configured tick size, and filters near-zero quantities…

Market microstructureExecutionBacktesting
Stratmill research code

This module describes calendar rules for rolling several futures series: crude oil, NBP natural gas, refined products including RBOB, grains, and ethanol. The rules use contract-specific termination conventions, such as dates near the 25th or 15th of a…

FuturesCommoditiesBacktestingTechnical indicators
Stratmill research code

Hedge ratios set the relative sizes of legs in a spread so that price differences do not leave the position unintentionally unbalanced in dollar terms. The document introduces a simple price-ratio method, then describes normalizing weights so the dependent…

Pairs tradingMean reversionStatisticsPortfolio construction
Stratmill research code

This method adapts mean-reversion pairs trading to the risk that a spread shift reflects a lasting structural change rather than a temporary deviation. It models the pair spread as having two Markov-switching states, each with its own mean and volatility,…

Pairs tradingMean reversionArbitrageStatistics