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

64 documents

Strategy library

This Chinese-language example describes an automated hedge between OKX and Binance perpetual futures. It reads signed position sizes and quotes from both venues, tracks progress toward a requested amount, and uses an opening spread threshold to trigger…

CryptoPerpetual futuresArbitrageExecution
Strategy library

This example describes a mean-reversion approach to the price spread between near- and far-month index futures contracts. On 15-minute bars, it calculates the difference between the contracts’ closing prices over an 80-bar window, then estimates the spread’s…

FuturesArbitrageMean reversionStatistics
Strategy library

This script describes a two-exchange spot arbitrage process for the same asset. It compares executable bid and ask prices across venues, estimates available depth, and places paired buy and sell orders when the spread exceeds a threshold that includes…

ArbitrageSpot marketsExecutionRisk management
Strategy library

This document describes an execution utility for opening, closing, or reversing positions in two perpetual futures contracts. When opening, it calculates each leg's quantity from a shared per-asset value and the current ticker price, with a contract-value…

FuturesPerpetual futuresArbitrageExecution
Strategy library

This spread strategy uses Bollinger bands to enter positions when a spread moves beyond its recent range, then aims to close the position after it returns to its simple moving average. It updates spread bars from incoming ticks and waits for its price…

Mean reversionArbitrageTechnical indicatorsPosition sizing
Strategy library

This example describes two triangular arbitrage directions across BTC/USDT, LTC/USDT, and LTC/BTC markets. It compares prices from the three tickers and estimates whether converting through the triangle could yield a positive return after applying a stated…

CryptoArbitrageExecutionMarket microstructure
Strategy library

This document describes a read-only scanner for comparing perpetual futures funding rates across centralized and on-chain venues. It converts rates with different settlement intervals to annualized values and an equivalent eight-hour spread, then pairs the…

CryptoPerpetual futuresArbitrageCarry
Strategy library

This document describes a charting script for tracking Brazilian real quoted crypto prices across BitcoinTrade and Binance. It plots BitcoinTrade bid and ask data for several assets, then compares corresponding BRL markets on both venues to visualize…

CryptoArbitrageMarket microstructureSpot markets
Strategy library

This bot monitors Bitcoin order books on two exchanges and opens paired trades when the bid on one venue exceeds the opposing ask on the other by a configurable spread threshold. It sells on the higher-priced venue and buys on the lower-priced venue,…

CryptoArbitrageMarket microstructureExecution
Strategy library

This controller coordinates cross-exchange market-making executors across a maker venue and a taker venue. Users configure separate buy and sell profitability targets with associated allocation weights. The controller divides its quote budget equally between…

CryptoArbitrageExecutionMarket making
Strategy library

The document describes a bot for 15-minute Polymarket BTC Up/Down contracts. It monitors both asks for a sharp fall in either side, then submits buy orders for that side and its opposite. The target is to keep the combined purchase cost below one USDC, so a…

CryptoArbitrageExecutionRisk management
Strategy library

The strategy constructs a Bitcoin futures-versus-spot spread from weighted prices across Binance and OKX, then standardizes that spread with a rolling mean and standard deviation to obtain a Z-score. It evaluates the signal across three configurable…

CryptoFuturesSpot marketsArbitrage
Strategy library

This document describes a monitor that samples prices from two exchanges and plots their difference over time. The operator can choose last-traded, bid, or ask prices independently for each venue, set polling and retry intervals, and optionally adjust…

CryptoArbitrageMarket microstructureExecution
Strategy library

This JavaScript strategy monitors order books on two exchanges for the same currency. It compares the best bid on one venue with the best ask on the other in both directions, then opens a paired short and long when the corresponding spread meets its…

ArbitrageCryptoExecutionMarket microstructure
Strategy library

This prototype outlines a statistical arbitrage strategy for the price spread between spot assets and delivery futures. It proposes running an Augmented Dickey–Fuller stationarity test hourly and allowing trades only when the spread passes a p-value…

ArbitrageSpot marketsFuturesStatistics
Strategy library

This prototype describes a market-neutral approach to trading the spread between spot assets and dated futures. It proposes checking spread stationarity with an Augmented Dickey–Fuller test, then using a Z-score to identify unusually wide or narrow spreads.…

ArbitrageSpot marketsFuturesStatistics
Strategy library

This document describes a polling tool for comparing prices from two exchanges, including spot and futures markets. Users can choose each market’s quote currency, futures contract and leverage settings, and whether to compare best ask, last price, or best…

Multi-assetFuturesSpot marketsArbitrage
Strategy library

This strategy trades a three-contract spread across a perpetual, current-quarter, and next-quarter Binance coin-margined futures contract. It defines the butterfly spread as next-quarter plus perpetual minus twice the current-quarter price. Long exposure to…

CryptoFuturesArbitrageGrid trading
Strategy library

This example describes a futures spread strategy built around an estimated methanol-to-olefins production margin. It combines the values of polyethylene and polypropylene output with methanol input costs, scaling prices by contract multipliers and assumed…

FuturesCommoditiesMean reversionArbitrage
Strategy library

This educational strategy monitors two spot exchanges for a price gap large enough to justify buying on one venue and selling on the other. The trigger can be set as an absolute price difference or a percentage of an average price derived from both books.…

CryptoSpot marketsArbitrageExecution
Strategy library

The document proposes smoothing a transformed price series with an adaptive regularized moving average, then using crossings between that signal and price to switch between long and short positions. It describes a five-day window, adaptive weighting, and a…

Technical indicatorsArbitrageFuturesBacktesting
Strategy library

This strategy compares a futures price with a synthetic forward price formed from a call, a put, and their shared strike. It calculates the synthetic price as call price minus put price plus strike, then measures its difference from the futures price. When…

OptionsFuturesArbitrageDerivatives pricing
Strategy library

This framework trades the relative price of the PAXG and XAUT gold-linked tokens. It expresses their difference as a percentage, then estimates a rolling mean and standard deviation from minute closes. A spread beyond two standard deviations prompts a…

CryptoPairs tradingArbitrageMean reversion
Strategy library

This teaching example describes a triangular hedge using ETH/BTC, ETH/USDT, and BTC/USDT markets. It compares the ETH/BTC quote on one venue with an implied ETH/BTC rate calculated from the other two pairs. When the difference exceeds a fixed threshold, it…

CryptoArbitrageExecutionMarket microstructure