Type/to search
Getting Started
Platform Basics
Writing Strategies
Strategy Structure
Programming Languages
Strategy Parameters
Interactive Controls
Types of Interactive Controls
Interactive Controls in Status Bar
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

Strategies in JavaScript, Python, Rust and MyLanguage can have interactive controls, which send interaction commands to the strategy while it is running live. In JavaScript, Python and Rust strategies, the messages produced by interactive controls are read with the GetCommand function. The "Component Configuration" of interactive controls is the same as for strategy parameters (see Component Configuration).

Interactive Controls

With code in the strategy that handles interactive control messages, interactive controls in live trading can be used for (among other things):

  • Manually closing the strategy's positions.
  • Changing strategy parameters dynamically without restarting the live trading.
  • Switching strategy logic.
  • Printing debugging information or data to test a feature.

In this sectionRead the whole section

NameDescription
Types of Interactive ControlsThere are 5 types of interactive control.
Interactive Controls in Status BarBesides the controls designed in the "Strategy Interaction" section, a strategy can output interactive controls in its status bar.