This example implements a tick-driven futures or securities strategy using the wtpy framework. It estimates a theoretical price from the best bid and ask, weighted by the quantities resting on the opposite sides of the book, then compares that estimate with…
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
5 documents
This Python data-feed example adapts RQData historical futures data for use with the Wt trading framework. It maps standardized instrument codes to RQData symbols, requests bar or tick records, renames fields, and converts rows into Wt bar and tick…
This overview catalogs Python examples for the WonderTrader framework, including CTA strategies, futures and stock backtests, futures arbitrage, optimization, reinforcement learning, and high-frequency trading. It names Dual Thrust as a sample strategy used…
This Wtpy CTA strategy calculates upper and lower intraday trigger levels from recent highs, closes, and lows, scaled by configurable parameters around the current bar's open. When flat, it enters long on an upper-level break and, for non-stock instruments,…
This code describes a Dual Thrust style breakout strategy applied across a list of instruments. It calculates a reference range from prior bars using the highest high and close and the lowest low and close, then scales that range by separate parameters to…