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
Quantpedia
86 documents
TqSdk
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
Quantopian lectures
45 documents
Binance API docs
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

92 documents

Stratmill research code

This module constructs a continuous futures series by identifying contract roll dates and calculating the price gap between the expiring contract and the next contract. It accumulates those gaps through time and can align the adjusted series at its end. A…

FuturesBacktestingCommoditiesStatistics
Stratmill research code

This code excerpt implements three filters intended to support spread trading and risk adjustment. The correlation filter calculates rolling correlation between the first two series, rescales it to a zero-to-one range, and uses changes in that measure to…

Pairs tradingVolatilityRisk managementBacktesting
Stratmill research code

This helper prepares spread changes and their lagged values as inputs for a regression model. It can expand the lag features with pairwise products, split a chosen in-sample period into ordered training and test sets, and keep a separate out-of-sample…

Machine learningStatisticsBacktestingPairs trading
Stratmill research code

The example outlines a limit-order market-making loop. It computes a midpoint from the best bid and ask, adjusts a reservation price using a forecast and an inventory-related risk term, then places bid and ask quotes around that price. It rounds quotes to…

Market makingHigh-frequency tradingExecutionMarket microstructure
Stratmill research code

This tutorial examines how probabilistic queue-position assumptions affect simulated limit-order fills and market-making results. It implements a grid quoting strategy based on a GLFT-style market-making model, estimates order-arrival intensity from observed…

FuturesMarket makingBacktestingMarket microstructure
Stratmill research code

HftBacktest uses Numba-compiled classes and strategy functions, so importing the library and compiling a strategy can add startup time before a backtest begins. The document describes enabling Numba’s cache option on a strategy function so compiled code can…

BacktestingHigh-frequency tradingExecution
Stratmill research code

This strategy uses copulas to estimate conditional probabilities between two assets’ daily returns. It accumulates each probability’s deviation from 0.5 into a mispricing index flag, intended to translate return dependence into a measure of how prices have…

Pairs tradingStatisticsMean reversionBacktesting
Stratmill research code

This Python module provides utilities for evaluating systematic strategies and constructing several trend signals. It computes annual return and volatility, Sharpe and Sortino ratios, downside risk, maximum drawdown, Calmar ratio, positive-return frequency,…

Trend followingTechnical indicatorsRisk managementBacktesting
Stratmill research code

This document outlines a two-stage workflow for calculating Alpha101 factors. First, it reads daily stock data, derives base series such as returns and VWAP, and computes time-series intermediate variables for storage. Later, factor construction retrieves…

EquitiesFactor investingStatisticsBacktesting
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 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 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

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

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 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 guide explains how unit-root and cointegration tests can help identify mean-reverting combinations of asset prices. It presents the Augmented Dickey–Fuller test as a test of whether price changes depend on the current level, and relates the estimated…

Pairs tradingMean reversionStatisticsBacktesting
Stratmill research code

The document defines interfaces for a backtesting system that processes historical market events and order interactions. A local processor can submit, modify, and cancel orders, expose positions and state values, report market depth and recent trades, and…

BacktestingExecutionMarket microstructure
Stratmill research code

This guide explains how to prepare tick-by-tick trades and full order-book updates for HftBacktest, noting that this level of historical data is not commonly available for free in the way daily bars are. For Binance Futures, it describes collecting raw feed…

CryptoFuturesHigh-frequency tradingMarket microstructure
Stratmill research code

The document explains why a high-frequency trading backtest should account for delays between exchange activity and a trader’s system. It separates latency into feed latency, order-entry latency, and order-response latency, distinguishing when market data…

High-frequency tradingBacktestingExecutionMarket microstructure
Stratmill research code

This tutorial illustrates how combining assets or strategies can smooth portfolio returns and raise the portfolio Sharpe ratio, even when individual components have weak risk-adjusted performance. It generates synthetic return series, builds equal-weight…

Portfolio constructionStatisticsRisk managementBacktesting
Stratmill research code

This code describes queue position models for estimating when a simulated limit order may fill. The conservative model starts with the displayed quantity ahead at the order’s price and advances only as trades occur there. A probability based alternative also…

BacktestingMarket microstructureExecution