Class ReturnParameter
Relative income for the whole time period.
Implements
Ecng.Serialization.IPersistable
Inherited Members
Namespace: StockSharp.Algo.Statistics
Assembly: StockSharp.Algo.dll
Syntax
[DisplayNameLoc("Str964")]
[DescriptionLoc("Str965", false)]
[CategoryLoc("PnL")]
public class ReturnParameter : BaseStatisticParameter<Decimal>, IStatisticParameter<Decimal>, IStatisticParameter, IPersistable, IPnLStatisticParameter
Constructors
ReturnParameter()
Declaration
public ReturnParameter()
Methods
Add(DateTimeOffset, Decimal)
To add new data to the parameter.
Declaration
public void Add(DateTimeOffset marketTime, Decimal pnl)
Parameters
Type | Name | Description |
---|---|---|
DateTimeOffset | marketTime | The exchange time. |
Decimal | pnl | The profit-loss value. |
Load(SettingsStorage)
To load the state of statistic parameter.
Declaration
public override void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Storage. |
Overrides
StockSharp.Algo.Statistics.BaseStatisticParameter<System.Decimal>.Load(Ecng.Serialization.SettingsStorage)
Reset()
To reset the parameter value.
Declaration
public override void Reset()
Overrides
StockSharp.Algo.Statistics.BaseStatisticParameter<System.Decimal>.Reset()
Save(SettingsStorage)
To save the state of statistic parameter.
Declaration
public override void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Storage. |
Overrides
StockSharp.Algo.Statistics.BaseStatisticParameter<System.Decimal>.Save(Ecng.Serialization.SettingsStorage)
Implements
Ecng.Serialization.IPersistable