DiagramStrategy

StockSharp.Diagram

アルゴリズムが図形に提示される戦略。

継承元: Strategy

実装: INotifyPropertiesChanged

コンストラクター

DiagramStrategy
public DiagramStrategy()
diagramStrategy = DiagramStrategy()

DiagramStrategy の新規インスタンスを初期化します。

プロパティ

Composition
public CompositionDiagramElement Composition { get; set; }
value = diagramStrategy.Composition
diagramStrategy.Composition = value

戦略図。

HistoryCalculated
protected override TimeSpan? HistoryCalculated { get; }
value = diagramStrategy.HistoryCalculated

. .HistorySizeのコード版から計算される.

OrderBookSources
public override IEnumerable<IOrderBookSource> OrderBookSources { get; }
value = diagramStrategy.OrderBookSources

OrderBookDrawing で受け取れるIOrderBookMessageソースは、すべてOrderBookDrawing で入手できます。

OverflowLimit
public int OverflowLimit { get; set; }
value = diagramStrategy.OverflowLimit
diagramStrategy.OverflowLimit = value

スタックのオーバーフローを防ぐため、最大許容要素1回。

StartSecurities
internal IReadOnlyList<Security> StartSecurities { get; }
value = diagramStrategy.StartSecurities

Securities the diagram refers to at the start: Security and the security values of the elements' parameters, resolved through the security provider. Available to the elements from CancellationToken).

メソッド

CopyToAsync
protected override ValueTask CopyToAsync(Strategy copy, CancellationToken cancellationToken)
result = diagramStrategy.CopyToAsync(copy, cancellationToken)

Copy settings into .

copy
Strategy
cancellationToken
CancellationToken

戻り値: ValueTask

DisposeManaged
protected override void DisposeManaged()
diagramStrategy.DisposeManaged()

リソースのリリース

Flush
public void Flush(DateTime time)
diagramStrategy.Flush(time)

フラッシュ非トリガー(root)要素。

Flush``1
public void Flush<TMessage>(TMessage message)
diagramStrategy.Flush(message)

フラッシュ非トリガー(root)要素。

GetWorkingPortfolios
public override IEnumerable<Portfolio> GetWorkingPortfolios()
result = diagramStrategy.GetWorkingPortfolios()

戦略に必要なすべてのポートフォリオを入手してください。

戻り値: ポートフォリオ

LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = diagramStrategy.LoadAsync(storage, cancellationToken)

Load settings.

storage
SettingsStorage
cancellationToken
CancellationToken

戻り値: Task

OnReseted
protected override void OnReseted()
diagramStrategy.OnReseted()

リセットメソッドから呼び出されます。

OnStarted2
protected override void OnStarted2(DateTime time)
diagramStrategy.OnStarted2(time)

メソッドはStartメソッドが呼び出されたとき、ProcessState状態はStart値が取得されたとき呼び出されます。

time
The strategy start time.
OnStartedAsync
protected override ValueTask OnStartedAsync(DateTime time, CancellationToken cancellationToken)
result = diagramStrategy.OnStartedAsync(time, cancellationToken)

The method is called when the strategy has entered the started state, before DateTime). An exception stops the strategy the same way as one thrown from DateTime).

time
The strategy start time.
cancellationToken
Cancellation token.

戻り値: ValueTask

OnStopped
protected override void OnStopped()
diagramStrategy.OnStopped()

メソッドは、ProcessStateプロセス状態が停止値を取られたときに呼び出されます。

RaisePropertiesChanged
protected virtual void RaisePropertiesChanged()
diagramStrategy.RaisePropertiesChanged()

利用可能なプロパティの変更イベントを呼び出すため。

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

Save settings.

storage
SettingsStorage
cancellationToken
CancellationToken

戻り値: Task

SetCompositionAsync
public ValueTask SetCompositionAsync(CompositionDiagramElement composition, CancellationToken cancellationToken)
result = diagramStrategy.SetCompositionAsync(composition, cancellationToken)

Set Composition and apply to it the settings loaded before it was set.

composition
The strategy diagram.
cancellationToken
CancellationToken

戻り値: ValueTask

イベント

CompositionChanged
public event Action<CompositionDiagramElement> CompositionChanged
diagramStrategy.CompositionChanged += handler

戦略図変更イベント。

PropertiesChanged
public event Action PropertiesChanged
diagramStrategy.PropertiesChanged += handler

利用可能なプロパティーの変更イベント。