Class AverageTradeProfitParameter
- Namespace
- StockSharp.Algo.Statistics
- Assembly
- StockSharp.Algo.dll
Average trade profit.
[Display(ResourceType = typeof(LocalizedStrings), Name = "AverageProfit", Description = "AverageTradeProfit", GroupName = "Trades", Order = 104)]
public class AverageTradeProfitParameter : BaseStatisticParameter<decimal>, IStatisticParameter<decimal>, ITradeStatisticParameter, IStatisticParameter, IPersistable, INotifyPropertyChanged
- Inheritance
-
AverageTradeProfitParameter
- Implements
-
IPersistable
- Inherited Members
- Extension Methods
Constructors
AverageTradeProfitParameter()
Initialize AverageTradeProfitParameter.
public AverageTradeProfitParameter()
Methods
Add(PnLInfo)
To add information about new trade to the parameter.
public void Add(PnLInfo info)
Parameters
info
PnLInfoInformation on new trade.
Load(SettingsStorage)
To load the state of statistic parameter.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageStorage.
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
SettingsStorageStorage.