Crude Oil Futures (CL)
    15/30-Minute Bars, 10:00 AM - 2:30 PM Exchange Time

    Crude Oil Fast Revised Methodology: Efficient System Building

    In brief

    The goal
    Choose crude oil indicators faster, then build and select systems from them.
    What Trademaid did
    Trademaid ran two 50,000-system indicator passes with two indicators per system (dropping the red indicators, then keeping only the green), made a final three-indicator build, walked forward the top 250, and chose systems from the statistics and families.
    What it shows
    How a second indicator pass should raise out-of-sample fitness, and how Trademaid picks from the resulting families.
    Main caveat
    Trademaid says identical tests gave "significant differences", that the 2019 periods G and H are not truly out of sample if you act on what you see, and that no slippage or commission was used. Results are hypothetical.

    Want to build this yourself? Practical Build 7: Crude oil: the day-of-week method takes you through it in GSB, step by step (free with a GSB Pro account).

    Scenario

    Trademaid's fast, revised crude oil methodology: a two-pass indicator method using two indicators per system, then a final three-indicator build, walk-forward and family selection.

    Finding the best GSB setup for a market takes considerable effort and CPU time. This revised crude oil method speeds up indicator selection by building with two indicators per system and filtering the indicator list in two passes, before a final build with three indicators. Trading starts at 10:00 AM exchange time, after the first hour of the session.

    Approach

    1
    Step 1: Configure Specialized Crude Oil Settings

    Set up parameters specific to crude oil:
    • Data: CL15.30 (15- and 30-minute bars), 9:00 AM - 2:30 PM exchange time
    • Trading Times: 10:00 AM - 2:30 PM
    • Entry type: Compare2 (Trademaid's finding for crude oil)
    • Secondary filters that scored well for crude oil (use one at a time, never all four at once):
    - CloseLessPrevHighD
    - CloseLessPrevLowD
    - CloseOverPrevHighD
    - CloseOverPrevLowD
    • Macros are in Macro Group 3 (M1 m13_cl_GetSF..., M2 m14_cl_build1, M3 m15_findBestInd)
    Crude oil specialized settings part 1

    Trading Periods: Times 10:00 - 14:30, build dates to 2015-06-30

    Crude oil specialized settings part 2

    Macro Group 3: M1 m13_cl_GetSF, M2 m14_cl_build1, M3 m15_findBestInd

    Secondary filter options for crude oil

    Secondary filter (SF) statistics, highlighting the CloseLess/CloseOver PrevHighD/PrevLowD filters

    2
    Step 2: First Pass - Remove Worst Indicators

    Cast a wide net initially:
    • Build 50,000 systems using TWO indicators per system
    • Run macro M3 in Macro Group 3 (m15_findBestInd)
    • After the build, right-click > Statistics > Calc. & Save to CLP
    • On the Statistics tab, select all green and orange indicators
    • Exclude only the red ones
    • Right-click and Apply To Optimization Settings (27 of 84 indicators in the example)

    This liberal approach keeps borderline performers that might excel in combinations.
    Pass 1 indicator results

    First pass: select green and orange indicators, excluding the red ones, then apply to optimization

    3
    Step 3: Second Pass - Keep Only Best

    Narrow down to proven winners:
    • Save settings and rebuild 50,000 systems
    • Use your filtered set (27 indicators in the example)
    • Calculate the statistics again
    • This time select ONLY green indicators (7 in the example)
    • Check the out-of-sample fitness (Avg. B F-F)
    • It should increase (in the example 3,074,171 → 4,449,250)
    • If it doesn't improve, review your settings

    This is your quality check that filtering worked.
    Pass 2 indicator results showing 7 green indicators

    Second pass: select only the green indicators (7 in this example)

    OOS fitness improvement from Pass 1 to Pass 2

    Pass 2 out-of-sample fitness (Avg. B F-F) of 4,449,250, up from 3,074,171 in Pass 1

    4
    Step 4: Build Final Systems

    Create your trading candidates:
    • Use the best indicators from Pass 2
    • Build with THREE indicators
    • Walk-forward the top 250 systems
    • Run the statistics macro for periods A-H
    • Trademaid notes the initial system is built on only about 130 trades (data before 30 June 2015), which in itself causes extra out-of-sample degradation
    Top 250 system validation results

    Statistics for the top 250 walk-forward systems: total of 7,814,957 for periods C-F

    5
    Step 5: Select Systems via Family Analysis

    Find your most robust candidates:
    • After walk-forward completes, run macro M5 (Group2)
    • Gets the top 90 systems by Anchored Stability
    • Run macro M6 (Group2) for the top 91 by VSS
    • Create families from whichever group gave the better statistics
    • Pick the top families and their top member
    • In the example, the top 91 formed only 2 families (unusual): Family 1 had 89 members
    Family grouping analysis

    Only 2 families in the top 91 systems: Family 1 has 89 members

    TradeStation out-of-sample equity curve

    TradeStation periodical returns for a system (@CL 15 min, June 2006 to March 2020)

    Statistics table with the period G and H results

    Statistics G and H: 28 February 2019 to 31 December 2019, without and with walk-forward (no slippage or commission)

    Build this yourself: Practical Build 7, Crude oil: the day-of-week method

    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

    In Trademaid's example, the second pass raised the out-of-sample fitness (Avg. B F-F) from 3,074,171 to 4,449,250, confirming the indicator filtering helped. After the final build and walk-forward of the top 250 systems, the statistics showed a total of 7,814,957 for periods C, D, E and F. Periods G and H cover 28 February 2019 to 31 December 2019 (G without walk-forward, H with walk-forward). Trademaid included them in the averages but not the total, and cautions that they are "not truly out of sample" if you look at the results in G/H and act on what you see, which leaves only a short period from 2020 as truly unseen. Trademaid also reports that it "got significant differences on identical tests", that no slippage or commission was used in these tests, and that part of the strong 2019 results came from easier crude oil trading conditions. The top 91 systems formed just 2 families, with 89 members in Family 1, which Trademaid reads as a sign the system doesn't depend on precise parameters. Trademaid also found that top Astab-C scores didn't help crude oil systems. Crude oil's settings (Compare2 entry, its secondary filters) shouldn't simply be copied to other markets, but the two-pass method itself applies to any market. These are hypothetical back-test results. Update from the forum: Peter Zwag (GSB's developer) said in March 2023 that the old crude oil macros choose favourites inside the in-sample period and should not be used, and that the crude oil method was being revisited. Copy the current NQ or supplied macros instead. Crude oil builds made before GSB 1.0.65.21 (January 2023) don't match TradeStation from April 2020, because GSB assumed prices couldn't go below zero. Turn TRIX off on crude oil, because it's log-based. The two 50,000-system passes and the families from the top 91 by VSS are part of the older method: Peter now advises against single 50,000-system builds and no longer trusts noise-based VSS scores (see the Core GSB Methodology case study).

    Members only
    What else Peter tried on crude oil, 2018 to 2020

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

    Key Takeaways

    Two-pass indicator filtering removes weak indicators while keeping ones that may work in combination

    Using two indicators per system speeds up the indicator-selection passes

    Crude oil uses its own settings (Compare2 entry, its secondary filters) that differ from index futures

    Trading starts at 10:00 AM, after the first hour of the session

    Identical tests can give significantly different results, so repeat them

    Out-of-sample fitness should improve from Pass 1 to Pass 2; if it doesn't, review your process

    Peter Zwag later said the old crude oil macros shouldn't be used (March 2023): copy the current supplied macros instead

    Terms used here

    F-F
    The fitness score over the full period. In GSB's results grid, columns ending in -F are full-period figures (for example PF-F is profit factor, full period). "Avg. B F-F" is the average F-F of the out-of-sample period B.
    Families
    A group of systems that use the same indicators with different parameters (right-click, Create/Update Family). A family with many members, most of them good, suggests the idea doesn't depend on exact parameters. The first member shown is the best of the family, so look at all of them.
    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.
    VSS
    How much the average of all the verification price data (for example data with random noise added) degrades from your original data. Trademaid found VSS better than VS, the count of verification streams that pass.
    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. 2Macros Overview
    3. 3Walk-Forward Optimization

    Also used in this case study: Validation and Robustness, Selecting Systems

    Want to build this yourself? Practical Build 7: Crude oil: the day-of-week method 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.