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

4,613 documents

Strategy library

This long-only momentum strategy transforms the Commodity Channel Index through scaling, weighted moving average smoothing, and a hyperbolic tangent mapping that confines readings to a range from -1 to +1. It enters when the indicator rebounds through a…

MomentumTechnical indicatorsRisk managementPosition sizing
Strategy library

This strategy combines three Supertrend direction signals for long entries and a separate set of three for short entries. It opens a long position when all selected buy indicators are up, and opens a short position when all selected sell indicators are down;…

Technical indicatorsTrend followingRisk managementPosition sizing
Strategy library

This document outlines a trend-following strategy combining fast and slow moving-average signals with a trend ribbon based on price relative to another moving average. It describes configurable position sizing using a portfolio percentage and leverage, plus…

Trend followingTechnical indicatorsPosition sizingRisk management
Strategy library

This long-only strategy combines Bollinger Bands, RSI, and ATR for mean-reversion trades. It looks for a close below the previous candle’s lower Bollinger Band, alongside a bullish previous candle and an RSI reading at or below 25. It exits when RSI rises…

Technical indicatorsMean reversionVolatilityRisk management
Strategy library

This strategy generates long entries and exits from crossovers among three configurable moving averages. Traders can select each average’s type, lookback period, price source, and timeframe, and can enable or disable trading for each pair of averages. Upward…

Technical indicatorsTrend followingExecutionPosition sizing
Strategy library

This strategy scales exposure to SPY using rolling price extremes, with a 200-day moving average as a market-regime filter. When SPY is above that average, a close at a period low increases the target share allocation in increments. A close at a period high…

EquitiesTrend followingTechnical indicatorsPosition sizing
Strategy library

This model adapts Turtle-style trend trading through two breakout systems for long and short entries and exits. It sizes units using account capital, a chosen risk fraction, ATR as a volatility measure, and contract point value. A second account calculation…

CryptoFuturesTrend followingBreakout
Strategy library

This document presents a configurable daily-timeframe strategy framework built from five ICT or smart-money-concept modules: acceptance and rejection at support or resistance, swing failure patterns, higher-timeframe liquidity magnets, displacement moves,…

Technical indicatorsRisk managementPosition sizingExecution
Strategy library

This strategy enters long when price crosses above a simple moving average and short when it crosses below. It combines an initial stop, a rule to move protection to the entry price after a favorable move, and two profit objectives that scale out a larger…

FuturesTrend followingTechnical indicatorsRisk management
Strategy library

This example strategy uses a 14-period Relative Strength Index (RSI) with overbought and oversold thresholds to generate long and short signals. It also describes custom conditions, risk-based position sizing, fixed take-profit and stop-loss levels, chart…

CryptoFuturesTechnical indicatorsRisk management
Strategy library

This Pine Script example shows how to set a strategy’s stop loss and take profit as cash amounts in the symbol’s currency. It uses a moving-average crossover for illustrative long and short entries, then converts the configured money amounts into tick…

Risk managementPosition sizingTechnical indicators
Strategy library

The document describes how to convert between coin quantities and contract counts for OKX swap instruments. It uses the exchange’s public contract conversion endpoint, supplying an instrument identifier, conversion price, quantity, and—when converting…

CryptoDerivatives pricingPerpetual futuresPosition sizing
Strategy library

This strategy compares selected altcoins’ prices relative to Bitcoin with a shared index. It aims to short coins trading above that reference and buy coins below it, with position values scaled to the size of each deviation. The updated approach uses an…

CryptoFuturesPerpetual futuresMean reversion
Strategy library

The document contains a configurable long-and-short trading system for Bitcoin, with a published four-hour backtest configuration. Its visible logic combines directional movement and ADX strength, an EMA spread compared with its smoothed value, and a custom…

CryptoTechnical indicatorsRisk managementPosition sizing
Strategy library

This short-term cryptocurrency strategy combines RSI, Bollinger Bands, and VWAP. The description proposes buying when price crosses above the lower band or RSI falls below 25, provided price is above VWAP; it proposes selling when price crosses above the…

CryptoFuturesMean reversionTechnical indicators
Strategy library

This Freqtrade example demonstrates splitting trade entries and exits into equal time-based portions. It sets a per-slice stake from the proposed amount, then uses filled order counts and timestamps to decide when another entry or exit portion is due. The…

ExecutionPosition sizingTechnical indicators
MQL5 articles

This article generalizes a position sizer originally tied to one prop-firm challenge by moving program-specific terms into a configurable rule set. The rules cover phase targets, daily and overall loss limits, whether the daily limit expands with intraday…

Position sizingRisk managementMachine learningStatistics
MQL5 articles

The article proposes moving parameter reoptimization into an Expert Advisor so it can adapt without stopping for repeated manual runs in the Strategy Tester. A genetic algorithm searches for inputs, initially for a selected strategy and later potentially for…

Machine learningBacktestingPosition sizingRisk management
MQL5 articles

The article describes an MQL5 trading system organized as an ensemble of seven agents with different intended horizons and styles, including trend following, momentum, breakout, scalping, volatility, and swing trading. Each agent interacts with market data…

Machine learningPortfolio constructionPosition sizingRisk management
MQL5 articles

The article explains an MQL5 Expert Advisor that uses RSI thresholds to open trades and a zone recovery process to respond when price moves against an initial position. It defines zone boundaries and profit targets around the entry, then opens an opposing…

ForexTechnical indicatorsPosition sizingRisk management
MQL5 articles

The article describes a market-neutral limit-order grid built from historical return distributions rather than a directional forecast. It calculates rolling returns from price data, sorts them, and uses empirical percentiles to estimate levels at which…

ForexStatisticsGrid tradingPosition sizing
Machine Learning for Trading

This notebook constructs market microstructure measures from NASDAQ ITCH trade data, aggregates trades into intraday bars, and distinguishes liquidity proxies from order-flow signals and order-book state. It classifies individual trades with a tick rule…

EquitiesMarket microstructureHigh-frequency tradingStatistics
Machine Learning for Trading

This notebook demonstrates how to tune StopLoss, TakeProfit, and TrailingStop rules for a momentum portfolio while preserving a chronological separation between calibration and evaluation. It tests individual rule widths and joint combinations using…

EquitiesRisk managementBacktestingMomentum
Machine Learning for Trading

This document compares alternative position-sizing methods for CME futures strategies selected from a baseline ranked by equal-weight validation Sharpe. Equal weighting treats every selected product alike, although futures contracts can have very different…

FuturesCommoditiesPosition sizingPortfolio construction