Back to Devexpress

How to: Add a Fibonacci Indicator to a Chart

windowsforms-6319-controls-and-libraries-chart-control-examples-chart-elements-how-to-add-a-fibonacci-indicator-to-a-chart.md

latest2.5 KB
Original Source

How to: Add a Fibonacci Indicator to a Chart

  • Jan 15, 2024
  • 2 minutes to read

This tutorial demonstrates a way of showing a Fibonacci indicator for a series. For general information, see Fibonacci Indicators.

To show a Fibonacci indicator for a Stock chart, do the following.

  1. Create a new or open an existing Stock chart. For this example, we will use the following chart.

  2. Select the series in the Property Grid, expand its SeriesBase.View property and click the ellipsis button for the XYDiagram2DSeriesViewBase.Indicators property.

  3. Then, in the Indicator Type dialog, choose the required Fibonacci indicator kind and click OK.

  4. Now, back in the Indicators dialog, define the arguments and values for the FinancialIndicator.Point1 and FinancialIndicator.Point2 properties, and adjust other options of the indicator.

The following image demonstrates the resulting Fibonacci Arcs indicator.

Note that as with other indicators, all Fibonacci indicators that exist in a chart are painted based on the palette defined via the ChartControl.IndicatorsPaletteName property.

Refer to the following example for information on how to create a Fibonacci Indicator at runtime: Add a Fibonacci Indicator to a Chart (Runtime Sample).

See Also

Fibonacci Indicators

How to: Add a Fibonacci Indicator to a Chart (Runtime Sample)