Type/to search
Getting Started
Platform Basics
Writing Strategies
Strategy Structure
Programming Languages
Strategy Parameters
Interface Parameter Types
Component Configuration
Save Parameter Settings
Interactive Controls
Strategy Frontend
Template Library
Built-in Libraries
UI Text Localization
API Quick Reference
Development Tools
Backtesting System
Advanced Topics
Data and Research
Extended API Interface

Set in the strategy interface; they appear in the strategy code as global variables with the same names (global constants in Rust), accessed by name. Differences between languages:

  • JavaScript, MyLanguage: parameters can be read directly and the parameter variables can also be modified in code.
  • Python: parameters can be read directly; to assign a new value to one inside a function, declare it with global first.
  • Rust: parameters are constants that can only be read, not modified; see Rust for the type of each kind of parameter.
  • PINE: interface parameters are created with the input() function.

Strategy Parameter Settings Interface

In this sectionRead the whole section

NameDescription
Interface Parameter TypesInterface parameters are set in the strategy parameters area below the code editor on the strategy editing page.
Component ConfigurationBoth strategy interface parameters and strategy interactive controls have a "Component Configuration" option.
Save Parameter SettingsStrategy parameters set for a backtest can be saved into the strategy code; a live robot's parameters can be exported to a file and imported into another robot.