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

9,660 documents

backtrader

This Backtrader example compares three ways to attach protective exits to a moving-average crossover entry: a stop set after the entry completes, a stop submitted alongside the entry using cheat-on-close behavior, and a parent-child order arrangement that…

EquitiesRisk managementExecutionBacktesting
Stratmill research code

This example generates order-latency records for a crypto trading backtest from historical feed data. It first keeps events that contain both exchange and local timestamps, then aggregates to one record per second using the last timestamps in each interval.…

CryptoHigh-frequency tradingExecutionMarket microstructure
Hummingbot docs

This brief configuration note explains how Hummingbot users can replace an exchange’s default fee assumptions with custom fee rates, such as rates that reflect a VIP discount. The setting is stored in a fee override configuration file located in the…

CryptoExecutionMarket microstructure
Hyperliquid docs

HIP-1 defines capped-supply fungible tokens and native spot order books. A token’s genesis configuration sets its name, precision, maximum supply, initial allocations, optional allocation to holders of an anchor token, and possible initialization of…

CryptoSpot marketsMarket microstructureExecution
MQL5 code base

The document describes an MQL5 utility for calculating pip values and position sizes from a target account-currency risk and stop-loss distance. It addresses cross-currency instruments by first using the platform’s symbol tick-value and tick-size properties,…

ForexPosition sizingRisk managementExecution
NautilusTrader

This design document sets out policies for building a trading system around data integrity, controlled failure, and verifiable behavior. It prioritizes reliability, then performance, modularity, testability, maintainability, and deployability. Invalid…

Risk managementExecutionBacktestingMarket microstructure
Lumibot

This reference guide describes Lumibot as a Python framework for creating, executing, and backtesting trading strategies across several asset classes and broker or data services. It outlines the strategy lifecycle, including initialization and a recurring…

Multi-assetBacktestingExecutionMachine learning
NautilusTrader

This tutorial demonstrates replaying Bybit’s depth-500 order book deltas in a NautilusTrader backtest. It loads a daily archive or a small sample, converts the records into instrument-specific order book events, writes them to a Parquet catalog, and…

CryptoMarket microstructureExecutionBacktesting
FMZ live strategies

This live-trading dashboard describes a Gate.io spot triangular arbitrage operation using BTC, ETH, and USDC pairs. Trade logs show the bot routing through USDT, executing three-leg hedged trades when quoted prices imply a small spread, and recording…

CryptoArbitrageExecutionRisk management
OctoBot

This article surveys ten cryptocurrency trading bot platforms and outlines the kinds of automation they offer. Features described include grid trading within a price range, dollar-cost averaging, signal-based trading, market making, technical-indicator…

CryptoGrid tradingMarket makingExecution
MQL5 code base

This document explains a workflow for extending a MetaTrader 4 condition scanner. A new scan is assigned an identifier, then organized into custom indicators, chart and panel indicators, and an include file that returns a value for each tested bar. The…

Technical indicatorsExecutionHigh-frequency trading
MQL5 code base

This sample configuration describes portfolio-level risk controls for a Chinese-market trading engine. It enables an intraday trailing-stop monitor that tracks dynamic equity and reduces the target position after a specified drawdown from the intraday high.…

Risk managementPosition sizingExecution
MQL5 code base

This document describes an on-chart trading panel for placing market and pending orders, managing position size, and automating exits. Traders can size positions using manual lots, a percentage of equity, or a fixed cash risk amount. The panel also supports…

ExecutionPosition sizingRisk managementTechnical indicators
FMZ forum

The article outlines a real-time ETH/USDT trading framework that combines LightGBM for tabular inputs with a Transformer for sequential data. It describes WebSocket market-data ingestion, minute-bar construction, technical, statistical, volume, and…

CryptoMachine learningTechnical indicatorsMarket microstructure
vn.py community

A forum participant asks whether a short position opened in one futures delivery month must be closed by buying the next lead contract at its higher quoted price when market attention shifts to that contract. The concern is that the apparent price gap…

FuturesExecutionRisk management
Freqtrade docs

This quick start explains how a Freqtrade strategy turns exchange candle data into indicators, entry and exit signals, and orders. A strategy is implemented as a Python class with separate methods for calculating indicators and populating long or short…

CryptoTechnical indicatorsBacktestingExecution
MQL5 code base

The 4click Trade Opener describes a chart-based workflow for opening trades with position size tied to a chosen risk budget. The user sets a risk percentage or fixed risk amount, the broker's minimum lot size, the number of positions, and a maximum slippage…

Position sizingRisk managementExecution
BigQuant

This BigQuant forum post presents a daily-bar backtest example that submits several limit buy orders during a bar callback. Before each order, the callback reads available cash and frozen cash from the trading account. The reported output shows those values…

EquitiesBacktestingExecutionRisk management
NautilusTrader

This technical guide explains how NautilusTrader connects to Polymarket’s central limit order book for binary outcome tokens. It outlines market data and execution components, wallet signature types, pUSD collateral, allowance setup, session keys, and…

CryptoOptionsExecutionMarket microstructure
Cryptohopper blog

The article explains backtesting as evaluating a trading strategy against historical market data before committing capital. It outlines a workflow: obtain suitable data, use or build a testing tool, repeatedly inspect results, then consider live or simulated…

CryptoBacktestingRisk managementExecution
MQL5 code base

This document explains a modular risk-control library for MetaTrader 5 expert advisors. Its position sizer calculates lot size from stop distance and a balance- or equity-based risk allowance, floors volume to the broker’s step, and returns zero when the…

Risk managementPosition sizingExecutionBacktesting
Hummingbot docs

The article explains liquidity through trading volume, bid-ask spread, slippage, and order book depth. Its example compares two books with similar quoted prices but different depth, showing how a large market order can incur greater price impact and…

CryptoDeFiMarket makingMarket microstructure
NautilusTrader

This reference explains how a crypto perpetual futures instrument is represented in a trading system. A perpetual swap has no expiration and tracks a crypto asset, while its metadata records identifiers, base, quote, and settlement currencies, inverse…

CryptoPerpetual futuresDerivatives pricingExecution
vn.py community

This forum post reports a desktop application crash after a progress bar finishes loading market bar data in a background task. The example uses PySide or Qt threading with a QRunnable, Peewee ORM selection, and a query against stored futures bar records.…

FuturesExecutionMarket microstructure