Video Tutorial
Learn how to export the GSB scripts into Multicharts so you can utilise GSB Pro generated trading systems in the Multicharts platform.
Exporting to MultiCharts
The process for exporting to MultiCharts is similar to TradeStation since MultiCharts uses PowerLanguage, which is compatible with EasyLanguage.
Step 1: Import GSB Function Library
- Open MultiCharts PowerLanguage Editor
- Navigate to File → Import → Signals and Functions
- Select the
GSB_Library_MC.PLAfile from your GSB Pro installation directory - Click Import and confirm the import completed successfully
Step 2: Export Strategy from GSB Pro
- In GSB Pro, select your validated system
- Click Export → MultiCharts (PowerLanguage)
- GSB Pro generates the complete strategy code
- Copy the generated code to clipboard
Step 3: Create New Signal in MultiCharts
- Open PowerLanguage Editor
- File → New → Signal
- Name your signal (e.g., "GSB_ES_System_001")
- Paste the GSB-generated code
- Save and Compile
Critical Configuration: Max Bars Back Setting
The Problem: MultiCharts uses MaxBarsBack = 50 by default. GSB systems typically require more historical bars for technical indicators and calculations to function correctly.
How to Change Max Bars Back to 500:
For Signals/Strategies (Per-Strategy Method):
- Right-click your chart → Format Signal
- Click Properties button (bottom right)
- In the first tab, find "Maximum bars study will reference"
- Enter 500
- Check "Use as Default" to apply to new strategies
- Click OK
Set Global Default (PowerLanguage Editor):
- Open the PowerLanguage Editor
- Click Properties icon on toolbar (or File → Properties)
- Select the Properties tab
- In "Max number of bars study will reference" section:
- Click User specified
- Enter 500 in the box
- Check "Use as Default" ✓
- Click OK
Important Requirements:
- Your chart must have at least 500 bars of historical data loaded
- Signals/strategies cannot use Auto-detect—MaxBarsBack must be manually set
- For strategies with multiple signals, the highest MaxBarsBack value is used
- Different MaxBarsBack settings can affect indicator calculations slightly
Performance Note: Higher MaxBarsBack = more memory usage and slower calculations. 500 provides a good balance for most GSB systems while maintaining reasonable performance.
Applying to Charts
Insert Signal on Chart
- Create chart for your target symbol
- Set correct bar interval
- Right-click chart → Format Signals
- Add your imported GSB signal
- Configure inputs to match your GSB Pro system
Verify Backtest Results
Always verify the backtest matches your GSB Pro results:
- View Strategy Performance Report
- Compare net profit, win rate, and number of trades
- Check individual trade dates and signals
- Ensure commission and slippage settings match
MultiCharts-Specific Features
Portfolio Backtesting
MultiCharts offers powerful portfolio backtesting:
- Apply same strategy across multiple symbols simultaneously
- Test portfolio-level performance
- Analyze correlation and diversification benefits
- Optimize capital allocation across instruments
Strategy Automation
To enable automated trading:
- Format Signals → Auto Trading tab
- Enable "Auto trading"
- Select broker connection
- Configure order parameters
- Set position sizing rules
MultiCharts .NET allows you to code strategies in C# instead of PowerLanguage. While GSB Pro exports to PowerLanguage by default, advanced users can translate the logic to C# for enhanced performance and flexibility.
Common Issues
Function Import Errors
If functions don't import correctly:
- Verify you're using the MultiCharts-specific library file
- Check PowerLanguage Editor → Functions list
- Re-import if functions are missing
- Restart MultiCharts after importing
Compilation Errors
If strategy won't compile:
- Ensure all GSB library functions imported successfully
- Check for typos in input parameter names
- Verify MultiCharts version compatibility
- Review error messages for specific line numbers
Additional Resources
Next Steps
Learn how to export your systems to NinjaTrader:
