Candle - Color Settings

TeeChart for ActiveX, COM and ASP
Post Reply
Bush
Newbie
Newbie
Posts: 50
Joined: Fri Nov 05, 2004 5:00 am

Candle - Color Settings

Post by Bush » Tue Jul 26, 2005 6:10 pm

Hi,

Please how to adapt by code :

- The candle GRADIENT Up and down color
- The candle Color Style :
Relative to Open
Relative to Previous Close

:roll:

Kind Regards,
Bush

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Jul 27, 2005 10:31 am

Hi Bush,

not, this settings cannot be applied via code, but I'll add them for the next maintenance release v7.05 which will be out in a few days.
You will have to use similar code to the following :

Code: Select all

tChart1.Series(0).asCandle.ColorStyle = cssRelativeToClose
tChart1.Series(0).asCandle.UpCloseGradient.StartColor = clblue
tChart1.Series(0).asCandle.UpCloseGradient.EndColor = clred
tChart1.Series(0).asCandle.UpCloseGradient.Visible = true
tChart1.Series(0).asCandle.DownCloseGradient.StartColor = clgreen
tChart1.Series(0).asCandle.DownCloseGradient.EndColor = clpurple
tChart1.Series(0).asCandle.DownCloseGradient.Visible = true

Bush
Newbie
Newbie
Posts: 50
Joined: Fri Nov 05, 2004 5:00 am

Post by Bush » Wed Jul 27, 2005 11:04 am

Great!

It's maybe a good idea to add as well the :
tChart1.Series(0).asCandle.UpCloseGradient.ShowEditor
and
tChart1.Series(0).asCandle.DownCloseGradient.ShowEditor

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Jul 28, 2005 3:20 pm

Hi,
It's maybe a good idea to add as well the :
tChart1.Series(0).asCandle.UpCloseGradient.ShowEditor
and
tChart1.Series(0).asCandle.DownCloseGradient.ShowEditor
Yes, of course,.. done !

Bush
Newbie
Newbie
Posts: 50
Joined: Fri Nov 05, 2004 5:00 am

Post by Bush » Thu Jul 28, 2005 8:18 pm

:P
Bush

Post Reply