It is currently Wed Oct 17, 2018 9:23 pm Advanced search

Candle streaming updates

Technical support for the Highcharts Stock package

Candle streaming updates

Postby gareth-ib » Tue Oct 09, 2018 8:39 pm

Could you please add a demo of a candle or OHLC chart with dynamically updating data?
like ...
https://www.highcharts.com/stock/demo/dynamic-update

but using candles like on

https://www.highcharts.com/stock/demo/candlestick

so that any candle size will work along with the data grouping that seems to be required in that style chart.
I've seen posts on here and StackOverflow of people with problems with this, as well as myself on a past project.

thanks
gareth-ib
 
Posts: 9
Joined: Thu Sep 27, 2018 10:25 pm

Re: Candle streaming updates

Postby rafalS » Wed Oct 10, 2018 11:22 am

Hi, gareth-ib!

Are you looking for something like this? https://jsfiddle.net/BlackLabel/uparh9xo/

Best regards
Rafal Sebestjanski,
Highcharts Developer
rafalS
 
Posts: 401
Joined: Thu Jun 14, 2018 1:40 pm

Re: Candle streaming updates

Postby gareth-ib » Wed Oct 10, 2018 7:49 pm

hey Rafal S,

not exactly.. cuz that is just appending to the chart. As opposed to in a real streaming scenario, the latest 1 minute candle would be getting multiple updates from activity during that minute, then eventually a new minute would come and need to add a new candle. The problem is updating a candle as opposed to only adding candles.

So to clarify.. by "update data" I do not mean the same as adding data.

thanks
gareth-ib
 
Posts: 9
Joined: Thu Sep 27, 2018 10:25 pm

Re: Candle streaming updates

Postby rafalS » Thu Oct 11, 2018 1:06 pm

gareth-ib,

Sorry but I don't quite understand the idea of updating your data and candles. You can do whatever you want with data - you can add new points or you can update last points and I can show you how to do both - but you would need to give me some sample data and explain precisely how you would like it to work.

Kind regards
Rafal Sebestjanski,
Highcharts Developer
rafalS
 
Posts: 401
Joined: Thu Jun 14, 2018 1:40 pm

Re: Candle streaming updates

Postby gareth-ib » Thu Oct 11, 2018 11:00 pm

yes I want to update data. The "AAPL" data feed would be fine. Just like how all trading sites work, for instance:
https://pro.coinbase.com/trade/ETH-USD

if you are zoomed to the 1minute candles... you'll see that 1 minute candle change shape during that 1 minute of time as transactions occur and expand the range of values for that candle.
The same thing happens at whatever level of zoom you are at

or like the problem this person was having: https://stackoverflow.com/questions/410 ... art-points

make sense? Thanks
gareth-ib
 
Posts: 9
Joined: Thu Sep 27, 2018 10:25 pm

Re: Candle streaming updates

Postby rafalS » Fri Oct 12, 2018 11:27 am

So you want to add a new point every minute so new candle appears but during that minute low and high values of our candle might change so you want to update candle to show changes, for example, every 6 seconds (10 times for one candle)?
Rafal Sebestjanski,
Highcharts Developer
rafalS
 
Posts: 401
Joined: Thu Jun 14, 2018 1:40 pm


Return to Highstock Usage

Who is online

Users browsing this forum: No registered users and 0 guests