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

OKX Learn

The document describes an automated ETH/BTC approach that seeks to accumulate BTC by trading relative price swings between Ethereum and Bitcoin. When BTC strengthens against ETH, the bot converts some BTC into ETH; when ETH later strengthens, it converts ETH…

CryptoPairs tradingMean reversionArbitrage
OKX Learn

The document explains futures spread trading as a paired position: long one contract and short another, seeking changes in the price difference between the legs. It distinguishes calendar spreads, which pair the same underlying across expiries, from…

CryptoFuturesPairs tradingExecution
OKX Learn

The commentary reviews a volatile week in crypto, contrasting Bitcoin’s limited net decline after a wide trading range with weaker performance in ether and many altcoins. It argues that altcoins have faced persistent pressure amid a growing supply of…

CryptoVolatilityMomentumPairs trading
OKX Learn

The article distinguishes the BTC/ETH price ratio, which expresses how much Bitcoin one Ether costs, from a correlation coefficient, which measures whether their price movements align. It describes measuring the coefficient over rolling periods of 30 to 60…

CryptoPairs tradingStatisticsTechnical indicators
Strategy library

The script trades a spread between Dalian Commodity Exchange coke and coking coal futures. It estimates the spread from each contract's close, volume multiplier, and a fixed contract ratio, then calculates a z-score from a rolling set of daily observations.…

CommoditiesFuturesPairs tradingMean reversion
Strategy library

This example trades a spread between continuous Light Sweet Crude Oil and RBOB Gasoline futures. It estimates a return relationship by regressing crude returns on gasoline returns over a rolling history, then measures the recent spread against its mean and…

FuturesCommoditiesPairs tradingMean reversion
Strategy library

This statistical-arbitrage demo tracks closing prices for two instruments, takes their logarithms, and uses the difference as a spread signal. When the spread crosses configured positive or negative thresholds, it opens opposing legs: short the first…

StatisticsPairs tradingMean reversionRisk management
Strategy library

This script presents a spread-style signal using continuous YM and NQ futures. It divides the YM close by the NQ close, smooths that ratio with a 200-period simple moving average, and uses it to scale NQ in a difference series. Bollinger Bands over that…

FuturesPairs tradingMean reversionTechnical indicators
FMZ digest

This tutorial develops a pairs trading approach around the idea that two related assets may have a stable long-run relationship even as their prices temporarily diverge. It distinguishes cointegration from correlation, uses a cointegration test to screen…

Pairs tradingMean reversionStatisticsBacktesting
FMZ digest

This tutorial develops an intraday pairs-trading example using SPY and IWM minute bars. It aligns the two price series, estimates a rolling linear-regression hedge ratio, forms a spread, and standardizes that spread as a z-score. The example opens a long…

EquitiesPairs tradingMean reversionStatistics
FMZ digest

This article studies whether crypto assets that move more closely with Bitcoin perform differently from less correlated coins. It explains Pearson correlation as a measure of linear co-movement, then describes collecting four-hour Binance futures prices for…

CryptoStatisticsPairs tradingMomentum
FMZ digest

This document explains a statistical arbitrage approach that trades two correlated cryptocurrencies when their price ratio moves away from a reference level. It describes taking opposite positions in the two assets and closing or adjusting them as the ratio…

CryptoPairs tradingMean reversionStatistics
FMZ digest

This document presents a JavaScript implementation of a two-asset cryptocurrency pair strategy on FMZ, along with platform features needed to run it. The strategy estimates a reference price ratio from hourly candles, compares the live ratio with that…

CryptoPairs tradingPerpetual futuresExecution
FMZ digest

This tutorial outlines a statistical arbitrage approach for crypto perpetual contracts. It screens historical closing prices for highly correlated pairs, then trades deviations in their price ratio: when the ratio is above its reference level, it buys one…

CryptoPerpetual futuresPairs tradingStatistics
FMZ digest

The article describes a spot-style cross-currency hedge using two crypto assets, such as LTC and ETH quoted in USDT. Instead of trading an absolute price spread, it tracks one asset's price relative to the other. As the ratio rises through preset grid…

CryptoGrid tradingPairs tradingRisk management
FMZ digest

This teaching example demonstrates a two-contract commodity futures hedge that monitors the price difference between contracts A and B. It opens opposing positions when the spread exceeds a configured threshold, then closes them when the spread reaches a…

FuturesCommoditiesPairs tradingExecution
FMZ digest

This guide explains how FMZ trading terminal plugins can run short, task-specific scripts for manual trading. It distinguishes immediate execution, intended for brief tasks, from background execution, which runs like a bot and is suited to longer strategies.…

FuturesSpot marketsExecutionMarket microstructure
FMZ digest

This tutorial develops the statistical basis for pairs trading. It explains how a temporary divergence between related assets can be traded by shorting the relatively stronger asset and buying the weaker one, with the expectation that their spread will…

Pairs tradingStatisticsMean reversionBacktesting
FMZ digest

The document explains a calendar-spread hedge between near-dated and deferred cryptocurrency futures. A positive spread position buys the nearer contract and sells the deferred one; the reverse position sells the nearer contract and buys the deferred one.…

CryptoFuturesPairs tradingArbitrage
FMZ digest

This article presents a short-term trading idea based on a claimed lead-lag relationship between two related crypto contracts. When the leading contract moves, the strategy measures the relative price change and trades the lagging contract if the difference…

CryptoArbitragePairs tradingHigh-frequency trading
FMZ digest

This article examines a proposed strategy that takes opposing BTC and ETH perpetual positions based on their relative moves. It explains why equal contract counts do not create a balanced hedge, then describes estimating ETH’s return beta against BTC,…

CryptoPairs tradingStatisticsPerpetual futures
FMZ digest

This research explores two approaches to trading baskets of Binance perpetual contracts. The first shorts a selected group of altcoins while holding a similarly valued Bitcoin position, aiming to reduce exposure to broad market moves. The second compares…

CryptoFuturesPerpetual futuresPairs trading
FMZ digest

The article proposes an automated workflow for finding relative-value baskets from a universe of instruments. It arranges log prices in a time-by-instrument matrix, uses singular value decomposition to estimate common movement and residual directions, and…

ArbitragePairs tradingStatisticsRisk management
FMZ digest

The article proposes a relative-value strategy linking the South Korea ETF EWY with Samsung Electronics and SK Hynix. It explains why the author avoids trading the visible cash-equity versus perpetual-contract basis: trading-hour mismatches, currency…

EquitiesArbitragePairs tradingStatistics