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

This article outlines a Python and MQL5 workflow for allocating positions across a basket of five U.S. stocks. It retrieves one-minute price data, converts closes to percentage returns, and examines correlations, distributions, pairwise relationships, and…

EquitiesPortfolio constructionPosition sizingStatistics
MQL5 articles

This article outlines a rule-based approach to trading after Non-Farm Payroll releases. It anchors Fibonacci retracement levels between the pre-spike price and the first post-release spike extreme, then waits for price to pull back into a chosen zone and…

ForexEvent-drivenTechnical indicatorsRisk management
MQL5 articles

This article describes adding breakeven and trailing-stop automation to an MQL5 Expert Advisor managing OCO-style protection. Breakeven is triggered when a position's profit reaches a configured threshold, then the stop is moved to the opening price. After…

ForexExecutionRisk managementPosition sizing
MQL5 articles

This guide presents a stepwise process for finding and evaluating third-party trading signals. It starts with practical filters such as platform, broker, drawdown, provider history, trading frequency, deposit, and subscription cost. It then recommends…

Risk managementStatisticsPosition sizingExecution
MQL5 articles

This article describes modular programming for trading robots: divide an expert advisor into independent components with clear inputs and outputs so one component can be replaced without rewriting the rest. It recommends keeping core trading functions in a…

Position sizingRisk managementTechnical indicatorsExecution
MQL5 articles

This article presents an architecture for running multiple trading models across instruments and timeframes within one MetaTrader 5 expert advisor. It frames the configuration problem as a set of model, timeframe, and instrument combinations, each of which…

Multi-assetPosition sizingExecutionRisk management
MQL5 articles

In this interview, Antonio Morillas discusses developing an Expert Advisor for the 2011 Automated Trading Championship. He describes a long-term trend strategy based on a moving-average slope, with buy, sell, or wait signals and a broad trailing stop. When…

ForexTrend followingPosition sizingRisk management
MQL5 articles

This installment describes connecting a trained classifier to MetaTrader 5 for live order execution. Predictions above or below a threshold trigger long or short trades with preset stop-loss and take-profit levels, while a cap on open positions limits new…

Machine learningExecutionRisk managementPosition sizing
MQL5 articles

This article describes a graphical workflow for assembling MetaTrader 5 Expert Advisors from connected trading blocks, then generating MQL5 code. Its worked example encodes a moving average rule: buy when the shorter average is above the longer one and sell…

ForexTechnical indicatorsBreakoutPosition sizing
MQL5 articles

The article develops a floating grid that places buy-stop orders above the current price and sell-stop orders below it, then updates the pending orders as price moves. Each position has its own take profit, while orders far from the market are removed and…

ForexGrid tradingRisk managementBacktesting
MQL5 articles

The article examines whether trading outcomes can be modeled as independent Bernoulli trials, with each trade classified as a win or loss. It defines clusters as consecutive outcomes of the same kind and uses probability theory to reason about how often long…

StatisticsRisk managementPosition sizingBacktesting
MQL5 articles

The document introduces the Martingale staking rule: begin with a small wager, increase the stake after each loss enough to recover prior losses plus a gain, and reset after a win. It relates this idea to a coin toss and roulette, then suggests a trading…

StatisticsRisk managementPosition sizing
MQL5 articles

This tutorial explains how to define and call user-written functions in MQL5, covering return types, arguments, functions without arguments, default parameter values, and passing parameters by value or by reference. It also introduces void functions and…

Risk managementPosition sizing
MQL5 articles

This article explains why a daily trading-volume cap can fail when an automated expert advisor (EA) mixes market orders with pending orders. The manager checks current and requested volume before allowing another order, but a pending order can remain…

Risk managementPosition sizingExecution
MQL5 articles

The article presents a modular way to set partial-exit levels from a strategy's own trade history. For each open position, a tracker records maximum favorable excursion in R, where R is the entry-to-initial-stop distance. When a trade closes, the system…

Position sizingRisk managementBacktestingStatistics
MQL5 articles

The article presents Ralph Vince’s optimal-f approach to money management. It explains how compounding makes the path of account equity depend on the fraction of capital risked, and why maximizing the stake does not necessarily maximize long-run growth. For…

Position sizingRisk managementStatisticsBacktesting
MQL5 articles

The article describes an MQL5 Expert Advisor for managing positions after entry. Its three configurable functions move a stop to break-even after a profit trigger, trail the stop as price advances, and close a chosen fraction of a position after a specified…

Risk managementExecutionPosition sizing
MQL5 articles

This article presents a reusable MQL5 Expert Advisor framework for a single symbol and timeframe. Its purpose is to separate strategy rules from recurring platform tasks, including loading price history, detecting new bars, checking spreads, sizing…

ExecutionRisk managementPosition sizing
MQL5 articles

This article outlines core functions for an automated trading system: submitting pending orders, placing market orders, changing order prices, and explicitly closing positions. It explains that position handling depends on account mode. On netting accounts,…

ExecutionRisk managementPosition sizing
MQL5 articles

This article outlines an automated MQL5 system that combines Envelopes and RSI signals with zone recovery. It describes entering around a trend bounce when price reaches an Envelopes boundary with supporting momentum, then opening counter-trades if price…

ForexTechnical indicatorsRisk managementPosition sizing
MQL5 articles

This article extends a MetaTrader 5 toolkit for manual trading beyond order entry. It describes organizing the interface into tabs for trading, open positions, and pending orders, with tables and controls for editing or closing individual items. Position…

ExecutionPosition sizingRisk management
MQL5 articles

This article describes an Expert Advisor that represents market conditions as vertices in a state-transition graph. It discretizes normalized trend, volatility, and momentum measures, counts transitions between states, smooths and decays those counts, then…

Machine learningStatisticsRisk managementPosition sizing
MQL5 articles

This article proposes an account-level risk service for MetaTrader 5 accounts running multiple Expert Advisors. When each EA sizes trades and enforces loss limits independently, their combined positions can create concentrated currency exposure, correlated…

Risk managementPosition sizingExecutionPortfolio construction
MQL5 articles

This article explains a breakeven mechanism that moves a trade’s stop loss toward or beyond its entry after price advances a set distance. Its first installment outlines a reusable MQL5 base class and a fixed-points version, with trade tickets, trigger…

Risk managementPosition sizingBacktesting