Interface IChart
Access to the chart panel
Namespace: TradingPlatform.BusinessLayer.Chart
Syntax
public interface IChart
Properties
BarsWidth
Current X scale value - width of the bar in pixels
Declaration
int BarsWidth { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
CurrentSessionContainer
Provides custom sessions of current chart.
Declaration
ISessionsContainer CurrentSessionContainer { get; }
Property Value
Type | Description |
---|---|
TradingPlatform.BusinessLayer.ISessionsContainer |
CurrentTimeZone
Provides time zone of current chart.
Declaration
TimeZone CurrentTimeZone { get; }
Property Value
Type | Description |
---|---|
TradingPlatform.BusinessLayer.TimeZone |
Drawings
Collection of chart drawingsCollection
Declaration
IChartDrawingsCollection Drawings { get; }
Property Value
Type | Description |
---|---|
IChartDrawingsCollection |
ID
Chart panel unique ID
Declaration
string ID { get; }
Property Value
Type | Description |
---|---|
System.String |
MainWindow
Main window of the chart
Declaration
IChartWindow MainWindow { get; }
Property Value
Type | Description |
---|---|
IChartWindow |
RightOffset
Current right offset value
Declaration
int RightOffset { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
TickSize
Current tick size of the chart
Declaration
double TickSize { get; }
Property Value
Type | Description |
---|---|
System.Double |
Windows
Collection of chart windows
Declaration
IChartWindow[] Windows { get; }
Property Value
Type | Description |
---|---|
IChartWindow[] |
Methods
Refresh()
Force chart refreshing
Declaration
void Refresh()
Events
MouseClick
The MouseClick event occurs when the mouse button is clicked
Declaration
event ChartMouseEventHandler MouseClick
Event Type
Type | Description |
---|---|
TradingPlatform.BusinessLayer.Chart.ChartMouseEventHandler |
MouseDown
The MouseDown event occurs when the mouse button is pressed down
Declaration
event ChartMouseEventHandler MouseDown
Event Type
Type | Description |
---|---|
TradingPlatform.BusinessLayer.Chart.ChartMouseEventHandler |
MouseEnter
The MouseDown event occurs when the mouse enter the chart
Declaration
event ChartMouseEventHandler MouseEnter
Event Type
Type | Description |
---|---|
TradingPlatform.BusinessLayer.Chart.ChartMouseEventHandler |
MouseLeave
The MouseDown event occurs when the mouse leave the chart
Declaration
event ChartMouseEventHandler MouseLeave
Event Type
Type | Description |
---|---|
TradingPlatform.BusinessLayer.Chart.ChartMouseEventHandler |
MouseMove
The MouseMove event occurs when the mouse moving over the chart
Declaration
event ChartMouseEventHandler MouseMove
Event Type
Type | Description |
---|---|
TradingPlatform.BusinessLayer.Chart.ChartMouseEventHandler |
MouseUp
The MouseUp event occurs when the mouse button is released
Declaration
event ChartMouseEventHandler MouseUp
Event Type
Type | Description |
---|---|
TradingPlatform.BusinessLayer.Chart.ChartMouseEventHandler |
MouseWheel
The MouseDown event occurs when the user scrolling mouse wheel
Declaration
event ChartMouseEventHandler MouseWheel
Event Type
Type | Description |
---|---|
TradingPlatform.BusinessLayer.Chart.ChartMouseEventHandler |
OnUpdateChartSettings
Declaration
event Action OnUpdateChartSettings
Event Type
Type | Description |
---|---|
Action |