Interface IChart
The interface for work with the chart.
Inherited Members
Namespace: StockSharp.Xaml.Charting
Assembly: StockSharp.Xaml.Charting.dll
Syntax
public interface IChart : IThemeableChart, IPersistable
Properties
Areas
Chart areas.
Declaration
INotifyList<ChartArea> Areas { get; }
Property Value
Type | Description |
---|---|
Ecng.Collections.INotifyList<ChartArea> |
IndicatorTypes
The list of available indicators types.
Declaration
IList<IndicatorType> IndicatorTypes { get; }
Property Value
Type | Description |
---|---|
IList<IndicatorType> |
IsAutoRange
To use automatic range for the X-axis. The default is off.
Declaration
bool IsAutoRange { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
IsAutoScroll
To scroll Areas areas automatically when new data occurred. The default is enabled.
Declaration
bool IsAutoScroll { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
ShowNonFormedIndicators
Show non formed indicators values.
Declaration
bool ShowNonFormedIndicators { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
ShowPerfStats
Show FPS.
Declaration
bool ShowPerfStats { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
XAxisType
Type of X axis for this chart.
Declaration
ChartAxisType XAxisType { get; set; }
Property Value
Type | Description |
---|---|
ChartAxisType |
Methods
AddArea(ChartArea)
To add an area to the chart.
Declaration
void AddArea(ChartArea area)
Parameters
Type | Name | Description |
---|---|---|
ChartArea | area | Chart area. |
AddElement(ChartArea, ChartCandleElement, CandleSeries)
To add an element to the chart.
Declaration
void AddElement(ChartArea area, ChartCandleElement element, CandleSeries candleSeries)
Parameters
Type | Name | Description |
---|---|---|
ChartArea | area | Chart area. |
ChartCandleElement | element | The chart element. |
CandleSeries | candleSeries | Candles series. |
AddElement(ChartArea, ChartIndicatorElement, CandleSeries, IIndicator)
To add an element to the chart.
Declaration
void AddElement(ChartArea area, ChartIndicatorElement element, CandleSeries candleSeries, IIndicator indicator)
Parameters
Type | Name | Description |
---|---|---|
ChartArea | area | Chart area. |
ChartIndicatorElement | element | The chart element. |
CandleSeries | candleSeries | Candles series. |
IIndicator | indicator | Indicator. |
AddElement(ChartArea, ChartOrderElement, Security)
To add an element to the chart.
Declaration
void AddElement(ChartArea area, ChartOrderElement element, Security security)
Parameters
Type | Name | Description |
---|---|---|
ChartArea | area | Chart area. |
ChartOrderElement | element | The chart element. |
Security | security | Security. |
AddElement(ChartArea, ChartTradeElement, Security)
To add an element to the chart.
Declaration
void AddElement(ChartArea area, ChartTradeElement element, Security security)
Parameters
Type | Name | Description |
---|---|---|
ChartArea | area | Chart area. |
ChartTradeElement | element | The chart element. |
Security | security | Security. |
AddElement(ChartArea, IChartElement)
To add an element to the chart.
Declaration
void AddElement(ChartArea area, IChartElement element)
Parameters
Type | Name | Description |
---|---|---|
ChartArea | area | Chart area. |
IChartElement | element | The chart element. |
ClearAreas()
To remove all areas from the chart.
Declaration
void ClearAreas()
Draw(ChartDrawData)
To process the new data.
Declaration
void Draw(ChartDrawData data)
Parameters
Type | Name | Description |
---|---|---|
ChartDrawData | data | New data. |
GetIndicator(ChartIndicatorElement)
To get an indicator which is associated with ChartIndicatorElement.
Declaration
IIndicator GetIndicator(ChartIndicatorElement element)
Parameters
Type | Name | Description |
---|---|---|
ChartIndicatorElement | element | The chart element. |
Returns
Type | Description |
---|---|
IIndicator | Indicator. |
GetSource(IChartElement)
To get the data source for IChartElement.
Declaration
object GetSource(IChartElement element)
Parameters
Type | Name | Description |
---|---|---|
IChartElement | element | The chart element. |
Returns
Type | Description |
---|---|
Object | Market-data source. |
RemoveArea(ChartArea)
To remove the area from the chart.
Declaration
void RemoveArea(ChartArea area)
Parameters
Type | Name | Description |
---|---|---|
ChartArea | area | Chart area. |
RemoveElement(ChartArea, IChartElement)
To remove the element from the chart.
Declaration
void RemoveElement(ChartArea area, IChartElement element)
Parameters
Type | Name | Description |
---|---|---|
ChartArea | area | Chart area. |
IChartElement | element | The chart element. |
Reset(IEnumerable<IChartElement>)
To reset the chart elements values drawn previously.
Declaration
void Reset(IEnumerable<IChartElement> elements)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IChartElement> | elements | Chart elements. |