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
WonderTrader
14 documents
Alphalens
14 documents
backtesting.py
11 documents
Technical Analysis
9 documents
QTPyLib
8 documents
Lumibot strategies
7 documents
QuantRocket
7 documents
Awesome Quant
1 documents

Search the library

81 documents

Strategy library

This script describes an intraday options approach that opens short call and put positions around the current underlying price, using a configurable strike offset and simulated base premium. Its state-machine setup tracks the selected strikes, position…

OptionsRisk managementPosition sizingExecution
Strategy library

This algorithm demonstrates how an options strategy helper can submit a covered put as a grouped position. It selects an option contract by closeness to the underlying price and then by expiration, constructs covered-put and protective-put strategy objects…

OptionsEquitiesExecution
Strategy library

The algorithm constructs a call butterfly from SPX weekly index options. It queries contracts within a selected expiration range and near the underlying index level, chooses the nearest expiry, and looks for three call strikes arranged symmetrically around…

OptionsUS marketsVolatilityExecution
Strategy library

This strategy uses directional movement indicators to identify long and short entry conditions. A long signal occurs when the positive DI falls below 10 while the negative DI rises above 40; a short signal applies the reverse thresholds. The script…

Technical indicatorsOptionsMomentumRisk management
Strategy library

This QuantConnect example subscribes to regular SPX index options and to the SPXW weekly chain. It filters the weekly contracts to strikes near the underlying price and expirations within a short horizon, including weekly listings. When the portfolio has no…

OptionsUS marketsExecution
Strategy library

This code example shows how to attach a pricing model to an equity option subscription in a trading algorithm. It adds an option chain for a named underlying, applies an initial expiration and strike filter, then selects a finite-difference Crank–Nicolson…

OptionsDerivatives pricing
Strategy library

The document presents a long-signal concept that combines a TTM-style volatility squeeze, a linear-regression momentum histogram, and 9- and 21-period EMAs. It looks for a squeeze state followed by two bars outside the squeeze, positive and rising momentum,…

Technical indicatorsVolatilityMomentumOptions
Strategy library

This document presents a read-only decision-support tool that scans public options markets on Deribit, Binance Options, and OKX. It ranks candidates across four dimensions, then applies absolute filters for spread, slippage, valuation, stressed returns, and…

CryptoOptionsDerivatives pricingVolatility
Strategy library

This intraday approach calculates a volume-weighted moving average that resets with each new day. It signals bullish when an entire candle is above the VWMA and bearish when an entire candle is below it, triggering only when that condition first appears. The…

CryptoOptionsBreakoutTechnical indicators
Strategy library

This document explains the long straddle: buying a call and a put with the same strike and expiration, aiming to benefit from a large move in either direction. It describes the payoff shape, the limited premium loss, and the need to select a strike. It…

OptionsVolatilityEvent-drivenBacktesting
Strategy library

This intraday approach sells at-the-money calls when price is below both the 50- and 80-period moving averages, the 9-period EMA crosses below the 15-period EMA, and RSI confirms bearish momentum. It sells puts when price is above both moving averages, the…

OptionsTechnical indicatorsMomentumRisk management
Strategy library

This options example demonstrates how a strategy helper can submit a multi-leg call butterfly as a grouped order. For each expiry, it selects the available strike nearest the underlying price, then seeks lower and higher strikes at equal distances. If all…

OptionsExecutionDerivatives pricing
Strategy library

This short-term strategy combines a fast and a slower simple moving average crossover with a longer moving average filter and Bollinger Bands. A long setup requires the faster average to cross upward through the slower one, price to remain above the longer…

Technical indicatorsOptionsVolatilityRisk management
Strategy library

This example demonstrates how to construct and trade a long strangle and its inverse using an options strategy helper. It sorts available contracts by proximity to the underlying price and expiration, then selects a call and put from a shared expiration,…

OptionsDerivatives pricingExecution
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 example shows how to subscribe to options on an equity, narrow the available contracts by strike and expiration, inspect the resulting option chain, and submit an order for a selected contract. It uses an underlying stock benchmark and logs bar and…

OptionsEquitiesExecution
Strategy library

This script describes a rules-based options-selling signal system built around a UT Bot ATR trailing stop. A close crossing above the stop signals a put-side sale, while a cross below signals a call-side sale. Each signal also needs to pass an RSI range…

OptionsTechnical indicatorsVolatilityRisk management
Strategy library

This example demonstrates how an algorithm can convert incoming security data into five-minute bars. It subscribes to SPY options with a strike and expiration filter, then listens for changes to the option chain. When securities are added, it attaches a…

OptionsEquitiesExecution
Strategy library

This script is designed to generate short-term call and put signals for SPY and QQQ using a weighted set of technical conditions. It includes fast and slow EMA crossovers, a longer-term EMA trend filter, RSI, VWAP, volume spikes, MACD, stochastic readings,…

EquitiesOptionsTechnical indicatorsMomentum
Strategy library

This Binance ETH options Wheel alternates between selling cash-secured out-of-the-money Puts while holding cash and selling covered out-of-the-money Calls while holding ETH. It selects contracts using tenor, Delta, spread, order-book depth, and minimum…

OptionsCryptoVolatilityRisk management
Strategy library

This low-frequency reversal approach combines two Bollinger Band sets with RSI. It describes bands with the same lookback but different standard deviation multipliers, then signals a buy when price closes below the wider lower band and RSI is deeply…

OptionsCryptoFuturesMean reversion
Strategy library

This example demonstrates constructing and submitting a naked call position through an options strategy helper. It selects an option contract from the available chain by sorting for proximity to the underlying price and then by expiration, before submitting…

OptionsDerivatives pricingExecutionRisk management
Strategy library

This document describes a selective options-selling approach that combines trend, reversal, volatility, and time filters. It proposes selling calls when the longer-term trend is bearish and price is overbought at the upper Bollinger Band, and selling puts…

OptionsMean reversionVolatilityTechnical indicators
Strategy library

This example demonstrates selecting and subscribing to individual option contracts through an option chain provider. It first requests the available contracts for an equity underlying, then filters for out-of-the-money calls with expirations in a specified…

OptionsEquitiesExecution