Back to Devexpress

Price Indicators

wpf-115290-controls-and-libraries-charts-suite-chart-control-series-indicators-price-indicators.md

latest2.4 KB
Original Source

Price Indicators

  • May 28, 2021

The Chart control allows you to add Price indicators to a financial chart.

This document consists of the following sections:

Available Price Indicators

The following table represents the available Price indicators with formulas that are used to calculate indicator values:

Price indicatorClassFormula
Median PriceMedianPrice
Weighted CloseWeightedClose
Typical PriceTypicalPrice

Note

In formulas, High, Low, Close are values of a financial series point.

How to Add a Price Indicator to a Chart

Use the following code to add the Median Price indicator to the series collection of indicators:

xaml
<dxc:StockSeries2D DisplayName="Series">
        <dxc:StockSeries2D.Indicators>
          <dxc:MedianPrice LegendText="Median Price" 
                           ShowInLegend="True"/>
        </dxc:StockSeries2D.Indicators>
        <!--.....-->
</dxc:StockSeries2D>

The following classes and properties are used in this code:

Class or PropertyDescription
XYSeries2D.IndicatorsThe series collection of indicators.
MedianPriceThe Median Price indicator.
Indicator.ShowInLegendSpecifies whether to show the indicator in a legend.
Indicator.LegendTextSpecifies text that identifies the indicator in a legend.

See Also

Financial Series