Recent

Author Topic: [solved] OHLC chart / Candle Stick in black and white  (Read 336 times)

Nicole

  • Hero Member
  • *****
  • Posts: 1271
[solved] OHLC chart / Candle Stick in black and white
« on: September 22, 2025, 12:54:11 pm »
I have two series OHLC chart / Candle Stick.
One is green and red, - the second one as well. This is puzzling.
I wanted to draw it black and white and tried two ways and failed with both:

1)
I changed the settings in the object inspector for the series. A lot of settings.
The colors remained green and red.

2)
I tried it by code and wrote (there is only one parameter for colors?!):
SeriesKontrakt_2.AddXOHLC(kurse2.Datum, kurse2.open, kurse2.high, kurse2.low, kurse2.close, '', clBlack);
With the result, that ALL candles are black, raising as well as falling.

What can I do?
I use Lazarus 4 and Windows 7.

Thanks
« Last Edit: October 07, 2025, 10:02:31 am by Nicole »

wp

  • Hero Member
  • *****
  • Posts: 13207
Re: OHLC chart / Candle Stick in black and white
« Reply #1 on: September 22, 2025, 04:35:38 pm »
Should be fixed in Laz/main. Please test and report back so that the changes can be backported to the fixes branch and will make it into v4.4.

Nicole

  • Hero Member
  • *****
  • Posts: 1271
Re: OHLC chart / Candle Stick in black and white
« Reply #2 on: September 22, 2025, 05:07:11 pm »
Did I get it right: Problem in 4.0 and fixed in 4.4?
Is 4.4. stable?

wp

  • Hero Member
  • *****
  • Posts: 13207
Re: OHLC chart / Candle Stick in black and white
« Reply #3 on: September 22, 2025, 06:10:07 pm »
Currently it is fixed in Main, and in the future it will be fixed in 4.4 (not yet released). Yes, v4.4. will be stable - like every version having an even number (4.4, 4.2, 4.0, 3.8, 3.6, ...)

 

TinyPortal © 2005-2018