Page 1 of 1

MACD Pen Color

Posted: Mon Nov 03, 2008 7:47 pm
by 14049416
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

Posted: Mon Nov 03, 2008 8:01 pm
by 14049416
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?

Posted: Tue Nov 04, 2008 10:28 am
by narcis
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.