New to Telerik UI for WPF? Download free 30-day trial


MacdhIndicator is a trend following indicator which displays the relationship between two moving averages of data. This indicator uses histogram visualization.

To set up the indicator you can set its CategoryBinding, ValueBinding and ItemsSource properties. Additionally, you can control the period (in days) over which the indicator will be applied. To do this set the ShortPeriod, LongPeriod and SignalPeriod properties.

Example 1: Defining MacdhIndicator

       <telerik:MacdhIndicator ShortPeriod="9"  
                               ItemsSource="{Binding Data}"/> 

Figure 1: MacdhIndicator

Figure 1 shows 2 instances of RadCartesianChart. The top one shows only the candlestick series that displays the original data. The chart on the bottom shows the indicator.

The indicator can be set up the same way as a normal chart series. This is why you can populate it using the same approach as shown in the Data Bind to Data-Object article. You can set the corresponding value binding properties - for example, ValueBinding, CategoryBinding, HighBinding, CloseBinding, etc, and also the ItemsSource.

See Also

In this article