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