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 Trader user reports that the platform cannot load its iFind data service module, even though the relevant Python packages are installed and can be imported. The community reply points to the global configuration: the provider name must be entered…

Futures
vn.py community

Peek+ is a configurable indicator that looks back over a window to find when the most recent highest high or lowest low occurred. It turns those offsets into separate streak measures associated with persistent upward and downward extreme-setting. A signal…

Technical indicatorsMean reversionBreakout
vn.py community

This forum response offers a troubleshooting sequence for multiple VeighNa strategies that appear to stop responding. It recommends checking whether logs continue, adding output in tick or bar callbacks to confirm incoming data, verifying that a strategy is…

ExecutionMarket microstructure
vn.py community

This short forum exchange explains why a vn.py CTA strategy receives trade notifications through only one `on_trade` method when both the base template and the strategy define that callback. The strategy inherits from the template, and defining `on_trade`…

Execution
vn.py community

The discussion describes a rolling-window backtest in which parameters are optimized on a sequence of historical months and then applied to the next month. As the test advances, the training window shifts forward by one month, so each new period is evaluated…

BacktestingStatistics
vn.py community

A trader asks where an individual can access tick-by-tick trades that include buyer or seller initiation, intending to calculate aggressive buying and selling volume at each price for an order-imbalance strategy. The reply says that ready-made aggressor-side…

Market microstructureExecutionStatistics
vn.py community

A short forum exchange asks how to obtain roughly two decades of historical futures and options data at hourly, daily, weekly, and monthly frequencies for backtesting. One reply says that such data must be purchased, particularly minute-level data. The…

FuturesOptionsBacktesting
vn.py community

A VeighNa community exchange discusses penetration-test information that was collected, but showed a timestamp seven hours off. A respondent suggests checking the computer’s time zone, noting that the machine may be set to UTC. This points to a basic…

Execution
vn.py community

This brief forum exchange asks whether VeighNa's main engine position converter loads positions that are already held when it initializes. The question gives a concrete example: whether a long position carried from the previous day will be reflected in the…

FuturesExecution
vn.py community

A trader asks how to identify the originating strategy for each trade received in a trade callback, so fills from one strategy can be grouped together. The reply suggests capturing the order’s reference field when an order arrives and using it to identify…

Execution
vn.py community

This short forum post concerns an error that repeatedly appears when connecting VeighNa, also known as VN.PY, to Interactive Brokers through the IB API. The traceback ends with a Python TypeError: the API invokes the wrapper’s error callback with more…

ExecutionFutures
vn.py community

This overview explains vn.py as a modular framework for automated trading. The MainEngine coordinates gateways, applications, databases, and data services, while the EventEngine routes market, order, and other messages to subscribed components. A typical…

ExecutionMarket microstructureBacktestingRisk management
vn.py community

This forum exchange clarifies how VeighNa's local stop orders are displayed and triggered. The price shown in the stop-order interface is the trigger price, rather than the price of the limit order that may be sent after triggering. A user reports that…

ExecutionRisk management
vn.py community

The discussion explains that the number of contracts a default VeighNa strategy can subscribe to depends on available CPU, memory, and network capacity, as well as strategy complexity and the frequency of incoming market data. Tick feeds generally require…

ExecutionRisk management
vn.py community

This event outline describes a quantitative study of option spread strategies, with a focus on gold options. Topics include straddles and strangles, bull and bear spreads, butterfly spreads, and put-call parity. It proposes examining the structure of these…

OptionsCommoditiesBacktestingVolatility
vn.py community

This Chinese-language forum post examines how a futures gateway updates a position object’s prior-day volume while processing investor-position responses. The shown handler creates or retrieves a position by instrument and position direction, then applies…

FuturesExecution
vn.py community

The discussion clarifies that a strategy’s position variable represents net exposure. A long position of one unit followed by an additional short opening trade of one unit nets to zero in that variable, rather than retaining separate counts for long and…

Risk managementPosition sizing
vn.py community

This short forum post reports that version 1.2.0 of an option hedging engine and its monitoring component appear to submit many orders before the market opens, with those orders rejected. The author suggests the components should check whether the current…

OptionsExecutionRisk management
vn.py community

This brief forum post advocates managing market data as files rather than relying solely on a database, particularly when handling large volumes of tick data. The author shares a personal approach using Parquet files and points readers to an implementation…

Market microstructureExecution
vn.py community

The post asks why Alpha158 labels use different forward-return horizons in two implementations. It compares a label spanning the close at T+1 to the close at T+3 with a Qlib label spanning T+1 to T+2, then relates those choices to China’s T+1 stock-trading…

China marketsEquitiesBacktestingMachine learning
vn.py community

This forum exchange concerns a VeighNa strategy that logged minute bars during a SimNow session but produced no logs or apparent activity the next morning, even though the interface still showed a CTP connection. A participant recommends adding internal…

FuturesExecutionChina markets
vn.py community

This forum exchange concerns changing a Turtle-style CTA strategy from a fixed number of contracts to dynamically calculated trade size based on risk. A user reports editing the strategy code through a backtest interface but seeing results continue to use…

FuturesBacktestingPosition sizing
vn.py community

The discussion addresses adding five- and fifteen-minute intervals to VN.py version 3.4.0 for backtesting. One reply suggests that when the source data is already stored at those resolutions, importing and selecting it as one-minute data can work because…

BacktestingExecutionFutures
vn.py community

This brief VeighNa forum exchange asks how to adjust bar construction for the morning futures market break from 10:15 to 10:30. A respondent explains that the BarGenerator currently divides data according to timestamps and asks which kind of bar the user…

FuturesBacktesting