RegOption
Last updated
Last updated
Registers a new option parameter for an indicator or strategy.
name
- A string containing the name of the option.
type
- The type of the option (from enum).
optPtrOrValue
- (Optional) The default value for the option.
inv
- (Optional) Visibility flag, defaults to true.
useInNameWithParams
- (Optional) Whether to include this option in the name with parameters, defaults to true.
This method does not return a value.
The RegOption
method registers a new option parameter for an indicator or strategy. This is used to define the configurable parameters that users can adjust when applying the indicator or strategy.
See for a complete list of option types.