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

29 documents

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

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 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 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 breakout approach estimates volatility from the standard deviation of log returns, annualizes it for the chart timeframe, and scales it back to a one bar expected move. It places upper and lower thresholds around the prior close; a confirmed close…

BreakoutVolatilityTechnical indicatorsRisk management
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 strategy compares a futures price with a synthetic forward price formed from a call, a put, and their shared strike. It calculates the synthetic price as call price minus put price plus strike, then measures its difference from the futures price. When…

OptionsFuturesArbitrageDerivatives pricing
Strategy library

This example demonstrates how an options strategy helper can submit a straddle as a grouped trade. It searches the option chain for a strike and expiry that have both a call and a put, selecting contracts near the underlying price and favoring later expiries…

OptionsDerivatives pricingExecution
Strategy library

This example demonstrates how an options strategy helper can package orders for a naked put position. It sorts the available option contracts first by closeness of strike to the underlying price and then by expiry, with the expiry sort applied last; it…

OptionsDerivatives pricingRisk managementExecution
Strategy library

This educational implementation monitors Bitcoin option positions on Deribit, reads their aggregate account delta, and uses the Bitcoin perpetual future as a hedge when the absolute delta exceeds a configurable threshold. The example supports selecting an…

OptionsFuturesPerpetual futuresDerivatives pricing
Strategy library

This example demonstrates how an options strategy helper can submit and close a put calendar spread as a grouped position. It filters an option chain to puts, sorts contracts by proximity to the underlying price, and finds a strike with at least two…

OptionsDerivatives pricingExecution
Strategy library

This algorithm maintains a long holding in a volatility-linked exchange-traded product and periodically opens a put calendar spread on VIX options. It selects the strike nearest the index level, filters for options within a stated strike and expiration…

OptionsVolatilityDerivatives pricingExecution
Strategy library

This code example shows how to use an option strategy helper to submit a multi-leg straddle order. It first filters the option universe to standard contracts within a selected strike range and expiration window. When the portfolio is not invested, it…

OptionsDerivatives pricingExecution
Strategy library

This example algorithm trades a bull put spread on weekly SPX index options. It requests minute-resolution index and option data, filters for contracts expiring that day within a specified range of strikes, then selects the nearest expiry and sorts its puts…

OptionsDerivatives pricingExecutionBacktesting
Strategy library

This code example shows how to submit stop-loss, take-profit, and combined one-cancels-the-other orders through the OKX V5 algorithmic-order endpoint. It provides separate helpers for long and short positions, setting the closing side and position side…

CryptoFuturesExecutionRisk management
Strategy library

The document explains gamma scalping through a modeled long straddle and dynamic hedging of its changing delta. It describes Black–Scholes Greeks, emphasizing gamma’s potential to create gains from repeated rebalancing and theta decay as a cost. The proposed…

OptionsVolatilityDerivatives pricingRisk management
Strategy library

This algorithm demonstrates a basic index-option bull call spread workflow. It subscribes to SPY and the SPX index, then selects weekly SPX options within a bounded strike range and a specified expiration window. When the portfolio has no existing option…

OptionsDerivatives pricingExecutionUS markets
Strategy library

This demonstration shows how to work with futures options in an algorithmic trading framework using gold futures. It subscribes to minute-resolution futures data and filters the option universe to calls across a range of strikes and back-month expirations.…

FuturesOptionsExecutionDerivatives pricing
Strategy library

This strategy searches across perpetual-futures venues for token pairs with differing funding rates. It normalizes each venue’s rate by its payment interval, annualizes the comparison to a daily horizon, and selects the most favorable long/short venue…

FuturesPerpetual futuresArbitrageDerivatives pricing
Strategy library

This example demonstrates constructing a call butterfly on an equity option chain. It subscribes to an underlying and its options, then filters the chain to standard contracts within a range of strikes and expirations. On a data update, it skips trading if…

OptionsEquitiesExecutionDerivatives pricing
Strategy library

This example demonstrates how an options strategy helper can submit a put butterfly as a grouped multi-leg order and later close it with the corresponding short butterfly. It scans put contracts by expiry, requires at least three strikes, selects the strike…

OptionsExecutionDerivatives pricing
Strategy library

The script is presented as a configurable Black-Scholes option-pricing and delta-hedging strategy. Its visible inputs let users choose European vanilla, binary, or geometric Asian option styles; calls or puts; strike and expiration; and market data settings.…

OptionsDerivatives pricingVolatilityRisk management
Strategy library

This example demonstrates constructing a call calendar spread from an options chain and submitting it as a grouped strategy order. It selects call contracts, sorts them by proximity to the underlying price, then looks for a strike with contracts at multiple…

OptionsExecutionDerivatives pricing