DiagramStrategy

StockSharp.Diagram

The strategy whose algorithm is presented in the form of a diagram.

Inherits: Strategy

Implements: INotifyPropertiesChanged

Constructors

DiagramStrategy
public DiagramStrategy()
diagramStrategy = DiagramStrategy()

Initializes a new instance of the DiagramStrategy.

Properties

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

The strategy diagram.

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

Calculated from code version of HistorySize.

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

All possible IOrderBookMessage sources that can be received via OrderBookDrawing.

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

Max allowed elements per iteration to prevent stack overflow.

Methods

CopyTo
protected override void CopyTo(Strategy copy)
diagramStrategy.CopyTo(copy)

Copy settings into .

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

Release resources.

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

Flush non trigger (root) elements.

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

Flush non trigger (root) elements.

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

Get all portfolios required for strategy.

Returns: Portfolios.

Load
public override void Load(SettingsStorage storage)
diagramStrategy.Load(storage)

Load settings.

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

It is called from the Reset method.

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

The method is called when the Start method has been called and the ProcessState state has been taken the Started value.

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

The method is called when the ProcessState process state has been taken the Stopped value.

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

To call the available properties change event.

Save
public override void Save(SettingsStorage storage)
diagramStrategy.Save(storage)

Save settings.

storage
Settings storage.

Events

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

The strategy diagram change event.

PropertiesChanged
public event Action PropertiesChanged
diagramStrategy.PropertiesChanged += handler

The available properties change event.