Skip to article
XTester Help
XTester Studio

Editor

Edit code, compile your strategy and resolve errors before running it.

Reviewed: Applies to: 1.0.0-preview.1

Compilation and dependencies

Open the intended strategy and choose Compile Strategy. Diagnostics appear in XTester Build; double-click an error to open its source line. Stop a running simulation before rebuilding, or explicitly accept the build command’s stop confirmation.

Application screenshotXTester 1.0.0-preview.1
Select the error in Problems to jump to the affected line.Interface screenshot · XTester 1.0.0-preview.1
  1. Compiler error

Add Package and Remove Package change strategy dependencies; installing dependencies is a separate action. Check the requirements of the selected language adapter: C# has the fullest contract, while other adapters may expose only part of it.

Organizing strategies

The library can open a strategy, open it in a new window, rename, duplicate, reveal its folder, archive or restore it. Deleting and forgetting a recent entry are different actions: inspect the confirmation and path.

Portfolio folders organize members. Include, exclude and only-selected actions determine the strategies participating in a portfolio run. Review individual strategy settings before running the portfolio.

Strategy log

Open the strategy log to inspect execution messages. Filtering, search, clearing and autoscroll are available. Retain the error text and time before clearing a log needed for a support report.

Application screenshotXTester 1.0.0-preview.1
The lower Strategy Log panel shows startup, the first closed candle and the final line Closed bars processed: 59. The example’s source defines these messages.Interface screenshot · XTester 1.0.0-preview.1

Breakpoints

The breakpoint list can navigate to, rename or delete a breakpoint, disable all or delete all. Automatic pause at chart breakpoints belongs to simulation; stopping in source code belongs to the debugger.

Application screenshotXTester 1.0.0-preview.1
The current line is highlighted and the call stack shows where execution paused. Use the debug toolbar to continue.Interface screenshot · XTester 1.0.0-preview.1

Stepping and pausing do not constitute a completed backtest. Compile changed code and run a new calculation before comparing results.

Strategy Packages and Dependencies

Add Package to Strategy… attaches a library to the current project. Supported sources include folders, Git repositories and NuGet for the appropriate scenario. Check active folder and language before confirming.

Steps
  1. Open the intended strategy.
  2. Add the package and inspect source/version.
  3. Install declared project dependencies.
  4. Compile and inspect output.
  5. Repeat a small historical run after changing composition.

XTester packages live in xtester_packages inside the project; xtester.packages.json records their composition. A library installed somewhere on the system is not automatically part of this portable project.

Install Project Dependencies prepares declared requirements. Python and npm use project environments; downloads can require internet access. Read the installation action/error rather than repeatedly compiling while a library is missing.

Remove Package from Strategy… changes project composition. Fix imports or restore the required dependency if source still refers to a removed library, then compile.

Retain library versions and package composition when comparing runs or building a robot. Successful installation does not establish correct use or equivalent results with another version.

Related commands

Command Palette reference
Command nameIdentifier

Find these actions by name in the Command Palette; availability depends on the current project and operation state.

Archive Strategyxtester.archiveStrategy
Delete Simulation Pausextester.breakpointDelete
Go to Barxtester.breakpointGoTo
Rename Simulation Pausextester.breakpointRename
Delete All Simulation Pausesxtester.breakpointsDeleteAll
Disable All Simulation Pausesxtester.breakpointsDisableAll
Refresh Simulation Pausesxtester.breakpointsRefresh
Toggle Automatic Pausextester.breakpointsToggleAutoPause
Choose Strategies Folder…xtester.chooseStrategiesRoot
Compile Strategyxtester.compile
Delete Strategy…xtester.deleteStrategy
Duplicate Strategy…xtester.duplicateStrategy
Remove from Recentxtester.forgetRecentStrategy
Import Strategy from File…xtester.importStrategyFromFile
Refresh Strategy Listxtester.libraryRefresh
Open Strategy…xtester.openStrategy
Open in New Windowxtester.openStrategyInNewWindow
Add Package to Strategy...xtester.packages.add
Install Project Dependenciesxtester.packages.installDependencies
Remove Package from Strategy...xtester.packages.remove
Rename Strategy…xtester.renameStrategy
Restore from Archivextester.restoreStrategy
Show Folder in File Managerxtester.revealStrategyFolder
Run Strategy Filextester.runFile
Show Strategy Logxtester.showStrategyLog
Clear Strategy Logxtester.strategyLogClear
Filter Strategy Logxtester.strategyLogFilter
Search Strategy Logxtester.strategyLogSearch
Toggle Strategy Log Autoscrollxtester.strategyLogToggleAutoscroll