Table of Contents

Class OptimizationIterationEventArgs

Namespace
Balsam
Assembly
Balsam.Backtester.dll

A class used to report the results and status of an optimization iteration.

public class OptimizationIterationEventArgs : EventArgs
Inheritance
OptimizationIterationEventArgs
Inherited Members
Extension Methods

Constructors

OptimizationIterationEventArgs(TradeStats, int, int, DateTime, DateTime, DateTime)

Initializes a new OptimizationIterationEventArgs object.

public OptimizationIterationEventArgs(TradeStats result, int iteration, int totalIterations, DateTime startTime, DateTime endTime, DateTime optimizationStartTime)

Parameters

result TradeStats
iteration int
totalIterations int
startTime DateTime
endTime DateTime
optimizationStartTime DateTime

Properties

DataStore

Gets the datastore created or used by this optimization run.

public DataStoreBase DataStore { get; }

Property Value

DataStoreBase

EstimatedCompletionTime

Gets the estimated completion time.

public DateTime EstimatedCompletionTime { get; }

Property Value

DateTime

EstimatedTimeRemaining

Gets the estimated time remaining.

public TimeSpan EstimatedTimeRemaining { get; }

Property Value

TimeSpan

IsCanceled

Gets whether the optimization has been canceled.

public bool IsCanceled { get; }

Property Value

bool

Iteration

Gets the iteration number.

public int Iteration { get; }

Property Value

int

IterationEndTime

Gets the iteration end time.

public DateTime IterationEndTime { get; }

Property Value

DateTime

IterationStartTime

Gets the iteration start time.

public DateTime IterationStartTime { get; }

Property Value

DateTime

IterationTime

Gets the time the iteration took to complete.

public TimeSpan IterationTime { get; }

Property Value

TimeSpan

OptimizationStartTime

Gets the time the overall optimization was started.

public DateTime OptimizationStartTime { get; }

Property Value

DateTime

Result

Gets the result of the optimization iteration. If this was from a money management optimization, result will be a derived class.

public TradeStats Result { get; }

Property Value

TradeStats

TotalElapsedTime

Gets the total elapsed time for the optimization.

public TimeSpan TotalElapsedTime { get; }

Property Value

TimeSpan

TotalIterations

Gets the total number of iterations.

public int TotalIterations { get; }

Property Value

int

Methods

Cancel()

Cancels the optimization after this iteration.

public void Cancel()