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

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Phineas
Newbie
Newbie
Posts: 18
Joined: Wed Apr 09, 2008 12:00 am

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

Post by Phineas » Tue Jun 16, 2009 10:55 pm

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.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

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

Post by Yeray » Wed Jun 17, 2009 8:05 am

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;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply