corelibraries-devexpress-dot-xtracharts-dot-reductionstockoptions.md
Gets or sets the mode used to color the financial series points.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
public ReductionColorMode ColorMode { get; set; }
Public Property ColorMode As ReductionColorMode
| Type | Description |
|---|---|
| ReductionColorMode |
The specified color mode.
|
Available values:
| Name | Description |
|---|---|
| PreviousToCurrentPoint |
Points are colorized with the color specified by the ReductionStockOptions.Color property if the value of the previous point is greater than the value of the current point (the value is decreased). The StockPointOptions.ValueLevel property specifies the point value that should be compared.
| | OpenToCloseValue |
Points are colorized with a color defined by the ReductionStockOptions.Color property if the point open value is greater than the point close value (the price is decreased).
|
You can access this nested property as listed below:
| Object Type | Path to ColorMode |
|---|---|
| FinancialDrawOptions |
.ReductionOptions .ColorMode
| | FinancialSeriesViewBase |
.ReductionOptions .ColorMode
|
To specify this property, use the ReductionColorMode enumeration values. The following table lists all the possible values of the ColorMode property.
| Value | Description | Image |
|---|---|---|
| ReductionColorMode.OpenToCloseValue | Points are colorized with a color defined by the ReductionStockOptions.Color property if the point open value is greater than the point close value (the price is decreased). | |
| ReductionColorMode.PreviousToCurrentPoint | Points are colorized with the color specified by the ReductionStockOptions.Color property if the value of the previous point is greater than the value of the current point (the value is decreased). The StockPointOptions.ValueLevel property specifies the point value that should be compared. |
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ColorMode property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-chart-create-candlestick-chart/VB/CandleStickChart/Form1.vb#L33
' Specify the series reduction options.
view.ReductionOptions.ColorMode = ReductionColorMode.OpenToCloseValue
view.ReductionOptions.FillMode = CandleStickFillMode.AlwaysEmpty
See Also