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
Quantpedia
86 documents
TqSdk
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
Quantopian lectures
45 documents
Binance API docs
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
Lumibot strategies
7 documents
QuantRocket
7 documents
Awesome Quant
1 documents

Search the library

4,613 documents

MQL5 articles

This interview presents one programmer-trader’s experience building Expert Advisors for forex and competing in an automated trading championship. He favors relatively simple systems, argues that strategy-specific money and risk management require careful…

ForexTrend followingRisk managementPosition sizing
MQL5 articles

This article presents a two-stage machine learning workflow for filtering Bollinger Band mean-reversion signals. A primary strategy supplies direction when price reaches an outer band; a secondary classifier estimates whether to take that trade. Its…

Mean reversionMachine learningTechnical indicatorsPosition sizing
MQL5 articles

The article presents a class-based framework for adding trailing stop logic to MQL5 expert advisors. It defines three common controls: the profit threshold that activates trailing, the price movement that triggers another adjustment, and the distance between…

Risk managementExecutionTechnical indicatorsPosition sizing
MQL5 articles

This article presents a class-based order manager for expert advisors that need to execute and maintain trades in both MetaTrader 4 and MetaTrader 5. It separates shared calculations and trade-management responsibilities from platform-specific operations,…

ExecutionPosition sizingRisk management
MQL5 articles

The article describes a Python trade simulator designed to approximate key behavior of the MetaTrader 5 Strategy Tester. It explains why generic Python backtesting libraries may omit broker-specific details such as instrument properties, account leverage,…

BacktestingExecutionRisk managementPosition sizing
MQL5 articles

This article describes a chart-based aid for opening trades with preset parameters, intended to reduce repeated order-entry steps during scalping. The trader chooses a direction by deleting one of two arrows shown on the previous candle; the Expert Advisor…

ExecutionRisk managementPosition sizing
MQL5 articles

This article translates Larry Williams’s short-term and intermediate-term market structure concepts into an MQL5 Expert Advisor. A short-term swing low is a low surrounded by higher lows, while a swing high is surrounded by lower highs; intermediate swings…

Technical indicatorsTrend followingRisk managementPosition sizing
MQL5 articles

The article describes an MQL5 system that monitors every open account position and checks whether it has stop-loss and take-profit levels, risk aligned with a set percentage of equity, and a configured risk-to-reward ratio. A timer-driven cycle scans…

Risk managementPosition sizingExecution
MQL5 articles

The document outlines an automated gold trading system that pairs EMA crossover entries with a martingale recovery sequence. After a loss, the EA increases position size according to a chosen formula for a limited number of steps; a win resets the sequence.…

CommoditiesTechnical indicatorsRisk managementPosition sizing
MQL5 articles

This article explores automating the selection of optimized strategy instances for a multi-currency Expert Advisor. It first prepares optimization data, removes loss-making results, and ranks candidates with a weighted score built from scaled performance…

ForexPortfolio constructionPosition sizingBacktesting
MQL5 articles

The article explains the Labouchere cancellation staking method, a progression in which losses are added to a number sequence and the next stake is based on its remaining endpoints. Wins cancel sequence entries, so a run of wins can recover earlier losses.…

ForexStatisticsPosition sizingBacktesting
MQL5 articles

The article outlines a risk manager for a multi-strategy trading system, using two account safeguards: a daily loss limit that pauses trading until the next day, and a total loss limit that stops trading altogether. It defines reference values such as the…

Risk managementPosition sizingMulti-assetBacktesting
MQL5 articles

This installment describes a reusable MQL5 class for a chart-based trade management panel and its integration into an Expert Advisor. It organizes the interface into controls for quick market orders, pending orders, and bulk position or order actions. Inputs…

ExecutionRisk managementPosition sizing
MQL5 articles

The article presents an Expert Advisor implementation of the original Turtle trend-following rules. System 1 enters on 20-day breakouts and skips a same-direction signal after a winning prior breakout; System 2 takes every 55-day breakout. Each system exits…

FuturesForexTrend followingBreakout
MQL5 articles

The article presents a probability-based framework for evaluating automated trading ideas, using gaps as its example. It models a single-asset Expert Advisor through position, price, and equity changes, then simplifies the analysis by representing activity…

StatisticsRisk managementPosition sizingBacktesting
MQL5 articles

The article turns point and figure chart patterns into automated trend trades. It outlines entries around prior column highs and lows or breaks of support and resistance, with stop placement at chart pivots or trend lines. Position size is calculated from…

Technical indicatorsBreakoutTrend followingPosition sizing
MQL5 articles

The article shows how an MQL5 expert advisor can incorporate overnight swap estimates into trade management. It describes reading long and short swap rates and the broker’s swap mode, converting supported modes into an estimated daily amount per lot in…

CarryForexRisk managementPosition sizing
MQL5 articles

The article frames price movement through market and limit orders, spreads, stop levels, and the distinction between trending and range-bound behavior. It then builds expected-payoff equations from the probabilities and outcomes of stop-based exits and…

ForexStatisticsPosition sizingRisk management
MQL5 articles

The article translates four bet-sizing approaches from a Python module into an MQL5 system: probability-based sizing, sizing from forecast-price divergence, budget-constrained sizing, and reserve sizing learned from data. It outlines a layered design with…

Position sizingMachine learningStatisticsRisk management
MQL5 articles

The article compares Kelly sizing with a confidence based signal method, then proposes combining them in two stages: the signal method accounts for estimated confidence and overlapping positions, while a Kelly multiplier adjusts for asymmetric win and loss…

Position sizingRisk managementBacktestingMachine learning
MQL5 articles

The article develops a grid-like martingale EA that opens additional positions at fixed adverse price intervals, increasing trade size along the chain. It closes the whole basket when aggregate profit reaches a configured target. Since the approach can…

Grid tradingForexEquitiesRisk management
MQL5 articles

The article explains partial position closing as a way to realize some gains at predefined price levels while leaving the rest of a trade open. It describes placing intermediate targets between entry and the original take-profit, with levels calculated as…

Risk managementPosition sizingBacktesting
MQL5 articles

This article lays out the design and MQL5 implementation of a chart-based panel for manual Forex trading. Its proposed controls include buy and sell actions, position-closing buttons, editable stop-loss and take-profit settings, and displays of account and…

ForexRisk managementPosition sizingExecution
MQL5 articles

The article extends a multi-currency Expert Advisor risk manager with adaptive position-volume controls and configurable daily and overall loss limits. It discusses calculating thresholds from fixed money amounts, a base balance, or high-water marks for…

Risk managementPosition sizingBacktestingMulti-asset