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
Quantopian lectures
45 documents
Binance API docs
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

9,660 documents

MQL5 code base

This indicator uses Slow Stochastic values calculated on a selected symbol and timeframe to display a colored direction signal on a chart. It can also produce alerts, audio notifications, and mobile push messages. Users can configure the stochastic periods,…

Technical indicatorsTrend followingExecution
SuperMind

This post proposes ranking Chinese equities by capital-flow strength while filtering for company scale and repeated limit-up sessions within a recent period. The rationale is that stronger flow may indicate investor attention, larger companies may be more…

EquitiesMomentumBreakoutExecution
vn.py community

This forum post reports a failure during VeighNa’s genetic-algorithm optimization for a strategy backtest. The traceback reaches Python’s multiprocessing pool while it tries to send evaluation work to worker processes. Serialization then fails because the…

BacktestingExecution
Stratmill research code

This Python utility converts Bybit historical depth and trade files into the event array format used by HftBacktest. It reads order book updates from a zipped JSON stream and trades from a gzip-compressed CSV, creates depth, snapshot, clear, and trade…

CryptoMarket microstructureExecutionBacktesting
MQL5 code base

The document describes a script for placing a pending sell stop order at a trigger level below the current price. It sets stop-loss and take-profit distances in points from the trigger and allows the trader to set order volume through a money-management…

Position sizingExecutionRisk managementBreakout
MQL5 code base

The document explains a MetaTrader trade function that sizes positions from a risk budget and sets stop distance using the asset’s average true range. It calculates the allowed risk as a percentage of free margin, converts an ATR multiple into stop-loss…

Risk managementPosition sizingVolatilityTechnical indicators
MQL5 code base

This document explains a notification utility for trading software. It describes four message controls: showing an alert in a separate window, sending a push message to configured mobile terminals, writing a message to the log, and providing the message…

Execution
MQL5 code base

This brief programming note addresses a common Expert Advisor problem: identifying whether the system itself has open orders when the platform’s total-order count also includes orders placed manually. It introduces a boolean function called Check_Open_Orders…

ExecutionMarket microstructure
vn.py community

This forum exchange concerns semi-automated trading with VeighNa’s CTA framework. The questioner runs a strategy without a graphical interface and wants to change parameters manually while it is active, using those changes to trigger a manual entry and…

ExecutionHigh-frequency trading
NautilusTrader

This specification lays out a test framework for validating market data adapters. It organizes checks by data type, from instruments and order books through quotes, trades, bars, and derivatives. It emphasizes timestamp scale correctness and describes a…

Market microstructureExecutionRisk management
Stratmill research code

This exchange model for a level-three order book simulates limit and market orders without partial fills. Resting limit orders enter a queue model when they do not cross the opposing best quote. A marketable order, or a limit order priced through the best…

BacktestingExecutionMarket microstructureRisk management
Stratmill research code

This example demonstrates a basic workflow for preparing Bybit order book data and running it through a market-making backtest. It shows two conversion paths: a fused conversion for multi-level depth data and a conversion that selects a single depth level.…

CryptoMarket makingBacktestingMarket microstructure
TqSdk

This guide walks through a TqSdk workflow, from setting up an account and connecting to live quotes to reading synchronized bars, checking account and position references, and submitting or cancelling orders. Its central pattern is to create an API, request…

FuturesTechnical indicatorsBacktestingExecution
Lumibot

This reference explains two strategy lifecycle hooks for handling setup before trading begins. The before-market-open hook runs each day before the market opens; an example use is canceling outstanding orders. If a strategy launches after the market has…

Execution
vn.py

The document explains how to connect VeighNa trading software to Excel through its ExcelRtd module and PyXLL. After installing and configuring the commercial PyXLL add-in, users can enable the module in VeighNa Station or load it in a startup script. The…

FuturesExecutionMarket microstructure
MQL5 code base

The document describes a trading-platform script that calculates the largest lot size that can be opened using all free margin currently available in an account. It displays the calculated size in the chart’s upper-right corner for a default period of ten…

Position sizingRisk managementExecution
FMZ forum

This case study follows a live statistical-arbitrage strategy trading the residual between the EWY Korea ETF and Samsung Electronics and SK Hynix. A rolling log-price regression estimates hedge ratios; the residual is standardized into a z-score, with…

EquitiesArbitragePairs tradingMean reversion
Hyperliquid docs

The document explains how linked spot assets move between Hyperliquid’s HyperCore and HyperEVM. A token must first be linked to an EVM contract; transfers from Core use a sendAsset action directed to the token’s system address, while transfers from the EVM…

CryptoSpot marketsExecutionRisk management
MQL5 code base

The document describes a Reverse MACD indicator that estimates the price required on the next bar for the MACD line and its signal line to intersect. This projected crossover level may help traders approximate prices for pending orders. The idea reverses the…

Technical indicatorsExecution
Hummingbot docs

The document explains how a candle feed combines historical and live exchange data to maintain a rolling OHLCV window. Traders can configure the data source, trading pair, candle interval, and maximum number of stored records, then use the resulting data…

Multi-assetTechnical indicatorsExecution
SuperMind

This Chinese stock-selection note describes screening shares in the metaverse sector using an opening-session price condition and a ranking by capital-flow strength. The stated rule selects stocks whose 9:25 gain is below 6%, then prioritizes higher fund…

China marketsEquitiesExecution
MQL5 code base

The document describes an automated trailing-stop manager for MetaTrader 4. It monitors open positions and, after a chosen profit condition is reached, moves the stop loss as price advances favorably. Users configure the activation point, the distance…

Risk managementExecutionForex
vn.py community

A brief VeighNa forum exchange describes an order-timing problem in a strategy that constructs daily bars from intraday data. The user says the daily bar is completed at the 3 p.m. close, after which an order submitted by the strategy is canceled. They ask…

EquitiesExecutionMarket microstructure
MQL5 code base

The document outlines a MetaTrader 5 expert-advisor utility for retrieving a closed market trade by its position counting backward from the newest trade. An index of zero refers to the latest qualifying trade, while increasing the index selects progressively…

Execution