Table of Contents

Class ChartDiagramElement<TChartIndicatorElementWrapper>

Namespace
StockSharp.Diagram.Elements
Assembly
StockSharp.Diagram.Core.dll

Chart panel element (candles display area, indicators, orders and trades).

[Display(ResourceType = typeof(LocalizedStrings), Name = "ChartPanel", Description = "ChartPanelElement", GroupName = "Common")]
[Browsable(false)]
public abstract class ChartDiagramElement<TChartIndicatorElementWrapper> : DiagramElement, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanging, INotifyPropertyChanged, ICustomTypeDescriptor, INotifyPropertiesChanged, IPersistable where TChartIndicatorElementWrapper : class, IChartIndicatorElementWrapper, new()

Type Parameters

TChartIndicatorElementWrapper
Chart panel element (candles display area, indicators, orders and trades).
Inheritance
ChartDiagramElement<TChartIndicatorElementWrapper>
Implements
INotifyPropertiesChanged
IPersistable
Derived
Inherited Members
Extension Methods

Constructors

ChartDiagramElement(IChartBuilder)

Initializes a new instance of the ChartDiagramElement<TChartIndicatorElementWrapper>.

protected ChartDiagramElement(IChartBuilder chartBuilder)

Parameters

chartBuilder IChartBuilder

Properties

CandleElements

Candles.

public ICollection<IChartCandleElement> CandleElements { get; }

Property Value

ICollection<IChartCandleElement>

ChartGroupId

Chart group id is used to sync panels on mouse events.

public string ChartGroupId { get; set; }

Property Value

string

IconName

Icon resource name.

public override string IconName { get; }

Property Value

string

IndicatorElements

Indicators.

public ICollection<TChartIndicatorElementWrapper> IndicatorElements { get; }

Property Value

ICollection<TChartIndicatorElementWrapper>

OrderElements

Orders.

public ICollection<IChartOrderElement> OrderElements { get; }

Property Value

ICollection<IChartOrderElement>

ShowNonFormedIndicators

Show non formed indicators values.

public bool ShowNonFormedIndicators { get; set; }

Property Value

bool

TradeElements

Trades.

public ICollection<IChartTradeElement> TradeElements { get; }

Property Value

ICollection<IChartTradeElement>

TypeId

The unique identifier of the diagram element type.

public override Guid TypeId { get; }

Property Value

Guid

XAxes

The list of horizontal axes.

public ICollection<IChartAxis> XAxes { get; }

Property Value

ICollection<IChartAxis>

YAxes

The list of vertical axes.

public ICollection<IChartAxis> YAxes { get; }

Property Value

ICollection<IChartAxis>

Methods

CreateEditor(string)

protected abstract Attribute CreateEditor(string templateKey)

Parameters

templateKey string

Returns

Attribute

CreateSocketInstance(DiagramSocketDirection, string)

Create new socket instance.

protected override DiagramSocket CreateSocketInstance(DiagramSocketDirection dir, string socketId = null)

Parameters

dir DiagramSocketDirection
socketId string

Returns

DiagramSocket

CreateWrapper(IChartIndicatorElement)

protected abstract TChartIndicatorElementWrapper CreateWrapper(IChartIndicatorElement element)

Parameters

element IChartIndicatorElement

Returns

TChartIndicatorElementWrapper

Flush(DateTimeOffset)

Flush non trigger (root) elements.

public override void Flush(DateTimeOffset _)

Parameters

_ DateTimeOffset

GetCloneType()

Get type for cloning.

protected override Type GetCloneType()

Returns

Type

InitializeCopy(DiagramElement)

public override void InitializeCopy(DiagramElement copiedFrom)

Parameters

copiedFrom DiagramElement

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

OnReseted()

The method is called at re-initialisation of the diagram element state.

protected override void OnReseted()

OnStart(DateTimeOffset)

The method is called at the start of the diagram element algorithm.

protected override void OnStart(DateTimeOffset time)

Parameters

time DateTimeOffset

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.