ProfitFactorParameter

StockSharp.Algo.Statistics

Отношение средней прибыли по выигрышным сделкам к среднему убытку по убыточным сделкам.

Наследует: BaseStatisticParameter<decimal>

Реализует: ITradeStatisticParameter, IStatisticParameter, IAsyncPersistable, INotifyPropertyChanged, IDisposable

Конструкторы

ProfitFactorParameter
public ProfitFactorParameter()
profitFactorParameter = ProfitFactorParameter()

Инициализируйте ProfitFactorParameter.

Методы

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

Добавить в параметр информацию о новой сделке.

info
Информация о новой торговле.
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = profitFactorParameter.LoadAsync(storage, cancellationToken)

To load the state of statistic parameter.

storage
Storage.
cancellationToken
CancellationToken

Возвращает: Task

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

Сбросить состояние.

SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = profitFactorParameter.SaveAsync(storage, cancellationToken)

To save the state of statistic parameter.

storage
Storage.
cancellationToken
CancellationToken

Возвращает: Task