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
TradeStatsiteration
inttotalIterations
intstartTime
DateTimeendTime
DateTimeoptimizationStartTime
DateTime
Properties
DataStore
Gets the datastore created or used by this optimization run.
public DataStoreBase DataStore { get; }
Property Value
EstimatedCompletionTime
Gets the estimated completion time.
public DateTime EstimatedCompletionTime { get; }
Property Value
EstimatedTimeRemaining
Gets the estimated time remaining.
public TimeSpan EstimatedTimeRemaining { get; }
Property Value
IsCanceled
Gets whether the optimization has been canceled.
public bool IsCanceled { get; }
Property Value
Iteration
Gets the iteration number.
public int Iteration { get; }
Property Value
IterationEndTime
Gets the iteration end time.
public DateTime IterationEndTime { get; }
Property Value
IterationStartTime
Gets the iteration start time.
public DateTime IterationStartTime { get; }
Property Value
IterationTime
Gets the time the iteration took to complete.
public TimeSpan IterationTime { get; }
Property Value
OptimizationStartTime
Gets the time the overall optimization was started.
public DateTime OptimizationStartTime { get; }
Property Value
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
TotalElapsedTime
Gets the total elapsed time for the optimization.
public TimeSpan TotalElapsedTime { get; }
Property Value
TotalIterations
Gets the total number of iterations.
public int TotalIterations { get; }
Property Value
Methods
Cancel()
Cancels the optimization after this iteration.
public void Cancel()