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
Lumibot strategies
7 documents
QuantRocket
7 documents
Awesome Quant
1 documents

Search the library

86 documents

TqSdk

This Python example describes a daily gold futures strategy using a short and a long Hull moving average (HMA). It opens a long position when the short HMA crosses above the long HMA and price is above the long average; the short signal crossing below is…

FuturesTrend followingTechnical indicatorsRisk management
TqSdk

This page is an index of complete strategy examples intended as starting points for adaptation in TqSdk. It groups examples into classic strategies, trend approaches, arbitrage, mean reversion, and algorithmic execution. Named examples include dual moving…

FuturesTrend followingArbitrageMean reversion
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
TqSdk

This reference describes how to retrieve account balances, positions, orders, and trades through TqSdk, and how those returned objects update as the API processes market and account events. It distinguishes futures-style objects from stock-style objects and…

FuturesEquitiesExecutionMarket microstructure
TqSdk

The visible code describes a market-data backtesting component for the TqApi framework. Its documentation explains how simulated quotes are produced from subscribed data: tick subscriptions provide more frequent quote updates, while bar subscriptions can…

BacktestingExecutionMarket microstructureFutures
TqSdk

This documentation explains how to search strategy parameters by running repeated backtests with different values. Its example varies the short lookback in a two moving average crossover strategy, creates a fresh simulated account for each run, and prints…

BacktestingStatisticsFutures
TqSdk

This reference explains commonly used fields in market data objects and in futures and stock trading objects. For quotes, K-lines, and ticks, it identifies prices, timestamps, volume, open interest, and other session or contract details. Separate tables…

FuturesEquitiesExecutionMarket microstructure
TqSdk

This code builds a synthetic steel mill profit spread from daily futures prices for rebar, iron ore, and coke. It calculates the spread as rebar minus weighted quantities of the two inputs, smooths it with a 15-day moving average, and estimates a standard…

FuturesCommoditiesMean reversionPairs trading
TqSdk

This example builds a daily direction classifier for a rubber futures contract. Near a scheduled end-of-day cutoff, it uses recent closing prices to calculate three technical features, aligns each historical feature row with the following session's…

FuturesMachine learningTechnical indicatorsBacktesting
TqSdk

This code example implements an intraday R-Breaker strategy for a futures contract. It calculates seven reference levels from the previous daily bar: a pivot, breakout thresholds, setup levels, and reversal entry levels. When flat, price crossing a breakout…

FuturesBreakoutMean reversionTechnical indicators
TqSdk

This documentation explains how to manage a TargetPosTask instance in a futures trading application, focusing on cancelling a task and checking when it has finished. It states that an account may have only one such instance per contract at a time, and that…

FuturesExecutionMarket microstructure
TqSdk

This beginner-level example describes a daily-bar futures strategy that combines two moving averages with the close’s position inside recent candle ranges. It opens a long position when price is above both averages and the prior two candles show a shift from…

FuturesTrend followingTechnical indicatorsRisk management
TqSdk

This guide compares TqSdk with direct development against the CTP interface, focusing on architecture, market data, and program flow. CTP connects directly to a futures broker’s trading system and uses event callbacks. TqSdk instead connects through…

FuturesExecutionMarket microstructureTechnical indicators
TqSdk

This code example implements an intraday R-Breaker strategy for a futures contract while allowing positions to remain open overnight. It calculates a pivot and six reference levels from the prior daily bar: breakout thresholds, observation levels, and…

FuturesBreakoutTrend followingTechnical indicators