PureBytes Links
Trading Reference Links
|
You must use a different parameter name for the second line.
e.g.
line2 = DateNum() == ParamDate("Other Date", ...);
And, as Herman points out, the date must be a trading day before it will show on the chart.
Mike
--- In amibroker@xxxxxxxxxxxxxxx, Geoffrey Keenan <gkeenan@xxx> wrote:
>
> I have tried to add a second vertical line with this code:
> line1 = DateNum() == ParamDate("Date", "01/01/2009", 0);
> line2 = DateNum() == ParamDate("Date", "31/01/2009", 0);
> Plot(line1, "", colorRed, styleHistogram | styleOwnScale | styleNoLabel);
> Plot(line2, "", colorBlue, styleHistogram | styleOwnScale | styleNoLabel);
> Plot(Close, "Close", colorDarkGrey, styleBar);
>
> However, it recognises only the a single line. Any suggestions?
> Geoff
>
>
> sfclimbers wrote:
> >
> >
> > The following AFL will allow you to pick a Date via the Parameters
> > menu of your chart (i.e. right click on chart and select Parameters).
> > A red vertical line will be drawn for that date and remain constant
> > across all symbols until you change the parameter value.
> >
> > In the interest of providing a complete example, I've also plotted
> > price. You can remove the second Plot for your own chart.
> >
> > line = DateNum() == ParamDate("Date", "01/01/2009", 0);
> > Plot(line, "", colorRed, styleHistogram | styleOwnScale | styleNoLabel);
> > Plot(Close, "Close", colorDarkGrey, styleBar);
> >
> > Mike
> >
> > --- In amibroker@xxxxxxxxxxxxxxx <mailto:amibroker%40yahoogroups.com>,
> > "wrzec" <williamzecha@> wrote:
> > >
> > > I have been trying to find any information on adding vertical lines
> > to my charts. The vertical line tool on the chart tools menu will work
> > but the lines are linked to that symbol only. I am looking for
> > something that will remain fixed on my charts no matter what chart I
> > am scrolling through. It would solve my problem if the layers tool had
> > some type of setting that enabled the highlighted dates to remain
> > fixed on the chart sheet or there were some type of afl that would
> > work. I have searched the groups database for information but didn't
> > find anything. Any ideas or suggestions??
> > >
> > >
> > > Thanks,
> > > William
> > >
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG - www.avg.com
> > Version: 8.5.409 / Virus Database: 270.13.76/2344 - Release Date: 09/03/09 18:05:00
> >
> >
>
>
> --
> Geoffrey Keenan
> gkeenan@xxx
> 0417 863 261
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|