xpdt
Posts: 3
Joined: Thu Feb 15, 2024 1:12 am

Ichimoku color

Hi
I have a candlestick chart and I add an Ichimoku chart to the chart:

Code: Select all

chart.addSeries({type: 'ikh', linkedTo: 'main'});
Now I have two questions, why the color of the cloud is always red and How can I change the color of TenkanSen and KijunSen ?
kamil
Posts: 124
Joined: Mon Mar 04, 2024 8:26 pm

Re: Ichimoku color

Hi there,
Thank you for reaching out to us!
Could you provide a live demo (e.g. on jsfiddle.net) that recreates the problem?

Best regards!
Kamil Kulig
Highcharts Developer
xpdt
Posts: 3
Joined: Thu Feb 15, 2024 1:12 am

Re: Ichimoku color

Here is a demo:
https://jsfiddle.net/xpdt2/a30L9c1n/2/
When Senko Span A is above Senko Span B, I expect the cloud color to turn green.
I also want to change the color of Kijunsen because it looks like Tenkansen.
kamil
Posts: 124
Joined: Mon Mar 04, 2024 8:26 pm

Re: Ichimoku color

Hi there,
Thank you for reaching out to us!

I suppose that senkouSpan.color, senkouSpan.negativeColor & kijunLine.style.lineColor are the options that you are looking for:
https://api.highcharts.com/highstock/se ... senkouSpan

Here's a live demo: https://jsfiddle.net/BlackLabel/0zo3k6wu/
Please let us know if you have any further questions.

Best regards!
Kamil Kulig
Highcharts Developer
xpdt
Posts: 3
Joined: Thu Feb 15, 2024 1:12 am

Re: Ichimoku color

Thank you, the problem is completely solved :wink: :wink:
kamil
Posts: 124
Joined: Mon Mar 04, 2024 8:26 pm

Re: Ichimoku color

Glad to hear that :)
Kamil Kulig
Highcharts Developer

Return to “Highcharts Stock”