ExpectancyParameter

StockSharp.Algo.Statistics

勝ち取引の平均利益は、取引を失う平均損失をマイナスします。.

継承元: BaseStatisticParameter<decimal>

実装: ITradeStatisticParameter, IStatisticParameter, IAsyncPersistable, INotifyPropertyChanged, IDisposable

コンストラクター

ExpectancyParameter
public ExpectancyParameter()
expectancyParameter = ExpectancyParameter()

Initialize ExpectancyParameter.

メソッド

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

パラメータに新しい取引に関する情報を追加する。

info
新規取引に関する情報
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = expectancyParameter.LoadAsync(storage, cancellationToken)

To load the state of statistic parameter.

storage
Storage.
cancellationToken
CancellationToken

戻り値: Task

Reset
public override void Reset()
expectancyParameter.Reset()

リセット状態。

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

To save the state of statistic parameter.

storage
Storage.
cancellationToken
CancellationToken

戻り値: Task