DiagramStrategy

StockSharp.Diagram

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

继承自: Strategy

实现: INotifyPropertiesChanged

构造函数

DiagramStrategy()

Initializes a new instance of the DiagramStrategy.

属性

Composition : CompositionDiagramElement

The strategy diagram.

HistoryCalculated : TimeSpan?

Calculated from code version of HistorySize.

OrderBookSources : IEnumerable<IOrderBookSource>

All possible IOrderBookMessage sources that can be received via OrderBookDrawing.

OverflowLimit : int

Max allowed elements per iteration to prevent stack overflow.

方法

CopyTo(Strategy)

Copy settings into .

copy
Strategy
DisposeManaged()

Release resources.

Flush(DateTime)

Flush non trigger (root) elements.

Flush``1(T)

Flush non trigger (root) elements.

GetWorkingPortfolios() : IEnumerable<Portfolio>

Get all portfolios required for strategy.

返回值: Portfolios.

Load(SettingsStorage)

Load settings.

storage
Settings storage.
OnReseted()

It is called from the Reset method.

OnStarted2(DateTime)

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

OnStopped()

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

RaisePropertiesChanged()

To call the available properties change event.

Save(SettingsStorage)

Save settings.

storage
Settings storage.

事件

CompositionChanged : Action<CompositionDiagramElement>

The strategy diagram change event.

PropertiesChanged : Action

The available properties change event.