Lesson 8 of 11
    12 min

    Export Your System to TradeStation

    Turn your GSB discovery into a live trading system

    Prerequisites
    Complete Lesson 7: Walk Forward Analysis — You should have a validated system ready to export to live trading
    Learning Objectives
    • Export a completed GSB system from the results panel
    • Copy the generated indicator code to TradeStation or MultiCharts
    • Install indicators and configure platform defaults (500-bar lookback)
    • Reconcile live results back to GSB's hypothetical performance
    Video Lesson
    Watch Andrew export a system to TradeStation and reconcile live results

    Video coming soon

    Andrew will record the TradeStation workflow (steps are similar for MultiCharts and NinjaTrader)

    What Is System Export?

    GSB Pro's most powerful feature is that it generates a trading script—indicator code that can be copied directly into TradeStation, MultiCharts, or NinjaTrader. This is how you take a discovery from GSB and actually trade it live.

    The exported code includes all your discovered indicators and rules. You copy and paste this code into your trading platform, and the platform runs your system automatically.

    Step-by-Step: Export from GSB Pro

    Step 1: Select a Promising System

    From your completed build results, select a system you want to export. This should be one that passed your basic evaluation criteria (good equity curve, reasonable drawdown, decent win rate).

    1. Look at the results panel on the left
    2. Click the system you want to export
    3. Confirm the equity curve looks promising (see Lesson 5 if you need a refresher)

    Step 2: Export the System

    Right-click on the selected system or look for the Export button in the interface.

    1. GSB will present export options: TradeStation, MultiCharts, NinjaTrader
    2. Choose your platform
    3. GSB generates the indicator code automatically
    What Gets Exported?

    GSB exports a script containing:

    • ✓ All discovered indicators and their settings
    • ✓ Entry and exit rules in your platform's language
    • ✓ Money management settings (position sizing, stops, targets)
    • ✓ Any optimization parameters you configured

    Installing Indicators in Your Trading Platform

    Before you can run your GSB system, you need to install the indicator code in your trading platform. The process is slightly different for each platform, but the concept is the same: copy the exported GSB code, paste it into your platform's code editor, compile it, and apply it to a chart.

    Choose your platform below for detailed instructions:

    For TradeStation Users

    TradeStation uses its PowerEditor environment for custom indicators. This is where you'll install your GSB-exported strategy.

    1. Copy the exported code from GSB Pro results panel
    2. Open TradeStation PowerEditor (Tools → PowerEditor or access via Analysis Techniques)
    3. Create a new file and select "Indicator" as the file type
    4. Paste the entire GSB-generated code into the editor window
    5. Save the indicator with a descriptive name (e.g., "GSB_Strategy_v1_ES_Daily")
    6. Compile the code by pressing Build/Compile button and verify no errors
    7. Apply to chart by dragging the indicator onto an active chart

    What to watch for: Compilation errors usually mean the code didn't paste correctly. Make sure you copied the entire code block and pasted it as plain text (not rich text).

    For detailed step-by-step setup with screenshots and troubleshooting, see the Strategy Guide: Export to TradeStation

    For MultiCharts Users

    MultiCharts uses PowerLanguage (its proprietary scripting language) for custom studies. GSB automatically exports code in PowerLanguage format for MultiCharts.

    1. Copy the exported code from GSB Pro results panel
    2. Open the PowerLanguage Editor in MultiCharts (Tools → PowerLanguage Editor)
    3. Create a new Study (not a Signal—Strategy studies are different)
    4. Delete the template code and paste the entire GSB-generated code
    5. Save the study with a clear name (e.g., "GSB_Strategy_v1")
    6. Compile and verify — check the output window for any errors
    7. Apply to your chart by selecting the study in the Study Panel

    MultiCharts tip: Make sure you're creating a Study (indicator), not a Signal or Strategy. Studies display on your chart; Signals and Strategies work differently.

    For detailed step-by-step setup with screenshots and platform-specific configuration, see the Strategy Guide: Export to MultiCharts

    For NinjaTrader Users

    NinjaTrader has direct integration with GSB Pro through its C# scripting environment, making installation more streamlined than TradeStation or MultiCharts.

    1. Copy the exported code from GSB Pro results panel
    2. Open NinjaTrader Control Center and navigate to Tools → Editor
    3. Create a new Indicator file (or Strategy if that's what GSB exports)
    4. Paste the entire GSB-generated C# code into the editor
    5. Save the file with your indicator name
    6. Compile the code — NinjaTrader will check for errors in the Output window
    7. Restart NinjaTrader (or reload the script) to apply changes
    8. Add to your chart through the Indicators panel

    NinjaTrader note: C# compilation is more strict than TradeStation's PowerScript or MultiCharts' PowerLanguage. Pay attention to error messages if compilation fails.

    For detailed step-by-step setup with NinjaTrader-specific screenshots and configuration, see the Strategy Guide: Export to NinjaTrader

    Critical Setup: Configure Platform Defaults to 500-Bar Lookback

    This is essential for accurate reconciliation. GSB's historical results assume your indicators have access to 500 bars of historical data for calculations. If your trading platform uses fewer bars, your live results will differ from GSB's projections.

    You need to configure this setting BEFORE running your strategy on live or simulated charts.

    TradeStation: Set Chart Data Requirement to 500 Bars

    TradeStation offers multiple ways to configure the 500-bar lookback. Choose the approach that matches your workflow:

    Option 1: Via Chart Settings (Easiest for Most Users)

    1. Open or create a chart
    2. Right-click on the chart and select Format Chart
    3. Go to the Data2 or Data Requirements tab
    4. Set Bars to Load (or History Bars): 500 or higher
    5. Click OK and let the chart reload with the full history
    6. Important: Do this for EACH chart you use for your GSB strategy

    This is the quickest method for setting up individual charts with your GSB indicators.

    Option 2: Via Easy Language (In Your Indicator Code)

    If you want to set the lookback requirement directly in your GSB indicator code (in Easy Language), add this line at the beginning of your indicator:

    SetDataRequirements(1, 500);
    1. Open your GSB indicator in PowerEditor
    2. Find the indicator inputs or near the beginning of the code
    3. Add the line: SetDataRequirements(1, 500);
    4. Save and recompile the indicator
    5. Apply the updated indicator to your chart

    This method ensures the 500-bar requirement is built into your indicator and applies automatically to any chart you add it to.

    Option 3: Via Power Editor Strategy Properties

    If you're using your GSB system as a Strategy (not just an Indicator) in Power Editor:

    1. Open your GSB strategy in Power Editor
    2. Go to Strategy → Properties (or right-click and select Properties)
    3. Look for Data Requirements or Lookback Bars settings
    4. Set the requirement to 500 bars
    5. Save and recompile the strategy
    6. Apply the strategy to your chart

    This approach is ideal if you're running your GSB system as an automated strategy with entry/exit signals.

    Which method should I use? If unsure, start with Option 1 (Chart Settings). If you want the 500-bar requirement to be "sticky" (automatically applied), use Option 2 (Easy Language).

    MultiCharts: Configure Historical Data Depth

    1. Go to Tools → Settings
    2. Select Data or Data Limits
    3. Find the setting for "History Depth" or "Bars of History"
    4. Set it to 500 bars minimum (can be higher)
    5. Click OK to save
    6. Restart MultiCharts for the setting to take effect

    This is a global setting that applies to all charts in MultiCharts, so you only need to set it once.

    NinjaTrader: Set Chart Lookback Period

    1. Open your NinjaTrader chart
    2. Right-click on the chart background and select Chart Settings
    3. Go to the Data/History tab
    4. Find Data Lookback or Lookback Period
    5. Set it to 500 bars or more
    6. Click OK to apply
    7. The chart will reload with the full historical data

    NinjaTrader loads data efficiently, so 500+ bars is usually not a performance issue.

    Why 500 Bars?

    GSB uses 500 bars of lookback by default to calculate indicators. This ensures that when your indicator runs on your live chart, it has access to the same amount of historical context that GSB used during its backtest. Without this, your platform's indicator calculations will be different from GSB's, causing reconciliation discrepancies.

    For detailed instructions with screenshots specific to your platform, see:

    Reconciling: Comparing Live Results to GSB Projections

    Once your system is installed and running, you should see trades executing on your live or simulated charts. Now comes the critical step: reconciliation.

    What Is Reconciliation?

    Reconciliation means comparing your actual platform results (what TradeStation shows) to GSB's historical backtest results (what the system showed when you ran the build). They should match closely if your platform is set up correctly.

    The Reconciliation Process

    1. Run your system on the same date range that GSB backtested
    2. Record key statistics: Number of trades, net profit, max drawdown
    3. Compare to GSB results: Are they the same? Within 1-2%? Significantly different?
    If Results Don't Match

    Common reasons for discrepancies:

    • • Insufficient bars loaded — Make sure you set 500-bar lookback
    • • Different data source — Ensure GSB and TradeStation use the same data feed
    • • Indicator rounding — Small math differences are normal
    • • Timing differences — Trading hours and session settings matter

    For troubleshooting, consult the Strategy Guide and Troubleshooting section of the manual.

    Next Steps

    After successfully exporting, installing, and reconciling your first system:

    • Move to Lesson 8: Common Setup Issues if you run into problems
    • Or jump to Lesson 9: What a Good Candidate System Looks Like to learn more about selection
    • Continue building more systems during your trial and exporting the best ones

    Key Takeaways

    • GSB's output is tradeable code — not just theory
    • Export is simple: select system → export → copy code to platform
    • Install indicators by pasting GSB's code into your platform's editor
    • Always set 500-bar lookback for accurate reconciliation
    • Reconciliation verifies your system is working correctly before going live

    Ready for the next lesson?

    Continue through the Trial Academy to become a GSB expert