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
QuantRocket
7 documents
Lumibot strategies
7 documents
Awesome Quant
1 documents

Search the library

4,613 documents

MQL5 code base

This document describes an on-chart trading panel for placing market and pending orders, managing position size, and automating exits. Traders can size positions using manual lots, a percentage of equity, or a fixed cash risk amount. The panel also supports…

ExecutionPosition sizingRisk managementTechnical indicators
MQL5 code base

The 4click Trade Opener describes a chart-based workflow for opening trades with position size tied to a chosen risk budget. The user sets a risk percentage or fixed risk amount, the broker's minimum lot size, the number of positions, and a maximum slippage…

Position sizingRisk managementExecution
MQL5 code base

This document explains a modular risk-control library for MetaTrader 5 expert advisors. Its position sizer calculates lot size from stop distance and a balance- or equity-based risk allowance, floors volume to the broker’s step, and returns zero when the…

Risk managementPosition sizingExecutionBacktesting
MQL5 code base

The document describes a two-sided pending-order grid with three stages. It begins with a symmetric ladder, increases the opposite side’s pending size after the nearest level fills, and switches to a doubling sequence after either side has two fills. Filled…

Grid tradingRisk managementPosition sizingExecution
Stratmill research code

This implementation describes a pairs strategy that estimates conditional probabilities from a fitted copula applied to each asset’s return ranks. It converts prices to returns, maps returns through marginal cumulative distribution functions, and uses the…

Pairs tradingStatisticsRisk managementPosition sizing
MQL5 code base

This short description covers a MetaTrader utility script for calculating a properly rounded lot size from a user-specified input. It also reports auxiliary symbol constraints, including the maximum permitted lot, the lot increment, and the minimum stop…

Position sizingRisk managementExecution
MQL5 code base

This document describes the components and configurable inputs of the MostasHaR15 Pivot expert advisor. Its listed indicators are ADX, two moving averages calculated from closing and opening prices, and OsMA. The code also creates and moves chart text and…

Technical indicatorsRisk managementPosition sizing
MQL5 code base

The document explains an Expert Advisor approach to managing positions on the current trading symbol. When enabled, it can add an initial stop loss and take profit to positions that lack either setting. For buy positions, those levels are calculated from the…

Risk managementExecutionPosition sizing
MQL5 code base

The document describes a contract sizing method that scales contract count in steps based on account balance. It sets a maximum contract cap and a minimum capital threshold below which trading stops. A drawdown breaker can halt sizing after losses reach a…

Position sizingRisk management
BigQuant

The post shares a one-minute grid trading strategy that uses the prior day’s close as a center price and divides prices into bands. It opens an initial position, then changes holdings when the price moves between grid regions, subject to cash and…

Grid tradingBacktestingPosition sizing
FMZ forum

The document explains how strategy developers can attach metadata to rental registration codes and read it inside a strategy to set different usage limits for different customers. A strategy can map metadata values to operating tiers, then check account…

Spot marketsRisk managementPosition sizingExecution
BigQuant

The post reports a position-capacity discrepancy between simulated and live trading. A strategy was already fully invested on one day, yet generated another buy signal at the next market open. The author expected the simulation to reject the order for…

ExecutionRisk managementPosition sizing
MQL5 code base

TraderToolEA is presented as a chart-based panel for placing and managing trades. It supports orders created manually or by an Expert Advisor, including one-click order entry. Users can set position size and configure stop-loss and take-profit levels,…

ExecutionGrid tradingRisk managementPosition sizing
BigQuant

This practitioner account explains how to translate a stock ranking model into daily trade lists and manual orders. The model ranks the stock universe, buys higher-ranked names, and prioritizes lower-ranked holdings for sale. The author describes how the…

EquitiesMachine learningExecutionPosition sizing
BigQuant

The discussion explains that weights in a multi-strategy portfolio can represent each strategy’s share of the combined allocation and can also be used to calculate a weighted portfolio return. Its example divides capital evenly among three strategies,…

Portfolio constructionBacktestingPosition sizing
vn.py community

This event outline introduces a planned series on quantitative options research and development, with later sessions covering ETF, gold, and iron ore options. The first session focuses on index options, contrasting options strategies with CTA strategies and…

OptionsDerivatives pricingBacktestingPosition sizing
Lumibot

This Lumibot example demonstrates a daily cryptocurrency strategy using Bollinger Bands with historical data supplied through CCXT backtesting. It calculates a rolling mean and standard deviation over a configurable window, then derives upper and lower bands…

CryptoTechnical indicatorsMean reversionPosition sizing
SuperMind

The document defines average true range as an average of true ranges, where each true range is the largest of the current high-low span and the distances from the prior close to the current high or low. Including prior-close gaps makes ATR more informative…

EquitiesVolatilityPosition sizingRisk management
MQL5 code base

This note explains an Expert Advisor that manages take-profit orders on already-open positions. When a new position has no take profit, the advisor sets one using a configured distance. It then moves the target as price advances beyond a specified trailing…

ExecutionRisk managementPosition sizing
MQL5 code base

This document describes operating parameters for an expert advisor that takes signals from bars one and two of the Alligator indicator. It evaluates signals only when a new bar appears. The source notes that limiting the maximum number of positions to one…

Technical indicatorsPosition sizingRisk managementExecution
MQL5 code base

This note describes a simple account-balance-based tool for converting a chosen risk percentage, within the stated 1% to 10% range, into a monetary amount. It is intended to help manual traders relate risk sizing to stop-loss amounts and translate a desired…

Risk managementPosition sizing
Quant course library

This client code illustrates order handling for coin-margined futures. It configures position mode, margin mode, and leverage, submits buy and sell orders, checks order status, and exposes account, position, contract, depth, and funding-rate queries. Limit…

FuturesExecutionPosition sizingPerpetual futures
Quant course library

The document introduces a position calculator for a grid strategy that tracks net quantity, average price, and accumulated profit as fully filled orders arrive. Its example illustrates that after buying at several nearby levels and selling part of the…

CryptoSpot marketsGrid tradingPosition sizing
Quant course library

The document describes a data model for parsing a futures account response into account-level totals, per-asset records, and per-position records. Account-level fields include trading permissions, wallet and margin balances, initial and maintenance margin,…

FuturesRisk managementPosition sizing