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 articles

This essay argues that lasting trading improvement depends more on realistic expectations, self-awareness, and disciplined practice than on secret methods or automated systems. It contrasts professional focus on developing skill with emotional reactions to…

Risk managementPosition sizingBacktesting
MQL5 articles

This article describes an MQL5 Expert Advisor that adds an interactive trade-control panel to MetaTrader 5’s Strategy Tester. On-chart buttons let a tester place buy or sell trades, adjust lot size and stop-loss or take-profit levels, confirm or cancel a…

BacktestingExecutionPosition sizingRisk management
MQL5 articles

The article explains how to build an MQL5 expert advisor that turns MetaTrader 5's visual Strategy Tester into a manual chart-replay workspace. On-chart buttons let a tester open buy or sell positions and close positions; configurable inputs set lot size,…

BacktestingExecutionRisk managementPosition sizing
MQL5 articles

The article defines a way to scale strategy positions in a multi-strategy Expert Advisor using a normalized balance. First, test a fixed lot size over a chosen period, measure maximum equity drawdown, and set the fitted balance so that drawdown corresponds…

ForexPosition sizingRisk managementBacktesting
MQL5 articles

This article outlines an MQL5 Expert Advisor for a multi-level grid strategy. It organizes trades into independent baskets, each tracking direction, initial and current lot size, grid spacing, take-profit level and signal time. A moving average is used to…

Grid tradingPosition sizingRisk managementBacktesting
MQL5 articles

This article describes restructuring a multi-strategy Expert Advisor so strategy instances track virtual positions instead of placing market orders independently. A receiver collects the strategies’ requested volumes by symbol and converts their combined…

Risk managementPosition sizingPortfolio constructionExecution
MQL5 articles

In this interview, trader Leonid Velichkovsky reflects on using neural networks in automated trading and challenges the idea that they produce exceptional profits by themselves. He describes them as trading systems whose adaptive capacity can help detect…

Machine learningBacktestingRisk managementPosition sizing
MQL5 articles

This installment of a multi-currency Expert Advisor series outlines how to add a new strategy to an automated optimization workflow. It introduces SimpleCandles, a contrarian idea: after a configurable run of same-direction closed candles, open a position in…

Mean reversionVolatilityPosition sizingBacktesting
MQL5 articles

This article proposes balancing position sizes across instruments using each symbol’s tick value and average daily volatility. It combines those inputs into an estimate of risk per standard contract, then scales position volume relative to the highest…

Multi-assetForexVolatilityPosition sizing
MQL5 articles

The article compares position-sizing rules derived from linear, exponential, and hyperbolic balance-growth models. It first argues that money management presupposes a strategy with stop-loss and take-profit levels and positive expected value; where results…

Position sizingRisk managementStatisticsBacktesting
MQL5 articles

The document presents a five-stage framework for turning market structure, liquidity, and price behavior into a directional hypothesis and trade plan. It evaluates context across four configurable timeframes: broad bias, traded structure, setup conditions,…

Technical indicatorsBreakoutRisk managementPosition sizing
MQL5 articles

The article describes a MetaTrader 5 and Python system that uses rolling price data to estimate market uncertainty and adjust trading decisions. It calculates Shannon entropy from returns and squared returns, adds volatility and trend features, and feeds the…

VolatilityMachine learningRisk managementPosition sizing
Quantopian lectures

This lecture explains leverage as borrowing to increase the capital deployed in a trading strategy. It defines the leverage ratio and uses single-period examples to show how borrowed funds can amplify gains while interest reduces the benefit. Borrowing costs…

Risk managementPosition sizingPortfolio constructionEquities
Quantopian lectures

The document explains how spreading exposure across independent or weakly correlated bets can reduce portfolio volatility, while adding highly correlated assets may leave risk largely unchanged. It illustrates the principle first with simulated bets that…

Risk managementPortfolio constructionPosition sizingStatistics
Machine Learning for Trading

This notebook demonstrates position-level exits and portfolio-level controls through constructed examples. Static rules include stop losses, profit targets and time exits; dynamic rules include trailing stops that follow prior highs, tightening trails, and…

Risk managementPosition sizingBacktestingExecution
Machine Learning for Trading

This notebook tests whether standard portfolio allocation can improve an every-bar NASDAQ-100 trading strategy that is already burdened by transaction costs. It selects predictions using validation performance on the declared cost-feasible universe, then…

EquitiesPosition sizingPortfolio constructionExecution
Machine Learning for Trading

This notebook studies how position sizing affects FX backtests after the model has already selected which currency pairs to trade. It preserves the winning baseline’s predictions, signal mapping, costs, and execution settings, then varies allocation rules.…

ForexPosition sizingPortfolio constructionBacktesting
Machine Learning for Trading

This notebook applies position-level risk controls to leading ETF allocation combinations while keeping each underlying prediction, concentration, and allocator fixed. It compares stop-losses, trailing stops, and time exits with the original strategy,…

EquitiesRisk managementBacktestingPosition sizing
Machine Learning for Trading

This chapter presents portfolio construction as the process of converting return forecasts, risk estimates, and constraints into weights, leverage, and rebalancing decisions. It lays out a research workflow for documenting allocator choices, avoiding…

Portfolio constructionRisk managementPosition sizingBacktesting
Machine Learning for Trading

This notebook explains how to evaluate position-level exits and combine them with portfolio-wide controls. Fixed stop-loss, take-profit, and time exits are contrasted with trailing and tightening stops; a scaled exit reduces a position at successive profit…

Risk managementPosition sizingBacktestingPortfolio construction
Machine Learning for Trading

This notebook explains when a strategy is clearest as precomputed arrays and when it benefits from a sequential simulation that carries positions, fills, cash, realized profit and loss, or equity forward through time. Array-based backtests are attractive…

BacktestingPosition sizingPairs tradingRisk management
Machine Learning for Trading

This tutorial derives the Kelly fraction for a binary wager by maximizing expected logarithmic wealth growth, then extends the idea to continuous returns and a multi-asset portfolio. It uses symbolic differentiation and simulations with shared coin-toss…

Position sizingPortfolio constructionRisk managementStatistics
Machine Learning for Trading

This chapter presents a research workflow for using predictive models in trading, where stable out-of-sample forecasts may matter more than unbiased coefficient estimates. It covers regularized regression methods such as Ridge, LASSO, and Elastic Net, along…

Machine learningStatisticsBacktestingPosition sizing
Machine Learning for Trading

This notebook explains when a trading strategy is clearer to simulate bar by bar with evolving state than to express as precomputed signals or weights. It contrasts array-based backtests, which can be fast and convenient for parameter sweeps, with sequential…

BacktestingPosition sizingPairs tradingRisk management