Ohlc candles displayed in a candlestick chart are not connected

Hi everyone,

I try to render a candle sticks and could use some help to solve a issue.

I try to rneder a candle stick chart on the bsc network and basically it works. Only problem is that the candles are not connected to each other because open and close for each interval have a big difference.

This is how it looks like:

Screenshot 2022-01-05 at 17.00.59

You can find a example query here:

https://graphql.bitquery.io/ide/SYA—BNB-ohlc

Can you please point me in the right direction how to solve this issue? Thx in advance.

This is how it should look like:

OHLC can be calculated in different ways.

Pass the last candle close price as the new candle open price. And you will get the connected candle.

1 Like