DiagramStrategy

StockSharp.Diagram

A estratégia cujo algoritmo é apresentado na forma de um diagrama.

Herda de: Strategy

Implementa: INotifyPropertiesChanged

Construtores

DiagramStrategy
public DiagramStrategy()
diagramStrategy = DiagramStrategy()

Inicializa uma nova instância do DiagramStrategy.

Propriedades

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

O diagrama de estratégia.

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

Calculado a partir da versão de código de HistorySize.

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

Todas as possíveis IOrderBookMessage fontes que podem ser recebidas via OrderBookDrawing.

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

Max permitiu elementos por iteração para evitar o transbordamento de pilha.

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).

Métodos

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

Copy settings into .

copy
Strategy
cancellationToken
CancellationToken

Retorna: ValueTask

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

Libertar recursos.

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

Flush elementos não gatilho (raiz).

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

Flush elementos não gatilho (raiz).

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

Obtenha todos os portfólios necessários para a estratégia.

Retorna: Portfólios.

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

Load settings.

storage
SettingsStorage
cancellationToken
CancellationToken

Retorna: Task

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

É chamado do método de Reiniciar.

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

O método é chamado quando o método Iniciar foi chamado e o estado ProcessState foi tomado o valor Iniciado.

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.

Retorna: ValueTask

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

O método é chamado quando o estado de processo ProcessState foi tomado o valor parado.

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

Para chamar as propriedades disponíveis mudar evento.

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

Save settings.

storage
SettingsStorage
cancellationToken
CancellationToken

Retorna: 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

Retorna: ValueTask

Eventos

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

O diagrama de estratégia muda o evento.

PropertiesChanged
public event Action PropertiesChanged
diagramStrategy.PropertiesChanged += handler

As propriedades disponíveis mudam evento.