Parameters
What Are Parameters?
Indicator parameters are configurable settings that allow users to customize how an indicator behaves and looks. They appear in the indicator’s settings panel and can be modified without changing the code.
How It Works
To make a parameter configurable, it must be created using one of the TOptValue
types , created and registered inside the Init()
method.
Any variable that does not extend TOptValue
is considered internal and will not be visible or editable in the user interface.
Common Parameter Types
Here are some of the commonly used TOptValue
types:
TOptValue_number
— numeric values (e.g., period, shift)TOptValue_bool
— true/false switchesTOptValue_string
— string input
Example
Key Rules
Parameters control how the indicator works and looks — use them for anything the user might want to tweak
Last updated