Write, run, backtest, optimize, debug and publish TDSL indicators and strategies from VS Code, using the CoreXTrader terminal as the engine.
This extension is a remote control for the terminal. It does not run TDSL on its own. Install it alongside the CoreXTrader terminal, start the terminal, and sign in to your account.
Requirements
- CoreXTrader terminal, running and logged in on the same machine. The extension connects to it over localhost and reads the bridge file the terminal writes.
- A CoreXTrader account. Free and Pro both include the extension, run on chart, the debugger and publishing. Pro removes the backtest, optimization and multi-symbol limits in the table further down.
- VS Code 1.85 or newer, or a compatible editor such as VSCodium or Cursor (Open VSX).
When the terminal is not running, the extension still gives you syntax highlighting, snippets and the TDSL language configuration. The status bar shows CoreXTrader: offline and reconnects automatically once the terminal is back.
Features
TDSL language support
- Syntax highlighting for
.tdsl files.
- Snippets and templates: New Indicator and New Strategy create a file from the matching template.
- Live diagnostics while you type, and compile on save (both can be turned off in settings).
- Completion, hover and signature help for built-in functions, provided by the terminal's compiler.
Run on chart
- Run on Chart (
F5) compiles the active file, lists the charts open in the terminal and attaches the script to the one you pick. The last chart you used is at the top.
- Stop (
Shift+F5) removes the script from the charts.
- Compile (
F7, or the gear button in the editor title) checks the file without running it. Errors and warnings appear in the Problems panel and in the CoreXTrader Build output.
Backtest
- Backtest (editor title button) opens the backtest panel for the active script.
- Choose symbol, timeframe, date range, price modelling (every tick, OHLC or open prices), starting balance and costs.
- Results in tabs: Overview (equity and drawdown), Stats, Trades, Periods, Distribution, Log and Compare.
- Backtest History keeps your recent runs so you can reopen or compare them.
Optimizer
- Optimization lives in the backtest panel under Inputs → Optimization.
- Set a range for each input and pick grid search or genetic search.
- Results are ranked by the metric you choose, with a 2-parameter heatmap and an apply best action that writes the chosen values back into the file.
Debugger
- Debug Strategy (
F6) runs the strategy in a backtest with breakpoints on bars.
- Step bar by bar with the debug toolbar, inspect locals and inputs, and read the output log.
- Debugging is available for strategies.
- The CoreXTrader activity bar item opens the Community view.
- Search, install, fork, rate and add scripts to your vault, then open their page on the community site.
- Publish to Community (
Ctrl+Alt+P, the editor title button, or right-click a .tdsl file) sends the script to community.corextrader.com. The publish can include a backtest report, which lets other users see that the results came from the terminal.
- Publishing the same script again updates it instead of creating a copy. The version comes from
version in the script's about block and must be higher than the published one.
Commands
| Command |
Default key |
What it does |
| CoreXTrader: Connect to Terminal |
|
Connect now, or show why the terminal is not reachable |
| CoreXTrader: Compile |
F7 |
Check the active .tdsl file |
| CoreXTrader: Run on Chart |
F5 |
Compile and attach to the chart |
| CoreXTrader: Stop |
Shift+F5 |
Remove the script from charts |
| CoreXTrader: Debug Strategy |
F6 |
Start a debug session |
| CoreXTrader: Backtest |
|
Open the backtest panel |
| CoreXTrader: Backtest History |
|
Show recent runs |
| CoreXTrader: Optimize |
|
Open the optimizer (backtest panel) |
| CoreXTrader: Choose Chart… |
|
Pick the chart for Run on Chart |
| CoreXTrader: Publish to Community |
Ctrl+Alt+P |
Publish or update the active script |
| CoreXTrader: New Indicator / New Strategy |
|
Create a file from a template |
| CoreXTrader: Open TDSL Docs |
|
Open the TDSL documentation |
Free vs Pro
|
Free |
Pro |
| Extension, language server, run on chart |
Yes |
Yes |
| Backtest history |
1 year, all symbols, unlimited runs |
Full history |
| Optimization |
Up to 500 passes per job |
Unlimited |
| Multi-symbol backtest |
No |
Yes |
| Debugger |
Yes |
Yes |
| Publish to community |
Yes |
Yes |
Plan limits are enforced by the terminal, not by the extension.
Settings
| Setting |
Default |
Description |
corextrader.bridgeFile |
empty |
Path to devbridge.json written by the terminal. Empty uses the default location. |
corextrader.compileOnSave |
true |
Compile .tdsl files in the terminal on save and show errors. |
Troubleshooting
- Status bar says offline. Start the CoreXTrader terminal and make sure you are signed in. Click the status bar item to connect now.
- Run or Stop says the terminal version is not supported. Update the CoreXTrader terminal to the latest version.
Links
License
MIT. See the LICENSE file in the repository.
| |