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 introduction explains how cointegration can help create a mean-reverting portfolio from price series that are not themselves mean-reverting. By combining multiple assets with suitable weights, a trader may construct a spread or portfolio whose value…

Mean reversionStatisticsPortfolio constructionPairs trading
Stratmill research code

This implementation describes convergence trading for two cointegrated assets as a portfolio optimization problem. It estimates error-correction speeds and other model parameters from price data, then computes portfolio weights under both unconstrained and…

Pairs tradingArbitragePortfolio constructionStatistics
Stratmill research code

This example builds a BTCUSDT futures market-making strategy whose fair price is estimated from a spot reference price plus a smoothed spot–futures basis. It resamples spot and futures book-ticker mid-prices, carries observations forward, and calculates a…

CryptoFuturesMarket makingMean reversion
Stratmill research code

This document describes a trading rule that measures a spread’s latest value against its recent average and standard deviation. It uses separate lookback windows for the mean and standard deviation, then calculates a z-score to identify unusually high or low…

Mean reversionTechnical indicatorsStatisticsRisk management
Stratmill research code

This document introduces HftBacktest, a Rust framework for developing and running high-frequency trading and market-making strategies. Its backtesting approach replays tick-level market data and aims to model important execution effects, including feed…

High-frequency tradingMarket makingMarket microstructureBacktesting
Stratmill research code

The distance approach forms pairs by rescaling each asset’s training-period prices to a common range, calculating the sum of squared differences between each pair’s normalized series, and selecting the closest matches. In the cited original study, the…

Pairs tradingMean reversionArbitrageStatistics
Stratmill research code

This documentation landing page introduces ArbitrageLab, a Python library covering end-to-end pairs-trading strategies and tools for developing strategies. It organizes its subject matter around multiple approaches, including distance methods, cointegration,…

Pairs tradingMean reversionArbitrageMachine learning
Stratmill research code

This overview describes research on forecasting and trading commodity spreads, including gasoline crack, soybean-oil crush, and corn-ethanol crush spreads. It explains why spreads can be less exposed to market-wide information shocks and speculative bubbles…

CommoditiesArbitrageExecutionBacktesting
Stratmill research code

This document describes helper calculations commonly used to construct quantitative signals from price or other tabular time series. Its functions cover rolling sums, averages, standard deviations, correlations, covariances, ranks, products, extrema,…

Technical indicatorsStatistics
Stratmill research code

The tutorial describes a faster backtesting approach that precomputes fill conditions across intervals, reducing the need to replay every depth update or estimate queue position. It retains feed and order-entry latency but omits order-response latency.…

BacktestingExecutionMarket microstructureHigh-frequency trading
Stratmill research code

This document describes a parameter sweep for a grid trading backtest. It combines every configured symbol with candidate relative half-spread and grid-count values, then runs the resulting backtests in parallel over a selected date range. The grid interval…

CryptoGrid tradingBacktestingPosition sizing
Stratmill research code

The document contains reusable strategy calculations for price returns, volatility scaling, trend following, and MACD signals. Its intermediate trend strategy combines the signs of one-month and one-year returns, weighted by a parameter, and applies that…

Trend followingTechnical indicatorsVolatilityRisk management
Stratmill research code

This code sample implements parts of the Alpha101 factor set using historical equity fields such as open, high, low, close, volume, returns, and volume-weighted average price. The formulas combine rolling ranks, moving averages, correlations, price changes,…

EquitiesFactor investingTechnical indicatorsStatistics
Stratmill research code

This Chinese equity screening proposal combines three conditions: daily price amplitude above 1%, a dividend ratio above 25% for 2019, and a 15-minute MACD histogram that is shortening while below zero. The rationale is to find volatile shares with a history…

EquitiesChina marketsTechnical indicatorsVolatility
Stratmill research code

This code excerpt implements neural-network components for a momentum forecasting model based on a temporal fusion transformer design. It includes feed-forward layers, gated linear units, gated residual networks with skip connections and normalization, and…

Machine learningMomentumStatisticsBacktesting
Stratmill research code

This module outlines an out-of-sample forecasting workflow built around Auto-ARIMA. It first applies an Augmented Dickey-Fuller test at a five percent significance level, repeatedly differencing the training series until the test indicates stationarity or a…

StatisticsMachine learningBacktesting
Stratmill research code

This module implements the bivariate Nelsen 13 copula, a tool for modeling dependence between two uniform variables. It provides the copula cumulative distribution and density, a conditional distribution, random pair generation, and a parameter estimator…

StatisticsDerivatives pricingRisk management
Stratmill research code

The document implements a threshold autoregressive model for testing whether a spread adjusts differently after positive and negative deviations. It first differences the input series to form changes, lags the spread by one period, and assigns each lagged…

StatisticsMean reversionPairs trading
Stratmill research code

The document introduces copulas as a way to model how two or more random variables depend on each other separately from their individual distributions. It explains transforming observations through their marginal cumulative distribution functions into…

StatisticsPairs tradingMean reversion
Stratmill research code

This tutorial compares a high-frequency grid market-making strategy across cryptocurrency exchanges, emphasizing that different order flows can change results even for the same trading pair and parameters. The strategy places layered limit bids and offers…

CryptoFuturesGrid tradingMarket making
Stratmill research code

This tutorial describes a high-frequency grid strategy that places passive limit orders at regular intervals around the mid-price. It maintains a fixed number of buy and sell levels, refreshes orders as the market moves, and limits new orders based on the…

FuturesCryptoGrid tradingMarket making
Stratmill research code

This tutorial applies the Guéant–Lehalle–Fernandez-Tapia market-making model to grid quoting. It derives bid and ask quote depths from a fair price, volatility, trading intensity, and inventory. The resulting quotes combine a half-spread with an…

Market makingGrid tradingHigh-frequency tradingCrypto
Stratmill research code

This module fits a bivariate mixture of Clayton, Student-t, and Gumbel copulas, motivated by a mixed-copula pairs trading approach. It first maps each input series to empirical cumulative probabilities, then estimates component parameters and mixture weights…

Pairs tradingStatisticsMachine learningRisk management
Stratmill research code

This code describes a stateful method for comparing consecutive limit-order-book snapshots. It stores bid and ask levels from the current and previous snapshots, then flags each current level as unchanged, changed, or inserted based on price and quantity.…

Market microstructureExecutionHigh-frequency tradingStatistics