XY Chart NET 3 Control Reference
Financial/Economic Charting

In addition to XYChartNET's core functionality, XYChartNET also supports the following features to generate financial and economic charts:

Time Series

See DateTime feature for how to manage time series data.

 

Chart Open, High, Low, and Close data using "Candles"

To plot Open, High, Low and Close data values, a Candle profile can be created by setting the profile's ChartFeatureType property to cfCandle.  Pass in the Open/High/Low/Close and Date data values using any of the following:

Other Candle characteristics available to configure include:  CandleUpColor, CandleShadowUpColor, CandleDownColor, CandleShadowDownColor, CandleShadowWidth, CandleBodyWidth, and CandleBodyMargin.  These properties are available within the Profile.

To customize the color for an individual point (or points), use method SetDataSampleColor.  NOTE: In addition to Candles, this color customization also applies to Markers and Bars.

Refer to Sample 9 for an example of how to use this feature.

 

Chart Buy/Sell Signals and Notes for specified datapoints

Properties are available within the Profile to configure the display and color characteristics for Buy and Sell signals.  Pass in an array of DateTime values to indicate when a Buy or Sell signal should be displayed using BuySignalData or SellSignalData properties.

Additionally, properties are also available within the Profile to allow a Note to be displayed for one or more data points.  Pass in an array of DateTime values to indicate when a Note should be displayed using NoteDataDatetime property; as well, pass in an array of string values indicating the note to display for each DateTime value (specified in the NoteDataDatetime array) using NoteData property.

Refer to Sample 9 for an example of how to use this feature.

 

Recession Profile

To plot shaded regions within the chart to indicate recession periods, a Recession profile can be created by setting the profile's ChartFeatureType property to cfRecession and FillEnabled property to True.   The recession period(s) are shaded in with the color specified by FillColor, however, the color is treated as transparent thereby allowing any previously drawn profile to display through. 

Additionally, two modes for plotting recession profiles are available: Manual and Automatic.  This mode is set via property RecessionLimitsMode.

Refer to Sample 8 for an example of how to use this feature.

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.