OptimizationSettings
Summary
Represents settings for configuring an optimization process.
Signature
1 | |
Namespace
cAlgo.API
See Also
Methods
ToString
Signature
1 | |
Return Value
string
PrintMembers
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| builder | StringBuilder |
Return Value
bool
GetHashCode
Signature
1 | |
Return Value
int
Equals (2)
Equals (1 of 2)
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| obj | object |
Return Value
bool
Equals (2 of 2)
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| other | OptimizationSettings |
Return Value
bool
$
Signature
1 | |
Return Value
OptimizationSettings
Properties
StartTimeUtc
Summary
Gets the start time in UTC for the optimization period.
Signature
1 | |
Return Value
DateTime
EndTimeUtc
Summary
Gets the end time in UTC for the optimization period.
Signature
1 | |
Return Value
DateTime
Balance
Summary
Gets the initial balance for each pass.
Signature
1 | |
Return Value
double
Criteria
Summary
Gets the standard optimization criteria. Ignored whenis true.
Signature
1 | |
Return Value
IReadOnlyList
DataMode
Summary
Gets the data mode used for the optimization.
Signature
1 | |
Return Value
BacktestingDataMode
DataFile
Summary
Gets the path to the data file used for the optimization.
Signature
1 | |
Return Value
string
Commission
Summary
Gets the commission value, it is interpreted based on the CommissionType property value. It is ignored when ApplyCommissionAutomatically is set to true. The default value is 0.
Signature
1 | |
Return Value
double
CommissionType
Summary
Gets the commission type that defines how the Commission property value is interpreted. It is ignored when ApplyCommissionAutomatically is set to true. The default value is SymbolCommissionType.UsdPerMillionUsdVolume.
Signature
1 | |
Return Value
SymbolCommissionType
ApplyCommissionAutomatically
Summary
Gets a value that indicates whether the commission type and value of the optimized symbol are applied automatically. When it is set to true the Commission and CommissionType properties are ignored. The default value is false.
Signature
1 | |
Return Value
bool
SpreadPips
Summary
Gets the spread in pips.
Signature
1 | |
Return Value
double
Method
Summary
Gets the optimization method. Defaults to .
Signature
1 | |
Return Value
OptimizationMethod
Cores
Summary
Gets the number of CPU cores used to run passes in parallel. Must be greater than orequal to 1. Zero will use the platform default which is ProcessorCount / 2 + 1.
Signature
1 | |
Return Value
int
UseCustomFitness
Summary
Gets a value indicating whether to use the cBot's custom GetFitness instead of.
Signature
1 | |
Return Value
bool
AutoSelectBest
Summary
Gets a value indicating whether the best pass is auto-selected on completion.
Signature
1 | |
Return Value
bool
PreciseConversion
Summary
Gets a value indicating whether historical data for additional symbols is downloaded to convertprofit and margin into the account deposit currency precisely. When true, real historical exchangerates of the additional symbols are used; when false, the default, approximated rates are used.Enabling it can increase the run time and the amount of downloaded data.
Signature
1 | |
Return Value
bool