Sorry if this posts twice...Yahoo!, you understand.:)

Thanks for the idea(s).  While noodling-around with them it occurred 
to me that the problem might simply be in my "plot" code, and it 
was.  Here's the solution:

REC=Foreign("^Recession Ribbon","C")==0;
Plot(REC, "Recession", 
colorYellow,styleOwnScale|styleArea|styleNoLabel , 0,1);

For anyone who wants to duplicate this indicator, I went to the NBER 
website and got the "official" recession dates, created a csv. file 
with "1" and "0" signals corresponding to the dates of economic 
expansion/recession, imported the csv. into AB and went from there.

You can use the indicator ribbons to show recession periods on any 
other security charts you have in AB, just drag-and-drop them on top 
of a chart just like any other indicator.


Sebastian

--- In [email protected], Dennis Brown <[EMAIL PROTECTED]> wrote:
>
> Sebastian,
> 
> You might also experiment with Null data to keep from plotting the  
> ribbon in certain areas (that would be the same as transparent).
> 
> However, what I think you are really asking for is the ability to  
> plot area "behind" the grid Z order, or plot the grids with a 
command  
> in any normal Z ordering.  I don't think this is currently 
possible,  
> but is now included in suggestion #257.
> 
> Dennis
> 
> On Sep 6, 2007, at 9:14 AM, wavemechanic wrote:
> 
> > I don't think it is possible but an easy alternative would be to  
> > color the bars of the index to reflect recession/non-recession  
> > periods.
> >
> > Bill
> >
> > ----- Original Message -----
> > From: "sebastiandanconia" <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Wednesday, September 05, 2007 10:37 AM
> > Subject: [amibroker] Ribbons: Is there a "transparent" 
or "clear"  
> > setting for the color?
> >
> > > Using the code below I have a ribbon that runs the full height 
of  
> > the
> > > chart.  (I use it to display economic recessions on stock index
> > > charts.)
> > >
> > > What I want is to display just the ribbon in color, leaving the 
rest
> > > of the chart "see-through."  The "colorBlack" in non-recession
> > > periods blacks-out the gridlines on my black-background charts.
> > >
> > > Any way of doing this?  TIA.
> > >
> > >
> > > Sebastian
> > >
> > >
> > > _SECTION_BEGIN("Recession Ribbon");
> > > REC=Foreign("^Recession Ribbon","C")==0;
> > > NOREC=Foreign("^Recession Ribbon","C")==1;
> > >
> > >
> > > Plot( 2, /* defines the height of the ribbon in percent of 
pane  
> > width
> > > */"ribbon",
> > > IIf( REC, colorDarkYellow, IIf( NOREC, colorBlack, 0 )), /* 
choose
> > > color */
> > > styleOwnScale|styleArea|styleNoLabel, 0, 1 );
> > >
> > > _SECTION_END();
> > >
> > >
> > >
>


Reply via email to