Class BaseStrategyDiagramElement
The element which is using strategy, based on S#.API.
Inheritance
BaseStrategyDiagramElement
Implements
Ecng.Serialization.IPersistable
Ecng.ComponentModel.INotifyPropertiesChanged
Inherited Members
Namespace: StockSharp.Xaml.Diagram.Elements
Assembly: StockSharp.Xaml.Diagram.dll
Syntax
public abstract class BaseStrategyDiagramElement : DiagramElement, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanging, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertiesChanged
Constructors
BaseStrategyDiagramElement()
Initializes a new instance of the BaseStrategyDiagramElement.
Declaration
protected BaseStrategyDiagramElement()
Properties
Instance
The instance.
Declaration
protected IPersistable Instance { get; set; }
Property Value
Type | Description |
---|---|
Ecng.Serialization.IPersistable |
Painter
The renderer type for indicator extended drawing.
Declaration
public Type Painter { get; }
Property Value
Type | Description |
---|---|
Type |
ShowStrategySocket
Show strategy socket.
Declaration
public bool ShowStrategySocket { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
IsTypeCompatible(Type)
Is type compatible.
Declaration
public static bool IsTypeCompatible(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type. |
Returns
Type | Description |
---|---|
Boolean | Check result. |
Load(SettingsStorage)
Load settings.
Declaration
public override void Load(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Settings storage. |
Overrides
OnReseted()
The method is called at re-initialisation of the diagram element state.
Declaration
protected override void OnReseted()
Overrides
OnStart()
The method is called at the start of the diagram element algorithm.
Declaration
protected override void OnStart()
Overrides
OnStop()
The method is called at the stop of the diagram element algorithm.
Declaration
protected override void OnStop()
Overrides
RemoveExternalSockets()
Remove external sockets.
Declaration
protected void RemoveExternalSockets()
Save(SettingsStorage)
Save settings.
Declaration
public override void Save(SettingsStorage storage)
Parameters
Type | Name | Description |
---|---|---|
Ecng.Serialization.SettingsStorage | storage | Settings storage. |
Overrides
Implements
Ecng.Serialization.IPersistable
Ecng.ComponentModel.INotifyPropertiesChanged