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

765 documents

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
FMZ forum

The document introduces stationarity as a time series property in which statistical characteristics remain stable over time, then contrasts it with nonstationary series whose means can drift. It explains that a stationary series may tend to return toward its…

StatisticsMean reversionPairs trading
vn.py

This guide explains how to construct, monitor, and trade synthetic spreads in the VeighNa SpreadTrading module. A spread can combine several contract legs using a formula, including pricing legs that are not traded, which supports relationships involving…

FuturesCommoditiesArbitragePairs trading
BigQuant

This overview outlines a quantitative workflow: collect and clean data, develop a strategy, manage risk, backtest on historical data, and automate execution. It then sketches strategies for Chinese equities and futures, including Turtle-style breakouts,…

EquitiesFuturesPairs tradingTechnical indicators
SuperMind

This page introduces a lesson on using correlation coefficients to identify stock candidates for pairs trading and then building a strategy to trade them. It frames correlation as a screening tool for finding potentially suitable arbitrage pairs, followed by…

EquitiesPairs tradingArbitrageStatistics
BigQuant

The script describes a spread-trading approach linking methanol futures with polyethylene and polypropylene futures. It estimates an MTO production margin by valuing the two polymer contracts together and subtracting the methanol input cost, adjusted for…

FuturesCommoditiesMean reversionPairs trading
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
FMZ forum

The article develops a relative-value framework for Chinese rebar and iron ore futures. Because iron ore is a major steelmaking input, their prices are linked, but the author argues that simple steel-margin formulas can be distorted by coke prices,…

FuturesCommoditiesPairs tradingRisk management
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
BigQuant

This overview explains statistical arbitrage as a family of strategies that trade relative mispricing across related instruments. It distinguishes cross-market, cross-asset, ETF, and market-neutral approaches, and gives pairs trading as a central example:…

EquitiesArbitragePairs tradingMean reversion
MQL5 code base

This document describes an automated or manual pair-trading robot that opens positions in two symbols when their correlation meets a configured threshold. It distinguishes pairs, whose charts move similarly, from mirror symbols, whose charts move in opposite…

Pairs tradingForexStatisticsRisk management
SuperMind

The strategy rotates among China’s four largest banks using each stock’s current price relative to the previous close. When flat, it buys the bank with the weakest ratio if the spread between the strongest and weakest ratios exceeds a preset threshold. When…

EquitiesMean reversionPairs tradingExecution
BigQuant

This research note introduces time-series stationarity as preparation for studying pairs trading in cryptocurrency futures. It explains weak stationarity through stable mean and variance and covariance that depends on the time gap rather than the observation…

CryptoFuturesPairs tradingStatistics
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
vn.py community

A VeighNa community thread addresses why the official spread backtesting example cannot read data even though the same data source works in CTA backtesting. The response explains that spread-trading backtests require their own prepared dataset: data must…

BacktestingPairs tradingFutures
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
vn.py community

A VeighNa community exchange answers whether the `self.sync_data()` method is available in version 2.5.7 spread-trading strategies. A user reports that the method works in CTA strategies but raises an error when called from a spread strategy while attempting…

Pairs tradingExecutionMarket microstructureStatistics
BigQuant

This overview explains how unsupervised learning finds structure in unlabeled data, contrasting it with supervised prediction. It presents K-means clustering and principal component analysis (PCA) through equity examples. K-means groups stocks using scaled…

Machine learningEquitiesStatisticsPairs trading
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 strategy turns changes in a spread series into long and short entry thresholds. It separates historical spread changes into positive and negative values, then calculates a chosen upper quantile of positive changes and a lower quantile of negative…

Pairs tradingMean reversionStatisticsMachine learning
Stratmill research code

This strategy forecasts the future value of a spread between cointegrated assets, then compares the forecast with the current spread to generate trades. The document describes three approaches: trading predicted spread returns directly, following spread…

Pairs tradingFuturesStatistics
MQL5 code base

This document describes an indicator that can display stochastic values for a user-selected symbol, rather than only for the chart’s current instrument. Multiple instances can be added with different symbol inputs, allowing a trader to view several pairs…

ForexTechnical indicatorsPairs trading
TqSdk

The script demonstrates a calendar spread strategy for two nearby equity index futures contracts. It calculates the spread between their closing prices over a rolling window, estimates the mean and standard deviation, and sets upper and lower thresholds two…

FuturesPairs tradingMean reversionBacktesting
TqSdk

The script describes a mean-reversion strategy that trades a spread between two steel futures contracts. It collects daily closes, standardizes each contract’s recent prices over a rolling window, and subtracts the standardized series to form a spread. A…

FuturesMean reversionPairs tradingBacktesting