GSB Automation Documentation

    A step-by-step guide to GSB Automation, the add-on that drives GSB through macros to run whole batches of tests. It follows the GSB Automation video course and Trademaid's help pages: the basic path first, with the exact clicks and values, then the advanced options.

    Prefer to watch? This page has a video lesson

    Module 5: Add-on Tools · Training Hub · free with a GSB Pro account

    Create your free account to watch the videos →

    GSB Automation Add-On

    GSB Automation and its summary spreadsheet are a separate purchase from Trademaid. Trademaid's help lists US$700 for both, with 1 year of updates; check the current price and licence terms on Trademaid. See also how to buy add-ons.

    Buy GSB Automation

    Introduction

    Once you know the best setup for a market, building systems in GSB is fast. Finding that setup takes a lot of testing. GSB Automation runs the 2-pass indicator method, the build and the statistics for you, so you can change one setting, rerun, and compare with your benchmark.

    What GSB Automation Does
    • Runs the 2-pass indicator method and the build for you (e.g. 2,500-system tests, the top 300 into Favorites A, and the out-of-sample statistics written to a CSV file)
    • Tests one change at a time with MOVE lists: secondary filters, entry modes, sessions, bar intervals and more
    • Repeats each test as many times as you ask, so you can tell a real improvement from luck
    • Comes with an Excel summary spreadsheet to compare runs
    GSB Automation main window with the settings grid on the left and the queue on the right
    GSB Automation running: settings grid on the left, buttons across the top, queue on the right (screenshot from Trademaid's help)

    Before You Start

    • Know GSB's basics (Modules 1 to 3 of the GSB training) and watch lesson 5.1, the GSB Automation overview.
    • Watch Module 7 · Macros. Automation drives GSB through macros, so you need to know what a GSB macro is and where they live.
    • Keep GSB on its newest build. Trademaid's help notes that GSB will likely fail to run with Automation if it isn't. Check Trademaid's current GSB Automation help for the minimum GSB build.
    • Have your market's data loaded in GSB.
    • Expect long runs on one computer. Trademaid's example times used about 150 workers (roughly 10 high-end PCs or servers); with fewer, runs take considerably longer. GSB can also use workers on the GSB cloud: a small amount of cloud power is free, and you can buy or subscribe to your own GSB cloud servers.

    GSB Automation is a research tool that drives GSB itself. It is not a link to your trading platform.

    Installation & Setup

    Watch the lesson: GSB Automation Lesson 1Installing GSB Automation and Finding Your Way Around · in the Training Hub (free GSB Pro account)

    Two jobs: install Automation in the right folder, and copy its macros into GSB.

    Step by Step: Install

    1. Get the GSB Automation installer from Trademaid. Buyers are sent a pCloud download link with their purchase; if you can't find yours, check Trademaid's current GSB Automation help or ask Trademaid support for the current link.
    2. Run the installer. When it asks for a folder, accept the default: C:\GSB\GSB_AUTOMATION.
    3. If you choose another folder, never pick the GSB program folder C:\GSB itself. Trademaid's help is clear: installing straight into C:\GSB will kill GSB.

    Step by Step: Copy the Macros into GSB

    Automation runs GSB macros, and each one must already be in GSB's macro folder. If macros are new to you, watch Module 7 · Macros first.

    1. Open Windows File Explorer and go to the Automation folder, C:\GSB\GSB_AUTOMATION (or the folder you chose).
    2. Select the macro files (.macro) there and copy them.
    3. Go to C:\GSB\Data\Settings\Macros\ and paste them.

    Instead of copying by hand, you can run install-into-GSB.bat from the Automation folder. It copies the macros, settings files and gold data into GSB. Its last step overwrites GSB's sessions.txt, so skip that step (or back the file up first) if you've made your own sessions.

    • Updating by hand: copy the new GSBAutomationYYYYMMDD.exe, its .pdb, version.txt and the workbook into the Automation folder, then point your shortcut at the new exe (or rename it). Buyers get updated files through the same pCloud link as the installer: copy them over the old ones.
    • The summary spreadsheet is only for buyers and isn't in the public installer. It comes through the same pCloud link.
    • Auto-update only runs when every Automation window is closed.
    Which macro files? Trademaid's help lists M1_PASS1.macro (the same as GreenOrange), M2_PASS2.macro (the same as Green) and Build+stat2018.macro (the build macro from the crude oil video, with a 60-second delay after building to fix a bug where add to favourites occasionally failed). Newer help screenshots use other macros, such as greenMin4 and GrOrMin4. Check Trademaid's current GSB Automation help for the files that ship with your build and which to use.

    Step by Step: First Look in Automation

    1. Open GSB Automation.
    2. In the left grid, under GSB, check Path Mode reads Auto and Path reads C:\GSB. Leave both on these defaults unless your GSB isn't installed in C:\GSB.
    3. Click Save As (top of the window) and save a copy of your Automation setup before you change anything.

    Next: tour the window and add your first GSB settings file (below).

    Interface & Settings

    Watch the lesson: GSB Automation Lesson 2Preparing GSB and Adding Your Settings File · in the Training Hub (free GSB Pro account)Watch the lesson: GSB Automation Lesson 5Testing Secondary Filters, Entry Modes and Sessions · in the Training Hub (free GSB Pro account)

    The window has three areas: the settings grid on the left, the buttons across the top, and the queue on the right, which fills with the steps Automation will run.

    The Buttons and the Queue

    • Save saves your Automation setup, Save As saves it under a new name, and Load opens one you saved earlier.
    • Stay on top keeps the Automation window in front of other windows.
    • Start (green, top right) begins the run and turns into a red Stop button.
    • Export isn't explained in the help, so leave it alone.
    • The queue has one row per step: Index, Opt. Set. (the GSB settings file), Macros (the macro or move being run), AutoExit, Elapsed, Cumulative and Status (Pending, Running or Done). The title bar shows the time so far and an estimate of the time left.

    The Left Grid, Row by Row

    GSB Automation GUI section
    GUI section: the header text is added to each GSB manager's header; the sounds and email happen when the automation process is finished
    RowWhat it doesDay one
    Header TextA short label for this test. Automation adds it to the header of each GSB manager it opens, followed by the step's queue index.Type a name you'll recognise, such as the market and what you're testing. No spaces or special characters: write GCv1, not GC v1.
    Sound Each Test / Sound Completed Tests / Sound Repeated TimesSounds played as tests finish.Leave as they are.
    Send EmailEmail when the automation process is finished.Leave as it is. The help doesn't explain the email set-up.
    GSB section of the GSB Automation settings grid
    GSB section: settings groups, Repeat Tests, Default AutoExit, the Macros Table and the MOVE lists
    RowWhat it doesDay one
    OptionsShows the GSB manager build Automation will drive.Nothing to change.
    Path Mode / PathWhere GSB is installed.Leave on Auto and C:\GSB unless GSB is elsewhere.
    Settings GroupsThe GSB settings files to run, each with its own command sequence.Add your file (steps below).
    MinimizedWhether the GSB managers open minimised.Leave as it is.
    Header ModeAppend adds your Header Text to each manager's header.Leave on Append.
    Repeat ModeNot explained in the help.Leave as it is.
    Repeat TestsHow many times each test runs. Identical tests vary, so the help says 1 for a quick test, 4 for a thorough one.1 for your first run.
    Default AutoExitCloses each GSB manager when its step is done.True for your first run (the help says True is best when first testing Automation).
    Macros TableWhich GSB macro each command runs.Set in Control Parameters (below).
    #MOVE listsThe variations to compare, such as secondary filters, entry modes and sessions.Leave for now; see MOVE lists below.
    Settings and Log sectionsNot explained in the help.Leave exactly as they are.

    Newer builds show more rows (Multiple Copies, Max. Manager Open, more MOVE lists). For any row this guide doesn't cover, keep it simple and leave it as it is. What each of these rows defaults to on a fresh install isn't in the help: check Trademaid's current GSB Automation help if you're unsure.

    Step by Step: Save Your Starting Settings File in GSB

    Every Automation run starts from one GSB optimisation settings file. Trademaid's example uses crude oil and a file called CL15.30test; use your own market and name.

    1. Open the GSB manager and set up your data, bar interval and other basic settings for the 2-pass indicator method.
    2. Click File → Save Optimization Settings As…
    3. The Save As window opens in C:\GSB\Data\Settings\Optimization\Manager. Leave it in that folder.
    4. In File name, type a short name you'll recognise (e.g. CL15.30test). The type is GSB optimisation settings (.gsboptset).
    5. Click Save.

    Step by Step: Add It to Automation as a Settings Group

    1. Switch to GSB Automation. In the left grid, under GSB, click the Settings Groups row.
    2. Click the … (three-dot) button at the right-hand end of the row. The GSBSettingsGroup2 Collection Editor opens.
    3. Click Add (bottom left). Member 0 appears.
    4. On the right, click the Opt. Settings row, then its … button.
    5. The Open window shows the Optimization\Manager folder. Click your file (e.g. CL15.30test.gsboptset) and click Open. Can't see it? Check you saved it in the Manager folder.
    6. Leave App. Settings empty. Trademaid's examples never fill it in.
    7. Keep the editor open: the next row, Command Seq., is the first click in Control Parameters (below).
    Settings group collection editor with the Add button highlighted
    Click Add in the settings group editor
    Open dialog with CL15.30test.gsboptset selected
    Select your settings file and click Open

    MOVE Lists: Test One Change at a TimeAfter your first run

    Do a plain first run before using these (see Control Parameters, below). Every MOVE works the same way: add a #MOVE command at the top of the command sequence, fill the matching #MOVE list in the left grid, and set Enabled to True for each variation to test. Automation then runs your whole sequence once for each enabled entry, changing just that one thing. The four basic MOVE commands are MOVE Entry Mode, MOVE Session, MOVE SF (secondary filter) and MOVE TF (tertiary filter).

    Secondary filters (#MOVE SF List)

    Secondary filters give the direction of the trade. Older help said most markets other than indices prefer GeneticAlgorithm. Peter Zwag's July 2025 guidance is more specific:

    • Stock indices: CloseLessPrevCloseDBpv picked directly, which is not normalised. The help says you can skip this test for indices.
    • Energies: the normalised version of the same filter, which is what you get when GeneticAlgorithm picks it.
    • Other markets: test the secondary filters one at a time. From build 69.9x there are also normalised CloseLessPrevCloseDBpv and CloseLessOpenD filters to try.

    Hybrid secondary-filter search Lots of CPU. If you have plenty of workers, Peter suggests: build normally and note the top 10 indicators; build 10,000 systems with just those 10 indicators and all secondary filters enabled; then test the top-ranked filters one at a time with this MOVE. Automation can import the filter list from GSB (May 2024). Peter found CloseLessPrevCloseDBpv best for crude oil day-of-week systems this way, while his previous favourite ranked 76th.

    1. Click the #MOVE SF List row, then its … button. The IndicatorMoveSF Collection Editor opens.
    2. Click each filter you want to test and, on the right, set Enabled to True. Leave the others False.
    3. Click OK.
    4. Open the settings group (Settings Groups …), click Command Seq. …, click Add and choose the #MOVE command.
    5. It's added at the bottom. Select it and click the up arrow until it's member 0, above Green+Orange, Green and Build.
    6. Click OK, OK again, then Save As and Start.
    IndicatorMoveSF collection editor with one filter enabled
    #MOVE SF List: set Enabled to True for each filter to test
    Command sequence with #MOVE as member 0
    #MOVE at the top of the command sequence

    In the queue you'll see a step that sets the filter (it takes no time), then Green, Green and Build on that filter, then the next filter, and so on.

    Entry modes (#MOVE Entry mode)

    Each market tends to prefer one entry mode. Trademaid says stock indices normally use the cross modes and crude oil uses Compare2.

    1. Open Command Seq. …, click Add, choose #MOVEEntryMode and use the up arrow to make it member 0. Leave AutoExit blank. Click OK.
    2. Click the #MOVE Entry mode row and its … button. The list holds six modes: Cross, Compare2, Compare1, NoConflictsCross, AnyIndicatorCrossed and CrossDualLevels.
    3. Click each mode and set Enabled to True or False. To test all six, set all to True.
    4. Click OK, Save As, then Start.

    The MOVE tests each mode on its own, which is what you want: Peter Zwag uses one entry mode per build. His order of interest is Compare2 and Cross first. If Cross does poorly, skip the other cross types. Then try AnyIndicatorCrossed and NoConflictsCross. Compare1 rarely holds up out of sample, and he no longer recommends CrossDualLevels.

    Move Entry Mode in the command sequence
    MOVE Entry Mode must be in the command sequence; then enable the entry modes you want under GSB

    Sessions (#MOVE Session List)

    For most markets the session is clear: trade where volume × volatility is. Gold and the Dax have many valid session times, so they're worth testing. Trademaid's examples: S&P 500 830 to 1500 exchange time; crude oil 900 to 1430 is likely best. GSB session times follow the time stamps on your data (exchange or local time).

    • The session start and the trading start are separate settings. For example, a 2:00 to 13:30 session can be set to trade only after 8:00.
    • Peter Zwag finds the best entry window is nearly always the whole session.
    • Don't search for the exit time with the genetic algorithm. Peter moves the session instead.
    • Get the main session right first, then test other ideas on top of it.
    1. In GSB, click Tools → Sessions and make one session for each time to test. Name each by its times (e.g. 0130-1230), set the open and close for Monday to Friday, and tick Session Close.
    2. In Automation, open Command Seq. …, click Add, choose #MOVESession and move it above Green+Orange, Green and Build. If you're new to this, test only the session move.
    3. Click the #MOVE Session List row and its … button. Add the sessions you made in GSB, using the same names.
    4. Set Enabled to True for each session to test.
    5. Click OK, Save As and Start. Compare the sessions in the summary spreadsheet with Sort By SESSION.
    Move Session in the command sequence
    Create the session templates in GSB (Tools, Sessions), then select the session times to test in Automation

    Control Parameters: Command Sequence & Start

    Watch the lesson: GSB Automation Lesson 3Building the Command Sequence and Clicking Start · in the Training Hub (free GSB Pro account)

    The 2-pass indicator method is three runs, each one command in the sequence: Green+Orange picks the green and orange indicators, Green picks the green indicators from run 1, and Build builds the systems and does the statistics.

    Step by Step: Build the Command Sequence

    1. In the settings group editor (from the last section), click the Command Seq. row, then its … button. The OptSetCommandOptions Collection Editor opens.
    2. Click Add. Member 0 appears.
    3. Click the Command row, open its drop-down and choose GReen+ORange. Leave AutoExit blank: blank uses Default AutoExit from the main grid.
    4. Click Add again and choose GReen for member 1. Leave AutoExit blank.
    5. Click Add a third time and choose Build for member 2.
    6. Check the list reads 0 GReen+ORange, 1 GReen, 2 Build. If not, select a member and use the up and down arrows.
    7. Click OK. Back in the settings group editor, click OK again.

    Trademaid's help mentions that a third indicator pass could be added, but Trademaid has never done this, so keep to two passes.

    Command set to GReen+ORange with AutoExit blank
    Member 0: GReen+ORange, AutoExit blank
    Command list GReen+ORange, GReen, Build with OK highlighted
    All three commands added: click OK

    The Command drop-down has more options. Custom1 and Custom2 run whichever macros you put in those Macros Table rows, and the MOVE commands are covered under MOVE lists. You don't need them for your first run.

    Step by Step: Macros Table, Repeat Tests and AutoExit

    1. In the left grid, expand Macros Table.
    2. Against Green+Orange, Green and Build, set the macro that does that job. Each macro must already be in C:\GSB\Data\Settings\Macros\.
    3. Click Repeat Tests and type 1 for a quick first test (use 4 later for thorough tests).
    4. Set Default AutoExit to True, so each GSB manager closes when its step is done.
    5. Leave Repeat Mode as it is.
    Which macro goes in which row? Trademaid's help describes M1_PASS1 as the same as GreenOrange, M2_PASS2 as the same as Green, and Build+stat2018 as a build macro, which points to Green+Orange → M1_PASS1, Green → M2_PASS2 and Build → Build+stat2018. One help screenshot appears to show the first two the other way round, and newer screenshots use different macros. Check Trademaid's current GSB Automation help before your first run. Macros are taught in Module 7 · Macros.

    Step by Step: Check, Save and Start

    1. Hold the mouse over the Settings Groups row. A pop-up lists every step: the green and orange macro on your file, the green macro on the result, then the build and stats macro. (MOVE lists aren't shown in this pop-up.)
    2. Click Save As, type a name for this Automation setup and save it. Next time, click Load, change one thing, and run a new test.
    3. Click the green Start button (top right). Automation opens a GSB manager, loads your settings file and runs each step. You don't need to click anything in GSB.
    4. Watch the queue: steps go from Pending to Running to Done, and the title bar shows the time so far and an estimate of the time left.
    Mouse-over pop-up listing three steps
    Mouse-over check: three steps, each file name gaining the previous command

    Macros, Indicators & Output

    Automation drives GSB by macros, and any macro you use must already exist in GSB. GSB macros are taught in Module 7 · Macros.

    Macros in Trademaid's Examples

    Trademaid's newer screenshots use macros such as GreenMin4 (the green indicators or the top 4, whichever is more), GrOrMin4 (green and orange), and build macros that build 50,000 systems and put the top 250 or 300 into favourites A. These are examples from the help, not a list that ships with every build. Check Trademaid's current GSB Automation help for the current macros.

    Older guides build 50,000 systems in one go. Peter Zwag (GSB's developer) now advises against it, because the top 300 from one huge build are too similar to each other. His research tests use 2,500 systems per pass, and the 2025 supplied build files do the same.

    Step by Step: Find the Statistics File

    1. Open Windows File Explorer and go to C:\GSB\Data\Exports\Statistics\.
    2. Find the CSV named after your settings file. Automation adds each command to the name, so it may end in _GReen_GReen.csv.
    3. Open it if you want to look. At the top are the averages for each statistics period, then the primary indicators GSB chose, the secondary filter, the entry modes and the price data. You don't need to edit it: the spreadsheet reads it for you.
    Statistics folder in File Explorer
    The statistics CSV in C:\GSB\Data\Exports\Statistics

    Reading the Numbers

    GSB Statistics tab
    GSB's Statistics tab: one row per statistics period, plus ratios between periods. Hover over a column heading for its full name.
    • Periods A to F are set by your build and stats macro, so they depend on the macro you use. In Trademaid's Nasdaq example, A is in-sample (2007 to Feb 2017), B to E are one out-of-sample year each, and F is the whole out-of-sample period. Out-of-sample results matter most.
    • Favourites A to D: the Favorites tab shows how many systems landed in each list. The rules get stricter from A to D, so more systems in the later lists is a good sign.
    • Identical tests vary, because the random seed picks different systems. Use Repeat Tests 4 when you compare setups.
    • Only A and F? Peter Zwag now uses just period A (in-sample) and F (the whole out-of-sample period). The yearly periods B to E cost CPU time, and one year on its own tells you little.
    • LSR (long/short ratio) in the spreadsheet is, from GSB 64.80, log(Long NP·AT ÷ Short NP·AT). Above 0 means a long bias; below 0, a short bias.
    • Data-stream usage statistics show whether Data2 is really being used by the systems.
    • Count primary indicators defaults to No, for speed.
    Favorites tab showing 300, 99, 0, 0
    Favorites (300, 99, 0, 0): 300 systems in favourites A, 99 in B, none in C or D

    In Trademaid's gold example, the out-of-sample net profit from 2017.6 was $17,989, excluding slippage and commission.

    Hypothetical back-test results from Trademaid's help, shown to explain the method. They do not represent actual trading and may exclude slippage and commission. Past performance is not a reliable indicator of future performance.

    How to Get Systems to Trade

    Automation's job is to find the best setup: the session time, entry mode and secondary filter with good out-of-sample statistics. Only then look for a system to trade. Trademaid covers this at a very high level; GSB Modules 2 and 3 cover the steps in detail.

    1. Find the setup with the best out-of-sample statistics using Automation.
    2. In GSB, put the dates back to the full start date (e.g. 200706 for gold).
    3. Select families and evaluate the top member of each.
    4. Walk forward the system and check the out-of-sample curve.
    Walk-forward chart with the brown out-of-sample curve
    Trademaid's gold walk-forward: the brown out-of-sample curve stays parallel to the others, though Trademaid notes it is too flat for their liking, with no slippage or commission

    Hypothetical back-test results from Trademaid's help, shown to explain the method. They do not represent actual trading and may exclude slippage and commission. Past performance is not a reliable indicator of future performance.

    Automation Summary Spreadsheet

    Watch the lesson: GSB Automation Lesson 4Reading the Output and the Summary Spreadsheet · in the Training Hub (free GSB Pro account)

    An Excel (Visual Basic) workbook that comes only with GSB Automation. It reads the statistics CSV and summarises every run so you can compare setups side by side.

    Step by Step: Process a Statistics File

    1. In Excel, open the statistics CSV from C:\GSB\Data\Exports\Statistics\. The input sheet must be open.
    2. Open the GSBAutomation spreadsheet.
    3. Click Select Input File and choose your file from the list (shown as WorkbookName;sheetname).
    4. In Sort By, type what you varied, e.g. SESSION in Trademaid's example.
    5. Click Process. Two sheets are added to your input workbook: Final_Output and Summary.
    6. Straight away, click File → Save As and save it as an Excel workbook. A CSV can't keep the new sheets, so if you don't, the changes are lost.
    Spreadsheet with Select Input File, Sort By and Process
    Select Input File, Sort By, Process
    Final_Output and Summary sheets
    Processing adds Final_Output and Summary

    Reading the Summary Sheet

    Automation Summary Spreadsheet
    Gold example: session times compared, with the average favourites counts
    • Each row is one variation (here a session time). Number of Data is how many tests it averages.
    • BC Results cover periods B and C: average, peak, standard deviation, and Ave/Std (higher means more consistent). BCD Results do the same for B, C and D.
    • On the right are the average counts in favourites A to D.
    • Trademaid's reading: the 0100-1230 session gave the highest results overall. 0600-1230 had a high BC peak but a much lower BCD average, implying a later period was negative.
    • In newer versions, Trademaid's Nasdaq example names the F result (out-of-sample net profit ÷ drawdown) and the number of systems in favourites D as the most important.

    Hypothetical back-test results from Trademaid's help, shown to explain the method. They do not represent actual trading and may exclude slippage and commission. Past performance is not a reliable indicator of future performance.

    Spreadsheet versions. Trademaid's help describes version 64 onwards (filters results more than 2 standard deviations away) and 64.1 or later (uses the median for out-of-sample NP/DD, on a Sort tab), supplied to purchasers. Where to get the latest version, and which Sort By values and newer fields it accepts: check Trademaid's current GSB Automation help.

    Advanced Methods

    Watch the lesson: GSB Automation Lesson 7Repeatability and the Short-Cut Method · in the Training Hub (free GSB Pro account)Watch the lesson: GSB Automation Lesson 8Import Indicators, Multiple Managers and More · in the Training Hub (free GSB Pro account)

    Get comfortable with the basic run first. These options help you tell real improvements from luck, save CPU time, and queue bigger jobs.

    Repeatability: Is the Improvement Real?

    Trademaid tested how repeatable identical tests are. With 82 indicators, 100 tests of 2,500 systems were repeatable within 4.7%; with 192 indicators, 6.2%. Unless a change improves results by more than that, you can't be sure it helped.

    Hypothetical back-test results from Trademaid's help, shown to explain the method. They do not represent actual trading and may exclude slippage and commission. Past performance is not a reliable indicator of future performance.

    Trademaid split the methodology in two:

    • Older method: building systems to trade on a well-known market, or high-level exploration of a new market where big differences are expected (e.g. secondary filters).
    • August 2023 method: looking for small improvements. Use the spreadsheet's median and 2-standard-deviation filter (version 64.1 or later), and do 50, preferably 100, tests of 2,500 systems if CPU time permits. If you're low on CPU power, Trademaid offers a reduced set of 82 trial indicators to import into GSB.
    • For both: use the short-cut method below.
    Spreadsheet Sort tab showing median and standard deviation
    Spreadsheet Sort tab: median and standard deviation of the F result (improved repeatability method)
    • Which green macro? The macro Peter Zwag rejected (slightly worse results) is green10Fav300. greenMax10 is the current supplied macro; greenMax6 gave fewer but slightly better gold systems.
    • The short-cut method below is still current.
    • Repeatability varies by market. The spreadsheet shows it in cell AC12 on the Sort tab.
    • You only need the full 50 to 100 tests when you change your benchmark setup, not when you're simply looking for systems to trade.
    Where to set nth mode for this method (Trademaid's research found nth 10 repeated best on NQ and GC): check Trademaid's current GSB Automation help.

    Step by Step: The Short-Cut Method

    Build one set of indicators, then build systems from it twice. Never more than twice: a bad indicator set reduces the repeatability of all your results. Trademaid says this cuts CPU time by about 50% with no significant negatives.

    1. Set Repeat Tests to 50.
    2. Click the … button on Settings Groups.
    3. Click the … button on Command Seq. (your sequence already has Green, then Build).
    4. Click Add and set its Command to Build.
    5. Copy the settings from the first Build to the second, e.g. Max. Uniq. Sys. 2500. Max. # of Workers is optional. Leave Fav. B > X Members, Profit Target and Stop Loss blank.
    6. Click OK (the sequence reads Green, Build, Build), OK again, then Save As and Start.
    7. Expect 150 steps: 50 indicator builds and 100 system builds.
    Short-cut method main options
    Trademaid's example: Repeat Tests 50 (Max. Manager Open 4 and Multiple Copies True are for multiple managers)
    Second Build with Max Uniq Sys 2500
    Second Build: copy Max. Uniq. Sys. 2500 from the first

    Step by Step: Queue a Second Settings FileAdvanced

    1. Click the … button on Settings Groups. Member 0 is your first file.
    2. Click Add. Member 1 appears.
    3. Click Opt. Settings → …, select your second file (e.g. Trademaid's CL15.30test101i, the same setup with 101 indicators) and click Open.
    4. Fill its Command Seq. exactly as before (Green+Orange, Green, Build) and click OK.
    5. Hover over Settings Groups to check both groups, then Save As and Start. The second file runs after the first.

    Import IndicatorsAdvanced

    As in Trademaid's second gold video, Automation can build systems, then take the indicators used by the systems in favourites A for another Green and Build pass. In the help's example, Import Loops is set to 1. GSB keeps the indicators used in C:\GSB\Data\Exports\IndicatorsUsed\, one file per manager.

    Multiple ManagersAdvanced

    The June 2024 update lets several GSB managers run in parallel (Multiple Copies True; Max. Manager Open limits how many). Trademaid says this is only useful with multiple servers or spare GSB cloud workers; on a single computer, keep to one manager. Workers can be set per command with Max. # of Workers on each Build.

    Bar Intervals & Day of Week

    Watch the lesson: GSB Automation Lesson 6Bar Intervals and Day-of-Week Tests · in the Training Hub (free GSB Pro account)

    Two newer MOVE features. Get comfortable with the MOVE lists in Interface & Settings first.

    Why Bar Intervals Need Matching Sessions

    Automation can change the bar interval multiplier, e.g. from 30 to 29 minutes. On the Nasdaq with a 0800-1500 session, 14 × 30 = 420 minutes fits exactly, but 14 × 29 = 406, so the last bar is short. Starting at 0814 makes every bar 29 minutes. Never use bars under 5 minutes: Trademaid says they work poorly and can blow out worker RAM and crash workers.

    Step by Step: Test Bar Intervals

    1. In GSB, click Tools → Sessions. Clone an existing session (e.g. 0830-1500), name the new one 0814-1500, and set the open to 8:14 for Monday to Friday.
    2. In Automation, click the #MOVE Bar Interval row and its … button. Add each interval to test, with its Multiplier (e.g. 30, 29) and Enabled True.
    3. Click the #MOVE Session List row and its … button. Add the matching sessions, set Enabled True, and set each one's Bar Intervals (e.g. 0814-1500 → 29).
    4. Open Settings Groups … → Command Seq. …. Add #MOVEBarInterval as member 0 and #MOVESession as member 1, with Green and Build below.
    5. Click OK, OK, Save As and Start. Each bar interval is tested with the session that suits it.

    Day-of-Week TestsNot yet documented step by step

    Automation can test one day of the week on its own, or trade four days while rotating the day left out. Markets like crude oil have strong day-of-week and long/short characteristics.

    Trademaid's help says the step-by-step setup is yet to be documented, and doesn't explain the day-of-week rows in Automation. Check Trademaid's current GSB Automation help or ask Trademaid before relying on it. What follows is what Trademaid's examples show.
    • Enough trades: a day-of-week subset needs more than 300 trades to mean much.
    • Loosen the filters: one day is about a fifth of the data, so lower the Pearson and trade-count filters a lot.
    • Masks (September 2024): you can program long/short day masks such as "Tue LS, Wed LS, Fri Long", and force one day to be true.
    • Peter Zwag's own approach: he adds day-of-week filters last, separately for longs and shorts, and checks them out of sample.
    Crude oil day-of-week results in the summary spreadsheet
    Crude oil day-of-week results in the GSB Automation spreadsheet
    • Crude oil, each day: tested long and short, long only and short only, Wednesday long & short was clearly best; then Tuesday short with Wednesday long & short.
    • "Best" is defined by the number of systems in favourites B and C, and the out-of-sample fitness results (E + F).
    • Long-only market, one short day: in GSB, Trading Periods → Week-Days sets each day's position. Adding short on Tuesday, and perhaps Thursday, looked better than long only, but only 4 tests of 2,500 systems were done, so more are needed.
    • To compare days in newer spreadsheets, put DayofWeek in a Sort By box.

    Hypothetical back-test results from Trademaid's help, shown to explain the method. They do not represent actual trading and may exclude slippage and commission. Past performance is not a reliable indicator of future performance.

    Reference & Tips

    Your First Run, at a Glance

    1. Install to C:\GSB\GSB_AUTOMATION (never into C:\GSB).
    2. Copy the macros to C:\GSB\Data\Settings\Macros\.
    3. In GSB: File → Save Optimization Settings As…
    4. In Automation: Settings Groups … → Add → Opt. Settings … → your file → Open.
    5. Command Seq. … → Add GReen+ORange → Add GReen → Add Build → OK → OK.
    6. Match the Macros Table; Repeat Tests 1; Default AutoExit True.
    7. Hover to check, Save As, Start.

    New Features (from Trademaid's help)

    • June 2024: refinements to allow multiple managers, and much faster processing for users with lots of workers running managers in parallel
    • August 2024: with AutoExit True, managers will not auto-exit if Fav A has >290 systems, Fav B >30, Fav C >20 or Fav D >10
    • August 2024: more day-of-week features

    Troubleshooting Tips

    Common Issues
    • GSB broken after install: never install Automation in a GSB folder such as C:\GSB
    • Can't see your settings file: save it in C:\GSB\Data\Settings\Optimization\Manager
    • Inconsistent results: identical tests vary because the random seed picks different systems; use Repeat Tests (4 for thorough tests, more for small improvements)
    • Slow runs: add workers, or use the short-cut method
    • Automation fails to run: update GSB to its newest build, and make sure every macro in the Macros Table exists in GSB. Only a GSB Manager can be driven, not GSB Standalone
    • A step never finishes: some secondary filters can hang. Set an Automation timeout of about twice the expected manager time
    • "indicators*.csv is missing": Import Loops is above 0, but no earlier pass exported its indicators
    • Automation opens the old GSB after an update: set Path Mode to exe and point it at the new manager. Stop any running job before a major GSB update
    • Logs are in %AppData%\Roaming\GSB Automation\log
    • Test small first: try a new setup with tiny builds (5 to 500 systems) before a long run
    • Queueing several Automation windows: number them with the sequence field (0, 1, 2…)
    • Statistics missing: set custom export to False for the full statistics
    • Odd numbers: use US number formats in Windows
    • Header numbering or a macro goes wrong: remove spaces and special characters from macro names and Header Text. Automation uses a space to separate command-line items, so GC v1 breaks Append Header Mode; use GCv1, or put the text in quotes

    Best Practices

    • Change one setting at a time and compare with your benchmark
    • Leave any row this guide doesn't cover as it is
    • Use Save As before you change anything
    • Don't use bars under 5 minutes
    • Save the spreadsheet as an Excel file straight after processing

    For anything not covered here, see Trademaid's GSB Automation help.

    Ready to Automate Your Workflow?

    GSB Automation, with its summary spreadsheet, is bought from Trademaid. See Trademaid's page for current pricing and licensing.

    Buy GSB Automation

    GSB's main tools are its genetic algorithm search, its walk-forward and robustness tests and its export to TradeStation, MultiCharts and NinjaTrader. New to it? See what Genetic System Builder does and how GSB compares with StrategyQuant and Build Alpha.