TOptValue
This section provides documentation for different types of TOptValue classes which are used to create configurable parameters in trading strategies. These parameters allow users to customize strategy behavior through the strategy settings panel.
Available Types
TOptValue_str: For text parameters (strategy names, symbols, comments)TOptValue_number: For numeric parameters (lot sizes, periods, levels)TOptValue_bool: For boolean parameters (enable/disable features)TOptValue_linestyle: For line style parameters (visibility, color, style, width)TOptValue_dateonly: For date-only parameters (start dates, end dates)TOptValue_datetime: For date and time parameters (start times, end times)TOptValue_timeonly: For time-only parameters (start times, end times)
Common Usage
All TOptValue types:
Must be created in the strategy's
Init()methodNeed to be registered using
RegOptionCan be accessed via the
.valuepropertySupport setting default values during creation
Last updated