Lightweight Charts Version: 4.0

My charts always gets some candlestick bars that are the wrong color. About 1 in 100 or so bullish candles go red and bearish candles go green.



I made a JsFiddle: The inputs below the chart are in order datetime, open, high, low, close (as you can see from the class names) The error is visible on the 2023-1-14 23:00:00 candlestick, which is red, but it is bullish according to price data. (JsFiddle and screenshot above are two different charts - but same error)

You can see the error on my website as well.


I figured out that my price data were string and not numbers. Seems to work fine now!

© 2022 - All rights reserved.