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

4,613 documents

Strategy library

This document presents a single-asset rebalancing method that compares an account’s cash balance with the marked value of its crypto holdings. When the imbalance exceeds a configurable threshold, it buys or sells part of the asset to move the two sides…

CryptoSpot marketsMean reversionPosition sizing
Strategy library

This script combines MACD crossovers with price breaks above recent pivot resistance or below pivot support. It adds direction checks from the 14-period RSI and positive or negative directional indicators, and requires ADX to exceed a threshold before taking…

Technical indicatorsBreakoutMomentumRisk management
Strategy library

This algorithm example demonstrates how to select and open an index put butterfly using weekly SPX options. It subscribes to SPX index data and SPXW options, filters for expirations 15 to 45 days away and strikes within three increments of the underlying,…

OptionsDerivatives pricingPosition sizingBacktesting
Strategy library

This single-venue strategy aims to keep the cash balance and the marked value of a crypto holding near parity. It compares the account’s cash with the asset value, then calculates half the difference as the amount to shift: buy when cash exceeds the…

CryptoMean reversionSpot marketsPosition sizing
Strategy library

This strategy example uses the crossover of short and long moving averages to identify possible trends and enter long positions. It calculates the averages from recent bar closes and combines trend direction with thresholds for the average spread and…

Trend followingTechnical indicatorsMomentumPosition sizing
Strategy library

This strategy script describes two selectable trading modes, labeled Break and ABLC, with an option to compare them. It exposes direction controls, a per-trade risk setting, a one-trade-per-day limit, and a time-based exit. Backtests can be restricted to a…

BreakoutRisk managementPosition sizingBacktesting
Strategy library

This document describes a periodic averaging strategy implemented for a crypto derivatives exchange. It opens an initial position, then checks unrealized profit or loss after each configured interval. If the position is losing by more than a chosen…

CryptoPerpetual futuresPosition sizingRisk management
Strategy library

This Indian equity swing strategy adapts the Turtle trend-following approach with separate 20-day and 55-day Donchian breakout systems. It describes exits using shorter Donchian channels and adds an EMA trend filter, an RSI threshold, volume confirmation,…

EquitiesTrend followingBreakoutTechnical indicators
Strategy library

This long-only strategy uses a long-term EMA as a trend filter and places a limit buy order at a shorter EMA when price is above that filter. Its stated design aims to enter on pullbacks while trading in the direction of the broader trend. The accompanying…

CryptoFuturesTrend followingTechnical indicators
Strategy library

This swing-trading framework combines four kinds of analysis: Wyckoff market phases, simplified volume-profile levels, mean-reversion signals, and trend following. It uses price and volume to classify accumulation or distribution, POC and value-area levels…

Multi-assetMean reversionTrend followingTechnical indicators
Strategy library

This strategy combines as many as five separately configured RSI series. Each has its own period and threshold. When an enabled RSI falls below its threshold, the strategy can enter long; it records the highest-period active trigger as the signal strength…

CryptoFuturesMean reversionTechnical indicators
Strategy library

This document outlines an intraday trend-following approach for Nasdaq 100 micro futures. It uses a fast and slow EMA crossover to signal direction, then checks that price is on the matching side of VWAP before entering. ATR sets different stop distances for…

FuturesTrend followingTechnical indicatorsRisk management
Strategy library

This strategy places buy and sell triggers on a grid whose center and levels adjust as a smoothed price reference changes. The user can select among several moving-average methods, choose whether signals use highs and lows or closes, and set grid spacing,…

Grid tradingTechnical indicatorsExecutionRisk management
Strategy library

This QuantConnect example demonstrates how a custom buying power model can change order sizing and buying-power checks in a backtest. It applies the model to hourly SPY data, rounds the maximum order quantity down to a multiple of 100 shares, and then…

EquitiesBacktestingPosition sizingRisk management
Strategy library

This strategy uses On-Balance Volume to identify an upward trend, then builds a long position through repeated entries. A signal occurs when OBV, centered by its moving average, crosses above zero while the fast EMA is above the slow EMA. The source allows…

CryptoFuturesTrend followingTechnical indicators
Strategy library

This trend-following system uses momentum over a configurable lookback and enters when the previous momentum reading is higher than the two preceding readings, or lower than both for a short signal. Its documented default momentum period is 2. At entry, it…

FuturesTrend followingMomentumRisk management
Strategy library

This strategy defines hammer and shooting star candles using the candle body and wick proportions. A hammer must be bearish, have a lower wick at least 0.9 times its body, an upper wick no more than 0.45 times the body, and a body at least 20% of the full…

FuturesTechnical indicatorsMean reversionRisk management
Strategy library

This short term strategy uses Stochastic RSI to identify overbought and oversold conditions for reversal entries. It derives Stochastic RSI from RSI, smooths the indicator, and looks for a crossover or crossunder in the relevant extreme region. A fast versus…

Mean reversionMomentumTechnical indicatorsPosition sizing
Strategy library

This strategy uses a 14-period RSI on an M5 timeframe to seek reversals from extreme readings. It enters long when RSI falls below 30 and short when RSI rises above 70, but only during a specified daily trading window. Each trade has a fixed 1% stop and 2%…

Technical indicatorsMean reversionRisk managementPosition sizing
Strategy library

This Pine Script strategy is designed to turn plotted indicator values into orders on a chart. It offers signal modes for signed pulses, threshold crossings, two-series crossovers, separate trigger series, and three-source logic. A built-in volume mode…

Technical indicatorsExecutionBacktestingPosition sizing
Strategy library

This document describes a grid strategy that places buy and sell orders across a defined price range. It opens a position when price moves across a grid level and closes it when price crosses back through the adjacent level, aiming to harvest repeated price…

CryptoFuturesGrid tradingRisk management
Strategy library

This Pine Script excerpt describes a configurable framework for evaluating trade exits and risk settings. It offers a choice between a risk-to-reward target and fixed percentage take-profit and stop-loss levels. In risk-to-reward mode, the target ratio is…

Risk managementBacktestingPosition sizingTechnical indicators
Strategy library

This strategy uses Kaufman’s Adaptive Moving Average (KAMA) as its trend signal, with configurable lookback and fast and slow smoothing lengths. A long setup requires KAMA to rise over a chosen interval, price to be above a simple moving average regime…

Trend followingTechnical indicatorsRisk managementPosition sizing