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

75 documents

Machine Learning for Trading

This notebook describes an out-of-sample backtest for a selected crypto perpetual funding strategy. It reuses predictions generated from training history that ends before the holdout period, then applies the chosen strategy configuration, including its…

CryptoPerpetual futuresCarryBacktesting
Machine Learning for Trading

This notebook rehearses a deployment cycle for a crypto funding-rate direction model. It trains a LightGBM classifier on historical Binance-derived perpetual data, fetches live hourly bars and funding rates from OKX, computes the model's features, and…

CryptoPerpetual futuresMachine learningExecution
Machine Learning for Trading

This notebook studies how ridge, lasso, and elastic net behave when a crypto perpetuals feature matrix measures one economic quantity—the premium—many different ways. Premium levels, changes, volatility, standardized positions, ranks, and related funding…

CryptoPerpetual futuresMachine learningStatistics
Machine Learning for Trading

This document describes data access and alignment conventions for crypto perpetual futures and related on-chain series. It explains that premium-index bars are timestamped at their opening time: an eight-hour bar records the premium leading into the funding…

CryptoPerpetual futuresOn-chain dataDeFi
Machine Learning for Trading

This notebook develops a two-model exit policy for hourly crypto perpetuals. An entry classifier identifies unusually strong forward returns, while an exit classifier predicts whether the next forward return will be negative. The exit model receives…

CryptoPerpetual futuresMachine learningBacktesting
Machine Learning for Trading

This document describes a ledger for applying funding cash flows to perpetual futures positions during a backtest. At each funding timestamp, it uses the position’s signed quantity, the current mark, any contract multiplier, and the funding rate to calculate…

Perpetual futuresBacktestingDerivatives pricingRisk management
Machine Learning for Trading

This data exploration examines eight-hour premium-index observations for USDT-margined crypto perpetual contracts and explains how the premium relates to funding payments. The index uses executable impact bid and ask prices relative to the price index,…

CryptoPerpetual futuresArbitrageCarry
Machine Learning for Trading

This dataset guide presents Binance perpetual futures price and volume data alongside an eight-hour premium index. Hourly OHLCV records describe market activity, while the premium measures the difference between perpetual and spot prices relative to spot. A…

CryptoPerpetual futuresSpot marketsCarry
Machine Learning for Trading

This case study fits linear models to predict returns and direction in crypto perpetual futures. Its feature matrix is dominated by variations of the perpetual premium, the gap between the contract and spot price that drives funding payments. It contrasts…

CryptoPerpetual futuresMachine learningStatistics
Machine Learning for Trading

This notebook screens financial and model-based features for their relationship with the next eight-hour return of crypto perpetual contracts. For each settlement, it computes cross-sectional Spearman correlations across eligible contracts, then summarizes…

CryptoPerpetual futuresMachine learningStatistics
Machine Learning for Trading

This notebook trains a vanilla autoencoder on hourly returns for a basket of crypto perpetual markets. Returns are standardized using the training period, and a neural network compresses the multi-asset input into a two-dimensional latent representation…

CryptoMachine learningStatisticsVolatility
Machine Learning for Trading

This audit record defines how several backtesting frameworks are compared with ML4T across real strategy case studies and a synthetic stress workload. It specifies the comparison rules for ordered fills, timestamps, account-money values, quantities, and…

BacktestingExecutionMarket microstructureFutures
Machine Learning for Trading

This notebook defines forward price-return labels for a fixed panel of crypto perpetual contracts and explains how label construction affects every later model and backtest. It shifts bar-open timestamps to the time completed data becomes available,…

CryptoPerpetual futuresBacktestingStatistics
Machine Learning for Trading

This notebook asks whether sequence models can improve on hand-built summaries of perpetual funding premium history. It compares NLinear, a simple linear model that reads an ordered window, with a two-layer LSTM. Both use the same feature order, walk-forward…

CryptoMachine learningPerpetual futuresBacktesting
Machine Learning for Trading

This notebook builds a simulated market-making task in which a proximal policy optimization agent chooses quote skew and spread width. The environment uses a GARCH volatility process calibrated to hourly crypto perpetual-futures returns, a reservation price…

Market makingMachine learningCryptoPerpetual futures
Machine Learning for Trading

This notebook studies six allocation methods applied to selected crypto perpetual strategy configurations. The rankings and entry rules remain fixed while the capital assigned to each position changes. The methods use model scores, individual contract…

CryptoPerpetual futuresPosition sizingPortfolio construction
Machine Learning for Trading

This analysis explains how Binance’s perpetual-futures premium index relates to spot prices and how the exchange transforms that premium into periodic funding. The index uses executable impact bid and ask prices relative to an underlying price index,…

CryptoPerpetual futuresCarryArbitrage
Machine Learning for Trading

This notebook describes how to evaluate a selected crypto perpetual funding strategy on a later holdout period. It reuses predictions generated from training data ending before the holdout, carries the chosen signal, allocation method, and exit overlay…

CryptoPerpetual futuresCarryBacktesting
Machine Learning for Trading

The notebook trains a vanilla autoencoder on standardized hourly returns for a group of crypto perpetual markets. Its encoder compresses the cross-asset return vector into a two-dimensional latent representation, and its decoder reconstructs the input. The…

CryptoPerpetual futuresMachine learningVolatility
Machine Learning for Trading

This notebook implements a long-only RSI mean-reversion rule for BTC/USDT perpetuals using an event-driven backtesting engine. It aggregates intraday bars into UTC daily OHLCV data, computes a rolling gain-and-loss RSI, enters when the indicator falls below…

CryptoPerpetual futuresMean reversionTechnical indicators
Machine Learning for Trading

This notebook explains how to construct forward price-return labels for an eight-hourly crypto perpetuals panel. It shifts bar-open timestamps to the time completed-bar data becomes available, then calculates future returns on the contract price series…

CryptoPerpetual futuresMean reversionStatistics
Machine Learning for Trading

This case study selects one configuration from a frozen pool of crypto perpetual futures strategies spanning multiple return and direction labels, portfolio sizing methods, and risk overlays. It chooses the highest validation Sharpe, then examines…

CryptoPerpetual futuresBacktestingStatistics
Machine Learning for Trading

This notebook uses double machine learning to estimate whether deviations in perpetual-futures premiums relate to subsequent eight-hour returns, and whether the estimated relationship differs between high- and low-volatility markets. It describes a panel…

CryptoPerpetual futuresMachine learningStatistics
Machine Learning for Trading

This notebook trains a Proximal Policy Optimization agent to liquidate a fixed order over a set horizon. It compares the learned pacing policy with TWAP and an Almgren–Chriss schedule, measuring implementation shortfall and examining when each strategy…

CryptoPerpetual futuresExecutionMachine learning