Class ProfitFactorParameter
- Namespace
 - StockSharp.Algo.Statistics
 
- Assembly
 - StockSharp.Algo.dll
 
The ratio of the average profit of winning trades to the average loss of losing trades.
[Display(ResourceType = typeof(LocalizedStrings), Name = "ProfitFactor", Description = "ProfitFactorDesc", GroupName = "Trades", Order = 109)]
public class ProfitFactorParameter : BaseStatisticParameter<decimal>, INotifyPropertyChangedEx, INotifyPropertyChanging, IStatisticParameter<decimal>, ITradeStatisticParameter, IStatisticParameter, IPersistable, INotifyPropertyChanged
  - Inheritance
 - 
      
      
      
      ProfitFactorParameter
 
- Implements
 
- Inherited Members
 
- Extension Methods
 
Constructors
ProfitFactorParameter()
Initialize ProfitFactorParameter.
public ProfitFactorParameter()
  Methods
Add(PnLInfo)
To add information about new trade to the parameter.
public void Add(PnLInfo info)
  Parameters
infoPnLInfoInformation on new trade.
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.