LineInRange = BarIndex() >= BarCount - 2; Line = IIf( LineInRange, 10, NULL );
Steve ----- Original Message ----- From: "booker_1324" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Sunday, August 19, 2007 9:17 PM Subject: [amibroker] Re: How to draw a graph on certain bars only > Great, now can anyone fiqure out how to plot a line during the last 2 > bars only? > > > > --- In [email protected], "archstone2003" <[EMAIL PROTECTED]> > wrote: >> >> Hi, >> >> I asked the quesiton to Yahoo group because I didn't receivce the >> reply from Amibroker support. Usually they reply really fast after > I >> asked them, but this time it was taking longer and I though they > may >> not have an answer. >> >> But afte I made the post I got the answer from them, and I would > like >> to share it with you as well. >> >> This is the core part of their reply: >> >> ====================================== >> Simply use Null value for days when you don't want to plot: >> >> array = IIF( MACD() < 0, MACD(), Null ); >> >> Plot( array, "Only MACD above zero", colorRed ); >> >> ====================================== >> >> Have a nice day! >> >> >> >> --- In [email protected], "Jerry Gress" >> <pleasenospamplease@> wrote: >> > >> > Hello, >> > >> > Try using stylecloud, example below for some R/S zones: >> > >> > >> > _SECTION_BEGIN("Color"); >> > PlotOHLC(R3,R3,R3a,R3a,"",r1color,styleCloud|styleNoRescale);//r3 >> > >> > >> > >> > Jerry Gress >> > Stockton, Ca. >> > >> > -----Original Message----- >> > From: [email protected] > [mailto:[EMAIL PROTECTED] >> On Behalf >> > Of archstone2003 >> > Sent: Friday, August 17, 2007 1:23 AM >> > To: [email protected] >> > Subject: [amibroker] How to draw a graph on certain bars only >> > >> > Hi, >> > >> > I want to draw something on the price pane, and I want to draw it >> only >> > when certain condition is met, i.e., I want to draw it for > certain >> days >> > but don't want to show it otherwise. >> > >> > Is there a way to do this? >> > >> > One way would be to use the background color to draw it when I >> don't >> > want to show it, but how can I retrieve the background color in > AFL? >> > >> > Is there any better ways? >> > >> > Thanks. >> > >> > Wei >> > >> > >> > >> > 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 >> > >> > > > > > 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 > > > >
