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 a MetaTrader 5 indicator for sizing gold positions from a chosen account balance, risk percentage, entry price, and stop-loss price. It applies a standard risk-based calculation using the stop distance and the instrument’s tick value…

CommoditiesRisk managementPosition sizing
MQL5 code base

The document describes an Expert Advisor intended to test two ways of changing position size after a trade closes. In its martingale mode, a stop loss leads to a larger position in the opposite direction, while a take profit resets size and continues in the…

Position sizingRisk managementBacktesting
MQL5 code base

The document outlines a one-minute currency scalping Expert Advisor intended for tight-spread conditions and markets described as flat with adequate volume. Its features include trading across currency crosses, handling multiple currencies, calculating…

ForexPosition sizingRisk managementExecution
MQL5 code base

The document describes a trading robot that first opens simulated positions to monitor the market, then begins placing real orders after a configured entry condition is met. Its settings cover timeframe, slippage, order identifiers, stop loss and take…

ExecutionPosition sizingGrid tradingRisk management
BigQuant

This article explains a Dual Thrust trend-following method and its application to a basket of nickel, rebar, and coking coal futures. It defines a range from historical highs, lows, and closes, then sets upper and lower breakout thresholds around the current…

FuturesCommoditiesTrend followingBreakout
MQL5 code base

This Expert Advisor combines five technical signal rules to adjust the starting trade size. The rules use ADX directional lines; a moving-average comparison with Stochastic; MACD level and signal-line comparisons; and a moving-average comparison with the…

Technical indicatorsPosition sizingForex
MQL5 code base

The document describes four MQL5 scripts for opening long positions with stop loss and take profit distances specified in points from the current price. Two variants submit protective orders along with the trade for brokers that support this approach and…

ExecutionPosition sizingRisk managementForex
MQL5 code base

This Expert Advisor trades when the XAng_Zad_C indicator cloud changes color. It can restrict entries to a configured daily time window and close open positions at the selected end time. If the start time falls later than the end time, closure is scheduled…

ForexTrend followingTechnical indicatorsPosition sizing
MQL5 code base

This Expert Advisor design runs separate long and short trading systems based on signals from the ColorMETRO indicator. Inputs with one prefix control long trades, while another group controls short trades; each side has its own magic number, position-sizing…

ForexTechnical indicatorsPosition sizingBacktesting
Freqtrade docs

This documentation explains how Freqtrade strategy callbacks complement vectorized indicator and signal functions. Callbacks run when needed, often repeatedly during live trading or at each simulated candle, so the guidance warns against costly calculations…

ExecutionRisk managementPosition sizingBacktesting
SuperMind

This stock-selection outline screens Chinese equities for a daily price amplitude above 1, a listing history longer than one year, membership in a robotics concept group, and circulating market value below 10 billion yuan. It describes joining listed-company…

EquitiesChina marketsPosition sizing
MQL5 code base

This brief describes a trading utility that changes the take-profit and stop-loss settings on all open orders using an input percentage. It is an order-management procedure rather than an entry or exit strategy: the user supplies the percentage and the…

Risk managementExecutionPosition sizing
MQL5 code base

This Expert Advisor description outlines a bar-driven pending-order strategy. When there are no open positions or pending stop orders, it places a buy stop and a sell stop at a configured distance from price. If neither order is triggered by the next bar,…

FuturesBreakoutPosition sizingExecution
BigQuant

This document presents a Chinese-stock ranking workflow built around an XGBoost RankNet model. It constructs price-return and trading-activity features, labels stocks using clipped forward returns divided into quantile bins, and separates training data from…

EquitiesMachine learningPortfolio constructionPosition sizing
Freqtrade

This Freqtrade example is an operational strategy for winding down open positions after stopping new buys. It defines no entry or exit signals; instead, a minimal return-on-investment schedule closes trades that reach a small initial profit threshold, then…

Risk managementExecutionPosition sizing
MQL5 code base

This document describes a trade-management utility for open positions rather than a signal generator or strategy. It can add missing stop-loss and take-profit levels, move stops to break even as trades become profitable, and apply trailing stops to help…

Risk managementPosition sizingExecution
MQL5 code base

This document outlines a simple automated trading rule based on comparing the opens and closes of the two most recent completed candles. When no position is open, it enters a buy if the newer candle opens above the older candle but closes below the older…

Technical indicatorsExecutionPosition sizingBacktesting
FMZ forum

This article groups recurring trading losses into three market conditions: trading against a strong trend, repeatedly chasing moves in a broad range, and trading through choppy swings. It recommends first identifying the prevailing structure across larger…

Trend followingMean reversionRisk managementPosition sizing
BigQuant

The document presents a Chinese A-share backtest question: after selling a holding at the open, a daily-frequency strategy places a purchase near the close but buys only a small amount. The author wonders whether the simulator updates available cash only on…

EquitiesBacktestingExecutionPosition sizing
Hummingbot docs

A liquidity miner describes using automated pure market making across cryptocurrency pairs in liquidity mining campaigns. His approach is to distribute capital across available pairs, use a spreadsheet to plan allocations, order sizes, balance limits, and…

CryptoMarket makingRisk managementExecution
ProRealCode

This guide explains how a strategy developer can use metadata attached to a rental registration code to set different usage limits for different customers. The strategy reads the metadata at runtime and maps its value to a configured limit. The example uses…

Spot marketsRisk managementPosition sizingExecution
MQL5 code base

This document describes an automated system that combines trend and momentum filters with grid entries. It uses an exponential moving average to assess trend and the relative strength index for confirmation, opening an initial position only when both…

ForexTrend followingGrid tradingMomentum
MQL5 code base

This document describes an Expert Advisor that trades signals from thirty popular candlestick patterns. Users can enable or disable individual patterns or groups based on whether they use one, two, or three bars. The document explains configurable trade…

Technical indicatorsExecutionRisk managementPosition sizing
MQL5 code base

This document outlines an expert advisor intended for XAUUSD on a 15-minute chart. It combines RSI entry filtering with recovery entries spaced according to ATR, plus market-structure checks based on lower lows, lower highs, and support conditions. Position…

CommoditiesTechnical indicatorsVolatilityRisk management