LargestTradeShareParameter
StockSharp.Algo.Statistics
The share of the net result made by the single most profitable closing trade, in percent.
Наследует: BaseStatisticParameter<decimal>
Реализует: ITradeStatisticParameter, IStatisticParameter, IAsyncPersistable, INotifyPropertyChanged, IDisposable
Конструкторы
LargestTradeShareParameter
public LargestTradeShareParameter()
largestTradeShareParameter = LargestTradeShareParameter()
Initializes a new instance of the LargestTradeShareParameter.
Методы
Add
public void Add(PnLInfo info)
largestTradeShareParameter.Add(info)
To add information about new trade to the parameter.
- info
- Information on new trade.
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = largestTradeShareParameter.LoadAsync(storage, cancellationToken)
To load the state of statistic parameter.
- storage
- Storage.
- cancellationToken
- CancellationToken
Возвращает: Task
Reset
public override void Reset()
largestTradeShareParameter.Reset()
To reset the parameter value.
SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = largestTradeShareParameter.SaveAsync(storage, cancellationToken)
To save the state of statistic parameter.
- storage
- Storage.
- cancellationToken
- CancellationToken
Возвращает: Task