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

vn.py community

This forum post presents a question about why a simulated account with other positions does not show margin as expected. It includes a long VeighNa CTA strategy example that attempts to find a USD account, read account balance and available funds, and derive…

FuturesRisk managementPosition sizingExecution
ProRealCode

This ProOrder system takes long and short positions from an external Delphic-TP Combo indicator, with fast and slow simple moving averages used as reference lines. The author gives one daily-chart starting configuration and says the averages need retuning…

CommoditiesTrend followingTechnical indicatorsPosition sizing
MQL5 code base

This document describes a chart-based trade management tool for positions on the current symbol. Its controls include basket-level breakeven tied to total profit, configurable profit locking, price-distance trailing stops, and per-position breakeven and…

Risk managementPosition sizingExecutionForex
TqSdk

This example describes a futures grid strategy centered on a chosen starting price. It creates a fixed number of price levels on both sides, with each successive level set a constant percentage lower for the long side or higher for the short side. The target…

FuturesGrid tradingPosition sizingExecution
MQL5 code base

The document describes a trading class that tracks hidden stop loss and take profit levels while placing wider live levels with the broker. The live orders are intended to provide protection if the connection between the client and broker fails. The class…

Risk managementExecutionPosition sizing
MQL5 code base

The document describes an automated trading system that combines a drawn trend line with two moving averages. It trades in the direction of the trend, using the trend line as a filter alongside the averages. The system is intended for forex pairs and stocks,…

ForexEquitiesTrend followingTechnical indicators
MQL5 code base

This note describes a simple expert-advisor rule based on the signs of two MACD indicator lines. It opens a buy when both lines are positive and a sell when both are negative. When their signs differ, the position is closed. The document also lists…

Technical indicatorsMomentumPosition sizing
MQL5 code base

This Expert Advisor looks for a chosen number of identical directional candles in sequence. It opens a buy position after a run of bullish candles and a sell position after a run of bearish candles. The version described exposes inputs for the required…

ForexTechnical indicatorsPosition sizingRisk management
MQL5 code base

This document describes an automated strategy that combines two moving averages with trend lines drawn from zigzag points. The trend line is intended to filter trades, while the EA uses open-candle prices and offers take-profit, stop-loss, trailing-stop,…

ForexEquitiesTechnical indicatorsRisk management
MQL5 code base

This example describes a single-symbol expert advisor that uses the DeMarker indicator to generate contrarian entries. It reads indicator values on a selected timeframe and sets a sell signal when the prior reading is above an upper threshold and the current…

ForexTechnical indicatorsMean reversionPosition sizing
Freqtrade

The strategy demonstrates time-weighted average price execution by splitting entries and exits into equal-sized portions spaced at fixed time intervals. It configures the number of slices and spacing, and uses an RSI indicator on a 15-minute timeframe to…

ExecutionMarket microstructureTechnical indicatorsPosition sizing
FMZ forum

The document offers practical guidance on using automated trading systems: limit strategy changes, choose a small set of instruments or approaches, keep positions controlled, and give a selected model time to operate. It emphasizes that a system is a tool…

Risk managementPosition sizingBacktestingTrend following
ProRealCode

The indicator looks for price to remain beyond a dynamic band around an exponential-average anchor, then return inside it. It treats that failed acceptance as a possible reversal setup and combines acceptance duration with the close-back distance, candle…

Technical indicatorsMean reversionRisk managementPosition sizing
MQL5 code base

The document explains why a broker-submitted stop loss may execute at a different price from the requested level. It attributes this to slippage: in the described ECN account setup, the broker closes the position at the first available price after the stop…

Risk managementPosition sizingExecution
Cryptohopper blog

This article defines a trading system as the full set of decisions and practices surrounding a strategy, rather than entry signals alone. It recommends choosing specific markets and assets, setting measurable return goals, studying and backtesting candidate…

Risk managementPosition sizingBacktesting
SuperMind

This tutorial walks through building a basic quantitative strategy for a single Chinese equity. It uses a five-day and a twenty-day moving average of adjusted daily closing prices: the strategy targets a fully invested position when the shorter average is…

EquitiesTechnical indicatorsTrend followingBacktesting
backtrader

This code example implements a long-only moving average crossover strategy in Backtrader. It calculates two simple moving averages, with default lookback periods of 10 and 20 bars, and adds a long signal when the shorter average crosses the longer one. A…

EquitiesTrend followingTechnical indicatorsBacktesting
pyfolio

The document describes a trade-analysis method that turns a stream of transactions into completed round trips. It first combines nearby transactions in the same direction, using volume-weighted average prices, then matches opposing quantities in FIFO order…

StatisticsBacktestingRisk managementPosition sizing
MQL5 code base

This trading script opens a buy position with stop-loss and take-profit distances set in points from the current price. Its stated risk-control feature uses a configurable fraction of account equity to determine the loss associated with a triggered stop.…

Risk managementPosition sizingExecution
NautilusTrader

The document explains how order lists group orders and how OTO, OCO, and OUO relationships coordinate child activation, cancellation, or quantity changes. The behavior depends on the matching engine, emulator, adapter, venue, or strategy logic, so metadata…

ExecutionRisk managementPosition sizingDerivatives pricing
MQL5 code base

This module calculates trade size so that the loss at a specified stop price corresponds to a chosen percentage of the account deposit. The described inputs are the risk percentage and stop-loss price; the calculation converts the permitted cash loss into…

Position sizingRisk managementForex
SuperMind

This Chinese stock-selection post describes a screen combining metaverse-related stocks, a close above the prior day’s low, and exclusion of stocks that closed at the prior day’s limit-up level. It gives indicator-style and Python examples for these…

EquitiesTechnical indicatorsMomentumPosition sizing
ProRealCode

This ProRealTime indicator script is designed to help plan and monitor a trade on a price chart. Inputs include capital, a percentage risk allowance, entry and stop prices, a reward-to-risk ratio, and an option to adjust the stop using average true range.…

Risk managementPosition sizingTechnical indicatorsExecution
backtesting.py

This tutorial demonstrates how to combine reusable strategy components in a backtesting framework. It turns a short and a long simple moving average crossover into a vectorized, long-only entry signal, sizes entries as a share of available liquidity, and…

BacktestingTechnical indicatorsTrend followingRisk management