Page 1 of 1

How to draw a solid line at Y=0 on MACD Indicator

Posted: Tue Jun 16, 2009 10:55 pm
by 10548832
I would like my MACD indicator to have an horizontal solid line at Y = Zero. What is the best way to go about that? Thanks.

Re: How to draw a solid line at Y=0 on MACD Indicator

Posted: Wed Jun 17, 2009 8:05 am
by yeray
Hi Phineas,

The easier way to draw a straight line in a chart usually is using ColorLine tool:

Code: Select all

  Chart1.Tools.Add(TColorLineTool.Create(self));
  with (Chart1.Tools[Chart1.Tools.Count-1] as TColorLineTool) do
  begin
    Axis := Chart1.Axes.Left;
    Value := 0;
  end;