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

5,922 documents

Strategy library

This document describes a backtest framework for recurring fixed-amount purchases on daily, weekly, or monthly schedules. The schedule determines when to buy within a selected date range; each purchase converts the specified cash amount into units at the…

BacktestingPosition sizingPortfolio constructionCrypto
Strategy library

This example shows how to construct a changing equity universe from a downloaded file that maps dates to ticker lists. The algorithm parses each row into a date and US equity symbols, then uses the symbols for that date as its coarse universe selection. Fine…

EquitiesUS marketsPortfolio construction
Strategy library

QuantumGridAllocator is a Hummingbot controller that manages grid executors across configured crypto assets. It calculates the portfolio’s actual and target allocations, treating the quote asset as the unallocated remainder, and validates that configured…

CryptoGrid tradingPortfolio constructionExecution
Strategy library

This module applies the Double Seven mean-reversion approach across a portfolio of ETFs or other symbols. For each asset, it buys when the close equals the rolling period low, provided a 200-day regime filter is positive unless that filter is disabled. It…

EquitiesMean reversionPortfolio constructionPosition sizing
Strategy library

This document outlines a periodic buying method that adjusts purchases according to the difference between current holdings and a rising target portfolio value. At each weekly step, the target value increases by a fixed contribution amount. The script…

CryptoSpot marketsPosition sizingPortfolio construction
Strategy library

This example demonstrates applying a volume-share slippage model to a stock portfolio selected from an ETF’s constituents. The model is configured to limit fills to a fraction of historical trading volume and apply a specified market impact. The universe…

EquitiesExecutionMarket microstructureBacktesting
Strategy library

The Global Equities Momentum approach allocates among U.S. stocks, international stocks, and U.S. aggregate bonds. Each month, it compares the trailing 12-month performance of the two equity markets and selects the stronger one, provided U.S. stocks have…

EquitiesFixed incomeMomentumTrend following
Strategy library

This QuantConnect example shows how to send portfolio targets to Numerai Signals on a daily schedule. It builds a universe from the constituents of a broad US equity ETF, keeps track of eligible securities, and submits targets before each trading day. The…

EquitiesPortfolio constructionExecution
Strategy library

This utility tracks the combined marked-to-market change in account value for pairs of exchange accounts. Users provide an even number of exchange connections; each adjacent pair appears as a series in a chart and as rows in a status table. Initial balances…

CryptoStatisticsPortfolio construction
Strategy library

This document outlines a simple recurring Bitcoin purchase simulation. At each fixed interval, it spends a preset amount of currency to buy BTC at the observed latest price, accumulates the purchased quantity, and compares the holding’s current market value…

CryptoSpot marketsBacktestingPortfolio construction
Strategy library

The document defines price-to-book as closing price divided by book value per share, with book value per share calculated from total assets less total liabilities, divided by common shares outstanding. It implements this measure as a pipeline factor using…

EquitiesFactor investingPortfolio constructionBacktesting
Strategy library

This spot strategy repeatedly rebalances one cryptocurrency toward a target share of account value. When the asset’s share moves below the target by a configured adjustment threshold, it places a buy order; when the share moves above the target threshold, it…

CryptoSpot marketsGrid tradingPortfolio construction
Strategy library

This document describes a single-coin spot strategy that repeatedly returns the portfolio toward a target coin allocation. When the coin’s share of account value moves below the target by a set adjustment band, the bot places a buy order; when it moves above…

CryptoSpot marketsGrid tradingPortfolio construction
Strategy library

This QuantConnect example shows how framework components can be assembled into an options algorithm. Its universe model filters for weekly puts near the money with expirations within a short date window, and calls a user-provided selector daily to choose the…

OptionsPortfolio constructionExecutionRisk management
Strategy library

This document presents a multi-asset buy-and-hold portfolio method that assigns target weights either directly or through a selected metric. Available approaches include equal allocation, annualized Sharpe ratio, annualized return, standard deviation,…

Multi-assetPortfolio constructionVolatilityRisk management
Strategy library

This document presents a rebalancing method inspired by Shannon’s Demon. It values the asset holdings at the current ask price, compares that value with the account’s cash and total portfolio value, and trades toward an equal cash-and-asset allocation when…

CryptoMean reversionTechnical indicatorsPortfolio construction
Strategy library

This US equity strategy builds an equal-weighted portfolio through successive screens. It starts with liquid NYSE stocks while excluding financial companies, ADRs, and REITs; selects firms with low enterprise-value-to-EBIT ratios; then favors stronger…

EquitiesFactor investingMomentumTrend following
Strategy library

This example shows how to connect a QuantConnect algorithm to CrunchDAO and submit portfolio targets on a weekly schedule. It reads a remote security skeleton to build a changing universe, tracks additions and removals, filters for securities with positive…

ExecutionPortfolio construction
Strategy library

This educational example shows how to define a dynamic equity universe using a built-in selection helper. It selects the three stocks with the highest dollar volume and applies daily data resolution to securities added through the universe. The algorithm…

EquitiesPortfolio constructionExecution
Strategy library

This QuantConnect example shows how to prepare indicators for securities that enter a dynamic universe. In a coarse fundamental selector, it creates or retrieves a 100-day simple moving average for each symbol and warms it with daily history before updating…

EquitiesForexTechnical indicatorsPortfolio construction
Strategy library

This source describes a simple portfolio rebalancing loop for an account holding cash and one asset. It compares the cash balance with the market value of the holdings, then estimates the amount needed to bring the two sides toward equal value. If the…

Portfolio constructionPosition sizingExecutionRisk management
Strategy library

This example shows how an algorithmic trading framework can connect a fundamental universe-selection process to portfolio construction and risk management. It sets daily data resolution, then supplies custom coarse and fine selection functions. The coarse…

EquitiesPortfolio constructionRisk managementUS markets
Strategy library

This US equity strategy builds a machine learning feature set from fundamentals, quality measures, price and volume behavior, technical indicators, securities data, and market signals. Its target is the following week's return. Fundamental inputs are…

EquitiesUS marketsMachine learningFactor investing
Strategy library

This NASDAQ-100 stock strategy constructs portfolio weights from several technical indicator rules. The functions calculate TRIX or EMA on each stock’s high-price series, then compare shifted indicator values at multiple lags. The resulting Boolean signals…

EquitiesUS marketsMomentumTechnical indicators