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
Lumibot strategies
7 documents
QuantRocket
7 documents
Awesome Quant
1 documents

Search the library

1,747 documents

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

This demonstration describes the operational shape of a continuously running crypto strategy connected to a USD spot broker. It maps a larger perpetual-futures case-study universe to the smaller set of available spot pairs, then routes a momentum z-score…

CryptoPerpetual futuresSpot marketsMomentum
Machine Learning for Trading

This notebook trains a reinforcement learning agent to schedule a fixed sell order across hourly bars from a crypto perpetual futures market. Its state includes lagged returns, volatility, prior-hour volume, the perpetual premium to spot, and time until…

CryptoPerpetual futuresExecutionMachine learning
Machine Learning for Trading

This evaluation notebook screens financial and model-based features for their relationship to the next eight-hour return of crypto perpetual futures. It builds the evaluation sample from walk-forward validation windows, keeps the final holdout outside the…

CryptoPerpetual futuresMachine learningStatistics
Machine Learning for Trading

The document explains why TabM is used to model perpetual funding panel data: its shared neural backbone combines all input features, while nonlinear layers can represent interactions. Unlike a tree that chooses one feature at each split, this design can use…

CryptoPerpetual futuresMachine learningBacktesting
Machine Learning for Trading

This notebook studies gradient-boosted models for forecasting returns and direction in crypto perpetuals. Its grid varies tree capacity and loss function, including squared-error, absolute-error, and Huber objectives, while scoring models at multiple points…

CryptoPerpetual futuresMachine learningMomentum
Machine Learning for Trading

This notebook estimates whether the premium z-score of a crypto perpetual affects subsequent eight-hour returns when three declared drivers—price volatility, funding rate, and average premium deviation—are held fixed. Because treatment is continuous, the…

CryptoPerpetual futuresMachine learningStatistics
Machine Learning for Trading

This exploratory analysis profiles hourly OHLCV for crypto perpetual contracts alongside an eight-hour premium index. It examines symbol and date coverage, changing contract membership, premium units and distribution, OHLC integrity, missing values, and…

CryptoPerpetual futuresMarket microstructureStatistics
Machine Learning for Trading

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

CryptoPerpetual futuresExecutionBacktesting