Table of Contents

Class OptimizationCompletedEventArgs

Namespace
Balsam
Assembly
Balsam.Backtester.dll

Encapsulates various results from a completed optimization.

public class OptimizationCompletedEventArgs : EventArgs
Inheritance
OptimizationCompletedEventArgs
Inherited Members
Extension Methods

Constructors

OptimizationCompletedEventArgs(TradeStatsCollection, int, int, int, DateTime, DateTime, bool)

Instantiates a new OptimizationCompletedEventArgs object using the specified parameters.

public OptimizationCompletedEventArgs(TradeStatsCollection results, int iterations, int skipped, int completed, DateTime startTime, DateTime endTime, bool isCanceled)

Parameters

results TradeStatsCollection
iterations int
skipped int
completed int
startTime DateTime
endTime DateTime
isCanceled bool

Properties

Completed

Gets the total number of iterations that were completed successfully.

public int Completed { get; }

Property Value

int

IsCanceled

Returns true if the optimization has halted by the user.

public bool IsCanceled { get; }

Property Value

bool

OptimizationEndTime

Gets the end time of the optimization.

public DateTime OptimizationEndTime { get; }

Property Value

DateTime

OptimizationStartTime

Gets the start time of the optimization.

public DateTime OptimizationStartTime { get; }

Property Value

DateTime

Results

Gets a collection of the optimization results.

public TradeStatsCollection Results { get; }

Property Value

TradeStatsCollection

Skipped

Gets the total number of iterations that were skipped due to binding constraints.

public int Skipped { get; }

Property Value

int

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