Dual Thrust Breakouts on OKCoin Futures
Summary
This educational implementation of Dual Thrust trades futures breakouts using a price range calculated from recent highs, lows, and closes. It places an upper and lower trigger around the current bar’s open, with configurable range multipliers. A close above the upper level shifts the position long; a close below the lower level shifts it short. The example uses quarterly and near-weekly contract choices as parameters, supports configurable contract size and polling intervals, and displays candles, trigger levels, and trade markers.
The source describes a live trading template, not a performance study, and gives no backtest results. It uses limit orders near the observed market price and repeatedly retries order placement, so fills and execution behavior are material to its operation. The document explicitly frames the code as a teaching example and warns that calendar-spread trading carries risk and the strategy needs further refinement before live use. Its grid-like configurable levels and position transitions should not be mistaken for evidence of profitable spread behavior.
Key ideas
- The Dual Thrust range uses recent high, low, and close values to set breakout levels around the current open.
- A close above the upper trigger enters or reverses to a long position, while a close below the lower trigger enters or reverses short.
- The example trades a spread between quarterly and near-weekly futures contracts.
- It includes configurable trigger spacing, profit distance, node count, and contract quantity.
- The source is a teaching template without performance evidence and warns of spread-trading risk.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.