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 strategy uses a fast, medium and slow EMA to define the broader trend, then looks for a pullback and a renewed move through the fast EMA. The example uses 25-, 100- and 200-period averages: bullish alignment requires the fast EMA above the medium EMA…

Trend followingBreakoutTechnical indicatorsRisk management
Strategy library

This Pine Script strategy accepts an external buy or sell signal and manages one open position at a time. Same-direction signals are ignored while a position is open. An opposing signal can be configured to do nothing, close the position, or close it and…

Risk managementPosition sizingExecution
Strategy library

This strategy looks for breakouts from unusually narrow ranges in the Relative Strength Index. It measures the recent RSI high-to-low range, ranks that range against its historical window, and treats a low percentile rank as a squeeze. A long signal occurs…

MomentumBreakoutTechnical indicatorsPosition sizing
Strategy library

This BTC futures strategy uses a Fisher Yurik indicator derived from price extremes over a selected period. It opens a long position when the positive-side Fisher series rises from its prior value. The description presents a percentage-based profit target…

FuturesTechnical indicatorsTrend followingRisk management
Strategy library

This Bitcoin trend-following approach uses a fast and a slow moving average to define direction: an upward crossover signals a long entry and a downward crossover signals a short entry. RSI acts as a directional filter, allowing long entries above 50 and…

CryptoFuturesTrend followingMomentum
Strategy library

This short programming exercise demonstrates an RSI-based trading loop. It reads the latest market quote, account balances, and four-hour records, then calculates a 14-period RSI. When RSI is above 70 and the account holds the asset, it submits a sell order…

Technical indicatorsMean reversionPosition sizingExecution
Strategy library

This spot trading routine rebalances a coin and USDT toward a configured target share of portfolio value. It reads account balances and the ticker, values the coin holdings at the sell price, and compares that value with the target allocation. If the…

CryptoSpot marketsGrid tradingPosition sizing
Strategy library

This document presents a reusable backtesting template with placeholders for custom indicators, entry and exit rules, and signal generation. Its example logic uses RSI conditions, while optional ADX filtering can restrict trades to periods when the indicator…

BacktestingRisk managementPosition sizingExecution
Strategy library

This strategy opens a short position when a candle closes more than a configurable percentage above the upper Bollinger Band. It uses three staged entries with increasing dollar allocations: the first opens on the signal, while later entries are intended to…

Technical indicatorsMean reversionRisk managementPosition sizing
Strategy library

This intraday strategy pairs reversal candlestick patterns with MACD crossover confirmation. Bullish engulfing candles or hammers can support a long signal when MACD crosses above its signal line; bearish engulfing candles or shooting stars can support a…

MomentumTechnical indicatorsVolatilityRisk management
Strategy library

This educational example calculates order quantity from a chosen risk budget and a stop-loss distance expressed as a percentage of entry price. The risk budget can be set either as a percentage of account equity or as an absolute money amount. The code…

Risk managementPosition sizing
Strategy library

This strategy uses a fast and a slow moving average to define directional trades: an upward cross opens a long, and a downward cross opens a short. The document presents dynamic position sizing based on account equity and a user-defined risk setting,…

Trend followingTechnical indicatorsPosition sizingRisk management
Strategy library

This document presents a reusable Pine Script framework for backtesting strategies. Its stated design separates trade management from signal generation: a trader supplies conditions for starting and ending long or short positions, while the framework…

BacktestingRisk managementExecutionPosition sizing
Strategy library

This Pine Script outlines a long-only strategy intended for weekly charts. It enters when the closing price lies between two Hull moving averages, the MACD histogram is below zero, and both a nine-period RSI and its short moving average cross above a longer…

Technical indicatorsTrend followingRisk managementBacktesting
Strategy library

This Pine Script strategy builds a price range from the 08:00–08:15 New York session, locks its high and low, and tracks closes that break outside the range. During the 09:45–11:00 window, it enters when price retests the midpoint in the direction of the…

FuturesBreakoutRisk managementPosition sizing
Strategy library

This workflow describes automated long and short trading for USDT-margined perpetual futures. On a candle-close trigger, it reads account balance and market contract specifications, then calculates an order quantity from a configurable share of available…

Position sizingRisk managementExecutionPerpetual futures
Strategy library

This script describes a moving-average breakout approach using a configurable 200-period EMA, SMA, or HMA, with a 15-minute EMA as a higher-timeframe filter. Inputs allow adaptive filters, distance limits from the averages, and a slope filter. The visible…

CryptoFuturesBreakoutTrend following
Strategy library

This document describes a simple RSI-based trading bot for a spot account. It calculates RSI over a configurable period and uses configurable buy and sell thresholds to trigger trades. The entry logic compares recent RSI readings to detect a turn across a…

Technical indicatorsExecutionPosition sizing
Strategy library

This strategy tracks the current and previous three-hour candle ranges, even when run on another chart timeframe. If the current H3 range exceeds the previous candle’s high, it sets a short bias; if it falls below the prior low, it sets a long bias. A trade…

Technical indicatorsBreakoutRisk managementPosition sizing
Strategy library

This proof-of-concept strategy combines recurring purchases with indicator-based entry and exit conditions. Its internal example uses RSI relative to Bollinger-style bands around RSI to trigger additions and exits, while allowing users to substitute external…

Position sizingMean reversionTechnical indicatorsRisk management
Strategy library

This strategy pairs RSI thresholds with Bollinger Band crossings to generate long and short signals. The long rule requires a short-period RSI to cross above its oversold threshold while price crosses above the lower band. The short rule requires a…

FuturesMean reversionTechnical indicatorsVolatility
Strategy library

This Pine Script template restricts entry evaluation to a user-defined exchange-time session. It tracks the session high and low, plots those levels alongside fast and slow exponential moving averages, and lets the user choose between a session-range break…

Technical indicatorsRisk managementPosition sizingExecution
Strategy library

This long-only setup requires three conditions at once: current volume above twice its recent average, a minimum gain from the recent closing-price low, and momentum confirmed by price above a moving average with RSI above a threshold. The strategy then…

MomentumTechnical indicatorsRisk managementPosition sizing
Strategy library

The strategy uses Donchian channels of different lengths to trade breakouts. A longer lookback identifies major direction, while a shorter channel supplies an opposing-boundary exit. The described method also sizes positions from a chosen equity risk and an…

BreakoutTrend followingFuturesRisk management