To stop the bouncing around, use LastValue(Ref(x, -1)) as your y value, where x is H/L/C/whatever. That way price will only move when the last bar is complete.
In my code I use "LastValue(H) + LastValue(ATR(50))" and "LastValue(L) - LastValue(ATR(50))" to plot buy and sell prices on the chart. It seems to work reasonably well for most charts, although if price is at the highest/lowest point on the visible chart, one price will disappear. BTW, if you use the code snippets in RT, you would need to change them to "LastValue(Ref(H, -1)) + LastValue(Ref(ATR(50), -1))" and "LastValue(Ref(L, -1)) - LastValue(Ref(ATR(50), -1))". Daniel J. Biran wrote: > > True, except it is very hard to position this on the exact top line of > the screen, > there is no way to probe the scaling of the chart from afl. > > If you plot it on a price related location it will be jumping around > with price changes > (RT charts), and if you force the vertical scaling by some artificial > plot, at the very least > you will loose chart resolution. > > Make a suggestion to add the ability to specify background color in > the Title. > > > > Joseph Biran > ____________________________________________ > > > > ------------------------------------------------------------------------ > *From:* [email protected] [mailto:[EMAIL PROTECTED] > *On Behalf Of *wavemechanic > *Sent:* Sunday, September 10, 2006 6:16 AM > *To:* [email protected] > *Subject:* Re: [amibroker] Re: Highlighted text > > *PlotText lets you color the text and the text background.* > */ /* > > */SYNTAX PlotText( ''text'', x, y, color, bkcolor = colorDefault )/* > > *----- Original Message ----- * > *From: "Dennis And Lisa" <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>*>* > *To: <[EMAIL PROTECTED] <mailto:[email protected]>*>* > *Sent: Sunday, September 10, 2006 5:15 AM* > *Subject: [amibroker] Re: Highlighted text* > * > * > *> For example, the price is highlighted on the right (Y-Axis) of the > > screen. It has white numbers, but highlighted in black, or whatever > > color is chosen. Can the same* * **be done with text/value output? > > > > --- In [EMAIL PROTECTED] > <mailto:[email protected]>*, "wavemechanic" <[EMAIL PROTECTED]> wrote: > >> > >> Not sure what you mean by highlighted but does EncodeColor() do > > what you want? > >> > >> Bill > >> > >> ----- Original Message ----- > >> From: "Dennis And Lisa" <[EMAIL PROTECTED]> > >> To: <[EMAIL PROTECTED] <mailto:[email protected]>*> > >> Sent: Saturday, September 09, 2006 11:17 PM > >> Subject: [amibroker] Re: Highlighted text > >> > >> > >> > Hi...thank you Terry....what I mean is that if, for example, I > > want > >> > to use the TITLE function to display the Day's Hi, and I want it > >> > highlighted on the top left part of the screen, can I have it > >> > highlighted instead of just a normal colored display? > >> > > >> > Thanx, > >> > Dennis > >> > > >> > > >> > --- In [EMAIL PROTECTED] > <mailto:[email protected]>*, "Terry" <MagicTH@> wrote: > >> >> > >> >> If you mean in the interpretation window, unfortunately this is > > not > >> >> (yet) possible. > >> >> > >> >> I have taken to doing this to highlight something there: > >> >> > >> >> "----------------------"; > >> >> "what I want to highlight goes here"; > >> >> "----------------------"; > >> >> -- > >> >> Terry > >> >> > >> >> -----Original Message----- > >> >> From: [EMAIL PROTECTED] > <mailto:[email protected]>* > > [mailto:[EMAIL PROTECTED] > >> > On > >> >> Behalf Of Dennis And Lisa > >> >> Sent: Saturday, September 09, 2006 13:46 > >> >> To: [EMAIL PROTECTED] <mailto:[email protected]> > *>> >> Subject: [amibroker] Highlighted text > >> >> > >> >> Does anyone know of a way to have text or values displayed in a > >> >> highlighted color? > >> >> > >> >> thanks, > >> >> Dennis > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> 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* > <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* > <http://www.amibroker.com/support.html> > *>> > > >> > > >> > Yahoo! Groups Links > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > -- > >> > No virus found in this incoming message. > >> > Checked by AVG Free Edition. > >> > Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: > > 9/8/2006 > >> > > >> > > >> > > > > > > > > > > > > > > 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* > <http://www.amibroker.com/support.html> > *> > > > > Yahoo! Groups Links > > > *> > *> (Yahoo! ID required) > > > > **mailto:[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > *> > *> > *> > > > > > > > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006 > > > >* > 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/ <*> 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:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/
