Table of Contents

Class ExpectancyParameter

Namespace
StockSharp.Algo.Statistics
Assembly
StockSharp.Algo.dll

The average profit of winning trades minus the average loss of losing trades.

[Display(ResourceType = typeof(LocalizedStrings), Name = "Expectancy", Description = "ExpectancyDesc", GroupName = "Trades", Order = 110)]
public class ExpectancyParameter : BaseStatisticParameter<decimal>, INotifyPropertyChangedEx, INotifyPropertyChanging, IStatisticParameter<decimal>, ITradeStatisticParameter, IStatisticParameter, IPersistable, INotifyPropertyChanged
Inheritance
ExpectancyParameter
Implements
Inherited Members
Extension Methods

Constructors

ExpectancyParameter()

Initialize ExpectancyParameter.

public ExpectancyParameter()

Methods

Add(PnLInfo)

To add information about new trade to the parameter.

public void Add(PnLInfo info)

Parameters

info PnLInfo

Information on new trade.

Load(SettingsStorage)

To load the state of statistic parameter.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Storage.

Reset()

To reset the parameter value.

public override void Reset()

Save(SettingsStorage)

To save the state of statistic parameter.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Storage.