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

100 documents

Machine Learning for Trading

The document demonstrates a VectorBT workflow for a long-only Bitcoin RSI mean-reversion rule. It calculates RSI from daily close prices, enters when the prior day’s reading falls below a lower threshold, and exits when it exceeds an upper threshold.…

CryptoMean reversionTechnical indicatorsBacktesting
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 audit compares multiple backtesting engines on shared historical inputs for ETF allocation, CME futures, crypto perpetuals with funding, foreign exchange, and US equities. Each supported pair receives the same content-addressed market data and frozen…

BacktestingExecutionMulti-assetFutures
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 notebook compares three ways to convert signed return predictions into binary positions: a fixed zero cutoff, a trailing percentile of each symbol’s own scores, and a cross-sectional percentile across symbols. It measures signal activation and state…

Machine learningTechnical indicatorsCryptoEquities
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
Machine Learning for Trading

This notebook estimates whether a crypto perpetuals premium z-score is associated with subsequent eight-hour returns under an intervention, adjusting for price volatility, funding rate, and the premium’s deviation from its recent mean. Double machine…

CryptoPerpetual futuresMachine learningStatistics
Machine Learning for Trading

This notebook isolates results for the LEAN engine from an audit comparing retained real-strategy runs with matching ML4T Backtest profiles. It identifies four supported workloads: ETF allocation, crypto perpetual funding, USD-quoted FX allocation, and a US…

Multi-assetBacktestingExecutionCrypto
Machine Learning for Trading

This notebook describes how to produce holdout predictions for a selected crypto perpetuals funding strategy. It resolves the configuration from validation results, carries its checkpoint choice forward, and builds a new training specification using data…

CryptoPerpetual futuresMachine learningBacktesting
Machine Learning for Trading

This document studies position-level exits added to an existing crypto perpetual strategy: fixed stop losses, trailing stops, and time-based exits. It explains that these controls only close positions selected by the underlying strategy, and evaluates them…

CryptoPerpetual futuresRisk managementBacktesting
Machine Learning for Trading

This notebook compares DQN, PPO, and A2C in a simulated cryptocurrency trading environment. It calibrates a GARCH(1,1) volatility process on hourly Bitcoin perpetual-futures returns, then simulates paths that preserve volatility clustering while leaving…

Machine learningCryptoPerpetual futuresBacktesting
Machine Learning for Trading

This notebook describes how to generate holdout predictions for a crypto perpetual funding strategy after its configuration has been selected using validation results. It resolves the highest-Sharpe eligible validation backtest, carries over the model…

CryptoPerpetual futuresMachine learningBacktesting
Machine Learning for Trading

This module defines a point-in-time simulation environment for executing a large sell order in crypto perpetual futures. Its observations combine remaining inventory and time with market volatility, premium index, relative volume, hour of day, and time to…

CryptoPerpetual futuresExecutionMarket microstructure
Machine Learning for Trading

This document describes a pipeline for downloading official Binance USD-M perpetual funding records, normalizing them, and caching them in a columnar file. Monthly archives are fetched concurrently for the requested symbols and date range. The records are…

CryptoPerpetual futuresDerivatives pricingBacktesting
Machine Learning for Trading

This analysis selects one configuration from a frozen pool of crypto perpetual-futures candidates spanning four prediction labels and multiple strategy stages. It chooses the highest validation Sharpe and treats label, split, and execution details as part of…

CryptoPerpetual futuresStatisticsBacktesting
Machine Learning for Trading

This notebook compares gradient boosting configurations for crypto perpetual futures using features built around the premium of perpetual contracts over spot. It varies tree capacity and loss function, including squared, absolute, and Huber losses, and…

CryptoPerpetual futuresMachine learningBacktesting
Machine Learning for Trading

This notebook develops model-based features for crypto perpetual futures: per-asset conditional volatility forecasts from GJR-GARCH and a market-wide stressed-regime probability from a two-state Gaussian hidden Markov model fitted to funding settlements.…

CryptoPerpetual futuresVolatilityMachine learning
Machine Learning for Trading

This case study lays out a research pipeline for crypto perpetual futures, treating funding payments exchanged between long and short positions at regular settlements as a potential return source. It describes data and model stages from label construction…

CryptoPerpetual futuresFuturesMachine learning
Machine Learning for Trading

This notebook evaluates a DeFi total value locked series as alternative data for trading ether. It organizes the review around four questions: whether the series relates to forward returns, whether the data is sound and reconstructible, whether its use is…

CryptoDeFiOn-chain dataStatistics
Machine Learning for Trading

This demo outlines an always-on crypto trading loop connected to Alpaca’s USD spot market. It maps a perpetual-futures case-study universe to the venue’s supported spot pairs, making clear that only a subset can be traded there. The example signal is a…

CryptoSpot marketsPerpetual futuresMomentum
Machine Learning for Trading

This notebook demonstrates covariate-drift monitoring for ETF momentum features and crypto perpetual futures features across contrasting market windows. It compares Population Stability Index, which measures changes in individual feature distributions, with…

Machine learningStatisticsRisk managementCrypto