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

26 documents

Stratmill research code

This helper prepares spread changes and their lagged values as inputs for a regression model. It can expand the lag features with pairwise products, split a chosen in-sample period into ordered training and test sets, and keep a separate out-of-sample…

Machine learningStatisticsBacktestingPairs trading
Stratmill research code

This code module outlines methods for constructing sparse portfolios intended to exhibit mean reversion. It includes Box–Tiao canonical decomposition, greedy support selection, semidefinite optimization under volatility constraints, and sparsity methods…

Mean reversionPortfolio constructionStatisticsMachine learning
Stratmill research code

This documentation landing page introduces ArbitrageLab, a Python library covering end-to-end pairs-trading strategies and tools for developing strategies. It organizes its subject matter around multiple approaches, including distance methods, cointegration,…

Pairs tradingMean reversionArbitrageMachine learning
Stratmill research code

This code excerpt implements neural-network components for a momentum forecasting model based on a temporal fusion transformer design. It includes feed-forward layers, gated linear units, gated residual networks with skip connections and normalization, and…

Machine learningMomentumStatisticsBacktesting
Stratmill research code

This module outlines an out-of-sample forecasting workflow built around Auto-ARIMA. It first applies an Augmented Dickey-Fuller test at a five percent significance level, repeatedly differencing the training series until the test indicates stationarity or a…

StatisticsMachine learningBacktesting
Stratmill research code

This module fits a bivariate mixture of Clayton, Student-t, and Gumbel copulas, motivated by a mixed-copula pairs trading approach. It first maps each input series to empirical cumulative probabilities, then estimates component parameters and mixture weights…

Pairs tradingStatisticsMachine learningRisk management
Stratmill research code

This strategy turns changes in a spread series into long and short entry thresholds. It separates historical spread changes into positive and negative values, then calculates a chosen upper quantile of positive changes and a lower quantile of negative…

Pairs tradingMean reversionStatisticsMachine learning
Stratmill research code

This implementation builds a committee of neural network regressors, trains each member on the same training data with validation data and early stopping, then averages their predictions. The model class and parameters, committee size, training epochs, and…

Machine learningStatisticsBacktesting
Stratmill research code

This code utility builds pairwise dependence matrices from columns in a feature DataFrame. It supports information-based measures, distance correlation, rank correlation, GPR and GNPR distances, and optimal-transport dependence. Parameters let users…

StatisticsPortfolio constructionMachine learning
Stratmill research code

This data-preparation workflow builds model inputs for a momentum strategy from asset closing prices. It clips prices using bounds based on an exponentially weighted mean and standard deviation, derives daily returns and volatility, and creates a next-period…

Machine learningMomentumVolatilityTechnical indicators
Stratmill research code

This code implements a bivariate Gumbel copula for representing dependence between two uniform variables. It provides methods to generate paired samples from independent uniform inputs, calculate the copula density and cumulative distribution, and evaluate a…

StatisticsMachine learning
Stratmill research code

This experiment runner configures repeated, rolling train-and-test evaluations for LSTM and Temporal Fusion Transformer models on a multi-asset Quandl dataset. It offers variants with different input sequence lengths and optional changepoint feature…

Machine learningBacktestingMulti-assetStatistics
Stratmill research code

The document presents a literature-search workflow for financial machine learning and quantitative finance, where relevant work may be spread across econometrics, machine learning, and other fields. It describes using a paper-mapping service to find related…

Machine learningStatisticsPortfolio construction
Stratmill research code

This code reference presents several ways to measure dependence or distance between financial data vectors and matrices. It defines angular distance from Pearson correlation, plus absolute and squared variants that alter how negative or strong correlations…

StatisticsPortfolio constructionMachine learning
Stratmill research code

This code describes a deep learning approach for turning sequential market features into position signals. Its example model uses an LSTM layer followed by dropout and a time-distributed output constrained through a hyperbolic tangent activation. Training…

Machine learningMomentumPortfolio constructionBacktesting
Stratmill research code

This code module implements three neural-network architectures that could be applied to quantitative prediction tasks: a feed-forward multilayer perceptron, an LSTM-based recurrent network for sequential inputs, and a Pi-Sigma network that multiplies…

Machine learningBacktestingStatistics
Stratmill research code

The introduction presents a machine-learning framework for selecting securities for pairs trading. It frames pair discovery as a search-space problem: limiting candidates to securities in the same sector may exclude useful relationships, while searching…

Pairs tradingMachine learningEquitiesArbitrage
Stratmill research code

This module describes a candidate-selection process for pairs trading based on dimensionality reduction and clustering. It starts from a panel of asset prices, converts prices to returns, standardizes them, and applies principal component analysis to create…

Pairs tradingMachine learningStatisticsEquities
Stratmill research code

This abstract copula framework provides shared methods for bivariate copula implementations, with named families including Archimedean, Gaussian, and Student forms. It evaluates copula density and cumulative joint probability, and calculates a conditional…

StatisticsMachine learningPortfolio construction
Stratmill research code

This overview introduces neural networks as flexible models for financial prediction and describes multilayer perceptrons, recurrent networks with LSTM cells, and higher-order neural networks. It explains how input, hidden, and output layers combine…

Machine learningStatisticsEquitiesBacktesting
Stratmill research code

This Python class appends expanded values to a tabular dataset using polynomial bases or feature products. Its available polynomial families are Chebyshev, Legendre, Laguerre, and ordinary powers; the requested degree controls how many orders are generated.…

Machine learningStatistics
Stratmill research code

This data-preparation module builds time-series inputs for a deep-learning momentum model. It reads close prices, clips extreme values using an exponentially weighted mean and standard deviation, then derives daily returns and volatility. The target is a…

Machine learningMomentumVolatilityTechnical indicators
Stratmill research code

This overview introduces the Transformer architecture from the paper “Attention Is All You Need.” Earlier sequence-to-sequence systems commonly used recurrent or convolutional networks, often combined with attention. The Transformer instead relies on…

Machine learningStatistics