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
Public property BackColor object Get the background Color of the chart.
Public property

ChartViewHasFocus

bool True when the chart is active and has focus.
Public property ClientWindow object Gets the current ChartWindow object.
Public property CurrentSubgraph int Gets the number of the chart subgraph in which the study containing the StrategyHost is inserted..
Public property 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
Public property 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.
Public property Create() Initializes a new instance of the class.
Public property ScrollTo(object) Scrolls the chart window to the specified time given by the DateTime object.
Public property 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.
Public property SetChartViewFocus() Gives focus to the chart.
Events
  Name Description
 Public event ChartElementClick Occurs when a click occurs in a chart. See ChartElementClickEventArgs for the properties returned by the handler's args parameter.
 Public event ElementSelected Occurs when an element is selected in a chart. See ElementSelectedEventArgs for the properties returned by the handler's args parameter.
 Public event OnInitialUpdate Occurs on initial update. See OnInitialUpdateEventArgs for the properties returned by the handler's args parameter.
Public event OnKeyDown Occurs when a key down event occurs in a chart. See HostKeyEventArgs for the properties associated with this event.
Public event OnKeyUp Occurs when an key up event occurs in a chart. See HostKeyEventArgs for the properties associated with this event.
Public event OnKillFocus Occurs when the chart loses focus.
Public event OnSetFocus Occurs when the chart receives focus.
 Public event OnSize Occurs when the client window is resized. See OnSizeEventArgs for the properties returned by the handler's args parameter.
 Public event OrderElementMove Occurs when an order element is moved. See OrderElementMoveEventArgs for the properties returned by the handler's args parameter.
 Public event PreDeleteElement Occurs when a chart element is about to be deleted. See PreDeleteElementEventArgs for the properties returned by the handler's args parameter.
 Public event PreShowElementMenu Occurs when chart element menu is about to appear. See PreShowElementMenuEventArgs for the properties returned by the handler's args parameter.