PureBytes Links
Trading Reference Links
|
Thank you
Rick
--- wavemechanic <fimdot@xxxxxxxxx> wrote:
> Just take it one step at a time and convert your
> words into AFL. For example:
>
> upbar = iif(macd(x, y) > ref(macd(x, y), -1) and
> macd(x, y) > 0, 1, 0);
> downbar = iif(macd(x,y) < ref(macd(x,y), -1) and
> macd(x,y) > 0, 1, 0);
> and similar for negative bars. Then define colors:
> barcolor = iif(upbar, colorred, iif(downbar,
> colorwhite, iif(upbarnegative, colorblue,
> colorgreen)));
> plot(macd(x,y), "", barcolor, stylehistogram);
>
> Bill
> ----- Original Message -----
> From: "ricko8294_98" <ricko@xxxxxxxxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Thursday, September 20, 2007 12:11 AM
> Subject: [amibroker] Help with nested IIF statements
>
>
> > Hi
> > for the past 2 hours I have been trying to figure
> out how to do this.
> >
> > I want to color Histogram bars (like the MACD, for
> example) so that if
> > 1 the bar is positive, = colorlightblue
> > 2 if the bar is positive and the bar has a lower
> value than the prior
> > bar, = colorblue
> > 3 if the bar is negative,= colorred
> > 4 if the bar is negative and has a higher value
> than the prior bar, =
> > colordarkred.
> >
> > Any help appreciated.
> > Rick
> >
> >
> >
> > Please note that this group is for discussion
> between users only.
> >
> > To get support from AmiBroker please send an
> e-mail directly to
> > SUPPORT {at} amibroker.com
> >
> > For NEW RELEASE ANNOUNCEMENTS and other news
> always check DEVLOG:
> > http://www.amibroker.com/devlog/
> >
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> >
> > Yahoo! Groups Links
> >
> >
> >
>
Rick Osborn
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
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/
|