Skip to content

OptimizationSettings

Summary

Represents settings for configuring an optimization process.

Signature

1
public class OptimizationSettings

Namespace

cAlgo.API

See Also

Methods

ToString

Signature

1
public string ToString()

Return Value

string

PrintMembers

Signature

1
protected bool PrintMembers(StringBuilder builder)

Parameters

Name Type Description
builder StringBuilder

Return Value

bool

GetHashCode

Signature

1
public int GetHashCode()

Return Value

int

Equals (2)

Equals (1 of 2)

Signature

1
public bool Equals(object obj)

Parameters

Name Type Description
obj object

Return Value

bool

Equals (2 of 2)

Signature

1
public bool Equals(OptimizationSettings other)

Parameters

Name Type Description
other OptimizationSettings

Return Value

bool

$

Signature

1
public OptimizationSettings <Clone>$()

Return Value

OptimizationSettings

Properties

StartTimeUtc

Summary

Gets the start time in UTC for the optimization period.

Signature

1
public DateTime StartTimeUtc {get;}

Return Value

DateTime

EndTimeUtc

Summary

Gets the end time in UTC for the optimization period.

Signature

1
public DateTime EndTimeUtc {get;}

Return Value

DateTime

Balance

Summary

Gets the initial balance for each pass.

Signature

1
public double Balance {get;}

Return Value

double

Criteria

Summary

Gets the standard optimization criteria. Ignored whenis true.

Signature

1
public IReadOnlyList<OptimizationCriterion> Criteria {get;}

Return Value

IReadOnlyList

DataMode

Summary

Gets the data mode used for the optimization.

Signature

1
public BacktestingDataMode DataMode {get; set;}

Return Value

BacktestingDataMode

DataFile

Summary

Gets the path to the data file used for the optimization.

Signature

1
public string DataFile {get; set;}

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
public double Commission {get; set;}

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
public SymbolCommissionType CommissionType {get; set;}

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
public bool ApplyCommissionAutomatically {get; set;}

Return Value

bool

SpreadPips

Summary

Gets the spread in pips.

Signature

1
public double SpreadPips {get; set;}

Return Value

double

Method

Summary

Gets the optimization method. Defaults to .

Signature

1
public OptimizationMethod Method {get; set;}

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
public int Cores {get; set;}

Return Value

int

UseCustomFitness

Summary

Gets a value indicating whether to use the cBot's custom GetFitness instead of.

Signature

1
public bool UseCustomFitness {get; set;}

Return Value

bool

AutoSelectBest

Summary

Gets a value indicating whether the best pass is auto-selected on completion.

Signature

1
public bool AutoSelectBest {get; set;}

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
public bool PreciseConversion {get; set;}

Return Value

bool