Price Indicators
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 indicator | Class | Formula |
---|---|---|
Median Price | Median |
|
Weighted Close | Weighted |
|
Typical Price | Typical |
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:
<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 Property | Description |
---|---|
XYSeries2D. |
The series collection of indicators. |
Median |
The Median Price indicator. |
Indicator. |
Specifies whether to show the indicator in a legend. |
Indicator. |
Specifies text that identifies the indicator in a legend. |
See Also