OptimizationDoubleParameter
record cAlgo.API Since 5.9
DesktopCLICloud
A double cBot parameter, optimized over a numeric 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 OptimizationDoubleParameter : OptimizationParameter`1
Namespace: cAlgo.API · Group: Optimization · Inherits: 0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], OptimizationParameter
Examples
var takeProfit = new OptimizationDoubleParameter("TakeProfitPips", 10, 50, 5);
var stopLoss = new OptimizationDoubleParameter("StopLossPips", 20);
Print("{0}: {1} to {2} by {3}, {4} fixed at {5}", takeProfit.Name, takeProfit.Min, takeProfit.Max, takeProfit.Step, stopLoss.Name, stopLoss.Value);
takeProfit = OptimizationDoubleParameter("TakeProfitPips", 10.0, 50.0, 5.0)
stopLoss = OptimizationDoubleParameter("StopLossPips", 20.0)
api.Print(f"{takeProfit.Name}: {takeProfit.Min} to {takeProfit.Max} by {takeProfit.Step}, {stopLoss.Name} fixed at {stopLoss.Value}")
Constructors
| Name | Description |
|---|---|
| OptimizationDoubleParameter 3 overloadsDesktopCLICloud | Optimizes the parameter over the range the minimum to the maximum by the step. |
Properties
| Name | Description |
|---|---|
MaxDesktopCLIClouddouble | Gets the inclusive maximum of the range. |
MinDesktopCLIClouddouble | Gets the inclusive minimum of the range. |
StepDesktopCLIClouddouble | Gets the step of the range. |
Inherited members
From OptimizationParameter: Name, IsOptimized