Uploading Data to GSB

    Name the file, export it from your platform, load it into GSB and check it loaded correctly

    Prefer to watch? This page has a video lesson

    Module 1: Getting Set Up · Training Hub · free with a GSB Pro account

    Create your free account to watch the videos →

    What you need
    • GSB, with your settings saved (lesson 3 shows how)
    • The platform you'll trade on, with a chart of your market: TradeStation, MultiCharts or NinjaTrader 8
    • GSB's Price Data folder. Trademaid's guide uses C:\GSB\Data\Price Data
    • For a market GSB doesn't know yet, a row in Tools → Contracts List first: see Datasets and Symbols

    Happy to keep using the natural gas data from lesson 3 for now? That's fine. You can come back to this page later.

    Before you start: keep it simple

    1. Export from the platform you'll trade on. Prices differ slightly between sources, even for the same market and bar size.
    2. One market, one bar size. Trademaid says you could just choose ES 30-minute data.
    3. Every data stream on the same time zone. Otherwise one stream can look into the future and all your results will be invalid.
    4. Leave the other Data rows blank for now.

    Step 1: Know the file name and folder

    GSB reads important details from the file name, so it must follow a set format. Separate each part with a dot and end in .txt:

    symbol.time frame.bar type.anything you like.txt

    Examples from Trademaid:

    • ES.30.Minute.830.1500.CentralUSATime.txt (30-minute bars)
    • ES.30.Minute.0830-1500CentralTime_1May2006-29Nov2019.txt (with the date range on the end)
    • ES.15.minutes.830_1500CTusa.txt and ES.10.seconds.830_1500CTusa.txt
    • Daily bars in older builds use minutes. 8:30 to 15:00 is 6.5 hours × 60 = 390 minutes, so: ES.390.minutes.830_1500CTusa.txt. From build 75.94 (July 2026) you can load Day, Week and Month bars as primary data, and Price Data → Add Day Data builds day bars from your one-minute data. The minutes trick still works.

    Other bar types include Kase, Range, Tick and Heikin-Ashi (heikinashi or ha); see Trademaid's Supplying Data to GSB help for those formats.

    Save every file in GSB's Price Data folder: C:\GSB\Data\Price Data. You can make sub-folders, such as CL or ng, for each market.

    Not yet confirmed for current Standalone installs: the exact Price Data folder. Trademaid's beginners' guide and Opt. Price Data help use C:\GSB\Data\Price Data, and the Public Data Directory help says data is in C:\GSB\Data by default. If your folders look different, check Trademaid's current help.

    Step 2: Export the data from your platform

    Follow the section for your platform, then go to Step 3.

    TradeStation

    1. Open a chart of the market and bar size you want, for example ES 30-minute bars. Keep the chart on local time.
    2. Open TradeStation's Data Window over the chart (check Trademaid's current help or TradeStation's help for how to open it in your version).
    3. Click the Save icon at the top left of the Data Window.
    4. A Save As window opens. Browse to GSB → Price Data.
    5. In File name, type the name in GSB's format. Trademaid's example: ES.30.Minute.830.1500.CentralUSATime.txt
    6. Leave Save as type on Text Files (*.txt).
    7. Click Save. The file is now in the folder GSB reads from.

    Before you export, check the chart:

    • Volume: set the chart's volume to Ticks (up and down volume), not trade volume.
    • Indicators: remove any chart indicators first. They add extra columns and break the file.
    • Session: export the day session (for example @ES.D) unless you mean to build on 24-hour data.
    • Columns: the file should read Date, Time, Open, High, Low, Close, Up, Down, with the oldest bar first.
    TradeStation chart with the Data Window open and an arrow to the Save icon at its top left

    TradeStation: click the Save icon at the top left of the Data Window

    Watch the Exporting Data from TradeStation video on the Datasets and Symbols page.

    Not yet confirmed: how the Data Window is opened, and whether saving from it exports the chart's full history. Check the end dates in your file before loading it.

    MultiCharts

    Trademaid's written help doesn't list the MultiCharts clicks. Follow the Exporting Data from MultiCharts video, then save the file the same way as TradeStation:

    1. Watch the video and export your chart's data, with the chart on local time.
    2. In the Save As window, browse to GSB → Price Data.
    3. In File name, type the name in GSB's format.
    4. Leave Save as type on Text Files and click Save.

    Watch the Exporting Data from MultiCharts video on the Datasets and Symbols page.

    NinjaTrader 8

    Trademaid's NinjaTrader guides were written for NinjaTrader 8.0.19.1 (64-bit). NinjaTrader uses the GSB Price Data Exporter indicator, which comes with the GSB AddOn.

    One-time setup

    1. In the Control Center, click Tools → Import → NinjaScript Add-On.
    2. Pick the latest GSB AddOn file in your GSB folders (sorting by Date modified helps) and click Open. Click Yes if a warning appears.
    3. Close and restart NinjaTrader.
    4. Click New → NinjaScript Editor. Double-click AddOns, then LibGSB, and click the Compile icon. Close the editor when it finishes.
    5. Click Tools → Options. Under General, set Time Zone to Central Time (US & Canada).
    6. Under Market Data, set Historical → Global merge policy to Merge back adjusted. Click OK.
    7. Add a Trading Hours template with Tools → Trading Hours, for example 0830_1500: Monday 08:30 AM to 03:00 PM with End of Day (EOD) ticked, then right-click and Add Monday Through Friday. Click Apply, then OK.

    More detail, including Global Simulation Mode, is on Export to NinjaTrader.

    Export step 1: set up the chart

    1. In the Control Center, click New → Chart.
    2. Click the Data Series icon at the top of the chart.
    3. Choose the instrument, then the bar Type and Value, for example Minute and 30.
    4. Under Time frame, choose Custom range. Set the Start date, End date and Trading Hours template.
    5. Click OK and wait for the chart to load.
    6. Scroll left to see how far back your data really goes. It may not reach your start date, depending on your data provider. (To show the visible date range at the top left of the chart: Properties icon, General → Font, tick Show date range.)

    Export step 2: add GSB Price Data Exporter

    1. Click the Indicators icon at the top of the chart.
    2. In the Available list, scroll down to GSB Price Data Exporter.
    3. Click add at the bottom of the Configured list. Its settings appear on the right. Don't change any of them.
    4. Click OK. Adding the indicator runs a script that saves the chart's price data to a text file.

    Export step 3: save into Price Data

    1. A Save As window opens. Browse to your GSB Price Data folder.
    2. Type a name in GSB's format. Trademaid's example: ES.30.Minute.0830-1500CentralTime_1May2006-29Nov2019.txt
    3. Click Save. The file is ready for GSB.
    4. You can now remove the indicator from the chart. To export another market, date range or Trading Hours, add it again.

    Watch the Exporting Data from NinjaTrader video on the Datasets and Symbols page.

    Not yet confirmed: whether these NinjaTrader steps are unchanged in the latest NinjaTrader 8 release, and where the GSB AddOn file is saved after a Resource Manager download.

    Step 3: In GSB, open the Price Data window

    1. First, save your settings: click File → Save Optimization Settings As, so you can get back if you need to.
    2. In the left panel, open the Data section.
    3. Click the Opt. Price Data row (called Price Data in older versions).
    4. A small button with three dots (...) appears at the right end of the row. Click it. The Price Data window opens.

    Step 4: Type a name, then press Enter

    1. On the left, under Name, click the empty row at the bottom of the list.
    2. Type a name for this data set, such as ES.30. Trademaid's own example is EMD.30-$IDX.X.
    3. Press Enter. Trademaid's screenshot says in capitals that pressing Enter when you're done is the critical part. Don't skip it.
    Price Data window: type the data-set name in the empty Name row and press ENTER

    Type the data-set name in the empty Name row, then press Enter (older version)

    Not yet confirmed: in the newest builds the Name list is a tree (with a [default] group), so check where your new name appears. Also unconfirmed: whether the data-set name must match the file name. A short name like ES.30 is clear either way.

    Step 5: Click File Path, choose one file, Open

    1. Click in the File Path cell on the right of the window. An Open window appears.
    2. Browse to C:\GSB\Data\Price Data, and into a sub-folder if you made one (Trademaid's crude oil example uses CL).
    3. Click one file name only. Trademaid warns not to select several files at once.
    4. Click Open. The file appears in the File Path cell.
    Open window with one price file selected, and a note to click one file name, not several

    Click one file name, not several, then click Open

    Step 6: Check Contract and Time Frame, then click OK

    GSB reads the details from the file name and fills in the row:

    • Contract: the symbol, for example EMD or ES.
    • Time Frame: the bar size, for example 30.
    • Bar Type: for example Minute.
    • Mult. (newer versions): multiplies the bar size. If your file is already 30-minute bars, it's simply 1.

    If Contract or Time Frame is wrong, fix the file name and load it again. Then click OK at the bottom right of the window. GSB asks Would you like to save changes? Click Yes.

    Price Data window showing the EMD file loaded, with Contract EMD and Time Frame 30

    GSB reads the contract (EMD) and time frame (30) from the file name. Older version, without the Mult. column.

    Step 7: Check the Data section, then save

    1. Back in the left panel, look at the Opt. Price Data row. It now shows your data set's name, then Data1: and your file, with its multiple and session. A second file would show as Data2:.
    2. If the row is right, your data is loaded.
    3. Save with File → Save Optimization Settings As.

    Trademaid's crude oil example row reads: CL15.30:Data1: CL\CL.1.Minute.0900-1430_ExchangeTime_20200409.txt (Mult.: 15, Session: "MOC @ 14:30"), then the same file as Data2 with Mult.: 30.

    If GSB can't read the dates, see Common mistakes below.

    Going further (later lessons)

    • Mult.: load one-minute data once, then × 30 = 30-minute bars. Trademaid recommends this, so one file makes 29, 30 or 31-minute bars.
    • Secondary data (Data2): for stock systems an index works best, with matching session times. See below.
    • A new market: add it in Tools → Contracts List first. See Datasets and Symbols.
    • Verification data on other bar sizes or markets comes in Module 3.

    Adding secondary data (Data2)

    Trademaid has found that stock systems work best with an index as secondary data, for example AAPL with SPX.

    1. In the Price Data window, select your data set on the left.
    2. Click the next empty File Path row under your first file.
    3. Choose the secondary file in the Open window the same way, one file only, and click Open.
    4. Check that the session times of the two files match, then click OK and Yes.
    Open window with the $IDX secondary data file selected and an arrow to Open

    Choosing the secondary file ($IDX) for the EMD data set

    Not yet confirmed: whether the second File Path row is always Data2. Check the Opt. Price Data row in the left panel after you click OK.

    Common mistakes

    Mixing time zones

    Every data stream must be on the same time zone, including Data1. If not, one stream can look into the future and all results will be invalid. Keep TradeStation and MultiCharts charts on local time, and set NinjaTrader to Central Time.

    Wrong session or market-on-close times

    GSB session times are in the time of your exported data, not the exchange time on your chart. TradeStation and MultiCharts export data in your computer's local time. Trademaid's example: on US Eastern time, an 8:30 to 15:00 Central session exports as 9:30 to 16:00, so GSB's market-on-close time should be 1600.

    Contract or Time Frame wrong, or file not found

    The file name doesn't follow GSB's format. Rename it as symbol.time frame.bar type.anything you like.txt, make sure it's in your Price Data folder, and load it again.

    Name not saved

    You typed the data-set name but didn't press Enter. Press Enter after typing the name.

    Several files selected at once

    In the Open window, click one file name only. Add a second file in the next File Path row.

    Dates or times not read

    GSB should auto-detect most date and time formats. If it doesn't, add yours in Tools → App Settings → Data → Price Files Date Formats (or Price Files Time Formats). Remember: capital M is month, small m is minute.

    Less history than expected

    Your data provider may not go back as far as the start date you set. In NinjaTrader, scroll to the far left of the chart before exporting to see where the data starts. You can put the real start and end dates in the file name.

    Data from a different platform

    Systems built on one platform's data can backtest differently on another, because the open, high, low, close and volume of the same bar can differ. Build on data from the platform you'll trade on.

    Mult. above 1 without a one-minute file

    Any Mult. value above 1 needs a one-minute source file. Load one-minute data, or set Mult. back to 1 for a file that's already in the bar size you want.

    Forex file with no volume column

    Forex files need a volume column too. Older builds failed a few seconds after Play without one, so include volume even though newer builds cope.

    Not problems
    • Upper or lower case in the file name doesn't matter.
    • One long one-minute master file is fine. When a manager uploads data (for example to cloud workers), it sends it already multiplied to your bar size, not the full one-minute file.

    Next steps

    Your data is named, exported, loaded and checked. For what each Contracts List field means, and worked examples for ES, natural gas and a stock, see Datasets and Symbols. Next, Module 2 of the course runs your first full build: Building Trading Strategies.

    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.