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,…
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.
Search the library
9,797 documents
This brief description explains an indicator that displays a volume-weighted moving average as a sequence of candlesticks. The candlesticks are generated by processing a relevant price time series through the Volume-Weighted-MA algorithm. The stated purpose…
The document presents an implementation of a Dual Thrust style breakout system. On a new bar, it calculates a range from the larger of the recent high-to-low-close and close-high-to-low ranges, then places upper and lower trigger rails around the bar’s open…
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…
This tutorial extends a multi-symbol cryptocurrency contract-spread monitor into a grid-based hedging strategy. It pairs longer-term contracts with perpetual contracts, tracks spread levels, and opens or closes offsetting positions when grid thresholds are…
This intraday DAX strategy applies an opening-range breakout on one-minute data. It records the high and low of the two-hour morning range, then places stop entries above or below those levels after the range ends. The rules restrict entry to before a stated…
This research summary examines what drives convergence in the basis of stock index futures and how those drivers can inform cash-and-futures hedging. After accounting for dividend effects, it identifies the current contract’s annualized basis, the index’s…
This Chinese-language overview groups trading systems into trend-following, countertrend oscillation, swing, arbitrage and hedging, and intraday categories. It names examples built around moving averages, breakouts, oscillators, chart patterns, spreads, and…
The report teaser examines institutional participation in Bitcoin futures, options, and perpetual swaps during 2023. It compares CME and Deribit through rolling futures basis and open interest, interpreting CME’s higher basis and growth in open interest as…
This brief forum exchange concerns stop orders in VeighNa 4.3 when running multiple processes or strategies. A user reports that stop orders for exits refresh as expected with one process and one instrument strategy, but stop orders no longer appear after…
The document explains how Bitcoin ETFs provide indirect exposure to bitcoin through shares traded on traditional exchanges. It distinguishes spot funds, which hold bitcoin, from futures funds, which track futures contracts, and leveraged futures funds, which…
This post reports an intermittent runtime error in a live trading script when code attempts to read a position’s price field. The author asks whether the cause could be a null custom field or missing price data, and whether wrapping the position query in a…
Dual Thrust is presented as an intraday trend-following method that sets upper and lower breakout levels around the current session’s opening price. It estimates a lookback range from recent highs, lows, and closes, then scales that range with separate…
This utility displays an instrument’s swap values on a chart, using different text colors for positive and negative values. It also shows the instrument name and the date and time at which the values were captured. Because swap rates can change, the…
The report studies liquidity, volatility, and return distributions in the CSI 1000 near-month futures contract using minute bars over a specified 2024 sample. It examines log returns across several aggregation windows, compares full-session data with…
This indicator displays nested daily-range zones derived from average high-to-low movement over several lookback windows, including a 20-day measure. It draws rectangles around the current day’s range and marks levels offset from the current daily high and…
The article explains how trading volume and open interest can help assess liquidity in Bitcoin and Ethereum derivatives. Volume indicates trading activity and can be broken down by exchange, currency, and expiration; open interest counts outstanding…
This tutorial explains how to request foreign exchange futures market data through an HTTP endpoint and a WebSocket connection. It uses the micro British pound continuous contract as an example, showing how request parameters identify the bar interval,…
The document describes an intraday DAX opening range breakout approach for five- and fifteen-minute charts. It records the session high and low during the opening window, then uses a five-period TEMA crossing those levels as the entry signal. Long and short…
This guide explains how to use historical backtests and parameter optimization as research checks before deploying a trading strategy. It outlines setup choices such as the instrument and exchange, bar interval, date range, fees, slippage, contract…
This article explains a module for assigning an Expert Advisor different trading permissions according to time of day and weekday. Its six modes range from allowing both directions or only one direction, to stopping trading and closing positions, waiting…
This example describes a way to run a VeighNa recorder for Chinese futures data during market sessions. A parent process checks the clock and starts a child process during configured daytime and overnight windows, then terminates it outside those periods.…
This example presents a basic futures strategy using daily Bollinger Bands. It calculates the 26-period bands with a parameter of 2, enters long when the latest price rises above the upper band, and enters short when it falls below the lower band. The target…
The post outlines a way to backtest a continuous sequence of dominant futures contracts in a VeighNa-based system. It argues that an exchange-style continuous index can differ from trading actual contracts because it blends contract prices and may produce…