Type/to search
Getting Started
Platform Basics
Writing Strategies
Development Tools
Backtesting System
Overview and Starting a Backtest
Backtest Modes and Order Matching
Backtest Configuration and Saving
Supported Languages and Exchanges
Reading Backtest Results
Parameter Optimization
Custom Data Source
Local Backtesting Engine
Backtest Page Shortcuts
Advanced Topics
Data and Research
Extended API Interface

Generates several parameter sets from the ranges you configure and backtests each of them. In the strategy parameter section of the "Backtest" tab, tick the Optimize option to the right of a parameter to show its settings:

  • Min: the starting value of the parameter.
  • Max: the largest value the parameter is increased to.
  • Step: the increment.
  • Concurrent threads: how many backtests run at the same time during optimization. This option only takes effect for backtests that run in the browser: JavaScript, PINE and MyLanguage strategies, and Python and Rust strategies with the "Local" backtest node; otherwise backtests run one at a time. Parameters of referenced templates can be selected for optimization too and are included in the combinations.

The system generates parameter combinations from Min, Max and Step and backtests every combination once. Only number parameters can be optimized.