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