I will test the styleArea version as soon as I get a chance. I really like the concept and reason why you chose styleCloud. It's a bummer that it works the way it does.
Once again thanks for your contribution in making the ribbon code better. Dave -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of johsun Sent: Sunday, July 30, 2006 11:58 AM To: [email protected] Subject: [amibroker] Re: Multi Row Colored Ribbons Dave, Yes I think I see the problem now, even though I can see your attachments. It's the width thing that I mentioned - the change won't be visible until the day after, and like you said that is obviously too late. Below is my revised code - I've gone back to using styleArea. The reason I wanted to use styleCloud is that you won't have to keep track of the plotorder, no plot will cover another. But styleArea will work just fine as long as you keep this in mind. Johan procedure ribbon( ribbon_nr, Caption, Color ) { firstbar = Status( "firstvisiblebarindex" ); lastbar = Status( "lastvisiblebarindex" ); xOffset = ( lastbar - firstbar ) / 100; yOffset = 0.5; y2 = ribbon_nr; y1 = y2 - 1; Plot( y2, "", colorBlack, styleLine | styleNoLabel ); Plot( 0, "", colorBlack, styleNoDraw ); Plot( y2, "", Color, styleArea | styleNoLabel ); PlotText( Caption, firstbar + xOffset, y2 - yOffset, colorBlack ); } --- In [email protected], "MarketMonk777" <[EMAIL PROTECTED]> wrote: > > My apologies. I had my timeframe set to Weekly while viewing charts. The > chart I sent you was a weekly chart. > > Even if you use the daily chart, the same condition exists. The original > version of the ribbon indicator (that many folks assisted in putting > together) seems to give a signal or change colors one bar ahead of your > version. > > On a daily chart of BDK, the RSI-14 ribbon just turned yellow on the > original ribbon, where as your version is still green. The value I show for > RSI(14) is 32.1087. > > This has me puzzled and is what would like your support in understanding > why. > > Dave 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 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 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/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
