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 code base

The system described opens trades in the direction of a rising or falling trend, with a configurable distance between subsequent trades. That distance also serves as the stop loss and take profit for a trade. If a buy closes at its stop loss, the system…

Trend followingPosition sizingRisk management
MQL5 code base

This expert advisor combines a moving average with MACD to open trades and add to losing positions. A sample buy setup requires MACD to be below zero, its main line to exceed its signal line, and price to be above the moving average. Two configurable filters…

ForexTechnical indicatorsPosition sizingRisk management
MQL5 code base

LotLine is a chart utility that displays a horizontal price line and calculates the trade volume, expressed in lots, needed to move a position to the price represented by that line. The user can drag the line to a different chart level, and the displayed…

Position sizingExecutionRisk management
pysystemtrade

This code models order and trade state for a scalping system. When flat with no open orders, it places buy and sell limit orders around the current price, with their distance based on a volatility-like measure R and a configurable multiplier. After one order…

ExecutionRisk managementPosition sizingBacktesting
MQL5 code base

The document describes an Expert Advisor that manages open positions as a group. It closes all positions when their combined profit exceeds a user-set threshold, measured either as a percentage of the account deposit or in deposit-currency units. This offers…

Risk managementPosition sizingExecution
MQL5 code base

This document introduces GARCH(1,1) as a way to forecast conditional variance and presents it as an alternative to relying only on backward-looking Average True Range for volatility-sensitive risk controls. It highlights volatility clustering, where large…

VolatilityStatisticsRisk managementPosition sizing
MQL5 code base

This document describes an educational MetaTrader 5 expert advisor that trades breakouts of a range formed from the highest high and lowest low over a configured number of completed bars. At a specified server time, it checks whether the range width falls…

FuturesBreakoutVolatilityPosition sizing
MQL5 code base

This document provides a MetaTrader-style function for adjusting stop losses on open buy and sell orders. It can filter which orders it manages by symbol and magic number. For a buy, the logic first allows a stop to be placed at a configured initial level…

Risk managementExecutionPosition sizing
MQL5 code base

This document describes a MetaTrader indicator that calculates a breakeven price from open positions and plots the result as a horizontal chart line. It also displays the number of trades, total lots, and the distance to breakeven in points and profit or…

Technical indicatorsRisk managementPosition sizingExecution
Amberdata research

The document gives a rough method for estimating the capital capacity of a cryptocurrency market-making strategy. Capacity is defined as the point where adding funds reduces returns or where capital utilization can no longer stay fully effective. In a…

CryptoMarket makingExecutionBacktesting
MQL5 code base

This chart-based calculator converts a chosen account-risk percentage and stop price into a position size. The user sets a risk base such as balance, equity, or free margin, then places or moves Entry and Stop lines. The tool calculates the potential loss in…

Risk managementPosition sizingExecution
MQL5 code base

This document describes a MetaTrader 5 Expert Advisor for scalping gold against the US dollar on a five-minute chart during London and New York sessions. Its controls include a daily loss stop and a maximum spread filter. Users can set trade risk as a…

CommoditiesForexVolatilityRisk management
FMZ forum

The article proposes modifying a range-trading grid to generate trading volume, aimed at market makers or traders seeking lower fees. It describes using maker orders to add positions as price falls, then closing profitable positions after a larger rebound…

Grid tradingMarket makingExecutionRisk management
SuperMind

This screen looks for mainland Chinese main-board stocks with turnover between 3% and 12% and a daily gain above 1%. It also describes a market-cap ceiling of 10 billion yuan and a positive profitability or growth condition. The rationale is to combine…

China marketsEquitiesMomentumPosition sizing
MQL5 code base

MACD Power is described as an expert advisor using two MACD indicators to trade forex pairs and Nasdaq stocks. The document names four-hour and daily charts as its main timeframes and says it can also be used on hourly charts. It notes that the EA acts on…

ForexEquitiesMomentumTechnical indicators
MQL5 code base

The document describes an Expert Advisor that builds a price channel from two moving averages: one calculated on high prices and one on low prices. It places Buy Stop and Sell Stop pending orders near the channel boundaries, aiming to enter when price breaks…

ForexBreakoutTechnical indicatorsPosition sizing
SuperMind

The document explains the Kelly criterion as a way to choose leverage and distribute capital across trading strategies to maximize long-run compound growth. Under assumptions of stable return means and standard deviations, normally distributed returns,…

Risk managementPosition sizingPortfolio constructionStatistics
MQL5 code base

The document describes a foreign-exchange expert advisor that uses MACD to choose trade direction, then adds positions as price moves by a configurable point interval. Each subsequent position is larger than the previous one, with the size multiplier…

ForexTechnical indicatorsPosition sizingRisk management
MQL5 code base

The document describes an Expert Advisor that uses Stochastic Oscillator signals to trade EUR/USD with a martingale approach. It names the strategy’s idea author and code author, and notes that the settings require optimization for each symbol and timeframe.…

ForexTechnical indicatorsPosition sizing
Stratmill research code

The code describes a grid market-making approach that repeatedly places buy and sell limit orders around a forecast mid-price. The forecast is simply the current best bid and ask midpoint, with no alpha adjustment in this implementation. A relative…

Grid tradingMarket makingExecutionPosition sizing
MQL5 code base

The document describes an Expert Advisor that runs three independent trading systems, each based on a different indicator: BrainTrend_V2, AbsolutelyNoLagLWMA, or X2MACandle. A system can open long or short positions when a bar closes and its indicator…

ForexTechnical indicatorsTrend followingPosition sizing
SuperMind

This post proposes a stock screen combining daily amplitude above one percent, codes beginning with 60, and an institutional buying signal. Its examples express amplitude as the day’s high-low range divided by the previous close. The institutional condition…

EquitiesChina marketsTechnical indicatorsPosition sizing
MQL5 code base

The document describes an Expert Advisor that trades from the Vertical Horizontal Filter (VHF), an indicator attributed to Adam White. It presents three ways to interpret VHF: its level can indicate trend stability, its direction can distinguish growing…

Technical indicatorsTrend followingForexPosition sizing
MQL5 code base

The document describes a lot-size calculator that limits trade risk to a chosen fraction of available account funds. It measures the risk distance from the entry price to an emergency stop in pips and uses pip value, expressed in the account’s main currency,…

ForexRisk managementPosition sizing