ProfitFactorParameter

StockSharp.Algo.Statistics

The ratio of the average profit of winning trades to the average loss of losing trades.

Inherits: BaseStatisticParameter<decimal>

Implements: ITradeStatisticParameter, IStatisticParameter, IPersistable, INotifyPropertyChanged, IDisposable

Constructors

ProfitFactorParameter
public ProfitFactorParameter()
profitFactorParameter = ProfitFactorParameter()

Initialize ProfitFactorParameter.

Methods

Add
public void Add(PnLInfo info)
profitFactorParameter.Add(info)

To add information about new trade to the parameter.

info
Information on new trade.
Load
public override void Load(SettingsStorage storage)
profitFactorParameter.Load(storage)

To load the state of statistic parameter.

storage
Storage.
Reset
public override void Reset()
profitFactorParameter.Reset()

To reset the parameter value.

Save
public override void Save(SettingsStorage storage)
profitFactorParameter.Save(storage)

To save the state of statistic parameter.

storage
Storage.