Parameter - A public property in a cBot class marked with the
[Parameter]
attribute becomes an input that users can set in the UI before running the cBot. For example, defining
[Parameter(DefaultValue = 1000)] public int Volume { get; set; }
creates a “Volume” input. The docs note:
“Marks a property as input parameter.”. Supported types include numeric types,
enum
,
DataSeries
,
TimeFrame
, etc. Parameters allow users to customize things like stop-loss, take-profit, indicator periods, etc., without editing code.