Still don't know why you have to do that in
code. Can't you set the
ID for the line that drawn from toolbar? seems ur reinventing the
wheels here...
--- In amibroker@xxxxxxxxxxxxxxx,
"KBH" <hawkinsk001@xxx> wrote:
>
> Thanks wavemechanic, that gives me exactly what I asked for.
Unfortunately I
> asked for the wrong thing.
>
> What I want to create is a trend line using AFL code that has all
of the
> same properties as a horizontal trend line drawn
>
> with the drawing toolbar.
>
>
>
> Once initially placed on chart I would like to be able to drag it
up and
> down, set its study ID, etc….
>
> Does anybody know how to do that?
>
>
>
>
>
>
>
> From: amibroker@xxxxxxxxxxxxxxx
[mailto:amibroker@xxxxxxxxxxxxxxx]
On Behalf
> Of wavemechanic
> Sent: Saturday, March 15, 2008 7:25 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: Re: [amibroker] Re: Plot Line
>
>
>
> plot(param("line level", 25, 5, 50, 1), "",
colorwhite);
>
> ----- Original Message -----
>
> From: HYPERLINK "mailto:hawkinsk001@xxx"KBH
>
> To:
HYPERLINK "mailto:amibroker@xxxxxxxxxxxxxxx"amibroker@xxxxxxxxxxxxxxx
>
> Sent: Saturday, March 15, 2008 2:14 AM
>
> Subject: RE: [amibroker] Re: Plot Line
>
>
>
> I want to create the horizontal trend line thru AFL code not by
using the
> toolbar.
>
>
>
> thanks
>
> turn off "snap to price" and then add a "horizontal
line" from
> toolbar, you should be able to drag the line around in your chart.
>
> I am trying to plot a horizontal trend line in the center of a
> price chart thru AFL code and after it is plotted on price chart I
can
> select it and move it around the chart. I realize I can uses the
> horizontal trend line drawing tool to create the above but I want to
> be able to create it using code.
>
> Also I would like to be able to control the length and position.
> Here is what I got so far but it won't
> do what I want it to do. All it does is put a horizontal line
> across my chart which I can't move. I understand why it can't move,
>
>
>
> because of the "665" but I don't know what to do about it. Don't
> laugh it took me and 1 ½ hours to create it.
>
> Plot(665, "Line", colorRed, styleLine,0, 0, 0);
>
> Thanks,
> Bruce
> >
> >
> > No virus found in this outgoing message.
> > Checked by AVG.
> > Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date:
> 3/14/2008
> > 12:33 PM
> >
>
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date:
3/14/2008
> 12:33 PM
>
>
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date:
3/14/2008
> 12:33 PM
>
> _____
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.7/1319 - Release Date:
3/8/2008
> 10:14 AM
>
>
>
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date:
3/14/2008
> 12:33 PM
>
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.21.7/1329 - Release Date:
3/14/2008
> 12:33 PM
>