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
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)

Changes from long-only: Positions Allowed LongAndShort and Fitness Criteria NPAtMfeNPLateEntry
• 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
• 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
• 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

Rolling walk-forward results

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

Results on data after 26 February 2021
• Compare against the June 2018 benchmark
• Compare against the new long-only swing system
• Different approaches on the same market can diversify a portfolio

Long/short vs. new long-only vs. legacy long-only system performance
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.
Hypothetical Performance Disclosure
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.
These systems were built with Genetic System Builder: its genetic algorithm search finds candidate systems, the walk-forward and robustness tests check them, and the code export puts them on your trading platform. See how GSB compares with StrategyQuant and Build Alpha.
Related case studies
S&P 500 Swing Systems: Long-Only with Extended Hold Times
Count the trades: Trademaid would normally discard a system with only 140 in its final walk-forward.
Read case studyIndex Futures Day Trading: Building ES/NQ/YM Systems
Judge a family by all its members, including the worst, not by the top one.
Read case studyFree: 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.
Try this yourself
Follow the same steps on your own market. Start with these Strategy Guide pages, which have the exact settings and clicks:
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).