ExpectancyParameter
StockSharp.Algo.Statistics
The average profit of winning trades minus the average loss of losing trades.
Inherits: BaseStatisticParameter<decimal>
Implements: ITradeStatisticParameter, IStatisticParameter, IPersistable, INotifyPropertyChanged, IDisposable
Constructors
ExpectancyParameter
public ExpectancyParameter()
expectancyParameter = ExpectancyParameter()
Initialize ExpectancyParameter.
Methods
Add
public void Add(PnLInfo info)
expectancyParameter.Add(info)
To add information about new trade to the parameter.
- info
- Information on new trade.
Load
public override void Load(SettingsStorage storage)
expectancyParameter.Load(storage)
To load the state of statistic parameter.
- storage
- Storage.
Save
public override void Save(SettingsStorage storage)
expectancyParameter.Save(storage)
To save the state of statistic parameter.
- storage
- Storage.