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
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 introduces pairs trading as an accessible starting point for understanding statistical arbitrage. It describes taking opposite positions in two historically related securities when their prices diverge, with the expectation that their…

ArbitragePairs tradingMean reversionPortfolio construction
MQL5 articles

This article explains bivariate Archimedean copulas and their implementation in MQL5, focusing on the Frank, Clayton, Joe, Gumbel, N13, and N14 families. A generator function combines uniform marginal probabilities into a dependence model, with family…

StatisticsPairs tradingMean reversionEquities
MQL5 articles

The article outlines a multi-currency carry approach that seeks positive swap income while offsetting exchange-rate exposure through opposing positions in correlated currency pairs. It proposes using least-squares regression on historical daily prices to…

ForexCarryPairs tradingStatistics
MQL5 articles

The article outlines a MetaTrader 4 Expert Advisor that trades a pair of forex symbols as a hedge. It explains using MarketInfo to access prices and trading properties for symbols beyond the active chart, and it recommends choosing pairs whose prices tend to…

ForexPairs tradingStatisticsExecution
MQL5 articles

This article introduces cointegration as a way to identify long-run relationships among stocks for statistical arbitrage, moving beyond simple correlation and two-asset pairs. It describes applying the Engle-Granger test to a pair and the Johansen method to…

EquitiesArbitragePairs tradingStatistics
MQL5 articles

This article explains the Augmented Dickey-Fuller test as a way to assess whether a series has a unit root, with stationarity as the alternative. It describes the regression behind the test, the role of the coefficient on the lagged series, and how the…

StatisticsPairs tradingArbitrage
MQL5 articles

This article introduces statistical arbitrage through correlation, cointegration, and the Pearson coefficient, then demonstrates a screening workflow using historical prices. Its Python example compares instrument pairs, retains those above a correlation…

StatisticsPairs tradingArbitrageForex
MQL5 articles

This article develops a multivariate statistical-arbitrage workflow intended to reduce dependence on fast order execution. It begins with liquid stocks from a related industry, screens candidates for recent correlation with a reference asset and with one…

EquitiesPairs tradingMean reversionBacktesting
Quantopian lectures

This lesson introduces pairs trading as a way to trade a hypothesized economic relationship between two securities. It distinguishes cointegration from correlation, illustrates both concepts with simulated series, and describes testing a candidate pair with…

Pairs tradingMean reversionStatisticsEquities
Quantopian lectures

This lecture introduces factor models as regressions that explain an asset’s returns using other return series. It estimates an asset’s beta to a benchmark from historical returns, then uses a short benchmark position sized to offset the estimated market…

EquitiesRisk managementStatisticsPortfolio construction
Quantopian lectures

This lecture explains stationarity, orders of integration, and why these properties matter when analyzing financial time series. A stationary process has stable data-generating characteristics, while changes such as a drifting mean can make a historical…

StatisticsPairs tradingEquitiesBacktesting
Machine Learning for Trading

This notebook explains when a strategy is clearest as precomputed arrays and when it benefits from a sequential simulation that carries positions, fills, cash, realized profit and loss, or equity forward through time. Array-based backtests are attractive…

BacktestingPosition sizingPairs tradingRisk management
Machine Learning for Trading

This notebook explains when a trading strategy is clearer to simulate bar by bar with evolving state than to express as precomputed signals or weights. It contrasts array-based backtests, which can be fast and convenient for parameter sweeps, with sequential…

BacktestingPosition sizingPairs tradingRisk management
Strategy library

This example constructs a relative spread indicator from daily closes for soybean oil, palm oil, and rapeseed oil futures. It calculates the difference between two pairwise price spreads and scales that value by the difference between rapeseed oil and palm…

CommoditiesFuturesPairs tradingArbitrage
Strategy library

This pairs-trading model ranks available asset pairs by the Pearson correlation of their recent log-price changes and selects the pair with the highest correlation, provided it meets a minimum threshold. It retrieves historical closing prices at a…

Pairs tradingStatisticsMean reversionEquities
Strategy library

This example outlines a mean-reversion approach for two assets. It applies the Engle–Granger two-step method: regress one price series on the other, test whether residuals are stationary, then estimate an error-correction model and check that its adjustment…

Pairs tradingMean reversionStatisticsBacktesting
Strategy library

This example combines daily Intrinio observations for West Texas Intermediate and Brent crude prices with two oil fund positions. It calculates the Brent-minus-WTI spread and takes opposing positions in the funds: a positive spread leads to a long Brent fund…

CommoditiesPairs tradingPosition sizingExecution
Strategy library

This statistical arbitrage method trades a normalized relationship between silver and gold. It scales each price against its 20-period simple moving average, forms a ratio, smooths it with a short exponential average, and calculates a rolling Z-score. A move…

CommoditiesPairs tradingMean reversionStatistics
Strategy library

This document describes an exchange-integrated framework for pairing accounts or markets into long and short sides, then opening or closing both legs together. Users designate long and short matches, inspect their status, and trigger a paired hedge…

CryptoFuturesExecutionMarket microstructure
Strategy library

The document explains a market-neutral statistical arbitrage approach that pairs long and short baskets with equal value. It proposes scanning instruments to form baskets, assessing their correlations and cointegration, and filtering candidates with…

CryptoArbitragePairs tradingMean reversion
Strategy library

This example models a production-margin spread using polyester staple fiber futures against weighted PTA and ethylene glycol futures. It multiplies each contract price by its contract multiplier and a production ratio, then defines the spread as the…

FuturesCommoditiesPairs tradingMean reversion
Strategy library

This relative-value strategy models the log price of the EWY Korea equity ETF as a linear combination of Samsung Electronics and SK Hynix prices, with an intercept. It standardizes the regression residual over a rolling window and treats large positive or…

EquitiesPairs tradingArbitrageStatistics
Strategy library

This controller describes a two-asset statistical arbitrage workflow. It requests candle data for each pair, estimates a hedge relationship with linear regression, and uses the spread’s z-score to choose between long-dominant/short-hedge and the reverse. It…

CryptoArbitragePairs tradingStatistics