OptimizationIntegerParameter
record cAlgo.API Since 5.9
DesktopCLICloud
An int cBot parameter, optimized over an integer range or held fixed.
Environment behaviour
CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.
Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.
Definition
public class OptimizationIntegerParameter : OptimizationParameter`1
Namespace: cAlgo.API · Group: Optimization · Inherits: 0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], OptimizationParameter
Examples
var slowPeriods = new OptimizationIntegerParameter("SlowPeriods", min: 20, max: 100, step: 10);
var fastPeriods = new OptimizationIntegerParameter("FastPeriods", 9);
Print("{0}: {1} to {2} by {3}, {4} fixed at {5}", slowPeriods.Name, slowPeriods.Min, slowPeriods.Max, slowPeriods.Step, fastPeriods.Name, fastPeriods.Value);
slowPeriods = OptimizationIntegerParameter("SlowPeriods", 20, 100, 10)
fastPeriods = OptimizationIntegerParameter("FastPeriods", 9)
api.Print(f"{slowPeriods.Name}: {slowPeriods.Min} to {slowPeriods.Max} by {slowPeriods.Step}, {fastPeriods.Name} fixed at {fastPeriods.Value}")
Constructors
| Name | Description |
|---|---|
| OptimizationIntegerParameter 3 overloadsDesktopCLICloud | Optimizes the parameter over the range the minimum to the maximum by the step. |
Properties
| Name | Description |
|---|---|
MaxDesktopCLICloudint | Gets the inclusive maximum of the range. |
MinDesktopCLICloudint | Gets the inclusive minimum of the range. |
StepDesktopCLICloudint | Gets the step of the range. |
Inherited members
From OptimizationParameter: Name, IsOptimized