Multi-Contract Futures Strategy with EMA Breakouts and Daily Filters
Summary
This code describes a multi-contract futures strategy that combines daily contract selection with three-minute entry signals. It ranks instruments by trading activity relative to open interest and by daily range relative to the open, then permits new positions in a rolling subset of the lower-ranked instruments. For entries, it compares fast and slow exponential moving averages and checks recent highs or lows for breakout conditions. Position size is tied to a capital setting, leverage multiplier, price, and contract size.
The strategy tracks recent swing lows and highs as stop levels and exits when a bar closes beyond the relevant stop. The document provides implementation code, but no backtest results or evidence that the signals are profitable. The code also leaves important behavior unclear: it contains apparent naming and initialization inconsistencies, and its comments and conditions do not fully establish how contract ranking or trade execution should work. It should be treated as an incomplete strategy example rather than a validated system.
Key ideas
- The strategy selects eligible contracts using daily activity and range measures.
- Three-minute entries combine fast and slow EMAs with recent price breakouts.
- Position size is calculated from capital, price, and contract size.
- Recent swing points define trailing stop levels, with exits triggered by a close beyond the stop.
- The document provides no performance evidence and includes apparent implementation inconsistencies.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.