Skip to content

The following example creates a custom “Moving Average” indicator.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/winforms-dashboard-trend-line-indicators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BI Dashboard for WinForms - Custom Trend Indicator

The following example creates a custom WinForms “Moving Average” indicator (when using DevExpress BI Dashboard):

Moving Average Indicator

  1. Create a ChartCustomIndicator descendant (the MovingIndicator class in this example). MovingIndicator accepts a collection of data points, evaluates values, and returns resulting points. These points are used to draw the indicator.

  2. Register MovingIndicator in IndicatorFactory to make it available as an indicator type within the Trend Indicators editor. Call the Register method in your application before you save and load a dashboard (to serialize and deserialize the indicator within the dashboard’s XML).

  3. Create an instance of MovingIndicator and specify desired indicator settings.

  4. Add MovingIndicator to the chart indicators collection to display the configured indicator within DevExpress Dashboard’s UI.

Files to Review

Documentation