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

86 documents

TqSdk

The document explains how TqSdk’s wait_update loop drives data subscriptions, background tasks, and trading requests. Call get_* methods once and keep their returned objects as live references; subsequent update calls refresh them. Use is_changing to respond…

ExecutionFuturesBacktesting
TqSdk

This guide explains how to split one live futures account into multiple locally managed strategy accounts with TqSdk. Each strategy account keeps its trading data separate across sessions, allowing positions, orders, funds, and profit and loss to be viewed…

FuturesPortfolio constructionExecutionRisk management
TqSdk

The script describes a daily gold-futures strategy using the Commodity Channel Index (CCI) with a 10-period lookback and thresholds at 100 and -100. It enters long when CCI moves back from below the lower threshold into the middle zone, and enters short when…

FuturesMean reversionTechnical indicatorsRisk management
TqSdk

This tutorial explains two ways to run a strategy across multiple instruments with different parameters, using a dual moving-average crossover as its example. One approach launches a separate process for each instance, passing the symbol and moving-average…

FuturesTrend followingTechnical indicatorsExecution
TqSdk

This documentation page introduces two example execution algorithms: TWAP, which distributes trading over time, and VWAP, which weights execution according to trading volume. It assumes readers already understand target-position tasks, order placement and…

ExecutionMarket microstructure
TqSdk

This reference compares direct order placement, cancellation, target-position control, scheduled execution, and TWAP tools for futures and stock workflows. Manual orders suit cases requiring explicit price selection, cancellation decisions, partial-fill…

ExecutionFuturesEquities
TqSdk

This example describes a daily futures strategy using the Vortex Indicator to identify directional crossovers. It calculates positive and negative vortex movement relative to rolling true range, then opens a long position when the positive line crosses above…

FuturesTrend followingTechnical indicatorsRisk management
TqSdk

This strategy applies a moving average of the difference between daily closes and opens as a Qstick signal on a China-listed equity index futures contract. It enters long when Qstick crosses above zero and price is above its simple moving average, and enters…

FuturesTechnical indicatorsTrend followingRisk management
TqSdk

The document describes using TqSdk from Jupyter Notebook for market analysis and research. It highlights the notebook’s interactive workflow, where code can be run incrementally, and its ability to display charts alongside analysis. It points readers to…

Execution
TqSdk

This futures strategy tracks the crush spread formed from soybean, soybean meal, and soybean oil contracts. It weights the three contract prices using an approximate processing ratio, computes the spread as the combined meal and oil value less the soybean…

FuturesCommoditiesMean reversionArbitrage
TqSdk

This reference explains how TqSdk identifies contracts across Chinese exchanges and describes available quote, K-line, and tick data. It gives examples of futures, options, spread contracts, continuous contracts, indices, stocks, and exchange warehouse…

FuturesOptionsEquitiesChina markets
TqSdk

This practical article discusses market data reliability as an operational concern for high-frequency foreign exchange systems. It describes failure modes such as delayed quotes, dropped connections, and anomalous prices, which can interfere with short-term…

ForexHigh-frequency tradingExecutionMarket microstructure
TqSdk

This example implements a daily futures strategy around triple-smoothed exponential moving averages. It calculates TRIX and a rolling signal line, then enters long when TRIX crosses above the signal or short when it crosses below. The position is set to a…

FuturesMomentumTechnical indicatorsRisk management
TqSdk

This terminal guide explains how to launch, stop, review, and rerun a strategy backtest. It describes the evolving strategy report, logs, and trade chart, including how fills, positions, working orders, and log timestamps are displayed. Saved runs can be…

BacktestingExecutionMarket microstructureFutures
TqSdk

This documentation describes two related tools for calculating technical signals from K-line data. The technical-indicator module provides named indicator functions that take a pandas DataFrame of bars and return a DataFrame of calculated series. MACD is…

Technical indicatorsFutures
TqSdk

TqScenario supports synchronous what-if calculations from a snapshot of futures positions and account equity. The document explains how to initialize that snapshot, simulate opening or closing orders, change a symbol’s margin rate, and inspect resulting…

FuturesRisk managementPosition sizing
TqSdk

This trading script implements a daily Keltner Channel strategy for a CFFEX index futures contract. It calculates an 8-period exponential moving average as the channel center and uses a 7-period average true range with a 1.5 multiplier to set the bands. A…

FuturesTrend followingBreakoutTechnical indicators
TqSdk

This example describes a mean-reversion strategy for two SHFE futures contracts. It uses a Kalman filter to update the hedge ratio between the instruments, calculates the resulting spread, and standardizes it against a rolling window to create a z-score. The…

FuturesPairs tradingMean reversionBacktesting
TqSdk

This documentation page indexes a sequence of option-use examples for a trading SDK. The topics move from retrieving live option quotes and screening contracts to classifying options as in the money, at the money, or out of the money. Further examples cover…

OptionsDerivatives pricingVolatilityArbitrage
TqSdk

This example strategy trades relative price relationships among soybean oil, rapeseed oil, and palm oil futures. It calculates a normalized spread index from the three daily closing prices, then compares five-period and fifteen-period moving averages. A…

FuturesCommoditiesPairs tradingMean reversion
TqSdk

This futures strategy uses a six-period RSI on daily bars to trade reversals in a single contract. It enters long after RSI has been below 35 and then crosses back above that level; it enters short after RSI has exceeded 65 and then falls below it. Positions…

FuturesMean reversionTechnical indicatorsRisk management
TqSdk

This documentation explains the basic structure of a TqSdk trading program. A single TqApi instance manages the server connection, in-memory market and account data, trading commands, background coroutine tasks, and backtesting. The API can use live,…

FuturesExecutionBacktesting
TqSdk

This futures execution example sizes each order as a configurable fraction of visible top-of-book volume, capped by the remaining target quantity. It selects either the opposing quote or same-side quote as the volume reference, then submits an order at the…

FuturesExecutionMarket microstructurePosition sizing
TqSdk

This example describes a daily gold futures strategy using a 10-bar Aroon calculation. It opens a fixed-size long position when Aroon Up crosses above Aroon Down or when Aroon Up is above 75 while Aroon Down is below 25. The short rules reverse those…

FuturesCommoditiesTrend followingTechnical indicators