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
-
INotifyPropertiesChangedIPersistable
- 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
ChartGroupId
Chart group id is used to sync panels on mouse events.
public string ChartGroupId { get; set; }
Property Value
IconName
Icon resource name.
public override string IconName { get; }
Property Value
IndicatorElements
Indicators.
public ICollection<TChartIndicatorElementWrapper> IndicatorElements { get; }
Property Value
- ICollection<TChartIndicatorElementWrapper>
OrderElements
Orders.
public ICollection<IChartOrderElement> OrderElements { get; }
Property Value
ShowNonFormedIndicators
Show non formed indicators values.
public bool ShowNonFormedIndicators { get; set; }
Property Value
TradeElements
Trades.
public ICollection<IChartTradeElement> TradeElements { get; }
Property Value
TypeId
The unique identifier of the diagram element type.
public override Guid TypeId { get; }
Property Value
XAxes
The list of horizontal axes.
public ICollection<IChartAxis> XAxes { get; }
Property Value
YAxes
The list of vertical axes.
public ICollection<IChartAxis> YAxes { get; }
Property Value
Methods
CreateEditor(string)
protected abstract Attribute CreateEditor(string templateKey)
Parameters
templateKey
string
Returns
CreateSocketInstance(DiagramSocketDirection, string)
Create new socket instance.
protected override DiagramSocket CreateSocketInstance(DiagramSocketDirection dir, string socketId = null)
Parameters
dir
DiagramSocketDirectionsocketId
string
Returns
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
GetCloneType()
Get type for cloning.
protected override Type GetCloneType()
Returns
InitializeCopy(DiagramElement)
public override void InitializeCopy(DiagramElement copiedFrom)
Parameters
copiedFrom
DiagramElement
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings 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
SettingsStorageSettings storage.