Skip to content

Conversation

@avparmar
Copy link

kline data apparently expects its values in the order {close, open, low, high} as opposed to how it is currently (open, close, low, high). When creating the sample charts from this data you'll notice that the candles will be the right color for their actual direction. Longer term, you could update kline to use the more intuitive format of starting with the open price but this would break existing charts so it's probably better to just update existing labels.

kline data apparently expects its values in the order {close, open, low, high} as opposed to how it is currently (open, close, low, high). When creating the sample charts from this data you'll notice that the candles will be the right color for their actual direction.
Longer term, you could update kline to use the more intuitive format of starting with the open price but this would break existing charts so it's probably better to just update existing labels.
@avparmar
Copy link
Author

I now see that this is actually WAI as in some countries red is used for increases and that the colors are ultimately customizable anyway.
I will leave this open to get confirmation but feel free to close this if that's the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant