S&P 500 E-Mini Futures (ES)
    30-Minute Bars

    S&P 500 Long/Short Systems: Bidirectional Swing Trading

    In brief

    The goal
    See whether the S&P 500 swing method works with both long and short trades.
    What Trademaid did
    Trademaid reused the long-only swing settings with Positions Allowed set to LongAndShort and a different fitness function, ran anchored and rolling walk-forwards, and compared the results with the long-only systems.
    What it shows
    That far fewer systems passed and trade counts dropped in the walk-forward, though the chosen system's walk-forwards looked good.
    Main caveat
    Trademaid calls this "very new and not well researched" (June 2021), with only about three and a half months of unseen data (after 26 February 2021) when it was written. Results are hypothetical.

    Want to build this yourself? Practical Build 5: S&P 500 swing systems, long and short takes you through it in GSB, step by step (free with a GSB Pro account).

    Scenario

    Trademaid's long/short version of the S&P 500 swing method (June 2021). Far fewer systems passed into Favorites B, and walk-forward results degraded more than for long-only, but the best systems still walked forward well.

    Long-only swing systems can't profit from declines. This test allowed long and short positions with otherwise similar swing settings. Long/short systems proved harder: in early testing (June 2021), far fewer systems reached Favorites B, and trade count and net profit dropped more than expected in the walk-forward versions. Trademaid suggests this may relate to the entry type and/or the fitness function. The best systems still produced good walk-forward curves.

    Approach

    1
    Step 1: Configure Long/Short Settings

    Start from the long-only swing settings, then change:
    • Positions Allowed: LongAndShort
    • Fitness Criteria: NPAtMfeNPLateEntry
    • Max. Stop Loss: $4,000 and Profit Target: $2,750 (as long-only)
    • Data: ES 30-minute from 1997, training end 26 Feb 2021
    • The example was built in GSB 1.0.62.48
    • Trademaid's 14 June 2021 update: use entry type AIC (any indicator cross)
    Long/short configuration showing key settings

    Changes from long-only: Positions Allowed LongAndShort and Fitness Criteria NPAtMfeNPLateEntry

    2
    Step 2: Build and Observe the Results

    • Build using the standard workflow
    • Far fewer systems reach Favorites B: the example shows Favorites (300, 15, 8, 0), against 100 to 200 for long-only
    • This suggests long/short is harder to optimise, or the fitness function suits it less well
    • Focus on walk-forward quality, not quantity
    3
    Step 3: Analyse Walk-Forward Performance

    • Compare trade count and net profit in the walk-forward vs the in-sample version
    • Expect more degradation than with long-only systems
    • Possible causes: the entry type, or the fitness function used in the walk-forward
    4
    Step 4: Select Systems Strictly

    • Look at anchored and rolling walk-forward results
    • Check results from 26 Feb 2021 onward: data not used to build the system
    • Check the parameter stability scores (the example shows Rol. Stab. Coarse 74, Anc. Stab. Coarse 66)
    • With fewer systems to choose from, be stricter
    Anchored walk-forward results

    Anchored walk-forward results

    Rolling walk-forward results

    Rolling walk-forward results

    Equity curve for long/short system

    Equity curve through the in-sample and out-of-sample periods

    Out-of-sample results after Feb 26, 2021

    Results on data after 26 February 2021

    5
    Step 5: Compare with Other Approaches

    • Compare against the June 2018 benchmark
    • Compare against the new long-only swing system
    • Different approaches on the same market can diversify a portfolio
    Comparison of three system types

    Long/short vs. new long-only vs. legacy long-only system performance

    Build this yourself: Practical Build 5, S&P 500 swing systems, long and short

    Free for members

    Every step in GSB, one at a time: the settings file, the macros, the run, reading the stats and choosing candidates.

    Results & Insights

    The selected long/short system showed good anchored and rolling walk-forward curves, with Params. Rol. Stab. Coarse 74 and Params. Anc. Stab. Coarse 66. Fewer systems reaching Favorites doesn't make the approach invalid, but it does call for stricter selection. The drop in walk-forward trade count remains a concern that Trademaid flagged for further research, possibly through a different entry type or fitness function. Trademaid described the approach as very new and not well researched when it wrote the page, so treat it as an early experiment. These are hypothetical back-test results. Update from the forum: Peter Zwag (GSB's developer) later said the NPAtMfeNPLateEntry fitness used here isn't good for walk-forwards, because it can make them misleading (July 2021). Walk systems like this forward with NetProfit × AvgTrade fitness instead.

    Members only
    Peter's later view on this fitness (2022)

    Peter Zwag's notes on this from Trademaid's private forum for GSB buyers, free with a GSB Pro account.

    Key Takeaways

    Long/short systems were harder to build than long-only in Trademaid's test

    Expect far fewer systems in Favorites B (15 in the example)

    Watch walk-forward trade count and net profit for degradation

    Check both anchored and rolling walk-forward results

    Entry type and fitness function may both affect walk-forward results

    Long/short systems can add diversity alongside long-only systems

    Peter Zwag later found NPAtMfeNPLateEntry fitness can mislead walk-forwards (2021): walk forward with NetProfit × AvgTrade

    Terms used here

    Favorites (A to D)
    GSB's four shortlists of systems. In Trademaid's macros the performance filters get tighter from A to D, so Favorites D holds the fewest, strongest systems.
    Astab-C / PAS-C
    Anchored parameter stability (coarse) from a walk-forward. It shows how steady the best parameters stayed across the anchored walk-forward runs; higher is better. Shown as Params. Anc. Stab. Coarse on the chart. PRS-C (Params. Rol. Stab. Coarse) is the rolling version.
    Walk-forward (WF) and out of sample (OOS)
    Out-of-sample data is data the system was not built on. A walk-forward repeatedly re-optimises on one window and tests on the next unseen window, so you can see how the system copes with data it hasn't seen.

    Free: The GSB Robustness Checklist

    Every check between a good-looking backtest and a system worth watching: shortlisting, families, walk-forward thresholds, verification and the final checks before trading. One page, with links to each step.

    We'll email the checklist to you. See our privacy policy.

    Try this yourself

    Follow the same steps on your own market. Start with these Strategy Guide pages, which have the exact settings and clicks:

    1. 1Building Strategies
    2. 2Walk-Forward Optimization
    3. 3Enhanced Walk-Forward Optimizer (EWFO)

    Also used in this case study: Selecting Systems

    Want to build this yourself? Practical Build 5: S&P 500 swing systems, long and short takes you through it in GSB, step by step (free with a GSB Pro account).

    Start your free 14-day GSB trial on Trademaid and apply the same processes to your own markets.