TOptionTab
Specifies which tab an option parameter should be displayed in within the indicator settings dialog.
Syntax
enum TOptionTab {
INPUTS,
STYLE,
}Values
Value
Description
INPUTS
The option will be displayed in the Inputs tab
STYLE
The option will be displayed in the Style tab
Description
The TOptionTab enum is used when registering options with RegOption to specify which tab the option should appear in within the indicator settings dialog. This helps organize options logically for users.
Example
Init(): void {
// Register an option in the Inputs tab (default)
this.api.RegOption('Period', TOptionType.INTEGER, this.Period, true, true, TOptionTab.INPUTS)
// Register an option in the Style tab
this.api.RegOption('Line Color', TOptionType.COLOR, this.LineColor, true, true, TOptionTab.STYLE)
}See Also
RegOption - Register option parameters
TOptionType - Available option types
Last updated