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
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

9,797 documents

FMZ digest

This article introduces BIAS, the percentage distance between a closing price and its moving average, and interprets large positive or negative deviations as potential mean-reversion conditions. It then builds a directional strategy by comparing short- and…

FuturesMean reversionTechnical indicatorsBacktesting
FMZ digest

This article walks through connecting Claude Pro to an FMZ account through the Model Context Protocol (MCP), then using natural-language requests to inspect and operate trading tools. Demonstrations include checking running strategies, placing a series of…

CryptoFuturesPerpetual futuresExecution
FMZ digest

This article describes a monitoring script that polls funding rates for perpetual futures across multiple exchanges. It uses a separate worker for each exchange, applies exchange-specific delays to reduce request pressure, and handles venues differently…

CryptoFuturesPerpetual futuresCarry
FMZ digest

The document presents a historical overview of managed futures trading systems in three broad generations. Early systems are described as relatively simple trend followers, often using moving-average rules in a period characterized by persistent commodity…

FuturesTrend followingTechnical indicatorsPortfolio construction
FMZ digest

The document describes adapting a fixed-weight, multi-indicator trading strategy by feeding its combined indicator score into a small neural network. Indicator weights vary by classified market state, but are initially hand-set. The proposed model uses the…

Machine learningTechnical indicatorsFuturesCrypto
FMZ digest

The document describes a same-asset calendar spread strategy using ETC futures with different expiries. It defines the spread from the bid and ask prices of weekly and quarterly contracts, then applies Bollinger Bands to the spread series. A move below the…

CryptoFuturesArbitrageMean reversion
FMZ digest

This tutorial compares several moving-average trading rules using daily commodity futures data. It starts with a single-average rule that trades when price crosses its average, then shows dual-average crossovers, adds conditions requiring the averages to…

Technical indicatorsTrend followingMomentumFutures
FMZ digest

This article explains R-Breaker, a commodity futures strategy that uses the prior day's high, low, and close to calculate a pivot and three support and resistance levels on each side. With no position, it enters long above the upper breakout level or short…

FuturesCommoditiesBreakoutTrend following
FMZ digest

This document presents a Pine strategy intended to help discretionary traders automate a preplanned entry and exit process. The configurable inputs control trade direction, order size, initial entry mode, stop distance, trailing offset, and the price…

ExecutionRisk managementTechnical indicatorsFutures
FMZ digest

This guide explains the settings exposed by FMZ’s MyLanguage trading class library, which lets users configure execution and order behavior when creating a trading bot. It compares bar-based execution, which evaluates strategy logic after a candle completes,…

FuturesSpot marketsExecutionPosition sizing
FMZ digest

The document presents a short-term RSI2 strategy that seeks pullbacks within a broader trend. In its stock-market description, a long-term moving average defines the permitted direction: look for longs above the average when RSI2 is very low, and shorts…

FuturesMean reversionTechnical indicatorsRisk management
FMZ digest

This article walks through the design of a simple martingale-like strategy for crypto perpetual futures. It explains how to retrieve total account equity when an exchange API exposes it differently from available balance, and defines helper routines for…

CryptoFuturesPosition sizingRisk management
FMZ digest

The document introduces two stake-sizing schemes through coin-toss examples and simple simulations. Forward Martingale doubles the position after each loss and resets it after a win, aiming for a small gain per completed sequence. Reverse Martingale instead…

FuturesPosition sizingRisk managementBacktesting
FMZ digest

The document outlines a way to route TradingView alert webhooks directly to an FMZ robot. A small HTTP service runs alongside the robot, listens for POST requests, checks supplied access and secret keys, and translates a requested action and amount into spot…

ExecutionCryptoFuturesSpot markets
FMZ digest

This tutorial introduces spot–futures hedging as a form of spread trading and uses a research environment to examine an example trade. The example concerns opening and closing a hedge between BTC/USDT spot and a quarterly futures contract, with separate…

CryptoFuturesSpot marketsArbitrage
FMZ digest

This document explains a Pine strategy tool for traders who choose entries manually but want software to manage subsequent exits. The user can configure a long or short direction, an immediate or limit entry, order size, a fixed stop loss, and a trailing…

ExecutionRisk managementPosition sizingFutures
FMZ digest

This comparison describes differences between commodity futures systems using CTP and cryptocurrency exchange APIs. It covers historical data availability, communication patterns, market depth and trade data, request limits, and system stability. CTP…

FuturesCryptoMarket microstructureExecution
FMZ digest

This article examines a futures execution failure that can occur when an exchange’s position endpoint lags behind its order and fill data. A strategy may see an old position after a limit order fills, conclude that the order did not execute, and submit…

CryptoFuturesExecutionRisk management
FMZ digest

This article explains box theory as a breakout method built around a recent trading range. The upper boundary represents resistance and the lower boundary support; a move above or below a boundary is treated as a possible transition into a higher or lower…

CryptoFuturesBreakoutTrend following
FMZ digest

This article describes a crypto futures framework that periodically selects liquid contracts and tunes a double moving average crossover strategy for each one. It first ranks USDT contracts by dollar trading volume, then backtests multiple fast and slow…

CryptoFuturesTrend followingTechnical indicators
FMZ digest

This installment stress-tests a futures strategy that sells assets after rises and buys after falls, using a simplified simulation to examine losses when one altcoin trends independently of the rest. It represents a 20-currency basket with a stable BTC proxy…

CryptoFuturesRisk managementPosition sizing
FMZ digest

This tutorial translates a closing-price trend strategy into a multi-contract crypto futures implementation. It calculates Average True Range (ATR), smooths each bar’s typical price with an exponential moving average, and forms upper and lower bands by…

CryptoFuturesTrend followingBreakout
FMZ digest

The document explains the standard RSI as a normalized comparison of recent average gains and losses, then reviews two common uses: fading readings near overbought or oversold thresholds, and trading crossovers between short- and long-period RSI lines. It…

FuturesTechnical indicatorsMomentumMean reversion
FMZ digest

The document explains how a crypto spot–futures arbitrage idea based on spread mean reversion becomes more complicated in live trading. The proposed approach enters when the spread’s Z-score moves beyond a threshold and exits as it reverts, while an…

CryptoFuturesSpot marketsArbitrage