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

This notebook turns model rankings into simple crypto perpetual-futures portfolios so later experiments can measure the effect of changing sizing, costs, or risk controls. It applies entry rules such as selecting the highest-scored contracts for longs and…

CryptoPerpetual futuresBacktestingPortfolio construction
Machine Learning for Trading

This notebook uses Optuna to tune LightGBM return models while considering both cross-sectional information coefficient (IC) and prediction turnover. A single-objective search maximizes IC for comparison; an NSGA-II multi-objective search identifies…

Machine learningStatisticsFuturesCrypto
Machine Learning for Trading

This analysis compares three ways to convert signed model return forecasts into binary positions: a fixed zero cutoff, a trailing percentile for each symbol, and a cross-sectional percentile across symbols. It applies the rules to registered validation…

Machine learningExecutionBacktestingCrypto
Machine Learning for Trading

This notebook trains a PPO agent to schedule a parent sell order across hourly perpetual-futures bars. It augments price and volume history with the perpetual premium and time to the next funding settlement, while lagging information that would not yet be…

CryptoPerpetual futuresExecutionBacktesting
Machine Learning for Trading

This notebook introduces vectorized backtesting with VectorBT through a long-only RSI mean-reversion rule on Bitcoin perpetual market data. It calculates a close-based RSI, enters when the prior day’s reading is below a lower threshold, and exits when it is…

CryptoPerpetual futuresMean reversionTechnical indicators
Machine Learning for Trading

This notebook compares six allocation methods on crypto perpetual strategies that have already passed a baseline selection funnel. It keeps each strategy’s predictions and entry rules fixed, then changes how capital is assigned: one allocator uses model…

CryptoPerpetual futuresPosition sizingPortfolio construction
Machine Learning for Trading

This notebook adds a temporal convolutional network (TCN) to a comparison of sequence models for forecasting cryptocurrency perpetual funding premiums. Causal padding ensures each position uses only current and earlier observations, while dilated…

CryptoPerpetual futuresMachine learningBacktesting
Machine Learning for Trading

This module estimates parameters for simulated crypto markets used in reinforcement-learning environments. It loads hourly perpetual-market data for a selected symbol, computes close-to-close log returns, and fits a GARCH(1,1) volatility model. If the…

CryptoPerpetual futuresVolatilityMarket microstructure
Machine Learning for Trading

This notebook studies whether an extreme perpetual futures premium affects subsequent BTC returns or premium reversion. It defines treatment as a high-premium state and compares a broad market outcome, which may be influenced by many forces, with premium…

CryptoPerpetual futuresArbitrageStatistics
Machine Learning for Trading

This notebook uses maximum favorable excursion (MFE) and maximum adverse excursion (MAE) to ground triple-barrier label widths in observed price paths. For a position entered at a bar’s close, it measures the best favorable and worst adverse movement over a…

EquitiesFuturesCryptoVolatility
Machine Learning for Trading

This analysis asks whether the data can support a cross-sectional crypto perpetual strategy before fitting a model or making forecasts. The proposed approach ranks contracts by premium at each funding settlement, then buys one side of the ranking and sells…

CryptoPerpetual futuresStatisticsBacktesting
Machine Learning for Trading

This notebook explains how to turn fitted GJR-GARCH and hidden Markov models into trading features while controlling look-ahead bias. GJR-GARCH estimates conditional volatility and captures the greater impact of negative return shocks; a two-state Gaussian…

CryptoPerpetual futuresVolatilityMachine learning
Machine Learning for Trading

This notebook compares two causal questions about extreme premiums in Bitcoin perpetual futures: whether a premium state predicts forward returns, and whether it predicts subsequent premium reversion. The treatment is a binary indicator for a premium z-score…

CryptoPerpetual futuresStatisticsMarket microstructure
Machine Learning for Trading

This notebook compares DQN, PPO, and A2C in a shared simulated trading environment calibrated to hourly Bitcoin perpetual-futures returns. A GARCH(1,1) model supplies volatility clustering, while the environment charges for position changes and applies an…

Machine learningCryptoPerpetual futuresVolatility
Machine Learning for Trading

The document explains a temporal convolutional network for predicting crypto perpetual funding premiums from a 60-settlement window. Four causal convolution blocks use a kernel of three and dilations of 1, 2, 4, and 8. Their receptive field spans 61…

CryptoPerpetual futuresMachine learningMean reversion
Machine Learning for Trading

This notebook measures how execution costs affect the already selected crypto perpetuals configuration. It holds the model, checkpoint, entry rule, allocator, and risk control fixed, then reruns the strategy across a declared grid of round-trip charges on…

CryptoPerpetual futuresBacktestingExecution
Machine Learning for Trading

This notebook tests a two-model exit design on hourly BTC, ETH, and SOL perpetual data. An entry classifier identifies unusually strong forward returns; its predicted probability then joins technical features in a separate model that estimates whether the…

CryptoPerpetual futuresMachine learningBacktesting
Machine Learning for Trading

This analysis compares validation predictions from several model families for perpetual futures funding. It explains that information coefficient measures the ranking of subsequent returns, AUC measures the ordering of up and down outcomes, and log loss…

CryptoPerpetual futuresMachine learningStatistics
Machine Learning for Trading

This case study assesses DeFi Llama total value locked data as a possible input to an Ether trading research pipeline. It separates signal strength, data quality, legal suitability, and commercial value, with legal issues and the lack of reconstructible…

CryptoDeFiOn-chain dataStatistics
Machine Learning for Trading

This notebook evaluates position-level exits on crypto perpetual futures positions selected by an earlier allocation stage. It defines fixed loss stops, trailing stops tied to each position’s best price, and time exits after a set holding period. The…

CryptoPerpetual futuresRisk managementBacktesting
Machine Learning for Trading

This document describes a dataset and workflow for studying cryptocurrency perpetual futures alongside their premium index. It outlines hourly OHLCV observations and eight-hour premium readings across a configured universe, with download, loading, filtering,…

CryptoPerpetual futuresFuturesArbitrage
Machine Learning for Trading

This notebook walks through a deployment rehearsal for a crypto funding-rate direction model. It trains a three-class LightGBM model on historical Binance-derived perpetual data, then fetches live hourly bars and funding rates from OKX, aggregates data to…

CryptoPerpetual futuresSpot marketsMachine learning
Machine Learning for Trading

This notebook assesses whether Binance perpetual-futures data can support a cross-sectional strategy that ranks contracts by premium and takes long and short positions. It does not fit a model or make forecasts. Instead, it checks the declared trading…

CryptoPerpetual futuresStatisticsBacktesting
Machine Learning for Trading

This configuration specifies a long-short strategy research workflow for crypto perpetual futures. It defines a 19-asset volume-selected universe, decisions aligned to eight-hour funding settlements, and execution at the funding timestamp. The primary target…

CryptoPerpetual futuresCarryMean reversion