Swing trading guide

Swing trading futures: build rules around the contract

Short answer

Swing trading futures means holding a futures position across multiple sessions to test a defined price move. The contract adds risks that a stock-chart rule does not capture: leverage, daily mark-to-market, changing margin, expiration, contract rolls, overnight gaps, price limits, and possible delivery terms. Start with the exact contract month and tick value, then write the entry, invalidation, exit, and roll rule before testing.

Test a futures rule in Pine Script

The concepts that define the setup

Contract exposure

Futures profit and loss depends on the contract multiplier and tick value, not only the percentage move shown on the chart. MES, for example, uses $5 times the S&P 500 Index and a 0.25-point minimum tick.

Margin is not maximum loss

A performance bond controls a larger notional position. Accounts are marked to market, margin can change, and losses can exceed the amount initially posted.

Contracts expire

A multi-session rule must identify the traded month, last trading day, settlement or delivery terms, and when positions move to a later contract.

Continuous charts need a roll policy

Back-adjusted series are useful for visual research, but their historical prices may not equal tradable contract prices. Validate signals and fills on individual contracts with a fixed roll method.

A rule sequence you can inspect

  1. 1

    1. Name the contract

    Record the exchange, root symbol, exact contract month, multiplier, tick size, tick value, trading hours, settlement method, and last trading day.

    A generic front-month symbol can change contracts and hide differences in price, volume, or expiry terms.

  2. 2

    2. Set an account risk ceiling

    Calculate the dollar distance from entry to invalidation using ticks and contract count. Reject the order when that amount exceeds the written account limit.

    Broker margin shows the collateral requirement. It does not define how much the position can lose during a gap or fast market.

  3. 3

    3. Use completed-bar signals

    Build the signal only from completed bars and place the simulated entry at the next eligible price. Keep the selected session and timezone in the rule.

    This prevents a historical test from entering before the breakout, moving-average close, or reversal condition was known.

  4. 4

    4. Define the holding exit

    State the price invalidation, maximum bars held, and any weekend or event cutoff before running the test.

    Futures trade for long daily sessions, so overnight gaps and maintenance pauses can move price past a planned stop.

  5. 5

    5. Freeze the roll rule

    Switch contracts on a stated volume condition or a fixed number of days before the product deadline. Close the old contract and price the new entry separately.

    Changing the roll date after seeing the spread can select a better historical path that was not part of the original strategy.

  6. 6

    6. Reconcile the simulation

    Include commission, exchange fees, bid-ask spread, slippage, roll cost, and skipped fills. Compare the continuous-chart signal with the actual contract bars.

    A strategy report based only on chart points can understate the cash effect and execution uncertainty of a leveraged contract.

Risks to check before testing

Swing trading risk checks
RiskWhat to check
Leverage and margin callsConvert every stop distance to dollars per contract and test a gap beyond the stop. Do not treat posted margin as the loss limit.
Expiration or deliveryRead the current exchange specification and broker deadline for the exact month. Do not hold a contract into a deadline that the rule does not handle.
Roll distortionKeep both the continuous series and individual-contract series, then document the roll date and price difference for every open position.
Overnight gap and price limitsStress the planned invalidation with adverse fills beyond the stop and review exchange price-limit behavior for the product.
Changing liquidityTrack volume, spread, and slippage near the roll. Reject a fill when the stated order assumption is not supported by available market data.

Test templates you can audit

These templates define a research process. They are not trade calls or evidence that a setup will make money.

MES individual quarterly contract

4-hour standard candles in the exchange timezone

Rule to test

After a completed bar closes above the highest high of the prior 20 completed bars, test a long entry at the next bar open. Invalidate below the lowest low of the prior 10 completed bars. Exit on a completed close below that 10-bar low, after 15 bars, or at the frozen roll cutoff. Allow one contract and no pyramiding.

Record the contract month, $1.25 tick value, next-bar fill, commission, spread, slippage, maintenance pauses, adverse gaps, and roll transaction. Compare individual-contract results with the continuous-chart signal dates.

MCL individual crude oil contract

4-hour standard candles in the exchange timezone

Rule to test

Test a long entry at the next bar open after a completed close above the prior 30-bar high. Set initial invalidation two completed 14-bar ATR values below entry, exit on a close below the prior 10-bar low or after 20 bars, and close before the written broker deadline for the contract.

Convert ATR distance to ticks and dollars, include the bid-ask spread and fees, store each contract and roll date, and stress a fill beyond invalidation. Do not infer delivery deadlines from the root symbol.

MGC individual gold contract

1-day standard candles in the exchange timezone

Rule to test

After a completed daily close above the prior 20-day high, test entry at the next session open. Invalidate below the prior 10-day low and exit on a completed close below that level, after 15 sessions, or before the fixed roll cutoff. Allow one contract.

Report tick value, contract month, overnight gaps, limit events, next-session fills, fees, roll spread, and maximum adverse excursion. Freeze the lookbacks before testing a later contract sample.

Checks to run before trusting the result

For a MES swing test, write $1.25 beside each 0.25-point tick before reading the report. That conversion catches position sizes that look small in chart points but exceed the stated account limit.

For MCL, inspect the exact contract month rather than trusting a continuous chart fill. Save the old and new contract prices on the roll date and treat the spread as part of the test record.

For an MGC daily signal, open the current exchange specification and broker notice for expiration and delivery deadlines. Do not copy the timetable from another metal or an earlier contract month.

Rerun each template with a worse next-bar fill and an overnight gap beyond the planned stop. If the dollar loss breaks the written ceiling, the rule fails the risk check even when its average backtest looks positive.

Turn the idea into an inspectable rule

Pineify can turn completed-bar entries, tick-based invalidation, holding limits, session filters, and contract-roll dates into inspectable Pine Script. Use it to expose ambiguous rules and compare historical simulations. TradingView strategy orders are hypothetical, and Pine Script does not replace contract specifications, a broker risk system, or live execution records.

Test a futures rule in Pine Script

Frequently asked questions

Sources and limits

Sources checked 2026-07-18

  • A Trader's Guide to Futures (CME Group, checked 2026-07-18). Explains standardized contract size, tick value, performance bonds, mark-to-market, expiration, rolling, settlement, delivery, and simulated practice.
  • Micro E-mini S&P 500 futures contract specifications (CME Group, checked 2026-07-18). Lists the MES contract unit as $5 times the S&P 500 Index and the minimum fluctuation as 0.25 index points, equal to $1.25 per contract.
  • Understand Risks and Markets before Reacting to Internet Hype (Commodity Futures Trading Commission, checked 2026-07-18). Warns about speculative short-term trading, leverage, time-limited futures contracts, online claims, and trading with money needed for essential expenses.
  • Pine Script strategies (TradingView, checked 2026-07-18). Documents hypothetical strategy orders, broker-emulator timing, historical-bar limits, margin simulation, slippage, and why standard chart prices matter.

This page is an information tool, not investment advice, a broker recommendation, or a statement that futures are suitable for you. The MES, MCL, and MGC templates are research examples, not trade instructions or evidence of returns. Futures are leveraged and can produce losses beyond the amount initially posted. Contract terms, margin, broker deadlines, and market conditions can change. Simulated results do not guarantee future performance.