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

560 documents

vn.py community

A VeighNa community thread addresses why the official spread backtesting example cannot read data even though the same data source works in CTA backtesting. The response explains that spread-trading backtests require their own prepared dataset: data must…

BacktestingPairs tradingFutures
vn.py community

This forum thread discusses installing vn.py on an Apple Silicon Mac, with a particular focus on launching its CTP gateway. Participants point to the gateway project's installation guidance and identify Python environment conflicts as one possible cause. One…

EquitiesExecutionChina markets
vn.py community

The document explains a futures workflow that separates continuous, adjusted data used to generate signals from actual contract prices used for trading. Adjusted front-month continuous prices can make historical trends and indicators more consistent across…

FuturesBacktestingExecutionTechnical indicators
vn.py community

This forum exchange addresses a VeighNa startup message saying that a data service module cannot be loaded, despite the user having installed VeighNa Station and the CTP package. A respondent attributes the message to an incorrect data feed name, then…

FuturesExecution
vn.py community

This forum exchange explains how to guide an AI assistant when generating VeighNa CTA strategy code. It recommends supplying a focused set of references instead of the entire codebase: the CTA base class, the ArrayManager indicator API, and one or two…

Machine learningTechnical indicatorsExecution
vn.py community

A VeighNa community exchange answers whether the `self.sync_data()` method is available in version 2.5.7 spread-trading strategies. A user reports that the method works in CTA strategies but raises an error when called from a spread strategy while attempting…

Pairs tradingExecutionMarket microstructureStatistics
vn.py community

The forum post addresses why the Average True Range calculated in VeighNa may differ substantially from the value shown in TradingView. It proposes checking several potential causes: differences in the ATR formula or smoothing method, discrepancies in the…

Technical indicatorsVolatilityStatistics
vn.py community

The post explains how a vn.py strategy can retrieve account positions and active orders through the main engine. It identifies the returned objects as position and order records, with fields such as instrument, direction, quantity, average price, profit and…

ExecutionRisk managementFutures
vn.py community

The article recommends cleaning tick data before using it in strategy research or backtests, since duplicate records, implausible prices, out-of-order timestamps, and missing fields can distort results. Its example workflow sorts records by timestamp,…

Market microstructureBacktestingStatistics
vn.py community

This forum exchange discusses what happens to a futures strategy when it rolls from one lead contract to the next, especially when the contracts have a price gap. The reply explains that rolling changes the contract used by the strategy. During…

FuturesRisk managementBacktesting
vn.py community

This brief forum exchange describes a live-trading problem: a VeighNa strategy initializes and starts, market data appears connected, and its entry condition is met, yet it sends no order. The author reports that the same strategy behaves as expected in…

ExecutionBacktesting
vn.py community

This VeighNa community contribution describes additions to a backtesting statistics engine for evaluating strategies with regressed annual return (RAR), R-Cubed, and Robust Sharpe. RAR is calculated by regressing cumulative returns across time intervals and…

BacktestingStatisticsRisk management
vn.py community

This short forum exchange addresses why a VeighNa Trader installation may show account and login information while its market-data area remains blank. The user reports that both trading and market-data servers connected successfully, but other panels did not…

Execution
vn.py community

A forum participant asks whether a CTA approach fits trading futures and options from indicators while seeking to hedge positions. The response points to a portfolio strategy module for developing strategies that trade multiple contracts. This suggests…

FuturesOptionsPortfolio construction
vn.py community

This short VeighNa community exchange answers a practical question about downloading one-minute data for all listed and expired options on several Chinese stock indexes. A user asks whether entering a family code can retrieve every contract at once; the…

OptionsChina markets
vn.py community

A VeighNa community exchange distinguishes the roles of two option modules in version 3.9.3. It describes the open-source OptionMaster as intended for semi-automatic volatility trading, while the Elite edition's OptionStrategy module is designed for fully…

OptionsVolatility
vn.py community

This forum reply describes a sequence for connecting VeighNa 4.3.0 to the SimNow futures environment when login error 4097 appears. It advises selecting CTP rather than the CTP test option in the station, then entering the SimNow account credentials and…

FuturesExecution
vn.py community

A VeighNa community thread discusses a CTP connection setup where the interface’s lower-left log showed no activity despite configuration checks and tests on two computers. One user reports resolving the issue by running the Station update check and applying…

FuturesExecutionMarket microstructure
vn.py community

The document describes a local data-loading problem in VeighNa: a Jupyter Notebook backtesting example reports that historical data loading has completed but contains zero records. The proposed fix is to run Jupyter Notebook from the CTA backtesting example…

Backtesting
vn.py community

The article explains a WebSocket subscription workflow for delivering minute-level Chinese A-share market data to a VN.PY strategy. It contrasts a persistent server-push connection with repeated HTTP polling, then outlines connecting to a data source,…

EquitiesChina marketsExecutionMarket microstructure
vn.py community

This example configures a futures backtest in vn.py with one-minute data, a defined date range, trading costs, contract settings, and an ATR-RSI strategy. It then uses the engine’s optimization setting to search over RSI length and entry parameters,…

FuturesBacktestingTechnical indicators
vn.py community

This code walkthrough explains how a Dual Thrust strategy tracks each day’s opening price, high, and low. When a bar’s date differs from the prior bar’s date, it uses the accumulated previous-day range to set long and short entry levels around the new day’s…

BreakoutFuturesTechnical indicatorsExecution
vn.py community

This brief forum exchange addresses a live-trading timestamp anomaly in which a morning tick appears to be assigned a late-night time. The response points to bar construction rather than necessarily a timezone conversion problem: the bar synthesizer uses the…

Market microstructureExecution
vn.py community

This short forum exchange asks how to change a running strategy’s parameter without stopping it. The example is a strategy operating without a user interface that has a close flag initially disabled; another program would set the flag so the strategy can…

ExecutionRisk management