Class ReturnParameter
- Namespace
- StockSharp.Algo.Statistics
- Assembly
- StockSharp.Algo.dll
Relative income for the whole time period.
[Display(ResourceType = typeof(LocalizedStrings), Name = "RelativeIncome", Description = "RelativeIncomeWholePeriod", GroupName = "PnL", Order = 8)]
public class ReturnParameter : BasePnLStatisticParameter<decimal>, INotifyPropertyChangedEx, INotifyPropertyChanging, IStatisticParameter<decimal>, IPnLStatisticParameter, IStatisticParameter, IPersistable, INotifyPropertyChanged
- Inheritance
-
ReturnParameter
- Implements
- Inherited Members
- Extension Methods
Constructors
ReturnParameter()
Initialize ReturnParameter.
public ReturnParameter()
Methods
Add(DateTimeOffset, decimal, decimal?)
To add new data to the parameter.
public override void Add(DateTimeOffset marketTime, decimal pnl, decimal? commission)
Parameters
marketTimeDateTimeOffsetThe exchange time.
pnldecimalThe profit-loss value.
commissiondecimal?Commission.
Load(SettingsStorage)
To load the state of statistic parameter.
public override void Load(SettingsStorage storage)
Parameters
storageSettingsStorageStorage.
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
storageSettingsStorageStorage.