ChartingHost Class (Component)
The ChartingHost allows access to click events within a chart analysis window. Each event returns additional information using the matching event args class.
Namespace: charting
Properties
Name | Type | Description | |
BackColor | object | Get the background Color of the chart. | |
ChartViewHasFocus |
bool | True when the chart is active and has focus. | |
ClientWindow | object | Gets the current ChartWindow object. | |
CurrentSubgraph | int | Gets the number of the chart subgraph in which the study containing the StrategyHost is inserted.. | |
DataStreams | object | Gets the collection of DataStreams associated with the chart. Note that this property contains information about all the data streams in the chart, regardless of whether all of the streams are used by the analysis technique. For example, an analysis technique might refer to Data1 and Data2, while the chart contains 5 data streams. In this case, all of the 5 data streams in the chart will be accessible through this DataStreams property. See DataStreams. (For information about the data streams that are used by an analysis technique, rather than all of the data streams in the chart, see the DataStreams property of the AnalysisTechnique class.) |
Methods
Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).
Name | Description | |
ChangeSymbol(int, string) | This method changes the specified data stream's symbol. The data stream number (int) is one less than the value used in the DataN syntax. Thus, for example, to change Data1's symbol, the int parameter would be 0. | |
Create() | Initializes a new instance of the class. | |
ScrollTo(object) | Scrolls the chart window to the specified time given by the DateTime object. | |
ScrollTo(int) | Scrolls the chart window to the specified bar number given as an integer. The bar number is the absolute bar number on the chart. MaxBarsBack is not considered. | |
SetChartViewFocus() | Gives focus to the chart. |
Events
Name | Description | |
ChartElementClick | Occurs when a click occurs in a chart. See ChartElementClickEventArgs for the properties returned by the handler's args parameter. | |
ElementSelected | Occurs when an element is selected in a chart. See ElementSelectedEventArgs for the properties returned by the handler's args parameter. | |
OnInitialUpdate | Occurs on initial update. See OnInitialUpdateEventArgs for the properties returned by the handler's args parameter. | |
OnKeyDown | Occurs when a key down event occurs in a chart. See HostKeyEventArgs for the properties associated with this event. | |
OnKeyUp | Occurs when an key up event occurs in a chart. See HostKeyEventArgs for the properties associated with this event. | |
OnKillFocus | Occurs when the chart loses focus. | |
OnSetFocus | Occurs when the chart receives focus. | |
OnSize | Occurs when the client window is resized. See OnSizeEventArgs for the properties returned by the handler's args parameter. | |
OrderElementMove | Occurs when an order element is moved. See OrderElementMoveEventArgs for the properties returned by the handler's args parameter. | |
PreDeleteElement | Occurs when a chart element is about to be deleted. See PreDeleteElementEventArgs for the properties returned by the handler's args parameter. | |
PreShowElementMenu | Occurs when chart element menu is about to appear. See PreShowElementMenuEventArgs for the properties returned by the handler's args parameter. |