MACD Pen Color

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
WD_Gordon
Newbie
Newbie
Posts: 49
Joined: Wed Jun 18, 2008 12:00 am

MACD Pen Color

Post by WD_Gordon » Mon Nov 03, 2008 7:47 pm

Hi,

I am trying to set the color of the MACD line. I have no problem setting the Signal line but no luck with the MACD line. When setting the MACDPen.Color property I notice the color is 122, 78, 26. After setting the property to 255, 0 ,0 it appears the property is changed in the debugger but when it paints it goes right back to 122, 78, 26. Now changing the width using MACDPen.Width works but not the color. I have also tried setting the MACDPen.DrawingPen.Color but that does not work either.

Thanks,
Kevin

WD_Gordon
Newbie
Newbie
Posts: 49
Joined: Wed Jun 18, 2008 12:00 am

Post by WD_Gordon » Mon Nov 03, 2008 8:01 pm

Okay, I figured out that if you set the Brush.Color property of the Line series that the MACD is assinged to then it sets the color, but why would MACDPen.Width set the width but MACDPen.Color not set the color?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Nov 04, 2008 10:28 am

Hi WD_Gordon,

Setting Line.Color may also help you. Pen and Brush have different behaviour. In 3D charts it's the brush which displays series color while in 2D charts pen is changed accordingly to reflect it.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply