[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: In a plot statement . . .



PureBytes Links

Trading Reference Links

Yuki,
cum(1)%2 will be equal to 1,0,1,0,1,0,...
Try something like

Plot(C,"C",1,64);
Plot(MA(C,50),"MA50",colorYellow,1);
Plot(MA(C,30),"MA30",(Cum(1)%2)*colorRed,1);

It will give an red [equally spaced] dashed MA, if the first 
customcolor in preferences is your background color [customcolor=0]
Dimitris

> ----- Original Message ----- 
> From: "Yuki Taga" <yukitaga@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Saturday, September 18, 2004 11:28 PM
> Subject: [amibroker] In a plot statement . . .
> 
> 
> > I would like to plot a value as a dashed line, with equal spacing
> > between the dashes.  I can plot as dots of course, but when there 
is
> > a large value change between dates, the dots space very unevenly, 
as
> > the plot is one dot per bar.
> >
> > A line would actually be closer to what I'd like, but I'd like to
> > differentiate between another line on the chart, yet have them 
both
> > share the same color.  Evenly spaced dashes would be perfect, but 
I
> > cannot seem to do this.
> >
> > Yuki
> >
> >
> >
> >
> > Check AmiBroker web page at:
> > http://www.amibroker.com/
> >
> > Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > Yahoo! Groups Links
> >
> >
> >
> >
> >



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> 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/