kvhgiang
Posts: 2
Joined: Wed Apr 13, 2022 4:52 am

Update indicator which linked to other indicator in real time

Hi all,

I have a stock chart updated real time. There are many indicators. When I update data for pricing ohlc, the indicators linkedTo first serie (first serie has type ohlc or candlestick) can be updated. But the indicator linkedTo other indicator can't be. How can I update this serie too?

This is my example: https://jsfiddle.net/765fLw4e/

Image
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Update indicator which linked to other indicator in real time

Hi,

We appreciate you reaching out to us with your inquiry.

I've reported a bug, which you can track here: https://github.com/highcharts/highcharts/issues/17190 .
As a temporary workaround, you can update the ema series after adding a point to the ohlc series. Check the following demo:

Demo:
https://jsfiddle.net/BlackLabel/hruojv71/

Let me know if you have any further questions,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
kvhgiang
Posts: 2
Joined: Wed Apr 13, 2022 4:52 am

Re: Update indicator which linked to other indicator in real time

magdalena wrote: Thu Apr 14, 2022 7:12 pm Hi,

We appreciate you reaching out to us with your inquiry.

I've reported a bug, which you can track here: https://github.com/highcharts/highcharts/issues/17190 .
As a temporary workaround, you can update the ema series after adding a point to the ohlc series. Check the following demo:

Demo:
https://jsfiddle.net/BlackLabel/hruojv71/

Let me know if you have any further questions,
Regards!
Thanks a lot @magdalena, you really save me
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Update indicator which linked to other indicator in real time

Hi kvhgiang! That's great to hear that a workaround is good for you.

Feel free to ask any further questions!
Regards!
Hubert Kozik
Highcharts Developer

Return to “Highcharts Stock”