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

4,613 documents

MQL5 articles

The article explains the Dandelion Optimizer, a population-based metaheuristic that treats candidate solutions as seeds moving through a search space. It describes three successive phases: broad exploration through randomized rising moves, population-level…

BacktestingStatisticsPosition sizing
MQL5 articles

The article compares two versions of a one-minute foreign-exchange strategy that use the same trend and MACD entry rules but place stops differently. The shared entries combine 50- and 200-period moving averages with MACD conditions. One version sets a stop…

ForexTechnical indicatorsRisk managementPosition sizing
MQL5 articles

This article describes an MQL5 Expert Advisor that starts a position using MACD trend direction and RSI conditions, then adds trades as price reaches favorable profit thresholds. It presents layering, or cascading, as a way to scale exposure during sustained…

Trend followingMomentumTechnical indicatorsPosition sizing
MQL5 articles

This article frames money management as the choice of how much capital to risk on each trade, separate from the trading system’s decisions about direction and timing. It uses repeated simulations of wins and losses with specified probabilities and payoff…

Position sizingRisk managementStatisticsBacktesting
MQL5 articles

The article explains how a position sizer can translate a prop-firm account’s remaining loss budget into a smoothly declining maximum position size. A calibrator first combines the budget with a safety factor and stop-loss percentage to estimate an…

Position sizingRisk managementBacktestingExecution
MQL5 articles

The article develops a mathematical framework for optimizing a simple hedging strategy before applying brute-force parameter searches. It identifies the main inputs as initial direction and lot size, separate buy and sell take-profit levels, spacing between…

ForexGrid tradingBacktestingPosition sizing
MQL5 articles

The article distinguishes mathematical expectation from utility adjusted for a trader’s capital, using Bernoulli’s treatment of the St. Petersburg paradox to motivate moral expectation. It applies the idea to trades with known stop loss and take profit…

StatisticsPosition sizingRisk managementBacktesting
MQL5 articles

This article explains how MQL5 Expert Advisors use the CExpertMoney base class to handle position sizing and other money-management decisions. It describes the roles of its initialization, parameter validation, indicator setup, entry-volume, reversal, and…

Risk managementPosition sizingBacktesting
MQL5 articles

The article describes an MQL5 analyzer that reconstructs closed round trips from deal history and measures each trade’s maximum adverse excursion (MAE), maximum favorable excursion (MFE), and exit efficiency. It groups deals by position identifier, reads M1…

Risk managementPosition sizingBacktestingForex
MQL5 articles

The document argues that strong historical backtests cannot ensure an Expert Advisor will remain profitable when market behavior changes. It groups failure patterns into lazy algorithms, which hold positions unusually long and accumulate costs; persistent…

Risk managementPosition sizingBacktesting
MQL5 articles

This article presents an account-level risk supervisor for MQL5 that sits above a strategy’s entry and exit rules. It tracks equity, peak-to-current drawdown, daily loss, and rapid declines, then assigns one of four operating states: NORMAL, CAUTION,…

Risk managementPosition sizingBacktesting
MQL5 articles

The article turns Larry Williams’ Smash Day reversal pattern into objective rules for an automated trading system. A buy setup occurs when a bar closes below a configurable number of prior lows; a sell setup uses a close above prior highs. Outside bars are…

Mean reversionBreakoutTechnical indicatorsRisk management
MQL5 articles

The article presents a framework for describing and implementing strategies that actively manage pending orders. It separates market analysis, assessment of current positions and orders, and position management. Example approaches include scaling into a…

ExecutionPosition sizingBacktesting
MQL5 articles

This article describes an Expert Advisor that multiplies the volume of deals copied by MetaTrader’s Signals service. It explains how the copier detects completed deals through trade-transaction events, then opens a corresponding position or increases an…

ExecutionRisk managementPosition sizingForex
MQL5 articles

The article explains how to build a MetaTrader 5 Expert Advisor that places a draggable risk dashboard on the chart. Using the platform’s Standard Library controls and CTrade, the panel displays floating profit and offers bulk closures for all filtered…

Risk managementExecutionPosition sizing
MQL5 articles

The article explains how Twin Delayed Deep Deterministic Policy Gradient (TD3) modifies DDPG to reduce overestimation of learned Q-values. Its three core changes are training two Critics and using the lower estimate, updating the Actor less often, and…

Machine learningRisk managementPosition sizingBacktesting
MQL5 articles

This article introduces Deep Deterministic Policy Gradient (DDPG) as a reinforcement-learning approach for trading agents that must choose continuous action values. Instead of expanding a discrete action list for every combination of direction, volume, stop…

Machine learningRisk managementPosition sizingBacktesting
MQL5 articles

This MQL5 cookbook chapter extends an Expert Advisor so it can retrieve position details that are not available from current position properties alone. By selecting the account's deal history for a position, the program can find the first and most recent…

Risk managementPosition sizingBacktestingExecution
MQL5 articles

The article describes a two-wave continuation setup: a main move followed by a correction, with an anticipated resumption in the main trend's direction. It identifies swing points using confirmed fractals and provisional extrema, then applies structural…

ForexTrend followingTechnical indicatorsBacktesting
MQL5 articles

The article explains why historical VaR, normal-based volatility measures, and resampling can understate rare losses: each is constrained by assumptions or observations that may not represent the far tail. It presents the Peaks-Over-Threshold method, which…

StatisticsRisk managementPosition sizingBacktesting
MQL5 articles

The article explains how Average True Range measures price volatility without indicating market direction. It derives true range from the current high-low span and gaps relative to the previous close, then averages true range over a chosen period. A EURUSD…

Technical indicatorsVolatilityRisk managementPosition sizing
MQL5 articles

This article develops a way to estimate per-trade risk for a target balance and trading horizon. It first uses a fixed-fraction compounding model to relate win rate, reward-to-risk ratio, number of trades, and target growth. It then describes Monte Carlo…

Risk managementPosition sizingBacktestingStatistics
MQL5 articles

This article explains safeguards for an automated Expert Advisor (EA) interacting with an order-management class, with particular attention to differences between hedging and netting accounts. It proposes blocking additional pending orders when one is…

Risk managementExecutionPosition sizing
MQL5 articles

This article introduces a reusable framework for managing positions after an Expert Advisor opens them. It separates trade generation from ongoing position management and organizes the work among a coordinator, an object for each managed position, and a…

Risk managementPosition sizingTechnical indicators