ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  fiance chart colors question
Posted by zdw on Apr-11-2019 17:49
In the financial chart,How to set the candle color when encountering the following conditions:
1、When the last K Line close Price is equal to this K Line close Price
2、When the last K Line open price is equal to this K Line close price


I try to use CandleStickLayer.setExtraColors function。but not the effect I wanted。

  Re: fiance chart colors question
Posted by Peter Kwan on Apr-12-2019 01:24
Hi zdw,

If you need a custom coloring scheme, you would need to use multiple candlestick layers, each for candles of one color. See:

https://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1417765426#N1418084221

If you are using FinanceChart object, instead of using FinanceChart.addCandleStick, you would need to use XYChart.addCandleStickLayer for the main price chart.

Regards
Peter Kwan