Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 629 - Being able to set a Candle color when open and close colors are the same.
Summary: Being able to set a Candle color when open and close colors are the same.
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: TeeChart.NET 2013 4.1.2013.11080
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-12 07:25 EDT by narcís calvet
Modified: 2014-05-26 11:33 EDT (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description narcís calvet 2014-03-12 07:25:27 EDT
As the following code, if open value < close value then the candle color is red. And if open value > close value then the candle color is green.
I want the candle be white when open value = close value, how can it be done?
By my code, the candle is sometimes red and sometimes green when open value = close value.

CODE: SELECT ALL
candle1.Style = Steema.TeeChart.Styles.CandleStyles.CandleBar;
candle1.UpCloseColor = Color.Red;
candle1.DownCloseColor = ColorGreen;

An easy option might be making Steema.TeeChart.Styles.Candle.CalculateColor method public so that it can be overriden in a custom series class. A better option would be adding a new property, eg.: Candle.SameCloseColor. It may need to be disabled by default to not brake backwards compatibility.
Comment 1 christopher ireland 2014-05-26 11:33:53 EDT
New "SameCloseColor" property added, with default Empty colour. If the colour is set to something other than empty, then this colour will be used when the UpClose and DownClose values are the same.