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

114 documents

Strategy library

The script trades a spread between Dalian Commodity Exchange coke and coking coal futures. It estimates the spread from each contract's close, volume multiplier, and a fixed contract ratio, then calculates a z-score from a rolling set of daily observations.…

CommoditiesFuturesPairs tradingMean reversion
Strategy library

This calendar-based strategy attempts to buy gold at the start of Friday’s session and close the position later in the session. It includes configurable start and end dates for backtesting, along with commission, slippage, order-processing, and position-size…

CommoditiesEvent-drivenBacktestingExecution
Strategy library

The document introduces a session-based momentum scalper for FCPO, with configurable presets for different chart intervals and a custom mode for manual take-profit and stop-loss settings. Its listed filters include an ATR ceiling and floor, minimum…

FuturesCommoditiesMomentumVolatility
Strategy library

The described approach trades XAUUSD using a short and long simple moving average. A cross of the 30-period average above the 200-period average signals a long position, while a cross below signals a short position. The accompanying code also plots a…

CommoditiesTrend followingTechnical indicatorsBacktesting
Strategy library

This example applies a z-score to daily closing prices for a gold futures contract. It calculates the mean and standard deviation over a rolling window, then compares the latest close with that mean in standard deviation units. When flat, it buys after a…

FuturesCommoditiesMean reversionStatistics
Strategy library

This strategy uses a short and long simple moving average to generate directional trades. The description presents a 30-day average crossing a 200-day average as the long or short signal, with a fixed 40,000-point stop and target and a reversal when the…

CommoditiesFuturesTrend followingTechnical indicators
Strategy library

This example demonstrates adding futures subscriptions for an equity index and a metal with extended market hours. It applies an expiration filter to each futures chain, then inspects available contracts and selects one whose expiry is more than 90 days…

FuturesCommoditiesExecutionRisk management
Strategy library

This gold trading framework uses one-minute Heikin Ashi charts and Chandelier Exit as its primary directional signal. Traders can require agreement from an EMA filter, SuperTrend, and Schaff Trend Cycle before taking a trade. Signals can expire after a…

CommoditiesTechnical indicatorsRisk managementExecution
Strategy library

This strategy looks for price to pierce a confirmed pivot support or resistance level by an ATR-based buffer, then close back across that level within a short window. It enters long after a downward sweep or short after an upward sweep, optionally requiring…

CommoditiesMean reversionTechnical indicatorsRisk management
Strategy library

This example trades a spread between continuous Light Sweet Crude Oil and RBOB Gasoline futures. It estimates a return relationship by regressing crude returns on gasoline returns over a rolling history, then measures the recent spread against its mean and…

FuturesCommoditiesPairs tradingMean reversion
Strategy library

This example applies the Commodity Channel Index to daily gold futures data as a threshold-based mean-reversion strategy. It enters long when CCI recovers from below its lower threshold into the middle zone, and enters short when it falls from above its…

FuturesCommoditiesMean reversionTechnical indicators
Strategy library

This script outlines an intraday breakout system for a 15-minute chart, using a fixed price grid with configurable round-level spacing and offsets. It tracks levels below and above price, then looks for a confirmed candle that crosses an offset level. Long…

CommoditiesBreakoutTechnical indicatorsRisk management
Strategy library

This trend-following method combines the Average Directional Index (ADX) with a fixed lookback price comparison. When ADX exceeds 10, a close crossing above its level 65 bars earlier generates a long signal; a crossing below generates a short signal. The…

CommoditiesFuturesTrend followingBreakout
Strategy library

This XAUUSD strategy combines a moving-average trend filter with price crossovers. It treats the market as bullish when the 20-period EMA is above the 50-period EMA and enters long when price crosses above the faster average. It enters short under the…

CommoditiesTrend followingTechnical indicatorsRisk management
Strategy library

This document describes a JavaScript library for managing commodity futures positions through a CTP exchange interface. Its functions aggregate positions by contract and direction, submit or close orders, cancel pending orders, and report account balance…

FuturesCommoditiesExecutionMarket microstructure
Strategy library

This daily GLD strategy applies a fixed linear score to five features derived from price and volume, including short moving averages and interaction terms. The feature weights and normalization constants are embedded in the script, and the strategy holds a…

Machine learningEquitiesCommoditiesStatistics
Strategy library

This model describes a seasonal approach to selling agricultural commodity futures, originally presented by Perry J. Kaufman to commodity producers. Its premise is that prices for crops with one annual harvest may tend to be weakest around harvest and…

CommoditiesFuturesTechnical indicators
Strategy library

This gold strategy builds an opening range during the 13:00–14:00 UTC hour on weekdays, then looks for a long breakout during a later entry window. A signal requires price to cross above the range high, a bullish bar, elevated volume, and volatility…

CommoditiesBreakoutTechnical indicatorsVolatility
Strategy library

This intraday strategy builds a high-low range during the Asia session, defined in New York time, then trades breakouts during a following morning window. A close beyond the range, with a configurable tick buffer, triggers a long or short entry. An optional…

FuturesCommoditiesBreakoutTechnical indicators
Strategy library

The script builds a daily high-low range during a configured Asia session, then permits close-confirmed breakouts during a later trading window. A long entry requires a close crossing above the range high and, when enabled, above an exponential moving…

CommoditiesBreakoutTechnical indicatorsRisk management
Strategy library

This strategy combines moving-average crossovers, RSI thresholds, and candlestick engulfing patterns to generate long and short signals. Its explanation uses a 21-day average crossing the 200-day average as the primary direction signal, with the 50-day…

CommoditiesTechnical indicatorsTrend followingRisk management
Strategy library

This short-term strategy uses a long-term exponential moving average to set directional bias, then looks for a cross of the 20-period average confirmed by RSI. It enters long when price is above the 200-period average, crosses above the 20-period average,…

FuturesCommoditiesMomentumTechnical indicators
Strategy library

The Commodity Selection Index (CSI) combines Average True Range, which reflects price range, with Average Directional Index information to rank commodities by volatility and trend strength. The described approach compares CSI with its own simple moving…

CommoditiesMomentumVolatilityTechnical indicators
Strategy library

This Pine Script strategy trades gold using crossovers of 9-period and 21-period exponential moving averages, taking signals only when the ADX value exceeds 15 and the chart time falls within the specified weekday session. It places long and short entries on…

CommoditiesTechnical indicatorsTrend followingExecution