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

765 documents

MQL5 articles

The article outlines a MetaTrader 5 approach that selects currency pairs using Pearson correlation and cointegration tests, then combines a negatively correlated pair with a trading system framed around Nash equilibrium. It explains Nash equilibrium as a…

ForexStatisticsMachine learningPairs trading
Machine Learning for Trading

This notebook explains a local linear trend state-space model for extracting financial features from price levels. The hidden state contains a price level and its slope; observations are noisy closes. At each step, the filter predicts the state, measures the…

EquitiesStatisticsTechnical indicatorsPairs trading
Machine Learning for Trading

This notebook explains pairwise and cross-sectional features using ETF panels. It compares Engle–Granger and Johansen cointegration tests, distinguishing a stationary spread from simple co-movement. Its energy fund and crude oil fund example fails both…

Pairs tradingMean reversionStatisticsRisk management
Machine Learning for Trading

This notebook turns currency-pair prediction rankings into a traded baseline. At each decision time, it forms equal-sized long and short sleeves from the highest- and lowest-ranked pairs, then evaluates them with an FX backtest engine. Equal weighting is…

ForexPairs tradingBacktestingPortfolio construction
Machine Learning for Trading

This notebook explains Kalman filtering as a way to extract features from financial prices. A local linear trend state tracks both a latent price level and its slope, while an observation model accounts for noisy closes. Each update produces a filtered…

EquitiesTechnical indicatorsStatisticsPairs trading
Machine Learning for Trading

This notebook develops features that require multiple asset series. It compares Engle-Granger and Johansen tests for cointegration, explains why co-movement alone does not imply a stationary spread, and estimates hedge ratios both with a full-sample…

Multi-assetPairs tradingMean reversionStatistics
arXiv papers

The document formulates pairs trading as a dynamic portfolio optimization problem. The spread between two related securities follows a Gaussian mean-reverting process, while its drift rate changes according to an unobserved finite-state continuous-time…

Pairs tradingMean reversionRisk managementPosition sizing
arXiv papers

The document introduces pair trading as a market-neutral strategy that takes simultaneous long and short positions in two correlated assets. It describes the broad workflow: identify cointegrated pairs, construct trading signals from relative price…

Pairs tradingMean reversionStatisticsBacktesting
arXiv papers

This paper extends the Robust Positive Expectation theorem from a single stock to a pair of stocks. The original result concerns combining specially designed linear feedback controllers, one long and one short, to produce a gain-loss function with robustly…

EquitiesPairs tradingMomentumRisk management
arXiv papers

This paper formulates a pairs-trading strategy for two stocks whose prices follow general geometric Brownian motions, rather than assuming their price difference is mean-reverting. The trader compares the stocks’ relative strength, opens a position by…

EquitiesPairs tradingMean reversionRisk management
arXiv papers

This paper studies when to close a stock pairs trade, which holds one stock long and another short. It formulates the exit decision as an optimal selling and repurchasing problem under trading constraints. The model assumes that the two stock prices follow a…

EquitiesPairs tradingMean reversionStatistics
arXiv papers

This work frames pair trading as a hierarchical decision problem with two linked stages: selecting an asset pair over a longer horizon and executing trades over shorter horizons under partial observability. Because feedback arrives late and may be ambiguous,…

Pairs tradingMachine learningExecution
arXiv papers

The paper develops a framework that learns conditional latent factors to identify related equities, detect relative mispricing, and form a trading policy that accounts for trading costs. Its attention factors are built from embeddings of firm…

EquitiesMachine learningPairs trading
arXiv papers

The paper presents an optimal-execution framework for statistical arbitrage when predictive signals depend on the path of market data. It represents both the alpha signal and trading speed as linear functions of a truncated signature of a time-augmented…

EquitiesPairs tradingExecution
arXiv papers

This paper models the price spread between two assets as a hidden state that follows a mean-reverting process. The model allows spread innovations to be non-Gaussian and heteroskedastic, while making mean reversion nonlinear. It uses the filtered estimate of…

Pairs tradingMean reversionStatisticsArbitrage
arXiv papers

This case study tests whether a cointegration-based pairs strategy for PepsiCo and Coca-Cola is statistically sound and economically viable. It estimates the spread's mean-reversion behavior using earlier data, holds those statistical estimates fixed, and…

EquitiesPairs tradingMean reversionBacktesting
arXiv papers

The study examines Asian American Depositary Receipts in markets whose trading hours do not align with those of the underlying foreign shares. It separates ADR returns into components earned during U.S. market hours and overnight, and compares each ADR with…

EquitiesMean reversionPairs tradingBacktesting
arXiv papers

The study examines pairs-trading extensions across Brent, WTI, and Shanghai crude oil futures. It reports that the three price series are cointegrated and models their resulting spread as mean-reverting with regimes governed by a hidden Markov chain. Online…

CommoditiesFuturesPairs tradingArbitrage
arXiv papers

This study tests deep reinforcement learning as an execution overlay for pair trading in volatile cryptocurrency markets. Its framework first filters and ranks candidate pairs, then uses a Proximal Policy Optimization agent with a Long Short-Term Memory…

CryptoFuturesPairs tradingMachine learning
arXiv papers

The document describes a data-driven method for finding statistical arbitrage strategies that seek to remain profitable under uncertainty about the market model. It uses deep neural networks to consider many securities together, avoiding the need to first…

ArbitragePairs tradingMachine learningStatistics
arXiv papers

This paper studies optimal trading when a signal follows a mean-reverting Ornstein-Uhlenbeck process whose parameters change according to hidden regimes. It combines recurrent neural networks with reinforcement learning to infer information about the…

Machine learningMean reversionPairs tradingEquities
arXiv papers

This paper presents an optimization method for constructing a mean-reverting portfolio from a larger set of assets. It seeks portfolios whose spread is well described by an Ornstein–Uhlenbeck process, with process parameters estimated by maximum likelihood.…

Mean reversionPairs tradingPortfolio constructionStatistics
arXiv papers

This paper studies an investment and consumption problem in a pairs trading market where the spread between risky assets follows an Ornstein–Uhlenbeck process. It focuses on optimal strategies under power utility, bringing together portfolio decisions and…

Pairs tradingMean reversionStatisticsPortfolio construction
arXiv papers

This study develops a mean-reversion pairs strategy for US equities. Rather than selecting pairs through customary pair-trading practice, it uses maximum likelihood estimation to form static portfolios that fit an Ornstein-Uhlenbeck process. The estimated…

EquitiesMean reversionPairs tradingStatistics