DiagramStrategy
The strategy whose algorithm is presented in the form of a diagram.
Inherits: Strategy
Implements: INotifyPropertiesChanged
Constructors
public DiagramStrategy()
diagramStrategy = DiagramStrategy()
Initializes a new instance of the DiagramStrategy.
Properties
public CompositionDiagramElement Composition { get; set; }
value = diagramStrategy.Composition
diagramStrategy.Composition = value
The strategy diagram.
protected override TimeSpan? HistoryCalculated { get; }
value = diagramStrategy.HistoryCalculated
Calculated from code version of HistorySize.
public override IEnumerable<IOrderBookSource> OrderBookSources { get; }
value = diagramStrategy.OrderBookSources
All possible IOrderBookMessage sources that can be received via OrderBookDrawing.
public int OverflowLimit { get; set; }
value = diagramStrategy.OverflowLimit
diagramStrategy.OverflowLimit = value
Max allowed elements per iteration to prevent stack overflow.
Methods
protected override void CopyTo(Strategy copy)
diagramStrategy.CopyTo(copy)
Copy settings into .
- copy
- Strategy
protected override void DisposeManaged()
diagramStrategy.DisposeManaged()
Release resources.
public void Flush(DateTime time)
diagramStrategy.Flush(time)
Flush non trigger (root) elements.
public void Flush<TMessage>(TMessage message)
diagramStrategy.Flush(message)
Flush non trigger (root) elements.
public override IEnumerable<Portfolio> GetWorkingPortfolios()
result = diagramStrategy.GetWorkingPortfolios()
Get all portfolios required for strategy.
Returns: Portfolios.
public override void Load(SettingsStorage storage)
diagramStrategy.Load(storage)
Load settings.
- storage
- Settings storage.
protected override void OnReseted()
diagramStrategy.OnReseted()
It is called from the Reset method.
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.
protected override void OnStopped()
diagramStrategy.OnStopped()
The method is called when the ProcessState process state has been taken the Stopped value.
protected virtual void RaisePropertiesChanged()
diagramStrategy.RaisePropertiesChanged()
To call the available properties change event.
public override void Save(SettingsStorage storage)
diagramStrategy.Save(storage)
Save settings.
- storage
- Settings storage.
Events
public event Action<CompositionDiagramElement> CompositionChanged
diagramStrategy.CompositionChanged += handler
The strategy diagram change event.
public event Action PropertiesChanged
diagramStrategy.PropertiesChanged += handler
The available properties change event.