Automated Futures Trading: Building a Rule-Based Bot
These are the actual gates Algo Lisa's engine evaluates before every order — published so you can copy the structure, not just the idea.
1. Session gates
Regular trading hours only. No new entries after 3:00 PM ET, and every position is flat before the close. The first fifteen minutes after the bell accept only the highest-scoring setups, because spreads are wide and the opening range is not defined yet.
2. Trend alignment rail
From 12:30 PM ET the average SPY/QQQ percent move must be at least 0.6% and aligned with the trade direction; from 2:00 PM the threshold rises to 0.8%. Flat or conflicted tape in the afternoon means no entry at all. This one rule removes the worst cluster of losers in the sample.
3. Risk rails
- Per-trade risk cap: a fixed dollar amount, checked before the order is sent, not after.
- Notional cap: a hard ceiling on gross exposure regardless of buying power.
- Daily circuit breaker: a cumulative loss that halts new entries for the session.
- Spread guard: reject the entry if the quoted spread exceeds the assumed slippage.
- Chop pause: three time-stopped trades triggers a 15-minute stand-down.
4. Order type
Marketable limit orders with a capped slippage allowance. A plain market order in a thin book is how a well-designed strategy loses to execution.
5. Exits, decided up front
- Stop: attached at entry, never widened.
- Partial: scale at +0.75R.
- Time stop: exit after 30 minutes if the trade has not worked.
- Forced flat: liquidate everything before the close.
6. Backtest honestly
Replay across a hundred-plus sessions with multiple random seeds, and compare a proposed change against the unchanged baseline. Most "improvements" are variance and disappear on the larger sample.
FAQ
- Is automated futures trading profitable?
- Only when the edge is small, repeatable and survives costs. Automation removes hesitation and revenge trading; it does not create an edge that backtesting cannot find.
- What should an automated trading bot never do?
- Enter without a hard stop attached, average down, hold through the close under a trailing drawdown, or trade a spread wider than its slippage assumption.
- How many rules does a trading bot need?
- Fewer than most people build. A session window, a trend alignment gate, a per-trade risk cap, a daily loss breaker and a time stop cover the majority of real-world damage.
- Do I need to code to automate futures trading?
- You need to specify the rules precisely — entry trigger, stop, target, sizing and invalidation. Writing them in plain English first is the hard part; the code is mechanical after that.
See the engine make these decisions out loud on the live stream or read the Algo Lisa bot overview.